/external/jetty/src/java/org/eclipse/jetty/io/ |
NetworkTrafficListener.java | 21 import java.net.Socket; 42 * <p>The {@code socket} parameter can be used to extract socket address information of 45 * @param socket the socket associated with the remote client 47 public void opened(Socket socket); 52 * @param socket the socket associated with the remote client 55 public void incoming(Socket socket, Buffer bytes) [all...] |
/external/okhttp/okhttp-tests/src/test/java/com/squareup/okhttp/ |
DelegatingSocketFactory.java | 20 import java.net.Socket; 26 * overriding {@link #configureSocket(java.net.Socket)}. 37 public Socket createSocket() throws IOException { 38 Socket socket = delegate.createSocket(); local 39 return configureSocket(socket); 43 public Socket createSocket(String host, int port) throws IOException, UnknownHostException { 44 Socket socket = delegate.createSocket(host, port); local 45 return configureSocket(socket); 51 Socket socket = delegate.createSocket(host, port, localAddress, localPort); local 57 Socket socket = delegate.createSocket(host, port); local 64 Socket socket = delegate.createSocket(host, port, localAddress, localPort); local [all...] |
/libcore/support/src/test/java/tests/net/ |
DelegatingSocketFactory.java | 21 import java.net.Socket; 38 * Invoked after obtaining a socket from the delegate and before returning it to the caller. 42 protected Socket configureSocket(Socket socket) throws IOException { 43 return socket; 47 public Socket createSocket() throws IOException { 48 Socket socket = mDelegate.createSocket(); local 49 return configureSocket(socket); 54 Socket socket = mDelegate.createSocket(host, port); local 61 Socket socket = mDelegate.createSocket(host, port, localHost, localPort); local 67 Socket socket = mDelegate.createSocket(host, port); local 74 Socket socket = mDelegate.createSocket(address, port, localAddress, localPort); local [all...] |
/external/mockftpserver/MockFtpServer/src/main/java/org/mockftpserver/core/socket/ |
SocketFactory.java | 16 package org.mockftpserver.core.socket;
20 import java.net.Socket;
23 * Interface for factory that create new {@link Socket} instances.
33 * Create a new Socket instance for the specified host and port.
34 * @param host - the IP address of the host endpoint to which the socket is connect
35 * @param port - the port number of the enpoint to which the socket is connected
36 * @return a new Socket
39 public Socket createSocket(InetAddress host, int port) throws IOException;
|
DefaultSocketFactory.java | 16 package org.mockftpserver.core.socket;
20 import java.net.Socket;
23 * Default implementation of the {@link SocketFactory}; creates standard {@link Socket} instances.
32 * Create a new Socket instance for the specified host and port.
33 * @param host - the IP address of the host endpoint to which the socket is connect
34 * @param port - the port number of the enpoint to which the socket is connected
35 * @return a new Socket
38 * @see org.mockftpserver.core.socket.SocketFactory#createSocket(java.net.InetAddress, int)
40 public Socket createSocket(InetAddress host, int port) throws IOException {
41 return new Socket(host, port); [all...] |
/external/mockftpserver/branches/1.x_Branch/src/main/java/org/mockftpserver/core/socket/ |
SocketFactory.java | 16 package org.mockftpserver.core.socket;
20 import java.net.Socket;
23 * Interface for factory that create new {@link Socket} instances.
33 * Create a new Socket instance for the specified host and port.
34 * @param host - the IP address of the host endpoint to which the socket is connect
35 * @param port - the port number of the enpoint to which the socket is connected
36 * @return a new Socket
39 public Socket createSocket(InetAddress host, int port) throws IOException;
|
DefaultSocketFactory.java | 16 package org.mockftpserver.core.socket;
20 import java.net.Socket;
23 * Default implementation of the {@link SocketFactory}; creates standard {@link Socket} instances.
32 * Create a new Socket instance for the specified host and port.
33 * @param host - the IP address of the host endpoint to which the socket is connect
34 * @param port - the port number of the enpoint to which the socket is connected
35 * @return a new Socket
38 * @see org.mockftpserver.core.socket.SocketFactory#createSocket(java.net.InetAddress, int)
40 public Socket createSocket(InetAddress host, int port) throws IOException {
41 return new Socket(host, port); [all...] |
/external/testng/src/main/java/org/testng/internal/remote/ |
SocketLinkedBlockingQueue.java | 3 import java.net.Socket;
13 public class SocketLinkedBlockingQueue extends java.util.concurrent.LinkedBlockingQueue<Socket>
|
/external/webrtc/webrtc/base/ |
socketfactory.h | 14 #include "webrtc/base/socket.h" 23 // Returns a new socket for blocking communication. The type can be 28 virtual Socket* CreateSocket(int type) = 0; 29 virtual Socket* CreateSocket(int family, int type) = 0; 30 // Returns a new socket for nonblocking communication. The type can be
|
/libcore/ojluni/src/main/java/javax/net/ |
SocketFactory.java | 31 import java.net.Socket; 38 * framework for the addition of public socket-level functionality. 40 * <P> Socket factories are a simple way to capture a variety of policies 50 * in socket construction. So for example, factories could be 55 * of java.net.Socket, so that they can directly expose new APIs 86 * Returns a copy of the environment's default socket factory. 116 * Creates an unconnected socket. 118 * @return the unconnected socket 119 * @throws IOException if the socket cannot be created 120 * @see java.net.Socket#connect(java.net.SocketAddress [all...] |
/frameworks/base/core/java/org/apache/http/conn/scheme/ |
LayeredSocketFactory.java | 35 import java.net.Socket; 40 * See there for things to consider when implementing a socket factory. 54 * Returns a socket connected to the given host that is layered over an 55 * existing socket. Used primarily for creating secure sockets through 58 * @param socket the existing socket 61 * @param autoClose a flag for closing the underling socket when the created 62 * socket is closed 64 * @return Socket a new socket [all...] |
SocketFactory.java | 36 import java.net.Socket; 44 * The factory encapsulates the logic for establishing a socket connection. 62 * Creates a new, unconnected socket. 63 * The socket should subsequently be passed to 66 * @return a new socket 68 * @throws IOException if an I/O error occurs while creating the socket 70 Socket createSocket() 76 * Connects a socket to the given host. 78 * @param sock the socket to connect, as obtained from 80 * <code>null</code> indicates that a new socket [all...] |
/external/deqp/framework/delibs/decpp/ |
deSocket.cpp | 76 // Socket 78 Socket::Socket (void) 85 Socket::~Socket (void) 90 void Socket::setFlags (deUint32 flags) 93 throw SocketError("Setting socket flags failed"); 96 void Socket::listen (const SocketAddress& address) 99 throw SocketError("Listening on socket failed"); 102 void Socket::connect (const SocketAddress& address [all...] |
deSocket.hpp | 72 class Socket 75 Socket (void); 76 ~Socket (void); 84 Socket* accept (SocketAddress& clientAddress) { return accept(clientAddress.getPtr()); } 85 Socket* accept (void) { return accept(DE_NULL); } 102 Socket (deSocket* socket) : m_socket(socket) {} 103 Socket (const Socket& other) [all...] |
/external/apache-http/src/org/apache/http/conn/ |
OperatedClientConnection.java | 35 import java.net.Socket; 93 * Obtains the socket for this connection. 98 * @return the socket for communicating with the 101 Socket getSocket() 113 * the unconnected socket that will be connected before 115 * the connection to close that socket if 117 * is called before it is open. Closing the unconnected socket 126 * @param sock the unconnected socket which is about to 130 void opening(Socket sock, HttpHost target) 157 * socket connection [all...] |
/external/mockftpserver/MockFtpServer/src/test/java/org/mockftpserver/core/socket/ |
StubServerSocket.java | 16 package org.mockftpserver.core.socket;
20 import java.net.Socket;
25 * Socket returned by accept(), and the local port for the ServerSocket.
33 private Socket socket;
field in class:StubServerSocket 45 * Construct a new instance with specified local port and accept() socket.
47 * @param socket - the socket to be returned from accept(); if null, then accept() throws SocketTimeoutException.
50 public StubServerSocket(int localPort, Socket socket) throws IOException { [all...] |
/external/mockftpserver/branches/1.x_Branch/src/test/java/org/mockftpserver/core/socket/ |
StubServerSocket.java | 16 package org.mockftpserver.core.socket;
20 import java.net.Socket;
25 * Socket returned by accept(), and the local port for the ServerSocket.
33 private Socket socket;
field in class:StubServerSocket 45 * Construct a new instance with specified local port and accept() socket.
47 * @param socket - the socket to be returned from accept(); if null, then accept() throws SocketTimeoutException.
50 public StubServerSocket(int localPort, Socket socket) throws IOException { [all...] |
/external/testng/src/main/java/org/testng/remote/ |
ConnectionInfo.java | 6 import java.net.Socket; 9 private Socket m_socket; 27 public void setSocket(Socket s) { 31 public Socket getSocket() {
|
/libcore/support/src/test/java/org/apache/harmony/xnet/tests/support/ |
SSLSocketFactoryImpl.java | 6 import java.net.Socket; 17 public Socket createSocket(Socket socket, String s, int i, boolean flag) 19 if (socket == null) { 20 throw new IOException("incorrect socket"); 30 socket = new Socket(s, i); 32 socket = new Socket(s, i) [all...] |
/cts/libs/vogar-expect/src/vogar/util/ |
IoUtils.java | 21 import java.net.Socket; 34 public static void closeQuietly(Socket c) {
|
/external/conscrypt/src/compat/java/org/conscrypt/ |
KitKatPlatformOpenSSLSocketAdapterFactory.java | 20 import java.net.Socket; 33 protected Socket wrap(OpenSSLSocketImpl socket) throws IOException { 34 return new KitKatPlatformOpenSSLSocketImplAdapter(socket);
|
PreKitKatPlatformOpenSSLSocketAdapterFactory.java | 20 import java.net.Socket; 32 protected Socket wrap(OpenSSLSocketImpl socket) throws IOException { 33 return new PreKitKatPlatformOpenSSLSocketImplAdapter(socket);
|
/external/parameter-framework/upstream/remote-processor/ |
Socket.h | 32 /** Wraps and hides asio::ip::tcp::socket 34 * asio::ip::tcp::socket cannot be forward-declared because it is an 38 class Socket 41 Socket(asio::ip::tcp::socket &socket) : mSocket(socket) {} 43 asio::ip::tcp::socket &get() { return mSocket; } 46 asio::ip::tcp::socket &mSocket;
|
/frameworks/base/packages/services/Proxy/src/com/android/proxyhandler/ |
SocketConnect.java | 6 import java.net.Socket; 16 public SocketConnect(Socket from, Socket to) throws IOException { 41 public static void connect(Socket first, Socket second) {
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/net/ |
SocketTest.java | 30 import java.net.Socket; 48 Socket socket = new Socket(); local 50 socket.connect(addr); 52 socket.close(); 73 ServerSocket socket; local 76 socket = new ServerSocket(port, backlog, 78 port = socket.getLocalPort(); 81 socket = new ServerSocket(port, backlog) 247 Socket socket = new Socket(proxy); local 275 Socket socket = new Socket(); local 284 Socket socket = new Socket(); local [all...] |