Accepts an incoming connection from a client

Create and return a new socket to the client. May return null if not blocking and there's no waiting clients, or upon an interruption (whether blocking or not).

Require: not closed

Property definitions

socket $ TCPServer :: accept
	# Accepts an incoming connection from a client
	#
	# Create and return a new socket to the client. May return null if not
	# `blocking` and there's no waiting clients, or upon an interruption
	# (whether `blocking` or not).
	#
	# Require: not closed
	fun accept: nullable TCPStream
	do
		assert not closed
		var native = native.accept
		if native == null then return null
		return new TCPStream.server_side(native)
	end
lib/socket/socket.nit:263,2--276,4