/dalvik/libcore/x-net/src/main/java/org/apache/harmony/xnet/provider/jsse/ |
H A D | OpenSSLSocketImplWrapper.java | 27 * This class wraps the SSL functionality over an existing conneted 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 | OpenSSLSocketImpl.java | 65 private Socket socket; field in class:OpenSSLSocketImpl 103 * Initialize the SSL socket and set the certificates for the 228 * Constructor with 5 parameters: 1st is socket. Enhances an existing socket 233 protected OpenSSLSocketImpl(Socket socket, String host, int port, argument 236 this.socket = socket; 237 this.timeout = socket.getSoTimeout(); 246 * Adds OpenSSL functionality to the existing socket and starts the SSL 312 Socket socket [all...] |
/dalvik/libcore/luni/src/main/java/org/apache/harmony/luni/internal/net/www/protocol/http/ |
H A D | HttpConnection.java | 42 private Socket socket; field in class:HttpConnection 58 socket = new Socket(); 60 socket = new Socket(proxy); 62 socket.connect(new InetSocketAddress(hostName, hostPort), connectTimeout); 117 if (null != socket) { 118 Socket temp = socket; 119 socket = null; 129 socket.setSoTimeout(readTimeout); 139 outputStream = socket.getOutputStream(); 151 inputStream = socket [all...] |
/dalvik/libcore/luni/src/main/java/org/apache/harmony/luni/net/ |
H A D | SocketInputStream.java | 28 * The SocketInputStream supports the streamed reading of bytes from a socket. 29 * Multiple streams may be opened on a socket, so care should be taken to manage 34 private final PlainSocketImpl socket; field in class:SocketInputStream 37 * Constructs a SocketInputStream for the <code>socket</code>. Read 38 * operations are forwarded to the <code>socket</code>. 40 * @param socket the socket to be read 43 public SocketInputStream(SocketImpl socket) { argument 45 this.socket = (PlainSocketImpl) socket; [all...] |
H A D | SocketOutputStream.java | 29 private PlainSocketImpl socket; field in class:SocketOutputStream 32 * Constructs a SocketOutputStream for the <code>socket</code>. Write 33 * operations are forwarded to the <code>socket</code>. 35 * @param socket the socket to be written 38 public SocketOutputStream(SocketImpl socket) { argument 40 this.socket = (PlainSocketImpl) socket; 45 socket.close(); 50 socket [all...] |
/dalvik/tests/048-server-socket/src/ |
H A D | Main.java | 8 * Quick server socket test. 20 ServerSocket socket; 23 socket = new ServerSocket(7890); 25 System.out.println("couldn't open socket " + ioe.getMessage()); 33 socket.close(); 35 System.out.println("couldn't close socket " + ioe.getMessage()); 43 socket = new ServerSocket(7890); 45 System.out.println("couldn't reopen socket " + ioe.getMessage());
|
/dalvik/libcore/logging/src/main/java/java/util/logging/ |
H A D | SocketHandler.java | 27 * A handler that writes log messages to a socket connection. 64 // the socket connection 65 private Socket socket; field in class:SocketHandler 110 // Initialize the socket connection and prepare the output stream 131 this.socket = new Socket(host, p); 139 super.internalSetOutputStream(new BufferedOutputStream(this.socket 155 if (null != this.socket) { 156 this.socket.close(); 157 this.socket = null; 160 // logging.F=Exception occurred when closing the socket handle [all...] |
/dalvik/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) {
|
/dalvik/libcore/x-net/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
|
/dalvik/libcore/x-net/src/test/java/tests/api/javax/net/ssl/ |
H A D | HandshakeCompletedEventTest.java | 92 SSLSocket socket = (SSLSocket) SSLSocketFactory.getDefault().createSocket(); 94 HandshakeCompletedEvent event = new HandshakeCompletedEvent(socket, session); 118 SSLSocket socket = (SSLSocket) SSLSocketFactory.getDefault().createSocket(); 119 HandshakeCompletedEvent event = new HandshakeCompletedEvent(socket, session); 139 SSLSocket socket = (SSLSocket) SSLSocketFactory.getDefault().createSocket(); 140 HandshakeCompletedEvent event = new HandshakeCompletedEvent(socket, session); 160 SSLSocket socket = (SSLSocket) SSLSocketFactory.getDefault().createSocket(); 161 HandshakeCompletedEvent event = new HandshakeCompletedEvent(socket, session); 182 SSLSocket socket = (SSLSocket) SSLSocketFactory.getDefault().createSocket(); 183 HandshakeCompletedEvent event = new HandshakeCompletedEvent(socket, sessio 309 SSLSocket socket; field in class:HandshakeCompletedEventTest [all...] |
H A D | X509ExtendedKeyManagerTest.java | 157 Socket socket) { 166 Socket socket) { 156 chooseClientAlias(String[] keyType, Principal[] issuers, Socket socket) argument 165 chooseServerAlias(String keyType, Principal[] issuers, Socket socket) argument
|
/dalvik/libcore/nio/src/main/java/org/apache/harmony/nio/internal/ |
H A D | ServerSocketChannelImpl.java | 62 private final ServerSocket socket; field in class:ServerSocketChannelImpl 68 // whether the socket is bound 85 socket = new ServerSocketAdapter(impl, this); 95 socket = new ServerSocketAdapter(impl, this); 100 * Getting the internal Socket If we have not the socket, we create a new 103 public ServerSocket socket() { method in class:ServerSocketChannelImpl 104 return socket; 120 Socket socketGot = sockChannel.socket(); 144 ((ServerSocketAdapter) socket).accept(socketGot, 179 if (!socket [all...] |
/dalvik/libcore/nio/src/test/java/org/apache/harmony/nio/tests/java/nio/channels/ |
H A D | ServerSocketChannelTest.java | 166 // Test for socket() 170 * Test method for 'com.ibm.io.nio.ServerSocketChannelImpl.socket()' 177 method = "socket", 189 ServerSocket s1 = this.serverChannel.socket(); 192 ServerSocket s2 = this.serverChannel.socket(); 196 // socket close makes the channel close 205 method = "socket", 211 ServerSocket s1 = this.serverChannel.socket(); 214 ServerSocket s2 = this.serverChannel.socket(); 218 // socket clos [all...] |
H A D | MockServerSocketChannel.java | 32 public ServerSocket socket() { method in class:MockServerSocketChannel
|
H A D | MockSocketChannel.java | 33 public Socket socket() { method in class:MockSocketChannel
|
H A D | DatagramChannelTest.java | 317 DatagramSocket gotSocket = this.channel1.socket(); 444 this.channel1.socket().bind(localAddr2); 446 this.channel2.socket().bind(localAddr1); 472 this.channel1.socket().bind(localAddr2); 474 this.channel2.socket().bind(localAddr1); 655 // Test for socket() 659 * Test method for 'DatagramChannelImpl.socket()' 666 method = "socket", 671 DatagramSocket s1 = this.channel1.socket(); 673 DatagramSocket s2 = this.channel1.socket(); [all...] |
H A D | MockDatagramChannel.java | 33 public DatagramSocket socket() { method in class:MockDatagramChannel
|
/dalvik/libcore/nio/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 | 31 * abstraction of a datagram socket. The {@code socket} method of this class can 33 * socket. 91 * Returns the related datagram socket of this channel, which does not 97 public abstract DatagramSocket socket(); method in class:DatagramChannel 100 * Returns whether this channel's socket is connected or not. 102 * @return <code>true</code> if this channel's socket is connected; 108 * Connects the socket of this channel to a remote address, which is the 142 * Disconnects the socket of this channel, which has been connected before 147 * socket i [all...] |
H A D | SocketChannel.java | 31 * abstraction of stream connecting socket. {@code socket()} returns the related 32 * {@link Socket} instance which can handle the socket. 34 * A socket channel is open but not connected when created by {@code open()}. 40 * blocked or not; {@code isConnected()} indicates if the socket is finally 79 * Creates an open and unconnected socket channel. 93 * Creates a socket channel and connects it to a socket address. 99 * the socket address to be connected to. 140 * Returns the socket assigne 145 public abstract Socket socket(); method in class:SocketChannel [all...] |
/dalvik/libcore/luni/src/test/java/tests/api/java/net/ |
H A D | UnixSocketTest.java | 113 Socket socket = new Socket("127.0.0.1", port, false); 114 OutputStream o = socket.getOutputStream(); 120 socket.close();
|
H A D | DatagramPacketTest.java | 244 DatagramSocket socket = null; 246 socket = new DatagramSocket(port); 251 socket.setSoTimeout(3000); 254 socket.receive(packet); 255 socket.send(packet); 256 socket.close(); 259 if (socket != null) 260 socket.close(); 266 DatagramSocket socket = null; 268 socket [all...] |
/dalvik/libcore/luni/src/test/java/org/apache/harmony/luni/tests/internal/net/www/protocol/http/ |
H A D | HttpURLConnectionTest.java | 100 Socket socket = serverSocket.accept(); 101 socket.setSoTimeout(1000); 103 int num = socket.getInputStream().read(buff); 104 socket.getOutputStream().write(( 108 num = socket.getInputStream().read(buff); 111 socket = serverSocket.accept(); 112 socket.setSoTimeout(1000); 113 num = socket.getInputStream().read(buff); 119 socket.getOutputStream().write((
|
/dalvik/libcore/luni/src/main/native/ |
H A D | ifaddrs-android.h | 23 #include <sys/socket.h> 74 ScopedFd fd(socket(AF_INET, SOCK_DGRAM, 0)); 127 // Create a netlink socket. 128 ScopedFd fd(socket(PF_NETLINK, SOCK_DGRAM, NETLINK_ROUTE));
|