/external/apache-http/src/org/apache/http/impl/conn/ |
AbstractClientConnAdapter.java | 37 import java.net.Socket; 333 Socket sock = conn.getSocket(); 385 // on an IOException thrown by the closed socket on the main thread
|
/external/dnsmasq/contrib/dynamic-dnsmasq/ |
dynamic-dnsmasq.pl | 37 use IO::Socket; 94 my $sock = IO::Socket::INET->new(Listen => 5, 97 MultiHomed => 1) || die "Could not open listening socket: $!\n";
|
/external/okhttp/src/main/java/com/squareup/okhttp/internal/ |
Util.java | 27 import java.net.Socket; 115 * Closes {@code socket}, ignoring any checked exceptions. Does nothing if 116 * {@code socket} is null. 118 public static void closeQuietly(Socket socket) { 119 if (socket != null) { 121 socket.close();
|
/frameworks/base/core/java/android/net/ |
VpnService.java | 37 import java.net.Socket; 153 * Protect a socket from VPN connections. The socket will be bound to the 161 * <p class="note">The socket is NOT closed by this method. 165 public boolean protect(int socket) { 168 dup = ParcelFileDescriptor.fromFd(socket); 182 * Convenience method to protect a {@link Socket} from VPN connections. 187 public boolean protect(Socket socket) { 188 return protect(socket.getFileDescriptor$().getInt$()) [all...] |
/frameworks/base/core/java/android/os/ |
ParcelFileDescriptor.java | 29 import java.net.Socket; 157 // Extracts the file descriptor from the specified socket and returns it untouched 175 // Extracts the file descriptor from the specified socket and returns it untouched 179 * Create a new ParcelFileDescriptor from the specified Socket. The new 181 * the Socket, so you must still close the Socket as well as the new 184 * @param socket The Socket whose FileDescriptor is used to create 188 * specified Socket. 190 public static ParcelFileDescriptor fromSocket(Socket socket) [all...] |
/libcore/luni/src/test/java/org/apache/harmony/luni/tests/internal/net/www/protocol/http/ |
HttpURLConnectionTest.java | 30 import java.net.Socket; 93 Socket socket = serverSocket.accept(); local 94 socket.setSoTimeout(1000); 96 int num = socket.getInputStream().read(buff); 97 socket.getOutputStream().write(( 101 num = socket.getInputStream().read(buff); 104 socket = serverSocket.accept(); 105 socket.setSoTimeout(1000); 106 num = socket.getInputStream().read(buff) [all...] |
/external/chromium/third_party/libjingle/source/talk/p2p/base/ |
relayport.cc | 38 // How long to wait for a socket to connect to remote host in milliseconds 47 talk_base::AsyncPacketSocket* socket, 50 talk_base::AsyncPacketSocket* socket() const { return socket_; } function in class:cricket::RelayConnection 64 int SetSocketOption(talk_base::Socket::Option opt, int value); 75 // Return the latest error generated by the socket. 78 // Called on behalf of a StunRequest to write data to the socket. This is 106 // Returns the last error on the socket of this entry. 121 RelayConnection* socket); 123 // Sends a packet to the given destination address using the socket of this 133 // Sets this option on the socket of each connection 453 talk_base::AsyncPacketSocket* socket = NULL; local [all...] |
rawtransportchannel.cc | 85 int RawTransportChannel::SetOption(talk_base::Socket::Option opt, int value) {
|
/packages/apps/Bluetooth/src/com/android/bluetooth/opp/ |
TestActivity.java | 60 import java.net.Socket; 402 Socket clientSocket = mServerSocket.accept(); 563 Socket conn = null; 596 Socket s = null; 598 public TestTcpTransport(Socket s) {
|
BluetoothOppTransfer.java | 61 import java.net.Socket; 350 * 3.2) Try a few seconds to connect to target socket 515 /* create a TCP socket */ 517 super("Socket Connect Thread"); 524 /* create a Rfcomm Socket */ 527 super("Socket Connect Thread"); 535 /* create a Rfcomm Socket */ 538 super("Socket Connect Thread"); 552 Log.v(TAG, "Error when close socket"); 564 /* Use TCP socket to connect * [all...] |
/libcore/luni/src/test/java/org/apache/harmony/luni/tests/internal/net/www/protocol/https/ |
HttpsURLConnectionTest.java | 34 import java.net.Socket; 115 Socket s = defaultSSLSF.createSocket("localhost", ss.getLocalPort()); 125 // create the SSL server socket acting as a server 156 // create the SSL server socket acting as a server 666 * Builds and returns the context used for secure socket creation. 702 * HTTPS behaviour in the case of default SSL Socket Factories. 720 public static Socket doInteraction(final HttpsURLConnection clientConnection, 731 public static Socket doInteraction(final HttpsURLConnection clientConnection, 745 public static Socket doInteraction(final HttpsURLConnection clientConnection, [all...] |
/external/antlr/antlr-3.4/runtime/CSharp2/Sources/Antlr3.Runtime/Antlr.Runtime.Debug/ |
DebugEventSocketProxy.cs | 41 using Socket = System.Net.Sockets.Socket; 46 * A proxy debug event listener that forwards events over a socket to 48 * one event per line. ANTLRWorks listens on server socket with a 50 * be kept in sync. New events must be handled on both sides of socket. 57 protected Socket socket; field in class:Antlr.Runtime.Debug.DebugEventSocketProxy 99 socket = serverSocket.AcceptSocket(); 100 socket.NoDelay = true; 103 socket.Send(encoding.GetBytes("ANTLR " + DebugEventListenerConstants.ProtocolVersion + "\n")) [all...] |
/external/antlr/antlr-3.4/runtime/CSharp3/Sources/Antlr3.Runtime.Debug/ |
DebugEventSocketProxy.cs | 40 using Socket = System.Net.Sockets.Socket; 45 * A proxy debug event listener that forwards events over a socket to 47 * one event per line. ANTLRWorks listens on server socket with a 49 * be kept in sync. New events must be handled on both sides of socket. 57 protected Socket socket; field in class:Antlr.Runtime.Debug.DebugEventSocketProxy 106 socket = serverSocket.AcceptSocket(); 107 socket.NoDelay = true; 110 socket.Send( encoding.GetBytes( "ANTLR " + DebugEventListenerConstants.ProtocolVersion + "\n" ) ) [all...] |
/external/apache-harmony/x-net/src/test/impl/java.injected/org/apache/harmony/xnet/provider/jsse/ |
SSLServerSocketImplTest.java | 21 import java.net.Socket; 534 assertFalse("Socket did not reset its want client auth state", 540 assertFalse("Socket did not reset its want client auth state", 555 assertFalse("Socket did not reset its want client auth state", 561 assertFalse("Socket did not reset its want client auth state", 592 private Socket client = null; 598 client = new Socket();
|
/external/okhttp/src/main/java/com/squareup/okhttp/internal/spdy/ |
SpdyConnection.java | 25 import java.net.Socket; 38 * A socket connection to a remote peer. A connection hosts streams which can 51 // Socket writes are guarded by spdyWriter. 53 // Socket reads are unguarded but are only made by the reader thread. 382 public Builder(boolean client, Socket socket) throws IOException { 383 this("", client, socket.getInputStream(), socket.getOutputStream()); 394 public Builder(String hostName, boolean client, Socket socket) throws IOException [all...] |
/frameworks/base/tests/CoreTests/android/core/ |
TestWebServer.java | 56 /* Default socket timeout value */ 122 * @param timeout Indicates the period of time to wait until a socket is 205 * Cause the thread accepting connections on the server socket to close 230 // Socket timeout functionality is not available yet 257 Socket s = ss.accept(); 288 // Close this socket 292 /* Stop server socket from processing further. Currently 309 log("IOException caught by server socket close"); 331 /* Socket to client we're handling */ 332 private Socket s [all...] |
SSLSocketTest.java | 34 import java.net.Socket; 85 Socket socket = secure ? socketFactory.createSocket() local 86 : new Socket(); 88 socket.setKeepAlive(true); 89 socket.setSoTimeout(timeout * 1000); 91 socket.connect(address); 94 OutputStream output = socket.getOutputStream(); 98 DataInputStream input = new DataInputStream(socket.getInputStream()); 173 socket.close() 337 final Socket socket = clientFactory.createSocket(); local 732 SSLSocket socket = (SSLSocket) sslContext.getSocketFactory() local [all...] |
/libcore/luni/src/main/java/java/nio/ |
SocketChannelImpl.java | 29 import java.net.Socket; 71 // Our internal Socket. 72 private SocketAdapter socket = null; field in class:SocketChannelImpl 82 // Whether the socket is bound. 90 * Constructor for creating a connected socket channel. 97 * Constructor for creating an optionally connected socket channel. 102 fd = (connect ? IoBridge.socket(true) : new FileDescriptor()); 115 * Getting the internal Socket If we have not the socket, we create a new 119 synchronized public Socket socket() method in class:SocketChannelImpl [all...] |
/libcore/support/src/test/java/tests/support/ |
Support_TestWebServer.java | 49 /* Default socket timeout value */ 203 * Cause the thread accepting connections on the server socket to close 240 Socket s = ss.accept(); 255 // Close this socket 259 /* Stop server socket from processing further. Currently 268 log("IOException caught by server socket close"); 312 /* Socket to client we're handling */ 313 private Socket s; 337 Worker(Socket s) { 607 log("SOCKET CLOSED") [all...] |
/external/apache-harmony/logging/src/test/java/org/apache/harmony/logging/tests/java/util/logging/ |
SocketHandlerTest.java | 26 import java.net.Socket; 717 Socket s = new Socket("127.0.0.1", 6666); 732 Socket s = null;
|
/external/smack/src/org/jivesoftware/smack/ |
XMPPConnection.java | 49 import java.net.Socket; 60 * Creates a socket connection to a XMPP server. This is the default connection 69 * The socket which is used for this connection. 71 Socket socket; field in class:XMPPConnection 431 // It is *important* that this is done before socket.close()! 434 socket.close(); 446 // socket.close(). But just in case do it explicitly. 455 // socket.close(). But just in case do it explicitly. 462 // Make sure that the socket is really close [all...] |
/external/v8/src/ |
platform-win32.cc | 1823 SOCKET socket = accept(socket_, NULL, NULL); local [all...] |
/development/samples/WiFiDirectDemo/src/com/example/android/wifidirect/ |
DeviceDetailFragment.java | 47 import java.net.Socket; 158 // socket. 207 * A simple server socket that accepts connection and writes some data on 228 Log.d(WiFiDirectActivity.TAG, "Server: Socket opened"); 229 Socket client = serverSocket.accept(); 273 statusText.setText("Opening a server socket");
|
/external/antlr/antlr-3.4/runtime/Java/src/main/java/org/antlr/runtime/debug/ |
DebugEventSocketProxy.java | 37 import java.net.Socket; 39 /** A proxy debug event listener that forwards events over a socket to 41 * one event per line. ANTLRWorks listens on server socket with a 43 * be kept in sync. New events must be handled on both sides of socket. 49 protected Socket socket; field in class:DebugEventSocketProxy 76 socket = serverSocket.accept(); 77 socket.setTcpNoDelay(true); 78 OutputStream os = socket.getOutputStream(); 81 InputStream is = socket.getInputStream() [all...] |
/external/jmonkeyengine/engine/src/networking/com/jme3/network/kernel/tcp/ |
SelectorKernel.java | 40 import java.net.Socket; 246 // Create a new non-blocking server socket channel 250 // Bind the server socket to the specified address and port 251 serverChannel.socket().bind(address); 253 // Register the server socket channel, indicating an interest in 311 Socket sock = remoteChan.socket();
|