public static interface TcpConnection.SocketFactory
TcpConnection.SocketWrapper implementations to allow usage of custom
Sockets (or anything that can be abstracted as input output stream).| Modifier and Type | Method and Description |
|---|---|
TcpConnection.SocketWrapper |
createSocket(TcpConnection tcpConnection)
Return a
TcpConnection.SocketWrapper that is suitable for the given TcpConnection. |
TcpConnection.SocketWrapper createSocket(TcpConnection tcpConnection) throws IOException
TcpConnection.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.IOExceptionCopyright © 2026. All rights reserved.