Lines Matching refs:sock
164 php_socket_t sock; member
505 if (client->sock < 0) { in sapi_cli_server_flush()
1642 nbytes_read = recv(client->sock, buf, sizeof(buf) - 1, 0); in php_cli_server_client_read_request()
1682 ssize_t nbytes_sent = send(client->sock, str + str_len - nbytes_left, nbytes_left, 0); in php_cli_server_client_send_through()
1686 int nfds = php_pollfd_for(client->sock, POLLOUT, &tv); in php_cli_server_client_send_through()
1733 client->sock = client_sock; in php_cli_server_client_ctor()
1777 zend_hash_index_del(&server->clients, client->sock); in php_cli_server_close_connection()
1861 php_cli_server_poller_add(&server->poller, POLLOUT, client->sock); in php_cli_server_send_error_page()
1951 php_cli_server_poller_add(&server->poller, POLLOUT, client->sock); in php_cli_server_begin_send_static()
2101 closesocket((*p)->sock); in php_cli_server_client_dtor_wrapper()
2102 php_cli_server_poller_remove(&(*p)->server->poller, POLLIN | POLLOUT, (*p)->sock); in php_cli_server_client_dtor_wrapper()
2233 php_cli_server_poller_remove(&server->poller, POLLIN, client->sock); in php_cli_server_recv_event_read_request()
2236 php_cli_server_poller_add(&server->poller, POLLIN, client->sock); in php_cli_server_recv_event_read_request()
2258 … int err = php_cli_server_content_sender_send(&client->content_sender, client->sock, &nbytes_sent); in php_cli_server_send_event()