Lines Matching refs:socket
46 socket_t* socket; member
54 static void accept_ready(socket_t* socket, void* context);
55 static void read_ready(socket_t* socket, void* context);
130 static void accept_ready(socket_t* socket, UNUSED_ATTR void* context) { in accept_ready() argument
131 CHECK(socket != NULL); in accept_ready()
132 CHECK(socket == listen_socket); in accept_ready()
134 socket = socket_accept(socket); in accept_ready()
135 if (!socket) return; in accept_ready()
139 client->socket = socket; in accept_ready()
147 socket_register(socket, thread_get_reactor(thread), client, read_ready, NULL); in accept_ready()
150 static void read_ready(UNUSED_ATTR socket_t* socket, void* context) { in read_ready() argument
151 CHECK(socket != NULL); in read_ready()
157 socket_read(client->socket, client->buffer + client->buffer_size, in read_ready()
200 socket_free(client->socket); in client_free()