Home
last modified time | relevance | path

Searched refs:SocketDescriptor (Results 1 – 24 of 24) sorted by relevance

/external/chromium_org/net/socket/
Dsocket_descriptor.h18 typedef int SocketDescriptor; typedef
19 const SocketDescriptor kInvalidSocket = -1;
21 typedef SOCKET SocketDescriptor;
22 const SocketDescriptor kInvalidSocket = INVALID_SOCKET;
39 virtual SocketDescriptor CreateSocket(int family, int type, int protocol) = 0;
43 SocketDescriptor NET_EXPORT CreatePlatformSocket(int family,
Dtcp_listen_socket.cc35 SocketDescriptor s = CreateAndBind(ip, port); in CreateAndListen()
43 TCPListenSocket::TCPListenSocket(SocketDescriptor s, in TCPListenSocket()
50 SocketDescriptor TCPListenSocket::CreateAndBind(const string& ip, int port) { in CreateAndBind()
51 SocketDescriptor s = CreatePlatformSocket(AF_INET, SOCK_STREAM, IPPROTO_TCP); in CreateAndBind()
76 SocketDescriptor TCPListenSocket::CreateAndBindAnyPort(const string& ip, in CreateAndBindAnyPort()
78 SocketDescriptor s = CreateAndBind(ip, 0); in CreateAndBindAnyPort()
101 SocketDescriptor conn = AcceptSocket(); in Accept()
Dsocket_libevent.h36 int AdoptConnectedSocket(SocketDescriptor socket,
39 SocketDescriptor ReleaseConnectedSocket();
80 SocketDescriptor socket_fd() const { return socket_fd_; } in socket_fd()
101 SocketDescriptor socket_fd_;
Dunix_domain_listen_socket_posix.cc34 SocketDescriptor* socket_fd) { in CreateAndBind()
44 SocketDescriptor fd = CreatePlatformSocket(PF_UNIX, SOCK_STREAM, 0); in CreateAndBind()
70 SocketDescriptor socket_fd = kInvalidSocket; in CreateAndListenInternal()
104 SocketDescriptor s, in UnixDomainListenSocket()
113 SocketDescriptor conn = StreamListenSocket::AcceptSocket(); in Accept()
Dtcp_listen_socket.h27 static SocketDescriptor CreateAndBind(const std::string& ip, int port);
30 static SocketDescriptor CreateAndBindAnyPort(const std::string& ip,
34 TCPListenSocket(SocketDescriptor s, StreamListenSocket::Delegate* del);
Dsocket_descriptor.cc34 SocketDescriptor CreateSocketDefault(int family, int type, int protocol) { in CreateSocketDefault()
37 SocketDescriptor result = ::WSASocket(family, type, protocol, NULL, 0, in CreateSocketDefault()
54 SocketDescriptor CreatePlatformSocket(int family, int type, int protocol) { in CreatePlatformSocket()
Dstream_listen_socket.h90 StreamListenSocket(SocketDescriptor s, Delegate* del);
92 SocketDescriptor AcceptSocket();
132 const SocketDescriptor socket_;
Dunix_domain_server_socket_posix.cc27 void SetSocketDescriptor(SocketDescriptor* socket, in SetSocketDescriptor()
46 bool UnixDomainServerSocket::GetPeerCredentials(SocketDescriptor socket, in GetPeerCredentials()
119 SocketDescriptor* socket, in AcceptSocketDescriptor()
Dunix_domain_server_socket_posix.h50 static bool GetPeerCredentials(SocketDescriptor socket_fd,
64 int AcceptSocketDescriptor(SocketDescriptor* socket_descriptor,
Dtcp_listen_socket_unittest.h90 virtual bool Send(SocketDescriptor sock, const std::string& str);
105 SocketDescriptor test_socket_;
Dunix_domain_listen_socket_posix_unittest.cc187 SocketDescriptor CreateClientSocket() { in CreateClientSocket()
188 const SocketDescriptor sock = CreatePlatformSocket(PF_UNIX, SOCK_STREAM, 0); in CreateClientSocket()
297 const SocketDescriptor sock = CreateClientSocket(); in TEST_F()
322 const SocketDescriptor sock = CreateClientSocket(); in TEST_F()
Dstream_listen_socket.cc52 StreamListenSocket::StreamListenSocket(SocketDescriptor s, in StreamListenSocket()
120 SocketDescriptor StreamListenSocket::AcceptSocket() { in AcceptSocket()
121 SocketDescriptor conn = HANDLE_EINTR(accept(socket_, NULL, NULL)); in AcceptSocket()
Dunix_domain_client_socket_posix.cc162 SocketDescriptor UnixDomainClientSocket::ReleaseConnectedSocket() { in ReleaseConnectedSocket()
166 SocketDescriptor socket_fd = socket_->ReleaseConnectedSocket(); in ReleaseConnectedSocket()
Dsocket_libevent.cc92 int SocketLibevent::AdoptConnectedSocket(SocketDescriptor socket, in AdoptConnectedSocket()
109 SocketDescriptor SocketLibevent::ReleaseConnectedSocket() { in ReleaseConnectedSocket()
111 SocketDescriptor socket_fd = socket_fd_; in ReleaseConnectedSocket()
Dunix_domain_client_socket_posix.h70 SocketDescriptor ReleaseConnectedSocket();
Dunix_domain_listen_socket_posix.h55 UnixDomainListenSocket(SocketDescriptor s,
Dunix_domain_client_socket_posix_unittest.cc160 SocketDescriptor accepted_socket_fd = kInvalidSocket; in TEST_F()
178 SocketDescriptor client_socket_fd = client_socket.ReleaseConnectedSocket(); in TEST_F()
Dtcp_listen_socket_unittest.cc224 bool TCPListenSocketTester::Send(SocketDescriptor sock, in Send()
/external/chromium_org/chrome/utility/local_discovery/
Dservice_discovery_message_handler.cc20 void ClosePlatformSocket(net::SocketDescriptor socket);
27 explicit ScopedSocketFactory(net::SocketDescriptor socket) : socket_(socket) { in ScopedSocketFactory()
37 virtual net::SocketDescriptor CreateSocket(int family, int type, in CreateSocket()
41 net::SocketDescriptor result = net::kInvalidSocket; in CreateSocket()
47 net::SocketDescriptor socket_;
52 SocketInfo(net::SocketDescriptor socket, in SocketInfo()
59 net::SocketDescriptor socket;
108 void ClosePlatformSocket(net::SocketDescriptor socket) { in ClosePlatformSocket()
117 net::SocketDescriptor descriptor = in StaticInitializeSocketFactory()
128 void ClosePlatformSocket(net::SocketDescriptor socket) { in ClosePlatformSocket()
/external/chromium_org/components/proximity_auth/
Dbluetooth_util_chromeos.cc94 void CloseSocket(net::SocketDescriptor socket_descriptor) { in CloseSocket()
117 net::SocketDescriptor socket_descriptor = in SeekDeviceByAddressImpl()
/external/chromium_org/net/test/embedded_test_server/
Dembedded_test_server.h36 HttpListenSocket(const SocketDescriptor socket_descriptor,
Dembedded_test_server.cc87 HttpListenSocket::HttpListenSocket(const SocketDescriptor socket_descriptor, in HttpListenSocket()
193 SocketDescriptor socket_descriptor = in InitializeOnIOThread()
/external/chromium_org/components/nacl/browser/
Dnacl_process_host.h120 net::SocketDescriptor GetDebugStubSocketHandle();
Dnacl_process_host.cc769 net::SocketDescriptor NaClProcessHost::GetDebugStubSocketHandle() { in GetDebugStubSocketHandle()
770 net::SocketDescriptor s = net::kInvalidSocket; in GetDebugStubSocketHandle()
878 net::SocketDescriptor server_bound_socket = GetDebugStubSocketHandle(); in StartNaClExecution()