Searched refs:connfd (Results 1 - 9 of 9) sorted by relevance
/freebsd-11-stable/tools/regression/sockets/unix_close_race/ |
H A D | unix_close_race.c | 66 int listenfd, connfd, pid; local 112 if ((connfd = socket(AF_LOCAL, SOCK_STREAM, 0)) < 0) { 116 if (connect(connfd, (struct sockaddr *)&servaddr, 121 if (close(connfd) < 0) { 134 if ((connfd = accept(listenfd, 137 if (close(connfd) < 0)
|
/freebsd-11-stable/contrib/sendmail/libmilter/ |
H A D | listener.c | 719 socket_t connfd = INVALID_SOCKET; local 806 connfd = accept(listenfd, (struct sockaddr *) &cliaddr, 816 if (ValidSocket(connfd) && 823 (void) closesocket(connfd); 824 connfd = INVALID_SOCKET; 829 if (ValidSocket(connfd) && !SM_FD_OK_SELECT(connfd)) 831 (void) closesocket(connfd); 832 connfd = INVALID_SOCKET; 836 if (!ValidSocket(connfd)) [all...] |
/freebsd-11-stable/contrib/ofed/libibverbs/examples/ |
H A D | ud_pingpong.c | 211 int sockfd = -1, connfd; local 249 connfd = accept(sockfd, NULL, NULL); 251 if (connfd < 0) { 256 n = read(connfd, msg, sizeof msg); 282 if (write(connfd, msg, sizeof msg) != sizeof msg || 283 read(connfd, msg, sizeof msg) != sizeof "done") { 290 close(connfd);
|
H A D | uc_pingpong.c | 213 int sockfd = -1, connfd; local 251 connfd = accept(sockfd, NULL, NULL); 253 if (connfd < 0) { 258 n = read(connfd, msg, sizeof msg); 285 if (write(connfd, msg, sizeof msg) != sizeof msg || 286 read(connfd, msg, sizeof msg) != sizeof "done") { 294 close(connfd);
|
H A D | srq_pingpong.c | 249 int sockfd = -1, connfd; local 287 connfd = accept(sockfd, NULL, NULL); 289 if (connfd < 0) { 301 r = read(connfd, msg + n, sizeof msg - n); 328 if (write(connfd, msg, sizeof msg) != sizeof msg) { 336 if (read(connfd, msg, sizeof msg) != sizeof "done") { 344 close(connfd);
|
H A D | rc_pingpong.c | 239 int sockfd = -1, connfd; local 277 connfd = accept(sockfd, NULL, NULL); 279 if (connfd < 0) { 284 n = read(connfd, msg, sizeof msg); 311 if (write(connfd, msg, sizeof msg) != sizeof msg || 312 read(connfd, msg, sizeof msg) != sizeof "done") { 321 close(connfd);
|
H A D | xsrq_pingpong.c | 596 int sockfd = -1, connfd; local 636 connfd = accept(sockfd, NULL, NULL); 637 if (connfd < 0) { 642 if (recv_remote_dest(connfd, i)) 645 if (send_local_dest(connfd, i))
|
/freebsd-11-stable/contrib/netcat/ |
H A D | netcat.c | 396 int connfd; local 445 connfd = accept(s, (struct sockaddr *)&cliaddr, 447 if (connfd == -1) { 454 readwrite(connfd); 455 close(connfd);
|
/freebsd-11-stable/crypto/openssh/regress/ |
H A D | netcat.c | 368 int connfd; local 417 connfd = accept(s, (struct sockaddr *)&cliaddr, 419 if (connfd == -1) { 426 readwrite(connfd); 427 close(connfd);
|
Completed in 186 milliseconds