version 1.79, 2000/12/29 22:19:13 |
version 1.80, 2001/01/08 22:03:23 |
|
|
error("socket: %.100s", strerror(errno)); |
error("socket: %.100s", strerror(errno)); |
continue; |
continue; |
} |
} |
if (fcntl(sock, F_SETFL, O_NDELAY) < 0) |
if (fcntl(sock, F_SETFL, O_NONBLOCK) < 0) |
fatal("connect_to: F_SETFL: %s", strerror(errno)); |
fatal("connect_to: F_SETFL: %s", strerror(errno)); |
/* Connect to the host/port. */ |
/* Connect to the host/port. */ |
if (connect(sock, ai->ai_addr, ai->ai_addrlen) < 0 && |
if (connect(sock, ai->ai_addr, ai->ai_addrlen) < 0 && |