public static class TcpConnection.DefaultSocketFactory extends Object implements TcpConnection.SocketFactory
TcpConnection.SocketFactory that TcpConnection uses by default. The current
implementation creates TcpConnection.DelegatingSocketWrapper passing in new Socket().| Constructor and Description |
|---|
DefaultSocketFactory()
Creates a new
TcpConnection.DefaultSocketFactory. |
| Modifier and Type | Method and Description |
|---|---|
TcpConnection.SocketWrapper |
createSocket(TcpConnection tcpConnection)
Return a
TcpConnection.SocketWrapper that is suitable for the given TcpConnection. |
public DefaultSocketFactory()
TcpConnection.DefaultSocketFactory.public TcpConnection.SocketWrapper createSocket(TcpConnection tcpConnection)
TcpConnection.SocketFactoryTcpConnection.SocketWrapper that is suitable for the given TcpConnection. SDK
expects the Socket to be in equal state as it would be after invoking constructor
Socket(). However a custom TcpConnection.SocketWrapper implementation can ignore
some calls made to it, as long as it behaves identically otherwise.createSocket in interface TcpConnection.SocketFactoryCopyright © 2026. All rights reserved.