createTcpSocket

fun createTcpSocket(type: SocketType, host: String, port: Int, secured: Boolean, certificates: TrustManager? = null): TcpStreamSocket