Lines Matching refs:socket_fd
276 int socket_fd = remote_hci_transport_.SetUp(port); in SetUpHciServer() local
282 if (socket_fd == -1) { in SetUpHciServer()
287 async_manager_.WatchFdForNonBlockingReads(socket_fd, [this, connection_callback](int socket_fd) { in SetUpHciServer() argument
288 int conn_fd = remote_hci_transport_.Accept(socket_fd); in SetUpHciServer()
303 int socket_fd = remote_link_layer_transport_.SetUp(port); in SetUpLinkLayerServer() local
309 if (socket_fd == -1) { in SetUpLinkLayerServer()
314 async_manager_.WatchFdForNonBlockingReads(socket_fd, [this, connection_callback](int socket_fd) { in SetUpLinkLayerServer() argument
315 int conn_fd = remote_link_layer_transport_.Accept(socket_fd); in SetUpLinkLayerServer()
329 int socket_fd = socket(AF_INET, SOCK_STREAM, 0); in ConnectToRemoteServer() local
330 if (socket_fd < 1) { in ConnectToRemoteServer()
349 int result = connect(socket_fd, (struct sockaddr*)&serv_addr, sizeof(serv_addr)); in ConnectToRemoteServer()
356 int flags = fcntl(socket_fd, F_GETFL, NULL); in ConnectToRemoteServer()
357 int ret = fcntl(socket_fd, F_SETFL, flags | O_NONBLOCK); in ConnectToRemoteServer()
360 return socket_fd; in ConnectToRemoteServer()
364 int socket_fd = test_channel_transport_.SetUp(port); in SetUpTestChannel() local
370 if (socket_fd == -1) { in SetUpTestChannel()
376 async_manager_.WatchFdForNonBlockingReads(socket_fd, [this](int socket_fd) { in SetUpTestChannel() argument
377 int conn_fd = test_channel_transport_.Accept(socket_fd); in SetUpTestChannel()