monitor sockets

Roberto Ostinelli <>
Sun Mar 20 13:01:52 CET 2011


dear list,

is there a way to monitor the closing of a socket? i've been monitoring the
closing of sockets with the typical {tcp_closed, <Sock>} message received,
however what if you want to monitor the port from outside the process
actually performing the reading of the socket?

i've tried link/1 since the man pages state that it could be both a process
or a port, however to no avail.

any input welcome :)

cheers,

r.


More information about the erlang-questions mailing list