Lines Matching refs:socket
58 socket_t* socket; member
66 static void sco_socket_free_locked(sco_socket_t* socket);
72 static void socket_read_ready_cb(socket_t* socket, void* context);
132 socket_t* socket = NULL; in sco_socket_establish_locked() local
156 socket = socket_new_from_fd(pair[1]); in sco_socket_establish_locked()
157 if (!socket) { in sco_socket_establish_locked()
164 sco_socket->socket = socket; // Hang on to the other end. in sco_socket_establish_locked()
167 socket_register(socket, thread_get_reactor(thread), sco_socket, in sco_socket_establish_locked()
193 socket_free(sco_socket->socket); in sco_socket_free_locked()
254 if (socket_write_and_transfer_fd(sco_socket->socket, &connect_signal, in connection_request_cb()
285 if (!sco_socket->socket) { in connect_completed_cb()
307 static void socket_read_ready_cb(UNUSED_ATTR socket_t* socket, void* context) { in socket_read_ready_cb() argument
311 socket_free(sco_socket->socket); in socket_read_ready_cb()
312 sco_socket->socket = NULL; in socket_read_ready_cb()