bind

fun bind(address: InetSocketAddress)

Binds the socket to a local address.

See Also: srt_bind

Parameters

address

the InetSocketAddress to bind to

Throws

if bind has failed


fun bind(address: String, port: Int)

Binds the socket to a local address.

See Also: srt_bind

Parameters

address

the address to bind to

port

the port to bind to

Throws

if bind has failed


fun bind(address: InetAddress, port: Int)

Binds the socket to a local address.

See Also: srt_bind

Parameters

address

the InetAddress to bind to

port

the port to bind to

Throws

if bind has failed