Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

AppGameKit Classic Chat / Chat server

Author
Message
Phaelax
DBPro Master
22
Years of Service
User Offline
Joined: 16th Apr 2003
Location: Metropia
Posted: 31st Dec 2024 21:31
This is a work in progress but thought I'd share these two scripts while they were still barebone. This is a very simple example of how to create a chat server and client using sockets. This server example will not send anything to the clients, only listen and display what it receives. The client will connect to the server and let you send a text-based message. More than likely I'll send byte arrays rather than rely on AGK's specific string function as that will allow me to create a more robust protocol for the chat service.

To test, simply compile the server then run the executable outside of AGK. You can then run the client code directly from the editor.


Server



Client
Tiled TMX Importer V.2
XML Parser V.2
Base64 Encoder/Decoder
Purple Token - Free online hi-score database
Legend of Zelda
Pixel-Perfect Collision

"I like offending people, because I think people who get offended should be offended." - Linus Torvalds

Login to post a reply

Server time is: 2025-05-09 01:17:46
Your offset time is: 2025-05-09 01:17:46