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 / How to communicate to python app?

Author
Message
sovsov
8
Years of Service
User Offline
Joined: 11th Nov 2015
Location:
Posted: 28th Sep 2016 02:32
Hello everyone! I have a fairly simple question, and that is how could I have a tier 1 AppGameKit 2.021 application on a PC communicate to a python application on another computer using sockets? I know a while ago a few other people have connected to C# apps figuring out the AppGameKit socket wrapper, but where is the documentation about the network protocols for AppGameKit? if there is one. Thank you in advance!
Markus
Valued Member
20
Years of Service
User Offline
Joined: 10th Apr 2004
Location: Germany
Posted: 28th Sep 2016 08:50
with sockets commands (agk v2) you can send any data, its a tcp connection at a free port.
tcp using a listenener which waiting for a connection.
the multiplayer commands used a own agk protokoll.
AGK (Steam) V2.0.20 : Windows 10 Pro 64 Bit : AMD (16.3.2) Radeon R7 265 : Mac mini OS X 10.10 (Yosemite)
Carharttguy
7
Years of Service
User Offline
Joined: 8th Jul 2016
Location: Belgium
Posted: 28th Sep 2016 09:03
Yes, this will work perfectly. Keep in mind that AppGameKit HTML5 uses websockets, so your server should be ready to accept those. (only if you're using HTML5 ofcourse.)
Markus
Valued Member
20
Years of Service
User Offline
Joined: 10th Apr 2004
Location: Germany
Posted: 28th Sep 2016 10:38
here is an example of low level usage with python.
https://www.tutorialspoint.com/python/python_networking.htm
AGK (Steam) V2.0.20 : Windows 10 Pro 64 Bit : AMD (16.3.2) Radeon R7 265 : Mac mini OS X 10.10 (Yosemite)
dfgwert
User Banned
Posted: 4th Oct 2016 07:52
thank you sir

Login to post a reply

Server time is: 2024-04-26 20:17:24
Your offset time is: 2024-04-26 20:17:24