.NET Framework Bookmark and Share   
 index > Windows Communication Foundation > private caht using netpeertcp binding
 

private caht using netpeertcp binding

hi,
Iam exploring wcf.I have created a chat application using wcf in c#.net.It works properly but i want to add a feature where private chat between 2 clients must be allowed.When i send message all clients can view it.but what if i want to give a direct message to a particular client.Iam using netpeertcp.

According to the concept i think, i will have to create a new chat mesh between 2 clients required to pass message.I need to use pnrp tp resolve the addresses of clients so that i can identify the peer to chat with.

But i really dont knw how can i achieve this through code.iam new to wcf but know the concept as i went through number of msdn articles.how should i start the code?where should i write it?i just want a start n support so i can explore it further.

I really would be pleased n thankful if someone would help me in any way they can.
THANKS.
Mumtaz.

Mumtaz Surani
Surani
Hi Surani,
I think you have use call back contracts to achieve peer to peer to communication.
Try the below article(author is using netTcpPeerBinding)

http://www.codeproject.com/KB/WCF/Chat_application_using_WC.aspx
Suresh
SureshtheCTA

You can use google to search for other answers

Custom Search

More Threads

• Handling Fault exceptions in WCF
• Is it possible to provide file downloads through WCF/REST/POX?
• Question about WCF Gettingstarted sample
• How get accepted channel and remote address?
• WCF Server to simple Web client
• Help avoiding 10-minute-timeout
• How does one increase the timeout for replies in a client
• Why is myService.Close() causing socket connection was aborted exception?
• Implemeting IErrorHandler and ErrorBehaviorAttribute Vs AppDomain.CurrentDomain.UnhandledException
• how to determine who is calling the service?