Uses of Class
java.net.Socket
| Package | Description |
|---|---|
| com.squareup.okhttp | |
| com.squareup.okhttp.internal | |
| com.squareup.okhttp.internal.spdy | |
| dalvik.system | |
| java.net | |
| java.nio.channels | |
| javax.net | |
| javax.net.ssl |
This package provides classes and interfaces needed to use the Secure
Sockets Layer (SSL) protocol and the successor Transport Layer
Security (TLS) protocol.
|
| libcore.io | |
| org.apache.http.conn |
The client-side connection management and handling API
at the heart of what is referred to as HttpConn.
|
| org.apache.http.conn.scheme | |
| org.apache.http.conn.ssl |
TLS/SSL specific parts of the HttpConn API.
|
| org.apache.http.impl |
Default implementations for interfaces in
org.apache.http. |
| org.apache.http.impl.conn | |
| org.apache.http.impl.io |
Default implementations for interfaces in
org.apache.http.io. |
| org.conscrypt |
-
Uses of Socket in com.squareup.okhttp
Methods in com.squareup.okhttp that return Socket Modifier and Type Method Description SocketConnection. getSocket()Returns the socket that this connection uses, or null if the connection is not currently connected. -
Uses of Socket in com.squareup.okhttp.internal
Methods in com.squareup.okhttp.internal with parameters of type Socket Modifier and Type Method Description static voidUtil. closeQuietly(Socket socket)Closessocket, ignoring any checked exceptions.voidPlatform. connectSocket(Socket socket, InetSocketAddress address, int connectTimeout)intPlatform. getMtu(Socket socket)Returns the maximum transmission unit of the network interface used bysocket, or a reasonable default if there's an error retrieving it from the socket.voidPlatform. tagSocket(Socket socket)voidPlatform. untagSocket(Socket socket) -
Uses of Socket in com.squareup.okhttp.internal.spdy
-
Uses of Socket in dalvik.system
-
Uses of Socket in java.net
Methods in java.net that return Socket Modifier and Type Method Description SocketServerSocket. accept()Waits for an incoming request and blocks until the connection is opened.Methods in java.net with parameters of type Socket Modifier and Type Method Description protected voidServerSocket. implAccept(Socket aSocket)Invokes the server socket implementation to accept a connection on the given socketaSocket.static voidSocketUtils. setCreated(Socket s)Helps us reuse more of Socket's implementation in SocketChannelImpl.SocketAdapter. -
Uses of Socket in java.nio.channels
Methods in java.nio.channels that return Socket Modifier and Type Method Description abstract SocketSocketChannel. socket()Returns the socket assigned to this channel, which does not declare any public methods that are not declared inSocket. -
Uses of Socket in javax.net
Methods in javax.net that return Socket Modifier and Type Method Description SocketSocketFactory. createSocket()Creates a new socket which is not connected to any remote host.abstract SocketSocketFactory. createSocket(String host, int port)Creates a new socket which is connected to the remote host specified by the parametershostandport.abstract SocketSocketFactory. createSocket(String host, int port, InetAddress localHost, int localPort)Creates a new socket which is connected to the remote host specified by the parametershostandport.abstract SocketSocketFactory. createSocket(InetAddress host, int port)Creates a new socket which is connected to the remote host specified by the InetAddresshost.abstract SocketSocketFactory. createSocket(InetAddress address, int port, InetAddress localAddress, int localPort)Creates a new socket which is connected to the remote host specified by the InetAddressaddress. -
Uses of Socket in javax.net.ssl
Subclasses of Socket in javax.net.ssl Modifier and Type Class Description classSSLSocketThe extension ofSocketproviding secure protocols like SSL (Secure Sockets Layer) or TLS (Transport Layer Security).Methods in javax.net.ssl that return Socket Modifier and Type Method Description abstract SocketSSLSocketFactory. createSocket(Socket s, String host, int port, boolean autoClose)Creates anSSLSocketover the specified socket that is connected to the specified host at the specified port.Methods in javax.net.ssl with parameters of type Socket Modifier and Type Method Description StringX509KeyManager. chooseClientAlias(String[] keyType, Principal[] issuers, Socket socket)Chooses an alias for the client side of an SSL connection to authenticate it with the specified public key type and certificate issuers.StringX509KeyManager. chooseServerAlias(String keyType, Principal[] issuers, Socket socket)Chooses an alias for the server side of an SSL connection to authenticate it with the specified public key type and certificate issuers.abstract SocketSSLSocketFactory. createSocket(Socket s, String host, int port, boolean autoClose)Creates anSSLSocketover the specified socket that is connected to the specified host at the specified port. -
Uses of Socket in libcore.io
Methods in libcore.io with parameters of type Socket Modifier and Type Method Description static voidIoUtils. closeQuietly(Socket socket)Closes 'socket', ignoring any exceptions. -
Uses of Socket in org.apache.http.conn
Methods in org.apache.http.conn that return Socket Modifier and Type Method Description SocketMultihomePlainSocketFactory. connectSocket(Socket sock, String host, int port, InetAddress localAddress, int localPort, HttpParams params)Attempts to connects the socket to any of theInetAddresses the given host name resolves to.SocketMultihomePlainSocketFactory. createSocket()SocketOperatedClientConnection. getSocket()Obtains the socket for this connection.Methods in org.apache.http.conn with parameters of type Socket Modifier and Type Method Description SocketMultihomePlainSocketFactory. connectSocket(Socket sock, String host, int port, InetAddress localAddress, int localPort, HttpParams params)Attempts to connects the socket to any of theInetAddresses the given host name resolves to.booleanMultihomePlainSocketFactory. isSecure(Socket sock)Checks whether a socket connection is secure.voidOperatedClientConnection. opening(Socket sock, HttpHost target)Signals that this connection is in the process of being open.voidOperatedClientConnection. update(Socket sock, HttpHost target, boolean secure, HttpParams params)Updates this connection. -
Uses of Socket in org.apache.http.conn.scheme
Methods in org.apache.http.conn.scheme that return Socket Modifier and Type Method Description SocketPlainSocketFactory. connectSocket(Socket sock, String host, int port, InetAddress localAddress, int localPort, HttpParams params)SocketSocketFactory. connectSocket(Socket sock, String host, int port, InetAddress localAddress, int localPort, HttpParams params)Connects a socket to the given host.SocketLayeredSocketFactory. createSocket(Socket socket, String host, int port, boolean autoClose)Returns a socket connected to the given host that is layered over an existing socket.SocketPlainSocketFactory. createSocket()SocketSocketFactory. createSocket()Creates a new, unconnected socket.Methods in org.apache.http.conn.scheme with parameters of type Socket Modifier and Type Method Description SocketPlainSocketFactory. connectSocket(Socket sock, String host, int port, InetAddress localAddress, int localPort, HttpParams params)SocketSocketFactory. connectSocket(Socket sock, String host, int port, InetAddress localAddress, int localPort, HttpParams params)Connects a socket to the given host.SocketLayeredSocketFactory. createSocket(Socket socket, String host, int port, boolean autoClose)Returns a socket connected to the given host that is layered over an existing socket.booleanPlainSocketFactory. isSecure(Socket sock)Checks whether a socket connection is secure.booleanSocketFactory. isSecure(Socket sock)Checks whether a socket provides a secure connection. -
Uses of Socket in org.apache.http.conn.ssl
Methods in org.apache.http.conn.ssl that return Socket Modifier and Type Method Description SocketSSLSocketFactory. connectSocket(Socket sock, String host, int port, InetAddress localAddress, int localPort, HttpParams params)SocketSSLSocketFactory. createSocket()SocketSSLSocketFactory. createSocket(Socket socket, String host, int port, boolean autoClose)Methods in org.apache.http.conn.ssl with parameters of type Socket Modifier and Type Method Description SocketSSLSocketFactory. connectSocket(Socket sock, String host, int port, InetAddress localAddress, int localPort, HttpParams params)SocketSSLSocketFactory. createSocket(Socket socket, String host, int port, boolean autoClose)booleanSSLSocketFactory. isSecure(Socket sock)Checks whether a socket connection is secure. -
Uses of Socket in org.apache.http.impl
Methods in org.apache.http.impl that return Socket Modifier and Type Method Description protected SocketSocketHttpClientConnection. getSocket()protected SocketSocketHttpServerConnection. getSocket()Methods in org.apache.http.impl with parameters of type Socket Modifier and Type Method Description voidDefaultHttpClientConnection. bind(Socket socket, HttpParams params)voidDefaultHttpServerConnection. bind(Socket socket, HttpParams params)protected voidSocketHttpClientConnection. bind(Socket socket, HttpParams params)protected voidSocketHttpServerConnection. bind(Socket socket, HttpParams params)protected SessionInputBufferSocketHttpServerConnection. createHttpDataReceiver(Socket socket, int buffersize, HttpParams params)protected SessionOutputBufferSocketHttpServerConnection. createHttpDataTransmitter(Socket socket, int buffersize, HttpParams params)protected SessionInputBufferSocketHttpClientConnection. createSessionInputBuffer(Socket socket, int buffersize, HttpParams params)protected SessionOutputBufferSocketHttpClientConnection. createSessionOutputBuffer(Socket socket, int buffersize, HttpParams params) -
Uses of Socket in org.apache.http.impl.conn
Methods in org.apache.http.impl.conn that return Socket Modifier and Type Method Description SocketDefaultClientConnection. getSocket()Methods in org.apache.http.impl.conn with parameters of type Socket Modifier and Type Method Description protected SessionInputBufferDefaultClientConnection. createSessionInputBuffer(Socket socket, int buffersize, HttpParams params)protected SessionOutputBufferDefaultClientConnection. createSessionOutputBuffer(Socket socket, int buffersize, HttpParams params)voidDefaultClientConnection. opening(Socket sock, HttpHost target)protected voidDefaultClientConnectionOperator. prepareSocket(Socket sock, HttpContext context, HttpParams params)Performs standard initializations on a newly created socket.voidDefaultClientConnection. update(Socket sock, HttpHost target, boolean secure, HttpParams params) -
Uses of Socket in org.apache.http.impl.io
Constructors in org.apache.http.impl.io with parameters of type Socket Constructor Description SocketInputBuffer(Socket socket, int buffersize, HttpParams params)SocketOutputBuffer(Socket socket, int buffersize, HttpParams params) -
Uses of Socket in org.conscrypt
Subclasses of Socket in org.conscrypt Modifier and Type Class Description classOpenSSLSocketImplImplementation of the class OpenSSLSocketImpl based on OpenSSL.classOpenSSLSocketImplWrapperThis class wraps the SSL functionality over an existing connected socket.classSSLSocketImplSSLSocket implementation.classSSLSocketWrapperThis class wraps the SSL fuctionality over existing conneted socket.Methods in org.conscrypt that return Socket Modifier and Type Method Description SocketOpenSSLServerSocketImpl. accept()SocketSSLServerSocketImpl. accept()This method works according to the specification of implemented class.SocketOpenSSLSocketFactoryImpl. createSocket()SocketOpenSSLSocketFactoryImpl. createSocket(String host, int port)SocketOpenSSLSocketFactoryImpl. createSocket(String host, int port, InetAddress localHost, int localPort)SocketOpenSSLSocketFactoryImpl. createSocket(InetAddress host, int port)SocketOpenSSLSocketFactoryImpl. createSocket(InetAddress address, int port, InetAddress localAddress, int localPort)SocketOpenSSLSocketFactoryImpl. createSocket(Socket s, String host, int port, boolean autoClose)SocketSSLSocketFactoryImpl. createSocket()SocketSSLSocketFactoryImpl. createSocket(String host, int port)SocketSSLSocketFactoryImpl. createSocket(String host, int port, InetAddress localHost, int localPort)SocketSSLSocketFactoryImpl. createSocket(InetAddress host, int port)SocketSSLSocketFactoryImpl. createSocket(InetAddress address, int port, InetAddress localAddress, int localPort)SocketSSLSocketFactoryImpl. createSocket(Socket s, String host, int port, boolean autoClose)Methods in org.conscrypt with parameters of type Socket Modifier and Type Method Description StringKeyManagerImpl. chooseClientAlias(String[] keyTypes, Principal[] issuers, Socket socket)StringKeyManagerImpl. chooseServerAlias(String keyType, Principal[] issuers, Socket socket)SocketOpenSSLSocketFactoryImpl. createSocket(Socket s, String host, int port, boolean autoClose)SocketSSLSocketFactoryImpl. createSocket(Socket s, String host, int port, boolean autoClose)Constructors in org.conscrypt with parameters of type Socket Constructor Description OpenSSLSocketImpl(Socket socket, String host, int port, boolean autoClose, SSLParametersImpl sslParameters)Create an SSL socket that wraps another socket.OpenSSLSocketImplWrapper(Socket socket, String host, int port, boolean autoClose, SSLParametersImpl sslParameters)SSLSocketWrapper(Socket socket, String host, int port, boolean autoClose, SSLParametersImpl sslParameters)