version 1.204, 2004/06/13 15:03:02 |
version 1.205, 2004/06/14 01:44:38 |
|
|
verbose("socket: %.100s", strerror(errno)); |
verbose("socket: %.100s", strerror(errno)); |
continue; |
continue; |
} |
} |
if (fcntl(sock, F_SETFL, O_NONBLOCK) < 0) |
if (set_nonblock(sock) == -1) |
fatal("connect_to: F_SETFL: %s", strerror(errno)); |
fatal("%s: set_nonblock(%d)", __func__, sock); |
if (connect(sock, ai->ai_addr, ai->ai_addrlen) < 0 && |
if (connect(sock, ai->ai_addr, ai->ai_addrlen) < 0 && |
errno != EINPROGRESS) { |
errno != EINPROGRESS) { |
error("connect_to %.100s port %s: %.100s", ntop, strport, |
error("connect_to %.100s port %s: %.100s", ntop, strport, |