Home
last modified time | relevance | path

Searched refs:kInvalidSocket (Results 1 – 25 of 25) sorted by relevance

/external/chromium_org/net/socket/
Dtcp_listen_socket.cc36 if (s == kInvalidSocket) in CreateAndListen()
52 if (s != kInvalidSocket) { in CreateAndBind()
70 s = kInvalidSocket; in CreateAndBind()
79 if (s == kInvalidSocket) in CreateAndBindAnyPort()
80 return kInvalidSocket; in CreateAndBindAnyPort()
94 return kInvalidSocket; in CreateAndBindAnyPort()
102 if (conn == kInvalidSocket) in Accept()
Dunix_domain_socket_posix.cc64 if (s == kInvalidSocket && !fallback_path.empty()) in CreateAndListenInternal()
66 if (s == kInvalidSocket) in CreateAndListenInternal()
110 return kInvalidSocket; in CreateAndBind()
112 if (s == kInvalidSocket) in CreateAndBind()
113 return kInvalidSocket; in CreateAndBind()
135 return kInvalidSocket; in CreateAndBind()
142 if (conn == kInvalidSocket) in Accept()
Dtcp_socket_libevent.cc137 : socket_(kInvalidSocket), in TCPSocketLibevent()
173 DCHECK_EQ(socket_, kInvalidSocket); in Open()
194 DCHECK_EQ(socket_, kInvalidSocket); in AdoptConnectedSocket()
211 DCHECK_NE(socket_, kInvalidSocket); in Bind()
229 DCHECK_NE(socket_, kInvalidSocket); in Listen()
272 DCHECK_NE(socket_, kInvalidSocket); in Connect()
305 if (socket_ == kInvalidSocket || waiting_connect_) in IsConnected()
328 if (socket_ == kInvalidSocket || waiting_connect_) in IsConnectedAndIdle()
350 DCHECK_NE(kInvalidSocket, socket_); in Read()
390 DCHECK_NE(kInvalidSocket, socket_); in Write()
[all …]
Dsocket_descriptor.h19 const SocketDescriptor kInvalidSocket = -1; variable
22 const SocketDescriptor kInvalidSocket = INVALID_SOCKET;
Dsocket_descriptor.cc39 if (result != kInvalidSocket && family == AF_INET6 && in CreateSocketDefault()
45 return kInvalidSocket; in CreateSocketDefault()
Dunix_domain_socket_posix_unittest.cc193 return kInvalidSocket; in CreateClientSocket()
203 return kInvalidSocket; in CreateClientSocket()
294 ASSERT_NE(kInvalidSocket, sock); in TEST_F()
319 ASSERT_NE(kInvalidSocket, sock); in TEST_F()
Dstream_listen_socket.cc105 if (conn == kInvalidSocket) in AcceptSocket()
198 if (socket_ != kInvalidSocket) {
Dtcp_socket_libevent.h72 bool IsValid() const { return socket_ != kInvalidSocket; } in IsValid()
Dtcp_listen_socket_unittest.cc50 ASSERT_NE(kInvalidSocket, test_socket_); in SetUp()
/external/chromium/net/base/
Dlisten_socket.cc40 const SOCKET ListenSocket::kInvalidSocket = INVALID_SOCKET; member in ListenSocket
43 const SOCKET ListenSocket::kInvalidSocket = -1; member in ListenSocket
50 if (s == kInvalidSocket) { in Listen()
109 if (s != kInvalidSocket) { in Listen()
126 s = kInvalidSocket; in Listen()
137 if (conn != kInvalidSocket) { in Accept()
184 if (conn != kInvalidSocket) {
239 if (s && s != kInvalidSocket) {
Dnetwork_change_notifier_linux.cc21 const int kInvalidSocket = -1; variable
66 netlink_fd_(kInvalidSocket), in Thread()
74 netlink_fd_ = kInvalidSocket; in Init()
81 if (netlink_fd_ != kInvalidSocket) { in CleanUp()
84 netlink_fd_ = kInvalidSocket; in CleanUp()
Dlisten_socket.h86 static const SOCKET kInvalidSocket; variable
/external/chromium/net/socket/
Dtcp_server_socket_libevent.cc33 const int kInvalidSocket = -1; variable
40 : socket_(kInvalidSocket), in TCPServerSocketLibevent()
51 if (socket_ != kInvalidSocket) in ~TCPServerSocketLibevent()
59 DCHECK_EQ(socket_, kInvalidSocket); in Listen()
173 if (socket_ != kInvalidSocket) { in Close()
176 socket_ = kInvalidSocket; in Close()
Dtcp_client_socket_libevent.cc42 const int kInvalidSocket = -1; variable
109 : socket_(kInvalidSocket), in TCPClientSocketLibevent()
143 DCHECK_EQ(socket_, kInvalidSocket); in AdoptSocket()
169 if (socket_ != kInvalidSocket) in Connect()
326 if (socket_ == kInvalidSocket) in DoDisconnect()
341 socket_ = kInvalidSocket; in DoDisconnect()
348 if (socket_ == kInvalidSocket || waiting_connect()) in IsConnected()
365 if (socket_ == kInvalidSocket || waiting_connect()) in IsConnectedAndIdle()
384 DCHECK_NE(kInvalidSocket, socket_); in Read()
423 DCHECK_NE(kInvalidSocket, socket_); in Write()
[all …]
/external/chromium/net/udp/
Dudp_socket_libevent.cc34 : socket_(kInvalidSocket), in UDPSocketLibevent()
78 socket_ = kInvalidSocket; in Close()
136 DCHECK_NE(kInvalidSocket, socket_); in RecvFrom()
178 DCHECK_NE(kInvalidSocket, socket_); in SendToOrWrite()
285 if (socket_ == kInvalidSocket) in CreateSocket()
Dudp_socket_libevent.h94 bool is_connected() const { return socket_ != kInvalidSocket; } in is_connected()
97 static const int kInvalidSocket = -1;
/external/chromium/net/tools/fetch/
Dhttp_listen_socket.cc33 DCHECK_NE(conn, ListenSocket::kInvalidSocket); in Accept()
34 if (conn == ListenSocket::kInvalidSocket) { in Accept()
49 if (s == ListenSocket::kInvalidSocket) { in Listen()
/external/chromium_org/net/tools/fetch/
Dhttp_listen_socket.cc27 DCHECK_NE(conn, net::kInvalidSocket); in Accept()
28 if (conn == net::kInvalidSocket) { in Accept()
43 if (s == net::kInvalidSocket) { in CreateAndListen()
/external/chromium_org/components/nacl/browser/
Dnacl_process_host.cc672 net::SocketDescriptor s = net::kInvalidSocket; in GetDebugStubSocketHandle()
678 if (s != net::kInvalidSocket) { in GetDebugStubSocketHandle()
684 if (s == net::kInvalidSocket) { in GetDebugStubSocketHandle()
686 return net::kInvalidSocket; in GetDebugStubSocketHandle()
692 return net::kInvalidSocket; in GetDebugStubSocketHandle()
754 if (server_bound_socket != net::kInvalidSocket) { in StartNaClExecution()
/external/chromium_org/net/udp/
Dudp_socket_libevent.cc67 : socket_(kInvalidSocket), in UDPSocketLibevent()
115 socket_ = kInvalidSocket; in Close()
172 DCHECK_NE(kInvalidSocket, socket_); in RecvFrom()
216 DCHECK_NE(kInvalidSocket, socket_); in SendToOrWrite()
420 if (socket_ == kInvalidSocket) in CreateSocket()
Dudp_socket_libevent.h103 bool is_connected() const { return socket_ != kInvalidSocket; } in is_connected()
/external/chromium_org/chrome/utility/local_discovery/
Dservice_discovery_message_handler.cc34 socket_ = net::kInvalidSocket; in ~ScopedSocketFactory()
41 net::SocketDescriptor result = net::kInvalidSocket; in CreateSocket()
93 if (sockets_[i].socket != net::kInvalidSocket) in Reset()
/external/chromium_org/chrome/browser/local_discovery/
Dservice_discovery_host_client.cc37 LOG_IF(ERROR, socket_descriptor.fd == net::kInvalidSocket) in GetSocketsOnFileThread()
39 if (socket_descriptor.fd != net::kInvalidSocket) { in GetSocketsOnFileThread()
/external/chromium_org/net/test/embedded_test_server/
Dembedded_test_server.cc184 if (socket_descriptor == kInvalidSocket) in InitializeOnIOThread()
/external/chromium_org/net/server/
Dhttp_server_unittest.cc268 : StreamListenSocket(kInvalidSocket, delegate) {} in MockStreamListenSocket()