Clients log on and off??

  • Thread starter Thread starter M O J O
  • Start date Start date
M

M O J O

Hi,

I'm writing a server/client application.

The server must know when the clients log on and when they log off, even
though a client app crashes, the server need to be informed that the
client has logged off (is no longer available).

What is the best way to do this?

I thought about MSMQ, but here the server are not told if client app
crashes.

Any idea???

Thanks!!!

M O J O
 
A simple way would be to use something like a TCP Stream. Or a winsock
stream whatever you want to call it. In which case you can monitor the
connection on both the client and the server side and on the event the
connection dies, the server knows this.

Check out the System.Net namespace, particularly creating TCP Streams.

CJ
 
Back
Top