HomeSort by relevance Sort by last modified time
    Searched refs:Socket (Results 126 - 150 of 282) sorted by null

1 2 3 4 56 7 8 91011>>

  /libcore/luni/src/main/java/javax/net/ssl/
SSLSocket.java 22 import java.net.Socket;
26 * The extension of {@code Socket} providing secure protocols like SSL (Secure
29 public abstract class SSLSocket extends Socket {
34 * Creates a TCP socket.
42 * Creates a TCP socket connection to the specified host at the specified
50 * if creating the socket fails.
61 * Creates a TCP socket connection to the specified address at the specified
69 * if creating the socket fails.
78 * Creates a TCP socket connection to the specified host at the specified
90 * if creating the socket fails
    [all...]
  /libcore/luni/src/main/java/org/apache/harmony/xnet/provider/jsse/
SSLServerSocketImpl.java 22 import java.net.Socket;
34 // ssl socket, whether it require/want client authentication or not,
36 // socket or not.
243 public Socket accept() throws IOException {
SSLSocketWrapper.java 23 import java.net.Socket;
28 * This class wraps the SSL fuctionality over existing conneted socket.
32 private final Socket socket; field in class:SSLSocketWrapper
35 protected SSLSocketWrapper(Socket socket, String host, int port, boolean autoClose,
38 if (!socket.isConnected()) {
39 throw new SocketException("Socket is not connected.");
41 this.socket = socket;
    [all...]
  /libcore/luni/src/test/java/libcore/java/net/
OldServerSocketTest.java 26 import java.net.Socket;
41 Socket sconn;
70 assertTrue("Server socket not bound when it should be:", theSocket
75 Socket clientSocket = new Socket();
79 Socket servSock = theSocket.accept();
97 Socket cs;
109 cs = new Socket(InetAddress.getLocalHost().getHostName(), port);
218 Socket accepted = newSocket.accept();
225 ServerSocket ss = ssc.socket();
    [all...]
  /libcore/support/src/test/java/libcore/javax/net/ssl/
TestSSLContext.java 21 import java.net.Socket;
270 private SSLSocket set(Socket socket) {
271 SSLSocket s = (SSLSocket) socket;
276 public Socket createSocket(String host, int port)
280 public Socket createSocket(String host, int port, InetAddress localHost, int localPort)
284 public Socket createSocket(InetAddress host, int port) throws IOException {
287 public Socket createSocket(InetAddress address, int port,
299 public Socket createSocket(Socket s, String host, int port, boolean autoClose
    [all...]
  /development/samples/training/NsdChat/src/com/example/android/nsdchat/
ChatConnection.java 32 import java.net.Socket;
45 private Socket mSocket;
95 private synchronized void setSocket(Socket socket) {
97 if (socket == null) {
98 Log.d(TAG, "Setting a null socket.");
110 mSocket = socket;
113 private Socket getSocket() {
131 Log.e(TAG, "Error when closing server socket.");
197 setSocket(new Socket(mAddress, PORT))
263 Socket socket = getSocket(); local
    [all...]
  /external/apache-http/src/org/apache/http/impl/conn/
DefaultClientConnectionOperator.java 36 import java.net.Socket;
75 /** The scheme registry for looking up socket factories. */
140 Socket sock = plain_sf.createSocket();
144 Socket connsock = plain_sf.connectSocket(sock,
154 * socket before the creation of the layered socket to
155 * ensure that desired socket options such as
157 * before any I/O is performed on the socket. This
165 Socket layeredsock = layered_sf.createSocket(sock,
225 ") must have layered socket factory.")
    [all...]
  /external/smack/src/org/jivesoftware/smackx/bytestreams/socks5/
Socks5Proxy.java 21 import java.net.Socket;
80 /* server socket to accept SOCKS5 connections */
84 private final Map<String, Socket> connectionMap = new ConcurrentHashMap<String, Socket>();
261 * Returns the socket for the given digest. A socket will be returned if the given digest has
266 * @return socket or null if there is no socket for the given digest
268 protected Socket getSocket(String digest) {
315 Socket socket = null; local
    [all...]
  /libcore/luni/src/main/java/libcore/net/http/
HttpConnection.java 28 import java.net.Socket;
52 private final Socket socket; field in class:HttpConnection
67 * TODO: add a hidden method so that Socket.tryAllAddresses can does this for us
69 Socket socketCandidate = null;
73 ? new Socket(config.proxy)
74 : new Socket();
86 this.socket = socketCandidate;
137 IoUtils.closeQuietly(socket);
141 socket.setSoTimeout(readTimeout)
    [all...]
  /external/mockwebserver/src/main/java/com/google/mockwebserver/
MockWebServer.java 34 import java.net.Socket;
74 private final Set<Socket> openClientSockets
75 = Collections.newSetFromMap(new ConcurrentHashMap<Socket, Boolean>());
219 logger.log(Level.WARNING, "MockWebServer server socket close failed", e);
221 for (Iterator<Socket> s = openClientSockets.iterator(); s.hasNext();) {
226 logger.log(Level.WARNING, "MockWebServer socket close failed", e);
238 Socket socket;
240 socket = serverSocket.accept();
247 socket.close()
374 SSLSocket socket = (SSLSocket) sslSocketFactory.createSocket( local
    [all...]
  /external/v8/src/
platform-posix.cc 39 #include <sys/socket.h>
354 // POSIX socket support.
357 class POSIXSocket : public Socket {
360 // Create the socket.
361 socket_ = socket(AF_INET, SOCK_STREAM, IPPROTO_TCP);
371 explicit POSIXSocket(int socket): socket_(socket) { }
377 Socket* Accept() const;
382 // Shutdown socket for both read and write.
425 Socket* POSIXSocket::Accept() const
430 int socket = accept(socket_, NULL, NULL); local
    [all...]
  /libcore/luni/src/main/java/java/net/
Socket.java 28 * Provides a client-side TCP socket.
30 public class Socket {
48 * Creates a new unconnected socket. When a SocketImplFactory is defined it
49 * creates the internal socket implementation, otherwise the default socket
50 * implementation will be used for this socket.
55 public Socket() {
61 * Creates a new unconnected socket using the given proxy type. When a
62 * {@code SocketImplFactory} is defined it creates the internal socket
63 * implementation, otherwise the default socket implementation will be use
    [all...]
  /sdk/apps/SdkController/src/com/android/tools/sdkcontroller/lib/
Channel.java 161 * Socket stuff.
164 /** Socket to use to to communicate with the emulator. */
165 private Socket mSocket = null;
298 // Use local copy of the socket, ensuring it's not going to NULL while
305 Socket socket = mSocket; local
306 return socket != null && socket.isConnected();
312 * gets registered, and there is a pending socket connection for it.
314 * @param socket Channel connection socket
348 Socket socket; local
431 Socket socket = mSocket; local
455 Socket socket = mSocket; local
483 Socket socket = mSocket; local
558 Socket socket = mSocket; local
629 Socket socket = mSocket; local
    [all...]
  /external/antlr/antlr-3.4/runtime/Ruby/lib/antlr3/debug/
socket.rb 4 require 'socket'
12 A proxy debug event listener that forwards events over a socket to
14 one event per line. ANTLRWorks listens on server socket with a
16 be kept in sync. New events must be handled on both sides of socket.
30 @socket = nil
39 unless @socket
41 @socket = Socket.new( Socket::AF_INET, Socket::SOCK_STREAM, 0
    [all...]
  /external/apache-harmony/luni/src/test/api/common/org/apache/harmony/luni/tests/java/net/
ExcludedProxyTest.java 23 import java.net.Socket;
125 Socket s = new Socket(Support_Configuration.HomeAddress, 80);
130 fail("Could not open socket: "
142 Socket s = new Socket(Support_Configuration.HomeAddress, 80);
  /external/okhttp/src/main/java/com/squareup/okhttp/
Connection.java 33 import java.net.Socket;
84 private Socket socket; field in class:Connection
109 socket = (proxy.type() != Proxy.Type.HTTP) ? new Socket(proxy) : new Socket();
110 socket.connect(inetSocketAddress, connectTimeout);
111 socket.setSoTimeout(readTimeout);
112 in = socket.getInputStream();
113 out = socket.getOutputStream()
    [all...]
  /external/okhttp/src/test/java/com/squareup/okhttp/internal/spdy/
MockSpdyPeer.java 26 import java.net.Socket;
47 private Socket socket; field in class:MockSpdyPeer
93 if (socket != null) throw new IllegalStateException();
94 socket = serverSocket.accept();
95 OutputStream out = socket.getOutputStream();
96 InputStream in = socket.getInputStream();
129 Util.closeQuietly(socket);
132 public Socket openSocket() throws IOException {
133 return new Socket("localhost", port)
137 Socket socket = this.socket; local
    [all...]
  /frameworks/base/services/java/com/android/server/wm/
ViewServer.java 23 import java.net.Socket;
35 * The ViewServer is local socket server that can be used to communicate with the
166 Socket client = mServer.accept();
182 private static boolean writeValue(Socket client, String value) {
207 private Socket mClient;
211 public ViewServerWorker(Socket client) {
  /packages/apps/Email/emailcommon/src/com/android/emailcommon/utility/
SSLUtils.java 28 import java.net.Socket;
116 String[] keyTypes, Principal[] issuers, Socket socket);
127 String keyType, Principal[] issuers, Socket socket) {
153 public String chooseClientAlias(String[] keyTypes, Principal[] issuers, Socket socket) {
155 InetAddress address = socket.getInetAddress();
250 public String chooseClientAlias(String[] keyTypes, Principal[] issuers, Socket socket) {
    [all...]
  /development/apps/Development/src/com/android/development/
LogViewer.java 24 import java.net.Socket;
77 final Socket socket; field in class:LogViewer.LogReader
85 this.socket = new Socket("127.0.0.1", 5040);
86 this.in = new DataInputStream(this.socket.getInputStream());
88 this.socket.getOutputStream().write('\n');
89 this.socket.getOutputStream().write('\n');
  /external/apache-http/src/org/apache/http/impl/conn/tsccm/
ThreadSafeClientConnManager.java 35 import java.net.Socket;
178 // When using a recycled Socket, we need to re-tag it with any
181 final Socket socket = entry.getConnection().getSocket(); local
182 if (socket != null) {
183 SocketTagger.get().tag(socket);
186 log.debug("Problem tagging socket.", iox);
213 // When recycling a Socket, we un-tag it to avoid collecting
216 final Socket socket = entry.getConnection().getSocket()
    [all...]
  /external/ganymed-ssh2/src/main/java/ch/ethz/ssh2/channel/
RemoteX11AcceptThread.java 10 import java.net.Socket;
30 Socket s;
168 s = new Socket(sd.hostname, sd.port);
  /libcore/support/src/test/java/org/apache/harmony/xnet/tests/support/
X509KeyManagerImpl.java 12 import java.net.Socket;
140 public String chooseClientAlias(String[] as, Principal[] aprincipal, Socket socket) {
147 if (socket == null) {
184 public String chooseServerAlias(String as, Principal[] aprincipal, Socket socket) {
190 if (as.equals(server) && socket != null) {
  /development/samples/KeyChainDemo/src/com/example/android/keychain/
SecureWebServer.java 25 import java.net.Socket;
77 // Create the SSL server socket factory
99 // Create the secure server socket
110 Socket socket = sss.accept();
116 new InputStreamReader(socket.getInputStream()));
117 PrintWriter out = new PrintWriter(socket
137 socket.close();
155 // Close the socket
  /external/chromium/chrome/common/extensions/docs/examples/extensions/irc/servlet/src/org/chromium/
IRCProxyWebSocket.java 7 import java.net.Socket;
39 Socket socket_ = null;

Completed in 641 milliseconds

1 2 3 4 56 7 8 91011>>