Raj Prathap wrote:
My doubt is is there any way to send the notification from the server to all the clients? and also can the server select the client to which it has to send the notification.
It's not clear to me what you mean by "chat server" and "notification". When someone talks about a chat server to me I interpret it as the MSDN sample CHATTER/CHATSRVR[^], but the notification you're talking about feels like a callback on a source interface from a COM server to its client (AKA a COM event). If the notification is a COM event, the answer is that the server keeps track of its clients in a container; a list, vector or array. When an event is generated the container is walked through notifying all registered clients. If you want to skip one of the clients you have to write your own code to do that. A small thought: You don't have to use the connection point concept, in fact Don Box recommends not to use it in his book Effective COM[^]. You can create your own Advise() method and put whatever functionality in it that you want and/or need. But if you're new to this it could be a good starting point using the connection point concept to understand how it works.
"It's supposed to be hard, otherwise anybody could do it!" - selfquote
"High speed never compensates for wrong direction!" - unknown