Lines Matching refs:socket_fd

130     int socket_fd;                           // ds only stores event handle in win32  member
192 conn->socket_fd = fd; in socket_connection_register_new_connection()
248 int socket_fd = conn->socket_fd; in socket_connection_hci_process() local
253 if (WSAEnumNetworkEvents(socket_fd, socket_ds->source.handle, &network_events) == SOCKET_ERROR){ in socket_connection_hci_process()
264 …int bytes_read = recv(socket_fd, (char*) &conn->buffer[conn->bytes_read], conn->bytes_to_read, fla… in socket_connection_hci_process()
266 int bytes_read = read(socket_fd, &conn->buffer[conn->bytes_read], conn->bytes_to_read); in socket_connection_hci_process()
269 log_debug("socket_connection_hci_process fd %x, bytes read %d", socket_fd, bytes_read); in socket_connection_hci_process()
355 int socket_fd = tcp_socket_fd; in socket_connection_accept() local
357 int socket_fd = btstack_run_loop_get_data_source_fd(socket_ds); in socket_connection_accept() local
363 if (WSAEnumNetworkEvents(socket_fd, socket_ds->source.handle, &network_events) == SOCKET_ERROR){ in socket_connection_accept()
370 int fd = accept(socket_fd, (struct sockaddr *)&ss, &slen); in socket_connection_accept()
570 res = send(conn->socket_fd, (const char *) header, 6, flags); in socket_connection_send_packet()
571 res = send(conn->socket_fd, (const char *) packet, size, flags); in socket_connection_send_packet()
573 res = write(conn->socket_fd, header, 6); in socket_connection_send_packet()
574 res = write(conn->socket_fd, packet, size); in socket_connection_send_packet()