| Modifier and Type | Field and Description |
|---|---|
| private static final Method | |
| private static final String | |
| private InetSocketAddress | |
| private static final Field | |
| private static final String | |
| private static final String | |
| private final HashMap | |
| private final String | |
| private static final Field | |
| private final Socket |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| protected void | |
| protected void | connect(String host, int port)
Overrides java. Connects this socket to the specified port on the named host. |
| protected void | connect(InetAddress address, int port)
Overrides java. Connects this socket to the specified port number on the specified host. |
| protected void | connect(SocketAddress endpoint, int timeout)
Overrides java. Connects this socket to the specified port number on the specified host. |
| private Socket | |
| private void | |
| protected InetAddress | getInetAddress()
Overrides java. Returns the value of this socket's |
| protected int | getPort()
Overrides java. Returns the value of this socket's |
| protected void | listen(int backlog)
Overrides java. Sets the maximum queue length for incoming connection indications
(a request to connect) to the |
| pack-priv void | |
| public void | setOption(int opt, Object val)
Overrides java. Implements java. Enable/disable the option specified by |
| doTunneling | back to summary |
|---|---|
| private static final Method doTunneling | |
| doTunnelingStr | back to summary |
|---|---|
| private static final String doTunnelingStr | |
| external_address | back to summary |
|---|---|
| private InetSocketAddress external_address | |
| httpField | back to summary |
|---|---|
| private static final Field httpField | |
| httpURLClazzStr | back to summary |
|---|---|
| private static final String httpURLClazzStr | |
| netClientClazzStr | back to summary |
|---|---|
| private static final String netClientClazzStr | |
| optionsMap | back to summary |
|---|---|
| private final HashMap<Integer, Object> optionsMap | |
| server | back to summary |
|---|---|
| private final String server | |
| serverSocketField | back to summary |
|---|---|
| private static final Field serverSocketField | |
| socket | back to summary |
|---|---|
| private final Socket socket | |
| HttpConnectSocketImpl | back to summary |
|---|---|
| pack-priv HttpConnectSocketImpl(Proxy proxy, SocketImpl delegate, Socket socket) | |
| accept | back to summary |
|---|---|
| protected void accept(SocketImpl s) Overrides java. Doc from java. Accepts a connection.
| |
| connect | back to summary |
|---|---|
| protected void connect(String host, int port) throws IOException Overrides java. Doc from java. Connects this socket to the specified port on the named host.
| |
| connect | back to summary |
|---|---|
| protected void connect(InetAddress address, int port) throws IOException Overrides java. Doc from java. Connects this socket to the specified port number on the specified host.
| |
| connect | back to summary |
|---|---|
| protected void connect(SocketAddress endpoint, int timeout) throws IOException Overrides java. Doc from java. Connects this socket to the specified port number on the specified host. A timeout of zero is interpreted as an infinite timeout. The connection will then block until established or an error occurs.
| |
| doTunnel | back to summary |
|---|---|
| private Socket doTunnel(String urlString, int connectTimeout) throws IOException | |
| doTunneling | back to summary |
|---|---|
| private void doTunneling(HttpURLConnection conn) throws IOException | |
| getInetAddress | back to summary |
|---|---|
| protected InetAddress getInetAddress() Overrides java. Doc from java. Returns the value of this socket's
| |
| getPort | back to summary |
|---|---|
| protected int getPort() Overrides java. Doc from java. Returns the value of this socket's
| |
| listen | back to summary |
|---|---|
| protected void listen(int backlog) Overrides java. Doc from java. Sets the maximum queue length for incoming connection indications
(a request to connect) to the
| |
| reset | back to summary |
|---|---|
| pack-priv void reset() Overrides java.
| |
| setOption | back to summary |
|---|---|
| public void setOption(int opt, Object val) throws SocketException Overrides java. Implements java. Doc from java. Enable/disable the option specified by SocketImpl s; ... s.setOption(SO_LINGER, Integer.valueOf(10)); // OK - set SO_LINGER w/ timeout of 10 sec. s.setOption(SO_LINGER, Double.valueOf(10)); // ERROR - expects java.lang.Integer Boolean:
s.setOption(TCP_NODELAY, Boolean.TRUE); // OK - enables TCP_NODELAY, a binary option Boolean#FALSE:
s.setOption(TCP_NODELAY, Boolean.FALSE); // OK - disables TCP_NODELAY s.setOption(SO_LINGER, Boolean.FALSE); // OK - disables SO_LINGER Boolean#FALSE implicitly enables it.
| |