Connection

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard
Occurs when the physical connection is established.
Link copied to clipboard
Occurs when the physical connection is broken.
Link copied to clipboard
Occurs when a net message is received over the network.

Functions

Link copied to clipboard
fun connect(endPoint: InetSocketAddress)
abstract fun connect(endPoint: InetSocketAddress, timeout: Int)
Connects to the specified end point.
Link copied to clipboard
abstract fun disconnect()
Disconnects this instance.
Link copied to clipboard
Link copied to clipboard
abstract fun getLocalIP(): InetAddress
Gets the local IP.
Link copied to clipboard
Link copied to clipboard
abstract fun send(data: Array<Byte>)
Sends the specified data packet.