I am working on a project in which i am supposed to detect a TCP
connection crashed ?? How can i do this ??
How does peer communicating using TCP protocol can detect such crashes
?? is there a time out value for this ?? if yes how much is this value
?? What happens for established TCP connection on which nothing is
happening for a long time ?? How TCP gets to know that this is alive
and not dead ?? Is there something like
heart- beat or keep - alive thing ? if yes how does it work ?? I am
more interested in value of the timeout if there are any in these
situation ??
Thanks ,
Rohit
Good luck to ya..
First, you need to determine your definition of "connection crashed".
> How does peer communicating using TCP protocol can detect such crashes
> ??
It might not.
> is there a time out value for this ??
There can be, if required
> if yes how much is this value
> ??
It depends on what the application has requested, or is willing to
accept.
> What happens for established TCP connection on which nothing is
> happening for a long time ??
Nothing.
> How TCP gets to know that this is alive
> and not dead ?? Is there something like
> heart- beat or keep - alive thing ?
There can be, if you ask for it (and the underlying implementation
actually supports it)
> if yes how does it work ?? I am
> more interested in value of the timeout if there are any in these
> situation ??
You could use an Internet Search Engine and find out, or as another
poster suggested, read the set of RFCs that define how TCP/IP works.
Chris
> You could use an Internet Search Engine and find out, or as another
> poster suggested, read the set of RFCs that define how TCP/IP works.
All of which - including this - you may construe as an elaborate form of
"do your homework".