/external/chromium_org/third_party/libjingle/source/talk/base/ |
firewallsocketserver.h | 61 // Settings to control whether CreateSocket or Socket::Listen succeed. 78 virtual Socket* CreateSocket(int type); 79 virtual Socket* CreateSocket(int family, int type); 94 Socket * WrapSocket(Socket * sock, int type);
|
asynctcpsocket.h | 42 AsyncTCPSocketBase(AsyncSocket* socket, bool listen, size_t max_packet_size); 49 virtual void HandleIncomingConnection(AsyncSocket* socket) = 0; 57 virtual int GetOption(Socket::Option opt, int* value); 58 virtual int SetOption(Socket::Option opt, int value); 63 // Binds and connects |socket| and creates AsyncTCPSocket for 64 // it. Takes ownership of |socket|. Returns NULL if bind() or 65 // connect() fail (|socket| is destroyed in that case). 66 static AsyncSocket* ConnectSocket(AsyncSocket* socket, 79 // Called by the underlying socket 80 void OnConnectEvent(AsyncSocket* socket); [all...] |
macsocketserver.h | 26 virtual Socket* CreateSocket(int type) { return NULL; } 27 virtual Socket* CreateSocket(int family, int type) { return NULL; } 35 void RegisterSocket(MacAsyncSocket* socket); 36 void UnregisterSocket(MacAsyncSocket* socket); 55 // Core Foundation implementation of the socket server. While idle it 56 // will run the current CF run loop. When the socket server has work 81 // waiting for events. When the socket server has work to do, it will 104 // idle. When the socket server has work to do, it will post an event
|
physicalsocketserver.h | 39 typedef int SOCKET; 66 virtual SOCKET GetSocket() = 0; 74 // A socket server that provides the real sockets of the underlying OS. 81 virtual Socket* CreateSocket(int type); 82 virtual Socket* CreateSocket(int family, int type); 88 AsyncSocket* WrapSocket(SOCKET s);
|
sslsocketfactory.h | 74 virtual Socket* CreateSocket(int type); 75 virtual Socket* CreateSocket(int family, int type);
|
testclient.h | 52 // Creates a client that will send and receive with the given socket and 54 explicit TestClient(AsyncPacketSocket* socket); 60 // Checks that the socket moves to the specified connect state. 63 // Checks that the socket is connected to the remote side. 68 // Sends using the clients socket. 71 // Sends using the clients socket to the given destination. 87 int SetOption(Socket::Option opt, int value); 94 Socket::ConnState GetState(); 95 // Slot for packets read on the socket. 96 void OnPacket(AsyncPacketSocket* socket, const char* buf, size_t len [all...] |
socket.h | 35 #include <sys/socket.h> 49 // Reuse the POSIX socket api errors. Note this depends on 143 // General interface for the socket implementations of various networks. The 145 class Socket { 147 virtual ~Socket() {} 149 // Returns the address to which the socket is bound. If the socket is not 153 // Returns the address to which the socket is connected. If the socket is 164 virtual Socket *Accept(SocketAddress *paddr) = 0 [all...] |
/external/okhttp/src/test/java/com/squareup/okhttp/internal/mockspdyserver/ |
MockSpdyServer.java | 33 import java.net.Socket; 58 private final Set<Socket> openClientSockets = 59 Collections.newSetFromMap(new ConcurrentHashMap<Socket, Boolean>()); 128 logger.log(Level.WARNING, "MockWebServer server socket close failed", e); 130 for (Iterator<Socket> s = openClientSockets.iterator(); s.hasNext(); ) { 135 logger.log(Level.WARNING, "MockWebServer socket close failed", e); 149 Socket socket; local 151 socket = serverSocket.accept(); 155 openClientSockets.add(socket); 168 private Socket socket; field in class:MockSpdyServer.SocketHandler [all...] |
/frameworks/base/packages/services/Proxy/src/com/android/proxyhandler/ |
ProxyServer.java | 33 import java.net.Socket; 60 private Socket connection; 62 private ProxyConnection(Socket connection) { 114 Socket server = null; 121 server = new Socket(inetSocketAddress.getHostName(), 125 server = new Socket(host, port); 142 server = new Socket(host, port); 177 private void sendLine(Socket socket, String line) throws IOException { 178 OutputStream os = socket.getOutputStream() 202 Socket socket = serverSocket.accept(); local [all...] |
/external/apache-harmony/x-net/src/test/impl/java.injected/javax/net/ssl/ |
DefaultSSLSocketFactoryTest.java | 23 import java.net.Socket; 37 * Class under test for Socket createSocket(String, int) 52 * Class under test for Socket createSocket(String, int, InetAddress, int) 66 * Class under test for Socket createSocket(InetAddress, int) 80 * Class under test for Socket createSocket(InetAddress, int, InetAddress, 112 * Class under test for Socket createSocket(Socket, String, int, boolean) 117 f.createSocket(new Socket(), "localhost", 1, true);
|
/external/chromium_org/chrome/browser/extensions/api/socket/ |
socket_api_unittest.cc | 9 #include "chrome/browser/extensions/api/socket/socket.h" 10 #include "chrome/browser/extensions/api/socket/socket_api.h" 27 return ApiResourceManager<Socket>::CreateApiResourceManagerForTest( 36 ApiResourceManager<Socket>::GetFactoryInstance()->SetTestingFactoryAndUse(
|
socket_api.cc | 5 #include "chrome/browser/extensions/api/socket/socket_api.h" 13 #include "chrome/browser/extensions/api/socket/socket.h" 14 #include "chrome/browser/extensions/api/socket/tcp_socket.h" 15 #include "chrome/browser/extensions/api/socket/udp_socket.h" 39 const char kSocketNotFoundError[] = "Socket not found"; 44 "TCP socket does not support bind. For TCP server please use listen."; 46 "Only UDP socket supports multicast."; 58 manager_ = ApiResourceManager<Socket>::Get(profile()); 59 DCHECK(manager_) << "There is no socket manager. 146 Socket* socket = NULL; local 245 Socket* socket = GetSocket(socket_id_); local 262 Socket* socket = GetSocket(socket_id_); local 304 Socket* socket = GetSocket(params_->socket_id); local 340 Socket* socket = GetSocket(params_->socket_id); local 373 Socket* socket = GetSocket(params_->socket_id); local 419 Socket* socket = GetSocket(socket_id_); local 450 Socket* socket = GetSocket(params_->socket_id); local 563 Socket* socket = GetSocket(params_->socket_id); local 587 Socket* socket = GetSocket(params_->socket_id); local 606 Socket* socket = GetSocket(params_->socket_id); local 701 Socket* socket = GetSocket(params_->socket_id); local 745 Socket* socket = GetSocket(params_->socket_id); local 788 Socket* socket = GetSocket(params_->socket_id); local 822 Socket* socket = GetSocket(params_->socket_id); local 854 Socket* socket = GetSocket(params_->socket_id); local [all...] |
/external/chromium_org/remoting/protocol/ |
transport.h | 12 // net::Socket or net::SocketStream which provides access to the data 15 // initialization of the connection socket that can be used later to 16 // send and receive data. The socket is passed to the callback 18 // during the whole lifetime of the connection socket. Later deletion 19 // of the connection socket causes teardown of the corresponding 38 class Socket; 138 typedef base::Callback<void(scoped_ptr<net::Socket>)> ConnectedCallback;
|
/external/chromium_org/third_party/libjingle/source/talk/p2p/base/ |
portinterface.h | 91 // Functions on the underlying socket(s). 92 virtual int SetOption(talk_base::Socket::Option opt, int value) = 0; 95 virtual int GetOption(talk_base::Socket::Option opt, int* value) = 0;
|
portproxy.h | 72 virtual int SetOption(talk_base::Socket::Option opt, int value); 73 virtual int GetOption(talk_base::Socket::Option opt, int* value);
|
transportchannelproxy.h | 67 virtual int SetOption(talk_base::Socket::Option opt, int value); 93 typedef std::pair<talk_base::Socket::Option, int> OptionPair;
|
/frameworks/base/core/tests/coretests/src/android/net/ |
SSLTest.java | 22 import java.net.Socket; 31 Socket ssl = SSLCertificateSocketFactory.getDefault().createSocket("www.fortify.net",443);
|
/libcore/luni/src/main/java/java/nio/channels/ |
SocketChannel.java | 21 import java.net.Socket; 29 * abstraction of stream connecting socket. {@code socket()} returns the related 30 * {@link Socket} instance which can handle the socket. 32 * A socket channel is open but not connected when created by {@code open()}. 38 * blocked or not; {@code isConnected()} indicates if the socket is finally 52 * Socket channels are thread-safe, no more than one thread can read or write at 71 * Creates an open and unconnected socket channel. 85 * Creates a socket channel and connects it to a socket address 134 public abstract Socket socket(); method in class:SocketChannel [all...] |
/external/apache-harmony/luni/src/test/api/common/org/apache/harmony/luni/tests/java/net/ |
ServerSocketTest.java | 29 import java.net.Socket; 50 Socket sconn; 55 Socket cs; 67 cs = new Socket(InetAddress.getLocalHost().getHostName(), port); 384 // create servers socket, bind it and then validate basic state 399 assertTrue("Server socket not bound when it should be:", theSocket 404 Socket clientSocket = new Socket(); 408 Socket servSock = theSocket.accept(); 468 // create servers socket, bind it and then validate basic stat [all...] |
/external/chromium/third_party/libjingle/source/talk/base/ |
socket.h | 35 #include <sys/socket.h> 49 // Reuse the POSIX socket api errors. Note this depends on 143 // General interface for the socket implementations of various networks. The 145 class Socket { 147 virtual ~Socket() {} 149 // Returns the address to which the socket is bound. If the socket is not 153 // Returns the address to which the socket is connected. If the socket is 164 virtual Socket *Accept(SocketAddress *paddr) = 0 [all...] |
/external/chromium_org/tools/android/forwarder2/ |
device_controller.cc | 17 #include "tools/android/forwarder2/socket.h" 26 scoped_ptr<Socket> host_socket(new Socket()); 28 PLOG(ERROR) << "Could not BindAndListen DeviceController socket on port " 32 LOG(INFO) << "Listening on Unix Domain Socket " << adb_unix_socket; 46 DeviceController::DeviceController(scoped_ptr<Socket> host_socket, 63 scoped_ptr<Socket> socket(new Socket); 64 if (!host_socket_->Accept(socket.get())) [all...] |
/sdk/hierarchyviewer/src/com/android/hierarchyviewer/scene/ |
CaptureLoader.java | 37 import java.net.Socket; 42 Socket socket = null; local 48 socket = new Socket(); 49 socket.connect(new InetSocketAddress("127.0.0.1", 52 out = new BufferedWriter(new OutputStreamWriter(socket.getOutputStream())); 53 in = new DataInputStream(new BufferedInputStream(socket.getInputStream())); 80 if (socket != null) { 81 socket.close() 130 Socket socket = null; local [all...] |
/external/apache-http/src/org/apache/http/conn/ssl/ |
SSLSocketFactory.java | 49 import java.net.Socket; 59 * Layered socket factory for TLS/SSL connections, based on JSSE. 70 * certificates. The client secure socket will reject the connection during 85 * pair. The client secure socket will use the private key to authenticate 240 * Creates the default SSL socket factory. 275 public Socket createSocket() 284 public Socket connectSocket( 285 final Socket sock, 331 // close the socket before re-throwing the exception 341 * Checks whether a socket connection is secure [all...] |
/packages/apps/Email/emailcommon/src/com/android/emailcommon/utility/ |
SSLSocketFactory.java | 55 import java.net.Socket; 65 * Layered socket factory for TLS/SSL connections, based on JSSE. 76 * certificates. The client secure socket will reject the connection during 91 * pair. The client secure socket will use the private key to authenticate 237 * Creates the default SSL socket factory. 273 public Socket createSocket() 283 public Socket connectSocket( 284 final Socket sock, 330 // close the socket before re-throwing the exception 340 * Checks whether a socket connection is secure [all...] |
/external/chromium_org/v8/src/ |
debug-agent.cc | 51 // Allow this socket to reuse port even if still in TIME_WAIT. 54 // First bind the socket to the requested port. 63 PrintF("Failed to open socket on port %d, " 75 Socket* client = server_->Accept(); 108 void DebuggerAgent::CreateSession(Socket* client) { 221 // Shutdown the socket to end the blocking receive. 229 SmartArrayPointer<char> DebuggerAgentUtil::ReceiveMessage(const Socket* conn) { 246 PrintF("Error %d\n", Socket::LastError()); 308 PrintF("Error %d\n", Socket::LastError()); 317 bool DebuggerAgentUtil::SendConnectMessage(const Socket* conn [all...] |