/freebsd/tools/test/stress2/misc/ |
H A D | sctp3.sh | 55 int listen_fd, conn_fd, ret; 84 conn_fd = accept(listen_fd, (struct sockaddr *) NULL, NULL); 85 if(conn_fd < 0) 93 in = sctp_recvmsg(conn_fd, buffer, sizeof(buffer), NULL, 0, 100 close(conn_fd); 112 int conn_fd, ret; 115 conn_fd = socket(AF_INET, SOCK_STREAM, IPPROTO_SCTP); 116 if (conn_fd < 0) 119 ret = connect(conn_fd, (struct sockaddr *) &servaddr, sizeof(servaddr)); 123 ret = sctp_sendmsg(conn_fd, (void *) msg, strlen(msg) + 1, NULL, 0, 0, 0, 0, 0, 0 ); [all …]
|
H A D | sctp.sh | 46 int listen_fd, conn_fd, flags, ret, in; 71 conn_fd = accept(listen_fd, (struct sockaddr *) NULL, NULL); 72 if(conn_fd < 0) 79 in = sctp_recvmsg(conn_fd, buffer, sizeof(buffer), NULL, 0, 86 close(conn_fd); 98 int conn_fd, ret; 101 conn_fd = socket(AF_INET, SOCK_STREAM, IPPROTO_SCTP); 102 if (conn_fd < 0) 105 ret = connect(conn_fd, (struct sockaddr *) &servaddr, sizeof(servaddr)); 109 ret = sctp_sendmsg(conn_fd, (void *) msg, strlen(msg) + 1, NULL, 0, 0, 0, 0, 0, 0 ); [all …]
|
H A D | sctp2.sh | 57 int listen_fd, conn_fd, flags, ret, in; 82 conn_fd = accept(listen_fd, (struct sockaddr *) NULL, NULL); 83 if(conn_fd < 0) 90 in = sctp_recvmsg(conn_fd, buffer, sizeof(buffer), NULL, 0, 97 close(conn_fd); 109 int conn_fd, ret; 112 conn_fd = socket(AF_INET, SOCK_STREAM, IPPROTO_SCTP); 113 if (conn_fd < 0) 116 ret = connect(conn_fd, (struct sockaddr *) &servaddr, sizeof(servaddr)); 120 ret = sctp_sendmsg(conn_fd, (void *) msg, strlen(msg) + 1, NULL, 0, 0, 0, 0, 0, 0 ); [all …]
|
/freebsd/usr.sbin/bhyve/ |
H A D | uart_backend.c | 300 int conn_fd; in uart_tcp_listener() local 302 conn_fd = accept(fd, NULL, NULL); in uart_tcp_listener() 303 if (conn_fd == -1) in uart_tcp_listener() 306 if (fcntl(conn_fd, F_SETFL, O_NONBLOCK) != 0) in uart_tcp_listener() 312 (void)send(conn_fd, tcp_error_msg, sizeof(tcp_error_msg), 0); in uart_tcp_listener() 316 sc->tty.rfd = sc->tty.wfd = conn_fd; in uart_tcp_listener() 326 if (conn_fd != -1) in uart_tcp_listener() 327 close(conn_fd); in uart_tcp_listener()
|
H A D | snapshot.h | 100 int get_checkpoint_msg(int conn_fd, struct vmctx *ctx);
|
/freebsd/contrib/capsicum-test/ |
H A D | socket.cc | 106 int conn_fd = accept(cap_sock_all, (struct sockaddr *)&un, &len); in TEST() local 107 EXPECT_OK(conn_fd); in TEST() 113 EXPECT_OK(cap_rights_get(conn_fd, &rights)); in TEST() 123 close(conn_fd); in TEST() 223 int conn_fd = accept(cap_sock_all, (struct sockaddr *)&addr, &len); in TEST() local 224 EXPECT_OK(conn_fd); in TEST() 230 EXPECT_OK(cap_rights_get(conn_fd, &rights)); in TEST() 240 close(conn_fd); in TEST()
|
/freebsd/tools/tools/netrate/tcpp/ |
H A D | tcpp_server.c | 64 int conn_fd; member 95 conn->conn_fd = fd; in tcpp_server_newconn() 119 close(conn->conn_fd); in tcpp_server_closeconn() 136 len = read(conn->conn_fd, in tcpp_server_handleconn() 163 len = read(conn->conn_fd, buffer, sizeof(buffer)); in tcpp_server_handleconn()
|
H A D | tcpp_client.c | 67 int conn_fd; member 130 conn->conn_fd = fd; in tcpp_client_newconn() 147 close(conn->conn_fd); in tcpp_client_closeconn() 172 len = writev(conn->conn_fd, iov, 2); in tcpp_client_handleconn() 188 len = write(conn->conn_fd, buffer, min(sizeof(buffer), in tcpp_client_handleconn()
|
/freebsd/contrib/llvm-project/lldb/source/Host/posix/ |
H A D | DomainSocket.cpp | 113 auto conn_fd = AcceptSocket(GetNativeSocket(), nullptr, nullptr, in Accept() 116 socket = new DomainSocket(conn_fd, *this); in Accept() 112 auto conn_fd = AcceptSocket(GetNativeSocket(), nullptr, nullptr, Accept() local
|
/freebsd/contrib/lib9p/transport/ |
H A D | socket.h | 37 void l9p_socket_accept(struct l9p_server *server, int conn_fd,
|
H A D | socket.c | 147 l9p_socket_accept(struct l9p_server *server, int conn_fd, in l9p_socket_accept() argument 173 sc->ls_fd = conn_fd; in l9p_socket_accept()
|