tcp_connected(?Socket,?PassiveSocket)

A server process can use this predicate to identify which active connections are associated with which listeners. This can be useful if a server process establishes multiple listeners, listening on different ports simultaneously.