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 / C++ (Tier2) equivalent code for Network communication.

Author
Message
wanting2learn
12
Years of Service
User Offline
Joined: 18th Jul 2011
Location:
Posted: 20th Jul 2011 12:53
After having looked at the example code Asteriod Blast I see that the network communication code is quite simple:
e.g.
msg = CreateNetworkMessage()
AddNetworkMessageString(msg, optInitials$)
SendNetworkMessage(iNetID, sid, msg)

When I purchase the AppGameKit I will be using C++ to code my project in.

What would the equivalent C++ code for the above be?
I'm interested to see how much more complicated it will be.

Thanks
Paul Johnston
TGC Developer
21
Years of Service
User Offline
Joined: 16th Nov 2002
Location: United Kingdom
Posted: 20th Jul 2011 19:11
You get the same commands in the C++ version as in the BASIC version, so you can use exactly the same process for sending messages. It might look something like this

Zdaxxy
21
Years of Service
User Offline
Joined: 9th Sep 2002
Location:
Posted: 18th Aug 2011 23:24
But what if you want to write your own server that handles all the AppGameKit clients?

Is there an API for that? Supporting documentation? Etc..

Thanks
LeeBamber
TGC Lead Developer
24
Years of Service
User Offline
Joined: 21st Jan 2000
Location: England
Posted: 19th Aug 2011 04:59
We have included a guide in the next build which talks about setting up a simple server written in AppGameKit commands. It was authored by an AppGameKit beta tester who had the opportunity to create a game during the beta process, which includes a high score system that sits on his server

I drink tea, and in my spare time I write software.

Login to post a reply

Server time is: 2024-03-28 12:33:17
Your offset time is: 2024-03-28 12:33:17