# Companion

object Companion

## Properties

DEFAULT_TIMEOUT
Link copied to clipboard
const val DEFAULT_TIMEOUT: Long = 5000

## Functions

createTcpSocket
Link copied to clipboard
fun createTcpSocket(type: SocketType, host: String, port: Int, secured: Boolean, timeout: Long, certificates: TrustManager? = null): TcpStreamSocket
createUdpSocket
Link copied to clipboard
fun createUdpSocket(type: SocketType, host: String, port: Int, timeout: Long, sourcePort: Int? = null, receiveSize: Int? = null, udpType: UdpType = UdpType.UNICAST): UdpStreamSocket