/libcore/luni/src/main/java/org/apache/harmony/xnet/provider/jsse/ |
SSLSocketFactoryImpl.java | 22 import java.net.Socket; 83 * @see javax.net.ssl.SSLSocketFactory#createSocket(Socket,String,int,boolean) 86 public Socket createSocket(Socket s, String host, int port, 101 public Socket createSocket() throws IOException { 112 public Socket createSocket(String host, int port) 125 public Socket createSocket(String host, int port, 139 public Socket createSocket(InetAddress host, int port) 152 public Socket createSocket(InetAddress address, int port,
|
/external/nist-sip/java/gov/nist/core/net/ |
SslNetworkLayer.java | 35 import java.net.Socket;
93 public Socket createSocket(InetAddress address, int port)
95 return new Socket(address, port);
127 public Socket createSocket(InetAddress address, int port,
130 return new Socket(address, port, myAddress, 0);
132 return new Socket(address, port);
136 * Creates a new Socket, binds it to myAddress:myPort and connects it to
146 * @return a new Socket, bound on myAddress:myPort and connected to
148 * @throws IOException if binding or connecting the socket fail for a reason
149 * (exception relayed from the correspoonding Socket methods) [all...] |
NetworkLayer.java | 32 import java.net.Socket; 55 * @return the server socket 67 * @return the server socket 73 * Creates a stream socket and connects it to the specified port number at the specified IP address. 74 * comparable to "new java.net.Socket(address, port);" 78 * @return the socket 80 public Socket createSocket(InetAddress address, int port) throws IOException; 83 * Creates a stream socket and connects it to the specified port number at the specified IP address. 84 * comparable to "new java.net.Socket(address, port,localaddress);" 89 * @return the socket [all...] |
/external/apache-harmony/luni/src/test/api/common/org/apache/harmony/luni/tests/java/net/ |
ConnectExceptionTest.java | 22 import java.net.Socket;
|
/external/apache-http/src/org/apache/http/impl/ |
SocketHttpClientConnection.java | 36 import java.net.Socket; 49 * network Socket in order to receive and transmit data. 61 private Socket socket = null; field in class:SocketHttpClientConnection 80 final Socket socket, 83 return new SocketInputBuffer(socket, buffersize, params); 87 final Socket socket, 90 return new SocketOutputBuffer(socket, buffersize, params) [all...] |
SocketHttpServerConnection.java | 36 import java.net.Socket; 49 * network Socket in order to receive and transmit data. 61 private Socket socket = null; field in class:SocketHttpServerConnection 80 final Socket socket, 83 return new SocketInputBuffer(socket, buffersize, params); 87 final Socket socket, 90 return new SocketOutputBuffer(socket, buffersize, params) [all...] |
DefaultHttpClientConnection.java | 35 import java.net.Socket; 56 final Socket socket, 58 if (socket == null) { 59 throw new IllegalArgumentException("Socket may not be null"); 65 socket.setTcpNoDelay(HttpConnectionParams.getTcpNoDelay(params)); 66 socket.setSoTimeout(HttpConnectionParams.getSoTimeout(params)); 70 socket.setSoLinger(linger > 0, linger); 72 super.bind(socket, params);
|
DefaultHttpServerConnection.java | 35 import java.net.Socket; 55 public void bind(final Socket socket, final HttpParams params) throws IOException { 56 if (socket == null) { 57 throw new IllegalArgumentException("Socket may not be null"); 63 socket.setTcpNoDelay(HttpConnectionParams.getTcpNoDelay(params)); 64 socket.setSoTimeout(HttpConnectionParams.getSoTimeout(params)); 68 socket.setSoLinger(linger > 0, linger); 70 super.bind(socket, params);
|
/external/apache-harmony/x-net/src/test/impl/java.injected/org/apache/harmony/xnet/provider/jsse/ |
KeyManagerImplTest.java | 22 import java.net.Socket; 40 String al = km.chooseClientAlias(keyType, null, new Socket()); 49 al = km.chooseServerAlias("RSA", null, new Socket()); 67 String al = km.chooseClientAlias(keyType, null, new Socket()); 76 al = km.chooseServerAlias("RSA", null, new Socket());
|
/libcore/luni/src/test/java/tests/api/javax/net/ssl/ |
X509ExtendedKeyManagerTest.java | 20 import java.net.Socket; 41 * @see javax.net.ssl.X509KeyManager#chooseClientAlias(java.lang.String[], java.security.Principal[], java.net.Socket) 43 public String chooseClientAlias(String[] arg0, Principal[] arg1, Socket arg2) { 49 * @see javax.net.ssl.X509KeyManager#chooseServerAlias(java.lang.String, java.security.Principal[], java.net.Socket) 51 public String chooseServerAlias(String arg0, Principal[] arg1, Socket arg2) { 130 * java.security.Principal[], java.net.Socket) 133 Socket socket) { 139 * java.security.Principal[], java.net.Socket) 142 Socket socket) [all...] |
/libcore/luni/src/test/java/libcore/java/net/ |
SocketTest.java | 26 import java.net.Socket; 40 Socket s = new Socket(); 42 // Closing a closed socket does nothing. 52 Socket s = new Socket(); 60 // Now close the socket... 73 new Socket("localhost", 80); 92 ssc.socket().bind(listenAddr, 0); 93 ServerSocket ss = ssc.socket(); 213 Socket socket = new Socket("localhost", server.port); local 235 Socket socket = new Socket("localhost", server.port); local 266 Socket socket = serverSocket.accept(); local 275 Socket socket = new Socket("localhost", serverSocket.getLocalPort()); local [all...] |
OldSocketImplFactoryTest.java | 8 import java.net.Socket; 30 Socket.setSocketImplFactory(factory); 33 new Socket(); 41 Socket.setSocketImplFactory(factory); 48 Socket.setSocketImplFactory(null); 65 Field [] fields = Socket.class.getDeclaredFields();
|
ConcurrentCloseTest.java | 24 import java.net.Socket; 36 * Test that Socket.close called on another thread interrupts a thread that's blocked doing 45 Socket s = ss.accept(); 48 assertEquals("Socket closed", expected.getMessage()); 54 Socket s = new Socket(); 61 assertEquals("Socket closed", expected.getMessage()); 69 Socket s = new Socket(); 76 assertEquals("Socket closed", expected.getMessage()) [all...] |
/sdk/apps/SdkController/src/com/android/tools/sdkcontroller/lib/ |
Connection.java | 34 * the device side, the connection is bound to the UNIX-domain socket named 37 * 'android.sdk.controller' socket on the device. Typically, the port forwarding 52 * 2. Channels are connected to emulator via separate socket instance (though all 53 * of the connections share the same socket address). 61 * 1. Bind to "android.sdk.controller" socket, listening to emulator connections. 79 /** Server socket used to listen to emulator connections. */ 91 private List<Socket> mPendingSockets = new ArrayList<Socket>(); 110 * Binds to the socket, and starts the listening thread. 124 * Stops the listener, and closes the socket 133 LocalServerSocket socket; local 269 LocalServerSocket socket = mServerSocket; local [all...] |
/external/apache-harmony/nio/src/test/java/common/org/apache/harmony/nio/tests/java/nio/channels/ |
MockSocketChannel.java | 21 import java.net.Socket; 33 public Socket socket() { method in class:MockSocketChannel
|
/external/apache-http/src/org/apache/http/impl/conn/ |
DefaultClientConnection.java | 36 import java.net.Socket; 73 /** The unconnected socket */ 74 private volatile Socket socket; field in class:DefaultClientConnection 103 public final Socket getSocket() { 104 return this.socket; 108 public void opening(Socket sock, HttpHost target) throws IOException { 110 this.socket = sock; 113 // Check for shutdown after assigning socket, so that 129 bind(this.socket, params) [all...] |
/external/chromium/third_party/libjingle/source/talk/p2p/base/ |
transportchannelproxy.h | 56 virtual int SetOption(talk_base::Socket::Option opt, int value); 61 typedef std::pair<talk_base::Socket::Option, int> OptionPair;
|
/external/smack/src/org/jivesoftware/smack/proxy/ |
HTTPProxySocketFactory.java | 26 import java.net.Socket; 35 * Http Proxy Socket Factory which returns socket connected to Http Proxy 50 public Socket createSocket(String host, int port) 56 public Socket createSocket(String host ,int port, InetAddress localHost, 63 public Socket createSocket(InetAddress host, int port) 70 public Socket createSocket( InetAddress address, int port, 77 private Socket httpProxifiedSocket(String host, int port) 82 Socket socket = new Socket(proxyhost,proxyPort) local [all...] |
Socks4ProxySocketFactory.java | 24 import java.net.Socket; 29 * Socket factory for socks4 proxy 43 public Socket createSocket(String host, int port) 50 public Socket createSocket(String host ,int port, InetAddress localHost, 57 public Socket createSocket(InetAddress host, int port) 63 public Socket createSocket( InetAddress address, int port, 71 private Socket socks4ProxifiedSocket(String host, int port) 74 Socket socket = null; local 84 socket=new Socket(proxy_host, proxy_port); [all...] |
Socks5ProxySocketFactory.java | 24 import java.net.Socket; 29 * Socket factory for Socks5 proxy 43 public Socket createSocket(String host, int port) 49 public Socket createSocket(String host ,int port, InetAddress localHost, 58 public Socket createSocket(InetAddress host, int port) 66 public Socket createSocket( InetAddress address, int port, 75 private Socket socks5ProxifiedSocket(String host, int port) 78 Socket socket = null; local 88 socket=new Socket(proxy_host, proxy_port); [all...] |
/external/jmonkeyengine/engine/src/networking/com/jme3/network/kernel/tcp/ |
SocketConnector.java | 41 import java.net.Socket; 48 * A straight forward socket-based connector implementation that 57 private Socket sock; 66 this.sock = new Socket(address, port); 96 Socket temp = sock; 101 throw new ConnectorException( "Error closing socket for:" + remoteAddress, e ); 123 // Socket is closed
|
/external/webkit/Tools/BuildSlaveSupport/ |
run-performance-tests | 38 use IO::Socket; 59 my $sock = new IO::Socket::INET(LocalHost => $perfMaster, 64 die "Could not create socket for port $reportPort: $!\n" unless $sock;
|
/development/samples/WiFiDirectServiceDiscovery/src/com/example/android/wifidirect/discovery/ |
ChatManager.java | 10 import java.net.Socket; 13 * Handles reading and writing of messages with socket buffers. Uses a Handler 18 private Socket socket = null; field in class:ChatManager 21 public ChatManager(Socket socket, Handler handler) { 22 this.socket = socket; 34 iStream = socket.getInputStream(); 35 oStream = socket.getOutputStream() [all...] |
/external/apache-harmony/x-net/src/test/api/java/org/apache/harmony/xnet/tests/javax/net/ssl/ |
X509ExtendedKeyManagerTest.java | 20 import java.net.Socket; 56 * java.security.Principal[], java.net.Socket) 59 Socket socket) { 65 * java.security.Principal[], java.net.Socket) 68 Socket socket) {
|
/external/apache-http/src/org/apache/http/impl/io/ |
SocketInputBuffer.java | 36 import java.net.Socket; 44 * {@link Socket} bound session input buffer. 54 private final Socket socket; field in class:SocketInputBuffer 57 final Socket socket, 61 if (socket == null) { 62 throw new IllegalArgumentException("Socket may not be null"); 64 this.socket = socket; [all...] |