Posted: Sun Aug 06, 2006 12:09 am Post subject: UDP Chatroom
A quick and dirty Windows console-based chatroom with UDP. Useful if you're on a network that bans conventional instant messenging protocols.
1. Compile. Make sure you have a recent version of Windows.
2. Run the server on one computer
3. Run the client on other computers. Connect to server computer by entering its IP address and the port that the server is running on (UDP 12345)
4. Type stuff. Press 'enter' to send messages. Message '/exit' to log off, '/close' to shutdown the server.
- The program doesn't handle the error-prone nature of UDP very well: it occasionally crashes when multiple users send messages at the exact same time.
- No *nix support. The program is compiled with the Winsock library and uses Windows API console functions to change cursor position, text colour, etc.
- No permissions system: any connected user can shutdown the server.
- Current method of relaying messages and keeping track of connected clients is stupid and ridiculous.
Will post detailed instructions and code explanation at later time.