Lines Matching refs:socket_fd
287 int socket_fd = remote_hci_transport_.SetUp(port); in SetUpHciServer() local
293 if (socket_fd == -1) { in SetUpHciServer()
298 async_manager_.WatchFdForNonBlockingReads(socket_fd, [this, connection_callback](int socket_fd) { in SetUpHciServer() argument
299 int conn_fd = remote_hci_transport_.Accept(socket_fd); in SetUpHciServer()
314 int socket_fd = remote_link_layer_transport_.SetUp(port); in SetUpLinkLayerServer() local
320 if (socket_fd == -1) { in SetUpLinkLayerServer()
325 async_manager_.WatchFdForNonBlockingReads(socket_fd, [this, connection_callback](int socket_fd) { in SetUpLinkLayerServer() argument
326 int conn_fd = remote_link_layer_transport_.Accept(socket_fd); in SetUpLinkLayerServer()
340 int socket_fd = socket(AF_INET, SOCK_STREAM, 0); in ConnectToRemoteServer() local
341 if (socket_fd < 1) { in ConnectToRemoteServer()
360 int result = connect(socket_fd, (struct sockaddr*)&serv_addr, sizeof(serv_addr)); in ConnectToRemoteServer()
367 int flags = fcntl(socket_fd, F_GETFL, NULL); in ConnectToRemoteServer()
368 int ret = fcntl(socket_fd, F_SETFL, flags | O_NONBLOCK); in ConnectToRemoteServer()
371 return socket_fd; in ConnectToRemoteServer()
375 int socket_fd = test_channel_transport_.SetUp(port); in SetUpTestChannel() local
381 if (socket_fd == -1) { in SetUpTestChannel()
387 async_manager_.WatchFdForNonBlockingReads(socket_fd, [this](int socket_fd) { in SetUpTestChannel() argument
388 int conn_fd = test_channel_transport_.Accept(socket_fd); in SetUpTestChannel()