[tpm] how to detect ICMP 'port unreachable'?

hanker at ifdsgroup.com hanker at ifdsgroup.com
Mon Mar 15 20:24:16 PDT 2010


AfaIk,
No err checking is avail on that level. I suggest go one or two levels up in osi and negotiate protocol (I assume you have picked one already?), eg: hello, wait for hello in  return, sending xxx bytes, wait for go ahead in return... So on.

Herman


----- Original Message -----
From: Fulko Hew [fulko.hew at gmail.com]
Sent: 03/15/2010 09:47 PM AST
To: TPM <tpm at to.pm.org>
Subject: [tpm] how to detect ICMP 'port unreachable'?



Does anyone know what I can do to detect an unreachable UDP port?

The application uses UDP to talk to the remote system.  Just a simple
send/receive pair.  But if the 'other end's application isn't there, ie,
no listener, then the remote host returns an ICMP message saying
the port is unreachable.  Trouble is that I can't seem to see that
as an error response to either the send, or receive or select (looking
at the 'error' bit list).

BTW.  I'm not allowed to send or receive any other messages,
only check the return values for the normal transactions, send(),
receive(), select(), or possibly check some status that might be
buried somewhere within the system.

Does anyone have any ideas?

Thanks
Fulko


-----------------------------------------
Please consider the environment before printing this email and any
attachments.

This e-mail and any attachments are intended only for the
individual or company to which it is addressed and may contain
information which is privileged, confidential and prohibited from
disclosure or unauthorized use under applicable law.  If you are
not the intended recipient of this e-mail, you are hereby notified
that any use, dissemination, or copying of this e-mail or the
information contained in this e-mail is strictly prohibited by the
sender.  If you have received this transmission in error, please
return the material received to the sender and delete all copies
from your system.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.pm.org/pipermail/toronto-pm/attachments/20100315/8b997074/attachment.html>
-------------- next part --------------
_______________________________________________
toronto-pm mailing list
toronto-pm at pm.org
http://mail.pm.org/mailman/listinfo/toronto-pm


-----------------------------------------
Please consider the environment before printing this email and any
attachments.

This e-mail and any attachments are intended only for the
individual or company to which it is addressed and may contain
information which is privileged, confidential and prohibited from
disclosure or unauthorized use under applicable law.  If you are
not the intended recipient of this e-mail, you are hereby notified
that any use, dissemination, or copying of this e-mail or the
information contained in this e-mail is strictly prohibited by the
sender.  If you have received this transmission in error, please
return the material received to the sender and delete all copies
from your system.


More information about the toronto-pm mailing list