Hi Andrea.
> I'd like to know if there is a way to know if one of the sides of a
TCP
> connection is down without sending any message, using some API (in
UNIX)
It depends what you mean by "without sending any message". If you mean
from the application (so that you don't have to have a new message that
the remote will understand), then turn on TCP keepalives. A message is
sent, but it is sent by the stack and hidden from the apps.
For more details, search for "+so_keepalive +schefter" in google
groups.
Regards,
Steve
------------------------------------------------------------------------
Steve Schefter phone: +1 705 725 9999 x26
The Software Group Limited fax: +1 705 725 9666
642 Welham Road,
Barrie, Ontario CANADA L4N 9A1 Web:
www.wanware.com