[Interest] What is QT_SOCKET_CONNECT?

gemfield gemfield at civilnet.cn
Thu Feb 9 10:45:01 CET 2012


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20120209/4255f77b/attachment.html>


More information about the Interest mailing list