Hi,

I found many codeing style like below in Qt source:

static inline int qt_safe_connect(int sockfd, const struct sockaddr *addr, 
QT_SOCKLEN_T addrlen)
{
    register int ret;
    EINTR_LOOP(ret, QT_SOCKET_CONNECT(sockfd, const_cast<struct sockaddr 
*>(addr), addrlen));
    return ret;
}
#undef QT_SOCKET_CONNECT
#define QT_SOCKET_CONNECT qt_safe_connect

What does QT_SOCKET_CONNECT macro really mean?

I think it shoule be a Linux API-connect,but I can't find it.

2012-02-09



gemfield
_______________________________________________
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest

Reply via email to