Searched refs:out_sock (Results 1 – 1 of 1) sorted by relevance
/php-src/ext/sockets/ |
H A D | sockets.c | 263 static bool php_accept_connect(php_socket *in_sock, php_socket *out_sock, struct sockaddr *la, sock… argument 265 out_sock->bsd_socket = accept(in_sock->bsd_socket, la, la_len); 267 if (IS_INVALID_SOCKET(out_sock)) { 268 PHP_SOCKET_ERROR(out_sock, "unable to accept incoming connection", errno); 279 if ((mode = fcntl(out_sock->bsd_socket, F_GETFD)) < 0) { 280 PHP_SOCKET_ERROR(out_sock, "unable to get fcntl mode on the socket", errno); 287 if (fcntl(out_sock->bsd_socket, F_SETFD, cloexec) < 0) { 288 PHP_SOCKET_ERROR(out_sock, "unable to set cloexec mode on the socket", errno); 294 out_sock->error = 0; 295 out_sock->blocking = 1; [all …]
|
Completed in 11 milliseconds