listen

abstract fun listen(block: (socket: TcpSocket) -> Unit)

Starts listening and calls block when on incoming connections