public static class TcpConnection.DelegatingSocketWrapper extends Object implements TcpConnection.SocketWrapper
TcpConnection.SocketWrapper that delegates the all calls to the given
Socket.| Modifier and Type | Field and Description |
|---|---|
protected Socket |
delegate
All calls are directly delegated to this
Socket. |
| Constructor and Description |
|---|
DelegatingSocketWrapper(Socket delegate)
Creates a socket wrapper that delegates all calls to the given socket.
|
public DelegatingSocketWrapper(Socket delegate)
public void close()
throws IOException
TcpConnection.SocketWrapperSocket.close().close in interface TcpConnection.SocketWrapperIOExceptionpublic void connect(InetSocketAddress addr) throws IOException
TcpConnection.SocketWrapperSocket.connect(SocketAddress).connect in interface TcpConnection.SocketWrapperIOExceptionpublic void connect(InetSocketAddress addr, int connectTimeout) throws IOException
TcpConnection.SocketWrapperSocket.connect(SocketAddress, int).connect in interface TcpConnection.SocketWrapperIOExceptionpublic InputStream getInputStream() throws IOException
TcpConnection.SocketWrapperSocket.getInputStream().getInputStream in interface TcpConnection.SocketWrapperIOExceptionpublic SocketAddress getLocalSocketAddress()
TcpConnection.SocketWrapperSocket.getLocalSocketAddress().getLocalSocketAddress in interface TcpConnection.SocketWrapperpublic OutputStream getOutputStream() throws IOException
TcpConnection.SocketWrapperSocket.getOutputStream().getOutputStream in interface TcpConnection.SocketWrapperIOExceptionpublic SocketAddress getRemoteSocketAddress()
TcpConnection.SocketWrapperSocket.getRemoteSocketAddress().getRemoteSocketAddress in interface TcpConnection.SocketWrapperpublic boolean isClosed()
TcpConnection.SocketWrapperSocket.isClosed().isClosed in interface TcpConnection.SocketWrapperpublic boolean isConnected()
TcpConnection.SocketWrapperSocket.isConnected().isConnected in interface TcpConnection.SocketWrapperpublic void setKeepAlive(boolean keepAlive)
throws IOException
TcpConnection.SocketWrapperSocket.setKeepAlive(boolean).setKeepAlive in interface TcpConnection.SocketWrapperIOExceptionpublic void setReceiveBufferSize(int receiveBufferSize)
throws IOException
TcpConnection.SocketWrapperSocket.setReceiveBufferSize(int).setReceiveBufferSize in interface TcpConnection.SocketWrapperIOExceptionpublic void setSendBufferSize(int sendBufferSize)
throws IOException
TcpConnection.SocketWrapperSocket.setSendBufferSize(int).setSendBufferSize in interface TcpConnection.SocketWrapperIOExceptionpublic void setSoTimeout(int handshakeTimeout)
throws IOException
TcpConnection.SocketWrapperSocket.setSoTimeout(int).setSoTimeout in interface TcpConnection.SocketWrapperIOExceptionpublic void setTcpNoDelay(boolean tcpNoDelay)
throws IOException
TcpConnection.SocketWrapperSocket.setTcpNoDelay(boolean).setTcpNoDelay in interface TcpConnection.SocketWrapperIOExceptionCopyright © 2026. All rights reserved.