Searched defs:socket (Results 1 - 25 of 44) sorted by relevance

12

/libcore/dalvik/src/main/java/dalvik/system/
H A DSocketTagger.java25 * Callbacks for socket assignment and reassignment.
38 * thread. The socket is either newly connected or reused from a connection
48 * <p><strong>Note:</strong> this method will not be invoked when the socket
53 public final void tag(Socket socket) throws SocketException { argument
54 if (!socket.isClosed()) {
55 tag(socket.getFileDescriptor$());
59 public final void untag(Socket socket) throws SocketException { argument
60 if (!socket.isClosed()) {
61 untag(socket.getFileDescriptor$());
65 public final void tag(DatagramSocket socket) throw argument
71 untag(DatagramSocket socket) argument
[all...]
/libcore/ojluni/src/main/java/javax/net/ssl/
H A DX509ExtendedTrustManager.java65 * If the <code>socket</code> parameter is an instance of
68 * man-in-the-middle attacks, the address that the <code>socket</code>
73 * If the <code>socket</code> parameter is an instance of
78 * algorithm constraints in place on this socket.
82 * @param socket the socket used for this connection. This parameter
97 String authType, Socket socket) throws CertificateException;
113 * If the <code>socket</code> parameter is an instance of
116 * man-in-the-middle attacks, the address that the <code>socket</code>
121 * If the <code>socket</cod
96 checkClientTrusted(X509Certificate[] chain, String authType, Socket socket) argument
144 checkServerTrusted(X509Certificate[] chain, String authType, Socket socket) argument
[all...]
H A DX509KeyManager.java36 * socket.
38 * During secure socket negotiations, implentations
56 * socket given the public key type and the list of
69 * socket given the public key type and the list of
76 * @param socket the socket to be used for this connection. This
79 * to any socket.
84 Socket socket);
88 * socket given the public key type and the list of
101 * socket give
83 chooseClientAlias(String[] keyType, Principal[] issuers, Socket socket) argument
114 chooseServerAlias(String keyType, Principal[] issuers, Socket socket) argument
[all...]
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/channels/
H A DUnixSelectorTest.java32 ServerSocket socket = null; field in class:UnixSelectorTest.Server
39 this.socket = serverChannel.socket();
40 socket.bind(null);
80 boolean isConnected = socketChannel.connect(server.socket.getLocalSocketAddress());
H A DMockServerSocketChannel.java37 public ServerSocket socket() { method in class:MockServerSocketChannel
H A DMockDatagramChannel.java40 public DatagramSocket socket() { method in class:MockDatagramChannel
H A DMockSocketChannel.java37 public Socket socket() { method in class:MockSocketChannel
H A DServerSocketChannelTest.java117 assertNull(ssc.socket().getLocalSocketAddress());
119 ssc.socket().bind(null);
121 InetSocketAddress localAddress = (InetSocketAddress) ssc.socket().getLocalSocketAddress();
131 portHog.socket().bind(null);
136 ssc.socket().bind(portHog.socket().getLocalSocketAddress());
150 ssc.socket().bind(null);
161 portPickingChannel.socket().bind(null);
163 InetSocketAddress address = (InetSocketAddress) portPickingChannel.socket().getLocalSocketAddress();
171 ssc.socket()
592 Socket socket; field in class:ServerSocketChannelTest.WriteSocketThread
596 WriteSocketThread(Socket socket, byte[] buffer) argument
[all...]
/libcore/ojluni/src/main/java/java/nio/channels/
H A DServerSocketChannel.java38 * <p> A server-socket channel is created by invoking the {@link #open() open}
40 * pre-existing {@link ServerSocket}. A newly-created server-socket channel is
42 * method of an unbound server-socket channel will cause a {@link NotYetBoundException}
43 * to be thrown. A server-socket channel can be bound by invoking one of the
47 * setOption} method. Server-socket channels support the following options:
56 * <td> The size of the socket receive buffer </td>
66 * <p> Server-socket channels are safe for use by multiple concurrent threads.
90 * Opens a server-socket channel.
97 * <p> The new channel's socket is initially unbound; it must be bound to a
98 * specific address via one of its socket'
220 public abstract ServerSocket socket(); method in class:ServerSocketChannel
[all...]
H A DDatagramChannel.java42 * pre-existing datagram socket. A newly-created datagram channel is open but not
50 * accept or return socket addresses.
57 * setOption} method. A datagram channel to an Internet Protocol socket supports
67 * <td> The size of the socket send buffer </td>
71 * <td> The size of the socket receive buffer </td>
137 * <p> The {@link ProtocolFamily ProtocolFamily} of the channel's socket
230 * Retrieves a datagram socket associated with this channel.
235 * @return A datagram socket associated with this channel
237 public abstract DatagramSocket socket(); method in class:DatagramChannel
240 * Tells whether or not this channel's socket i
[all...]
H A DSocketChannel.java39 * <p> A socket channel is created by invoking one of the {@link #open open}
41 * pre-existing socket. A newly-created socket channel is open but not yet
44 * socket channel can be connected by invoking its {@link #connect connect}
45 * method; once connected, a socket channel remains connected until it is
46 * closed. Whether or not a socket channel is connected may be determined by
49 * <p> Socket channels support <i>non-blocking connection:</i>&nbsp;A socket
51 * remote socket may be initiated via the {@link #connect connect} method for
58 * If the input side of a socket is shut down by one thread while another
59 * thread is blocked in a read operation on the socket'
302 public abstract Socket socket(); method in class:SocketChannel
[all...]
/libcore/support/src/test/java/tests/net/
H A DDelegatingSocketFactory.java38 * Invoked after obtaining a socket from the delegate and before returning it to the caller.
42 protected Socket configureSocket(Socket socket) throws IOException { argument
43 return socket;
48 Socket socket = mDelegate.createSocket();
49 return configureSocket(socket);
54 Socket socket = mDelegate.createSocket(host, port);
55 return configureSocket(socket);
61 Socket socket = mDelegate.createSocket(host, port, localHost, localPort);
62 return configureSocket(socket);
67 Socket socket
[all...]
H A DDelegatingSSLSocketFactory.java40 * Invoked after obtaining a socket from the delegate and before returning it to the caller.
44 protected SSLSocket configureSocket(SSLSocket socket) throws IOException { argument
45 return socket;
60 SSLSocket socket = (SSLSocket) mDelegate.createSocket();
61 return configureSocket(socket);
67 SSLSocket socket = (SSLSocket) mDelegate.createSocket(s, host, port, autoClose);
68 return configureSocket(socket);
73 SSLSocket socket = (SSLSocket) mDelegate.createSocket(host, port);
74 return configureSocket(socket);
80 SSLSocket socket
[all...]
/libcore/luni/src/test/java/libcore/java/net/
H A DOldAndroidDatagramTest.java42 DatagramSocket socket; field in class:OldAndroidDatagramTest.Reflector
59 socket.receive(packet);
74 socket.send(packet);
81 socket.close();
91 socket = new DatagramSocket(port, address);
121 DatagramSocket socket = null;
131 socket = new DatagramSocket(2345, InetAddress.getLocalHost());
141 socket.send(packet);
150 socket.receive(packet);
161 if (socket !
[all...]
/libcore/luni/src/test/java/libcore/javax/net/ssl/
H A DPSKKeyManagerProxy.java47 protected SecretKey getKey(String identityHint, String identity, Socket socket) { argument
57 protected String chooseServerKeyIdentityHint(Socket socket) { argument
67 protected String chooseClientKeyIdentity(String identityHint, Socket socket) { argument
/libcore/ojluni/src/main/java/java/net/
H A DSocketOutputStream.java48 private Socket socket = null; field in class:SocketOutputStream
54 * @param impl the socket output stream inplemented
59 socket = impl.getSocket();
67 * returns {@code null} since it is a socket based stream.</p>
79 * Writes to the socket.
90 * Writes to the socket with appropriate locking of the
126 * Writes a byte to the socket.
136 * Writes the contents of the buffer <i>b</i> to the socket.
165 if (socket != null) {
166 if (!socket
[all...]
H A DSocketInputStream.java50 private Socket socket = null; field in class:SocketInputStream
56 * @param impl the implemented socket input stream
61 socket = impl.getSocket();
69 * returns {@code null} since it is a socket based stream.</p>
82 * the received socket primitive.
100 * the received socket primitive.
118 * Reads into a byte array data from the socket.
182 * buffered on the socket
199 * If we get here we are at EOF, the socket has been closed,
216 * Reads a single byte from the socket
[all...]
/libcore/support/src/test/java/libcore/javax/net/ssl/
H A DForwardingX509ExtendedKeyManager.java38 public String chooseClientAlias(String[] keyType, Principal[] issuers, Socket socket) { argument
39 return delegate.chooseClientAlias(keyType, issuers, socket);
43 public String chooseServerAlias(String keyType, Principal[] issuers, Socket socket) { argument
44 return delegate.chooseServerAlias(keyType, issuers, socket);
H A DTestTrustManager.java88 public void checkClientTrusted(X509Certificate[] chain, String authType, Socket socket) argument
98 + "socket=" + socket + " ");
101 extendedTrustManager.checkClientTrusted(chain, authType, socket);
153 public void checkServerTrusted(X509Certificate[] chain, String authType, Socket socket) argument
163 + "socket=" + socket.toString() + " ");
166 extendedTrustManager.checkServerTrusted(chain, authType, socket);
H A DTestKeyManager.java63 public String chooseClientAlias(String[] keyTypes, Principal[] issuers, Socket socket) { argument
71 dumpSocket(socket);
73 return dumpAlias(keyManager.chooseClientAlias(keyTypes, issuers, socket));
88 public String chooseServerAlias(String keyType, Principal[] issuers, Socket socket) { argument
94 dumpSocket(socket);
96 return dumpAlias(keyManager.chooseServerAlias(keyType, issuers, socket));
99 private void dumpSocket(Socket socket) { argument
100 out.print(" | socket: ");
101 out.print(String.valueOf(socket));
/libcore/support/src/test/java/org/apache/harmony/xnet/tests/support/
H A DSSLSocketFactoryImpl.java17 public Socket createSocket(Socket socket, String s, int i, boolean flag) argument
19 if (socket == null) {
20 throw new IOException("incorrect socket");
30 socket = new Socket(s, i);
32 socket = new Socket(s, i);
33 socket.close();
35 return socket;
H A DX509KeyManagerImpl.java140 public String chooseClientAlias(String[] as, Principal[] aprincipal, Socket socket) { argument
147 if (socket == null) {
184 public String chooseServerAlias(String as, Principal[] aprincipal, Socket socket) { argument
190 if (as.equals(server) && socket != null) {
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/javax/net/ssl/
H A DX509ExtendedKeyManagerTest.java133 Socket socket) {
142 Socket socket) {
132 chooseClientAlias(String[] keyType, Principal[] issuers, Socket socket) argument
141 chooseServerAlias(String keyType, Principal[] issuers, Socket socket) argument
/libcore/luni/src/main/java/libcore/io/
H A DIoUtils.java75 * Closes 'socket', ignoring any exceptions. Does nothing if 'socket' is null.
77 public static void closeQuietly(Socket socket) { argument
78 if (socket != null) {
80 socket.close();
/libcore/ojluni/src/main/java/jdk/net/
H A DSockets.java41 * Defines static methods to set and get socket options defined by the
45 * or platform specific options supported by each socket type.
48 * the complete set of options available (per socket type) on the
51 * When a security manager is installed, some non-standard socket options
112 Method method, Object socket,
116 method.invoke(null, socket, option, value);
131 Method method, Object socket, SocketOption<T> option) throws IOException
134 return (T)method.invoke(null, socket, option);
151 * Sets the value of a socket option on a {@link java.net.Socket}
153 * @param s the socket
111 invokeSet( Method method, Object socket, SocketOption<T> option, T value) argument
130 invokeGet( Method method, Object socket, SocketOption<T> option) argument
[all...]

Completed in 623 milliseconds

12