/external/smack/src/org/jivesoftware/smackx/bytestreams/socks5/ |
Socks5Client.java | 20 import java.net.Socket;
59 * Returns the initialized socket that can be used to transfer data between peers via the SOCKS5
63 * @return socket the initialized socket
64 * @throws IOException if initializing the socket failed due to a network error
69 public Socket getSocket(int timeout) throws IOException, XMPPException, InterruptedException,
73 FutureTask<Socket> futureTask = new FutureTask<Socket>(new Callable<Socket>() {
75 public Socket call() throws Exception { [all...] |
Socks5BytestreamSession.java | 23 import java.net.Socket;
35 /* the underlying socket of the SOCKS5 Bytestream */
36 private final Socket socket;
field in class:Socks5BytestreamSession 41 protected Socks5BytestreamSession(Socket socket, boolean isDirect) {
42 this.socket = socket;
69 return this.socket.getInputStream();
73 return this.socket.getOutputStream(); [all...] |
/frameworks/support/v4/java/android/support/v4/net/ |
TrafficStatsCompat.java | 21 import java.net.Socket; 36 void tagSocket(Socket socket) throws SocketException; 37 void untagSocket(Socket socket) throws SocketException; 76 public void tagSocket(Socket socket) { 80 public void untagSocket(Socket socket) { 111 public void tagSocket(Socket socket) throws SocketException [all...] |
/libcore/luni/src/test/java/libcore/javax/net/ |
ServerSocketFactoryTest.java | 25 import java.net.Socket; 67 Socket s = serverSocket.accept(); 75 Socket socket = new Socket(InetAddress.getLocalHost(), serverSocket.getLocalPort()); local 79 InputStream in = socket.getInputStream(); 83 socket.close(); 93 List<Socket> backlog = new ArrayList<Socket>(); 98 Socket socket = new Socket() local [all...] |
/external/chromium_org/remoting/protocol/ |
connection_tester.h | 20 class Socket; 69 DatagramConnectionTester(net::Socket* client_socket, 70 net::Socket* host_socket, 89 net::Socket* host_socket_; 90 net::Socket* client_socket_;
|
channel_factory.h | 13 class Socket; 26 typedef base::Callback<void(scoped_ptr<net::Socket>)>
|
/development/samples/WiFiDirectServiceDiscovery/src/com/example/android/wifidirect/discovery/ |
ClientSocketHandler.java | 10 import java.net.Socket; 26 Socket socket = new Socket(); local 28 socket.bind(null); 29 socket.connect(new InetSocketAddress(mAddress.getHostAddress(), 32 chat = new ChatManager(socket, handler); 37 socket.close();
|
/external/chromium/third_party/libjingle/source/talk/base/ |
asyncpacketsocket.h | 32 #include "talk/base/socket.h" 48 // Returns remote address. Returns zeroes if this is not a client TCP socket. 55 // Close the socket. 58 // Returns current state of the socket. 59 virtual Socket::ConnState GetState() const = 0; 62 virtual int GetOption(Socket::Option opt, int* value) = 0; 63 virtual int SetOption(Socket::Option opt, int value) = 0; 70 // Emitted after address for the socket is allocated.
|
asyncudpsocket.h | 41 // Creates a new socket for sending asynchronous UDP packets using an 42 // asynchronous socket from the given factory. 45 explicit AsyncUDPSocket(AsyncSocket* socket); 54 virtual Socket::ConnState GetState() const; 55 virtual int GetOption(Socket::Option opt, int* value); 56 virtual int SetOption(Socket::Option opt, int value); 61 // Called when the underlying socket is ready to be read from. 62 void OnReadEvent(AsyncSocket* socket);
|
/frameworks/base/tests/CoreTests/android/core/ |
SocketTest.java | 26 import java.net.Socket; 37 * Regression tests for various socket related problems. And a few general 38 * socket tests. 52 Socket s, s1; 73 s = new Socket("127.0.0.1", port); 88 Socket s2 = new Socket(); 122 Socket sock = serverSock.accept(); 139 Socket client = new Socket("localhost", 8383) [all...] |
/libcore/dalvik/src/main/java/dalvik/system/ |
SocketTagger.java | 20 import java.net.Socket; 24 * Callbacks for socket assignment and reassignment. 37 * thread. The socket is either newly connected or reused from a connection 47 * <p><strong>Note:</strong> this method will not be invoked when the socket 52 public final void tag(Socket socket) throws SocketException { 53 if (!socket.isClosed()) { 54 tag(socket.getFileDescriptor$()); 58 public final void untag(Socket socket) throws SocketException [all...] |
/libcore/luni/src/main/java/libcore/net/url/ |
FtpURLInputStream.java | 22 import java.net.Socket; 26 * This class associates a given inputStream with a control socket. This ensures 27 * the control socket Object stays live while the stream is in use 33 private Socket controlSocket; 35 public FtpURLInputStream(InputStream is, Socket controlSocket) {
|
/cts/tests/tests/net/src/android/net/cts/ |
SSLCertificateSocketFactoryTest.java | 21 import java.net.Socket; 72 Socket socket = new Socket(); local 73 mFactory.createSocket(socket, host, port, true); 78 Socket socket = null; local 79 socket = mFactory.createSocket(host, port); 80 assertNotNull(socket); 81 assertNotNull(socket.getOutputStream()) [all...] |
/external/apache-harmony/support/src/test/java/tests/support/ |
Support_HttpServerSocket.java | 22 import java.net.Socket; 37 * Blocks until a connection is made, or the socket times out. 49 Socket s = instance.accept();
|
/external/apache-http/src/org/apache/http/conn/ |
MultihomePlainSocketFactory.java | 37 import java.net.Socket; 50 * Socket factory that implements a simple multi-home fail-over on connect failure, 52 * the {@link #connectSocket(Socket, String, int, InetAddress, int, HttpParams)} 53 * method cannot be reliably interrupted by closing the socket returned by the 66 * @return the one and only plain socket factory 81 public Socket createSocket() { 82 return new Socket(); 86 * Attempts to connects the socket to any of the {@link InetAddress}es the 90 * @param sock socket to connect to any of the given addresses 100 public Socket connectSocket(Socket sock, String host, int port, [all...] |
/external/chromium_org/third_party/libjingle/source/talk/base/ |
nullsocketserver.h | 51 virtual talk_base::Socket* CreateSocket(int type) { 56 virtual talk_base::Socket* CreateSocket(int family, int type) {
|
/external/chromium_org/tools/android/forwarder2/ |
device_controller.h | 16 #include "tools/android/forwarder2/socket.h" 41 DeviceController(scoped_ptr<Socket> host_socket, int exit_notifier_fd); 52 const scoped_ptr<Socket> host_socket_;
|
device_listener.cc | 16 #include "tools/android/forwarder2/socket.h" 22 scoped_ptr<Socket> host_socket, 25 scoped_ptr<Socket> listener_socket(new Socket()); 34 // currently (non-zero) allocated port for this socket. 54 void DeviceListener::SetAdbDataSocket(scoped_ptr<Socket> adb_data_socket) { 62 scoped_ptr<Socket> listener_socket, 63 scoped_ptr<Socket> host_socket, 88 device_data_socket_.reset(new Socket()); 121 scoped_ptr<Socket> adb_data_socket) [all...] |
/libcore/crypto/src/main/java/org/conscrypt/ |
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...] |
/external/chromium_org/v8/test/cctest/ |
test-socket.cc | 30 #include "platform/socket.h" 63 Socket* server_; // Server socket used for bind/accept. 64 Socket* client_; // Single client connection used by the test. 65 Semaphore listening_; // Signalled when the server socket is in listen mode. 72 // Create the server socket and bind it to the requested port. 73 server_ = new Socket; 96 static bool SendAll(Socket* socket, const char* data, int len) { 99 int status = socket->Send(data, len) [all...] |