[erlang-questions] Finding closed socket

Surindar Sivanesan surindar.shanthi@REDACTED
Mon Oct 16 15:12:15 CEST 2006


Dear all,

I have client server application.
If network cable is unplugged at the client PC, the server is not able to
detect the communication breakage.
I have given
gen_tcp:listen(Port,[{active,false},{packet,0},{keepalive,true}])  in the
server.
If any option is available to detect it at the server end, it will be very
useful to me.
Thanks in advance!
-- 
with regards,
S.Surindar
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20061016/406172d3/attachment.htm>


More information about the erlang-questions mailing list