Returns an array containing an enum of the events ready to be read

event_types : Combination of several event types to watch

timeout : Time in milliseconds before stopping listening for events on this socket

Property definitions

socket $ TCPStream :: pollin
	# Returns an array containing an enum of the events ready to be read
	#
	# event_types : Combination of several event types to watch
	#
	# timeout : Time in milliseconds before stopping listening for events on this socket
	private fun pollin(event_types: Array[NativeSocketPollValues], timeout: Int): Array[NativeSocketPollValues] do
		if closed then return new Array[NativeSocketPollValues]
		return native.socket_poll(new PollFD.from_poll_values(native.descriptor, event_types), timeout)
	end
lib/socket/socket.nit:120,2--128,4