Home
last modified time | relevance | path

Searched refs:host_socket (Results 1 – 10 of 10) sorted by relevance

/external/chromium_org/tools/android/common/
Dadb_connection.cc56 int host_socket = socket(AF_INET, SOCK_STREAM, 0); in ConnectAdbHostSocket() local
57 if (host_socket < 0) { in ConnectAdbHostSocket()
62 DisableNagle(host_socket); in ConnectAdbHostSocket()
70 if (HANDLE_EINTR(connect(host_socket, reinterpret_cast<sockaddr*>(&addr), in ConnectAdbHostSocket()
73 CloseSocket(host_socket); in ConnectAdbHostSocket()
80 int ret = HANDLE_EINTR(send(host_socket, request + bytes_sent, in ConnectAdbHostSocket()
84 CloseSocket(host_socket); in ConnectAdbHostSocket()
94 int response_length = HANDLE_EINTR(recv(host_socket, response, in ConnectAdbHostSocket()
100 CloseSocket(host_socket); in ConnectAdbHostSocket()
104 return host_socket; in ConnectAdbHostSocket()
/external/chromium_org/tools/android/forwarder2/
Ddevice_listener.cc22 scoped_ptr<Socket> host_socket, in Create() argument
30 SendCommand(command::BIND_ERROR, listener_port, host_socket.get()); in Create()
36 SendCommand(command::BIND_SUCCESS, listener_port, host_socket.get()); in Create()
40 host_socket.Pass(), listener_port, error_callback)); in Create()
63 scoped_ptr<Socket> host_socket, in DeviceListener() argument
69 host_socket_(host_socket.Pass()), in DeviceListener()
Ddevice_controller.cc28 scoped_ptr<Socket> host_socket(new Socket()); in Create() local
29 if (!host_socket->BindUnix(adb_unix_socket)) { in Create()
36 new DeviceController(host_socket.Pass(), exit_notifier_fd)); in Create()
48 DeviceController::DeviceController(scoped_ptr<Socket> host_socket, in DeviceController() argument
50 : host_socket_(host_socket.Pass()), in DeviceController()
Ddevice_listener.h49 static scoped_ptr<DeviceListener> Create(scoped_ptr<Socket> host_socket,
64 scoped_ptr<Socket> host_socket,
Ddevice_controller.h41 DeviceController(scoped_ptr<Socket> host_socket, int exit_notifier_fd);
/external/chromium_org/remoting/protocol/
Dchannel_multiplexer_unittest.cc82 FakeSocket* host_socket = in ConnectSockets() local
86 host_socket->PairWith(client_socket); in ConnectSockets()
89 host_socket->set_async_write(true); in ConnectSockets()
93 scoped_ptr<net::StreamSocket>* host_socket, in CreateChannel() argument
98 host_socket, &counter)); in CreateChannel()
105 EXPECT_TRUE(host_socket->get()); in CreateChannel()
145 scoped_ptr<net::StreamSocket> host_socket; in TEST_F() local
148 CreateChannel(kTestChannelName, &host_socket, &client_socket)); in TEST_F()
152 StreamConnectionTester tester(host_socket.get(), client_socket.get(), in TEST_F()
Dconnection_tester.cc18 net::StreamSocket* host_socket, in StreamConnectionTester() argument
22 host_socket_(host_socket), in StreamConnectionTester()
131 net::Socket* host_socket, in DatagramConnectionTester() argument
136 host_socket_(host_socket), in DatagramConnectionTester()
Dconnection_tester.h33 net::StreamSocket* host_socket,
70 net::Socket* host_socket,
/external/chromium_org/tools/android/forwarder/
Dforwarder.cc276 int host_socket = tools::ConnectAdbHostSocket(server->forward_to_); in ServerThread() local
277 if (host_socket >= 0) { in ServerThread()
280 fcntl(host_socket, F_SETFL, fcntl(host_socket, F_GETFL) | O_NONBLOCK); in ServerThread()
288 forwarder_info->socket2 = host_socket; in ServerThread()
/external/chromium_org/jingle/glue/
Dpseudotcp_adapter_unittest.cc170 net::Socket* host_socket) in TCPChannelTester() argument
172 host_socket_(host_socket), in TCPChannelTester()