I am going to attempt to create a messaging service and wondered if anyone could help and point me in the right direction. I want to use TCP and the sockets api. I need to have 2 clients that will send messages to each other, but the messages will be relayed from a server so that it can store the messages and statistics.
Any ideas or pieces of code that will be useful? I haven't tried network programming as of yet.