The purpose of
tcp_select/1 is to process connection requests, return
terms related to timing, and return in a round-robin fashion terms read from
connected processes. Term is one of:
tcp_schedule_wakeup/2was delivered (see ipc-tcp-tim-schedule_wakeup2).
tcp_watch_user(_,on)has been called. See
tcp_send/2(see ipc-tcp-trm-send2). This is the result of a read from the socket.
tcp_select/[1,2]is not interruptible by ^C. For this reason, calling
tcp_select/2with infinite timeout is probably a bad idea. If called with infinite timeout and if there are no open sockets, then
tcp_select/2will return immediately, indicating a timeout.