lines 152 to 162 of Socket.cpp:
bool blocking = true;
if(::connect(sock,(sockaddr*)&serv_addr,sizeof(serv_addr)) == SOCKET_ERROR) {
// EWOULDBLOCK is ok, the attempt is still being made, and FD_CONNECT will be signaled...
if(errno != EWOULDBLOCK) {
checksockerr(SOCKET_ERROR);
} else {
blocking = true;
}
}
if(blocking)
connected = true;
the bool variable 'blocking' is always equal to true. Is this a mistake or are things being kept like this for later "adjustment" ?
bool always true in Socket.cpp,v 1.51 2003/11/11 20:31:57
Moderator: Moderators
-
- Posts: 3
- Joined: 2003-11-24 19:39
-
- Posts: 3
- Joined: 2003-11-24 19:39
Sorry, clicked wrong forum.....
Posted same in Programmer's Help Forum.
-
- Forum Moderator
- Posts: 1420
- Joined: 2003-04-22 14:37
-
- Forum Moderator
- Posts: 587
- Joined: 2003-05-07 02:38
- Location: Sweden, Linkoping