Clients log on and off??

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
 
C

CJ Taylor

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top