Reputation: 2864
I want to create a simple chat application that doesn't use an explicit server. The main requirement is that the user can simultaneously chat with many friends (just like on Skype etc.). I do not mean a conference chat here, just multiple separate chat-windows.
Currently, I want only a LAN messaging application but I'd appreciate, if the design was easy to extend to Internet connections.
I wonder what design is appropriate for such an application.
TcpListener
(the implicit server) and multiple TcpClient
objects - one for each friend he/she is talking to.Kindest regards,
Upvotes: 3
Views: 5992
Reputation: 7419
You should see start with
how do i make my own P2P software?
P2P Communication - Proxy Listeners and Proxy Clients
Hope this proves good starting point
Happy coding
Upvotes: 3
Reputation: 116098
HttpListener
+ WebClient(or HttpWebRequest)
can provide you more tools for authentication/security.
Basic Authentication, Ntlm, Integrated Windows Authentication, https etc. and they are more firewall friendly.
Upvotes: 3