How to notify server that somebody connecting with server,
-
Hi everyone, I am developing a n application with asp.net 2.0 for provide our companys' customer. in home page there is one link like click here to live chat with admin. when user click on that link at that time it open new window and start the server and then client made a connection with the server with .connect method of tcpclient class. Its good and working file now i want to notify the server when client connect with the server, So server can accept the listner from client so, how can i come to know that some body has made a connection or connected with the server. I want to pass message from client to server and server to client.
-
Hi everyone, I am developing a n application with asp.net 2.0 for provide our companys' customer. in home page there is one link like click here to live chat with admin. when user click on that link at that time it open new window and start the server and then client made a connection with the server with .connect method of tcpclient class. Its good and working file now i want to notify the server when client connect with the server, So server can accept the listner from client so, how can i come to know that some body has made a connection or connected with the server. I want to pass message from client to server and server to client.
If you want to keep track of all the connected client sessions, I would use an IInstanceContextProvider to find out when a new connection is made (in PerSession mode), and then use an IInputSessionShutdown to find out when each client disconnects. And by holding onto the channel objects themselves inside your SessionData, you can give the admin app that has access to it the ability to Close() or Abort() the channels.
SSK.