/libcore/dalvik/src/main/java/dalvik/system/ |
H A D | SocketTagger.java | 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 { argument 53 if (!socket.isClosed()) { 54 tag(socket.getFileDescriptor$()); 58 public final void untag(Socket socket) throws SocketException { argument 59 if (!socket.isClosed()) { 60 untag(socket.getFileDescriptor$()); 65 * Sets this process' socket tagge [all...] |
/libcore/luni/src/main/java/java/nio/channels/ |
H A D | ServerSocketChannel.java | 27 * stream-oriented listening socket. Binding and manipulation of socket options 29 * by calling {@code socket()}. ServerSocketChannels can not be constructed for 30 * an already existing server-socket, nor can a {@link java.net.SocketImpl} be assigned. 32 * A server-socket channel is open but not bound when created by the {@code 50 * Creates an open and unbound server-socket channel. 64 * Gets the valid operations of this channel. Server-socket channels support 77 * Return the server-socket assigned this channel, which does not declare 80 * @return the server-socket assigned to this channel. 82 public abstract ServerSocket socket(); method in class:ServerSocketChannel [all...] |
H A D | DatagramChannel.java | 29 * abstraction of a datagram socket. The {@code socket} method of this class can 31 * socket. 83 * Returns the related datagram socket of this channel, which does not 89 public abstract DatagramSocket socket(); method in class:DatagramChannel 92 * Returns whether this channel's socket is connected or not. 94 * @return <code>true</code> if this channel's socket is connected; 100 * Connects the socket of this channel to a remote address, which is the 131 * Disconnects the socket of this channel, which has been connected before 136 * socket i [all...] |
H A D | SocketChannel.java | 29 * abstraction of stream connecting socket. {@code socket()} returns the related 30 * {@link Socket} instance which can handle the socket. 32 * A socket channel is open but not connected when created by {@code open()}. 38 * blocked or not; {@code isConnected()} indicates if the socket is finally 71 * Creates an open and unconnected socket channel. 85 * Creates a socket channel and connects it to a socket address. 91 * the socket address to be connected to. 129 * Returns the socket assigne 134 public abstract Socket socket(); method in class:SocketChannel [all...] |
/libcore/harmony-tests/src/test/java/org/apache/harmony/nio/tests/java/nio/channels/ |
H A D | MockServerSocketChannel.java | 32 public ServerSocket socket() { method in class:MockServerSocketChannel
|
H A D | UnixSelectorTest.java | 32 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 D | MockDatagramChannel.java | 33 public DatagramSocket socket() { method in class:MockDatagramChannel
|
H A D | MockSocketChannel.java | 33 public Socket socket() { method in class:MockSocketChannel
|
H A D | ServerSocketChannelTest.java | 118 // Test for socket() 122 * Test method for 'java.nio.channels.ServerSocketChannel.socket()' 127 ServerSocket s1 = this.serverChannel.socket(); 130 ServerSocket s2 = this.serverChannel.socket(); 134 // socket close makes the channel close 143 ServerSocket s1 = this.serverChannel.socket(); 146 ServerSocket s2 = this.serverChannel.socket(); 150 // socket close makes the channel close 160 ServerSocket s1 = this.serverChannel.socket(); 163 ServerSocket s2 = this.serverChannel.socket(); 469 Socket socket; field in class:ServerSocketChannelTest.WriteSocketThread 473 WriteSocketThread(Socket socket, byte[] buffer) argument [all...] |
/libcore/luni/src/main/java/java/util/logging/ |
H A D | SocketHandler.java | 25 * A handler that writes log messages to a socket connection. 62 // the socket connection 63 private Socket socket; field in class:SocketHandler 102 // Initialize the socket connection and prepare the output stream 120 this.socket = new Socket(host, p); 126 super.internalSetOutputStream(new BufferedOutputStream(this.socket.getOutputStream())); 136 if (this.socket != null) { 137 this.socket.close(); 138 this.socket = null; 141 getErrorManager().error("Exception occurred when closing the socket handle [all...] |
/libcore/luni/src/main/java/javax/net/ssl/ |
H A D | X509KeyManager.java | 39 * @param socket 40 * the socket for the connection, or {@code null} if 41 * the alias selected does not depend on a specific socket. 46 Socket socket); 57 * @param socket 58 * the socket for the connection, or {@code null} if 59 * the alias selected does not depend on a specific socket. 64 Socket socket); 45 chooseClientAlias(String[] keyType, Principal[] issuers, Socket socket) argument 63 chooseServerAlias(String keyType, Principal[] issuers, Socket socket) argument
|
/libcore/luni/src/test/java/libcore/java/net/ |
H A D | OldAndroidDatagramTest.java | 42 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/support/src/test/java/org/apache/harmony/xnet/tests/support/ |
H A D | SSLSocketFactoryImpl.java | 17 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 D | X509KeyManagerImpl.java | 140 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/crypto/src/main/java/org/conscrypt/ |
H A D | KeyManagerImpl.java | 45 * from socket or engine. 87 public String chooseClientAlias(String[] keyTypes, Principal[] issuers, Socket socket) { argument 92 public String chooseServerAlias(String keyType, Principal[] issuers, Socket socket) { argument
|
H A D | OpenSSLSocketImplWrapper.java | 27 * This class wraps the SSL functionality over an existing connected socket. 31 private Socket socket; field in class:OpenSSLSocketImplWrapper 33 protected OpenSSLSocketImplWrapper(Socket socket, String host, int port, argument 35 super(socket, host, port, autoClose, sslParameters); 36 if (!socket.isConnected()) { 39 this.socket = socket; 45 throw new IOException("Underlying socket is already connected."); 50 throw new IOException("Underlying socket is already connected."); 55 throw new IOException("Underlying socket i [all...] |
H A D | SSLSocketWrapper.java | 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, argument 38 if (!socket.isConnected()) { 41 this.socket = socket; 48 input = socket.getInputStream(); 49 output = socket.getOutputStream(); 55 socket.close(); 66 throw new IOException("Underlying socket i [all...] |
/libcore/luni/src/main/java/java/nio/ |
H A D | ServerSocketChannelImpl.java | 43 private final ServerSocketAdapter socket; field in class:ServerSocketChannelImpl 52 this.socket = new ServerSocketAdapter(this); 53 this.impl = socket.getImpl$(); 56 @Override public ServerSocket socket() { method in class:ServerSocketChannelImpl 57 return socket; 68 // Create an empty socket channel. This will be populated by ServerSocketAdapter.accept. 74 socket.implAccept(result); 79 // Otherwise, this is a non-blocking socket and there's nothing ready, so we'll 84 end(result.socket().isConnected()); 86 return result.socket() [all...] |
H A D | DatagramChannelImpl.java | 53 private DatagramSocket socket = null; field in class:DatagramChannelImpl 64 // whether the socket is bound 75 fd = IoBridge.socket(false); 89 * Getting the internal DatagramSocket If we have not the socket, we create 93 synchronized public DatagramSocket socket() { method in class:DatagramChannelImpl 94 if (socket == null) { 95 socket = new DatagramSocketAdapter(new PlainDatagramSocketImpl(fd, localPort), this); 97 return socket; 153 if (socket != null) { 154 socket [all...] |
/libcore/luni/src/main/java/libcore/io/ |
H A D | IoUtils.java | 74 * Closes 'socket', ignoring any exceptions. Does nothing if 'socket' is null. 76 public static void closeQuietly(Socket socket) { argument 77 if (socket != null) { 79 socket.close();
|
H A D | BlockGuardOs.java | 41 throw new ErrnoException("socket", EINVAL, e); 49 throw new ErrnoException("socket", EINVAL, e); 62 // If the fd is a socket with SO_LINGER set, we might block indefinitely. 72 // already-closed socket. Also, the passed-in FileDescriptor isn't necessarily 73 // a socket at all. 180 @Override public FileDescriptor socket(int domain, int type, int protocol) throws ErrnoException { method in class:BlockGuardOs 181 return tagSocket(os.socket(domain, type, protocol));
|
H A D | IoBridge.java | 95 * Connects socket 'fd' to 'inetAddress' on 'port', with no timeout. The lack of a timeout 107 * Connects socket 'fd' to 'inetAddress' on 'port', with a the given 'timeoutMs'. 132 // 1. set the socket to non-blocking, 136 // 4. set the socket back to blocking. 138 // 1. set the socket to non-blocking. 145 IoUtils.setBlocking(fd, true); // 4. set the socket back to blocking. 162 IoUtils.setBlocking(fd, true); // 4. set the socket back to blocking. 179 // Socket.close doesn't throw if you try to close an already-closed socket. 232 * java.net has its own socket options similar to the underlying Unix ones. We paper over the 286 throw new SocketException("Unknown socket optio 558 public static FileDescriptor socket(boolean stream) throws SocketException { method in class:IoBridge [all...] |
/libcore/luni/src/test/java/tests/api/javax/net/ssl/ |
H A D | X509ExtendedKeyManagerTest.java | 133 Socket socket) { 142 Socket socket) { 132 chooseClientAlias(String[] keyType, Principal[] issuers, Socket socket) argument 141 chooseServerAlias(String keyType, Principal[] issuers, Socket socket) argument
|
/libcore/support/src/test/java/libcore/javax/net/ssl/ |
H A D | TestKeyManager.java | 63 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/luni/src/test/java/libcore/java/nio/channels/ |
H A D | OldSocketChannelTest.java | 171 Socket gotSocket = this.channel1.socket(); 286 ssc.socket().bind(null, 0); 305 sc.connect(ssc.socket().getLocalSocketAddress()); 321 sc.connect(ssc.socket().getLocalSocketAddress()); 358 public Socket socket() { method in class:OldSocketChannelTest.MockSocketChannel
|