I've been experimenting with sockets lately, and wanted to build something, but it may already exist. I want a system utilizing the TServerSocket and TClientSocket (Winsocks) with a simple packet structure and login system. I've started something similar already, logging into the server, acquiring a session ID, relaying packets from one client to the other through the server, etc. However it's horror trying to manage all the data going in and out, encoding and decoding it. There must be a ready-made system already out there just for managing login session using sockets. Any ideas?