bind
fun bind(
hostname: String = "0.0.0.0",
port: Int = 0,
configure: AcceptorOptions.() -> Unit = {}
): ServerSocket
fun bind(
localAddress: NetworkAddress? = null,
configure: AcceptorOptions.() -> Unit = {}
): ServerSocket
Bind server socket to listen to localAddress.