You should have receive a notification that the connection has dropped
that's the nature of TCP!


-----Original Message-----
From: Petr Krenzelok [mailto:[EMAIL PROTECTED]]
Sent: 09 October 2001 09:23
To: [EMAIL PROTECTED]
Subject: [REBOL] Re: tcp port open?




Maarten Koopmans wrote:

> Hi,
>
> Is there a way to now if a tcp port is open on both sides. So that a
server
> (or client) can see whether or not the other side of the pipe is still
open?

I am not sure. Designing our camera we looked at Ethereal
(http://www.ethereal.org) packet monitor, and TCP communication is several
stages process of various ACK, SYN, RST, PSH, FIN type packets. There is no
real
"connection" on the network, just packets sent here and there. That is why
someone can watch your packets (sniff) and see what you are sending, if
connected to the same network. So, alive connection is just some state in
your
tcp stack on your side, irrelevant to other side of "connection". There is
also
known case of semi-connection - e.g. one side timeouts, and the other side
is
still able to send packets, which are really delivered, just not probably
processed.

So, theoretically, if opposite side sends you FIN or RST assigned packet,
you
should note it. This question is, however, for Holger. We have 'query
function
available, maybe Rebol somehow knows, if opposite side closed the
connection?

-pekr-

>
> Thanks,
>
> Maarten
> --
> To unsubscribe from this list, please send an email to
> [EMAIL PROTECTED] with "unsubscribe" in the
> subject, without the quotes.

-- 
To unsubscribe from this list, please send an email to
[EMAIL PROTECTED] with "unsubscribe" in the 
subject, without the quotes.


**********************************************************************
This email and any attachments may be confidential and the subject of
legal professional privilege.  Any disclosure, use, storage or copying
of this email without the consent of the sender is strictly prohibited.
Please notify the sender immediately if you are not the intended
recipient and then delete the email from your inbox and do not
disclose the contents to another person, use, copy or store the
information in any medium.
**********************************************************************



-- 
To unsubscribe from this list, please send an email to
[EMAIL PROTECTED] with "unsubscribe" in the 
subject, without the quotes.

Reply via email to