Protocol is named TCP, Transmission Control Protocol, see for more detail:
http://en.wikipedia.org/wiki/Transmission_Control_Protocol[
^].
It will work for your chat application. To get some ideas, look at my past answers.
This is a skeleton design of server with threads serving multiple remote sockets:
Multple clients from same port Number[
^].
You can use TCP on several different levels, see:
how i can send byte[] to other pc[
^],
Communication b/w two Windows applications on LAN.[
^].
With v.2.0, you can use them all up to classical remoting, inclusively. That is, WCF is not available, you would need v.3.5 or 4.0. For your task probably the most suitable approach is the one based on
TcpListener/TcpClient
.
—SA