TcpClient and Socket class

  • Thread starter Thread starter Bjoern
  • Start date Start date
B

Bjoern

Hi all,
how can i see if the TCPClient or Socket class really sent a stream
and the server has really received the message? How can i see whether
the connection between Client and Server(i'm the client) is still
online?
Thx
 
"See" in what sense? From a second program or from the code that's sending
the message? The nature of TCP forces delivery to be completed or for the
socket to detect that the connection is broken, but there's no direct way to
tell that *now* we just received the acknowledgement from the receiver. You
have to treat the socket as a pipe; you pour your data into it and, until it
backs up, you have to assume that it's being delivered. If you need
something more than that, you'll have to invent it yourself based on
datagrams.

Paul T.
 
Back
Top