Lines Matching refs:socket
45 socket_t* socket; member
53 static void accept_ready(socket_t* socket, void* context);
54 static void read_ready(socket_t* socket, void* context);
127 static void accept_ready(socket_t* socket, UNUSED_ATTR void* context) { in accept_ready() argument
128 CHECK(socket != NULL); in accept_ready()
129 CHECK(socket == listen_socket); in accept_ready()
131 socket = socket_accept(socket); in accept_ready()
132 if (!socket) return; in accept_ready()
136 client->socket = socket; in accept_ready()
144 socket_register(socket, thread_get_reactor(thread), client, read_ready, NULL); in accept_ready()
147 static void read_ready(UNUSED_ATTR socket_t* socket, void* context) { in read_ready() argument
148 CHECK(socket != NULL); in read_ready()
154 socket_read(client->socket, client->buffer + client->buffer_size, in read_ready()
197 socket_free(client->socket); in client_free()