tcp_select_from(-Term)

This is similar to tcp_select/1 (see ipc-tcp-trm-select1), but instead of reading the socket that has data available, it returns the term from(Socket), where Socket is socket to some other process. The other terms it may return are

as described in the section on tcp_select/1.

It is up to the caller to read from the stream associated with the socket file descriptor, Socket, by using tcp_input_stream/2 and then reading from that stream using the standard stream input predicates, as in

     ...,
     tcp_select_from(from(Socket)),
     tcp_input_stream(Socket, S),
     get0(S,X),
     ...