bind

fun bind(hostname: String = "0.0.0.0", port: Int = 0, configure: SocketOptions.AcceptorOptions.() -> Unit = {}): ServerSocket

Bind server socket at port to listen to hostname.


fun bind(localAddress: SocketAddress? = null, configure: SocketOptions.AcceptorOptions.() -> Unit = {}): ServerSocket

Bind server socket to listen to localAddress.