I'm looking on information on how to even begin to write a program to simulate a chat room. Any ideas on where I can find examples or information??? in C or C++

thanks!!
L