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 / Socket use in Tier 2 games

Author
Message
luckyboy
13
Years of Service
User Offline
Joined: 26th Oct 2011
Location:
Posted: 26th Oct 2011 15:52
Can i use pure c++ socket in Tier 2 games?
Any Tier 2 games sample doing this.
I don't want use the builtin AppGameKit network feature since i have my own multiplayer server.

Thanks
Paul Johnston
TGC Developer
22
Years of Service
User Offline
Joined: 16th Nov 2002
Location: United Kingdom
Posted: 26th Oct 2011 16:25
You could, but it would be different for every platform. Since you are in tier 2 you have access to the undocumented AGKSocket class, which wraps the various platform sockets into a cross platform interface. If you look in WindowsNetworking.h you will find the functions it contains, SendData() and RecvData() are exact copies of send() and recv(). One word of warning, the send commands do not send any data until Flush() is called, or the buffer reaches 1400 bytes.
luckyboy
13
Years of Service
User Offline
Joined: 26th Oct 2011
Location:
Posted: 26th Oct 2011 19:31
Thanks Paul,

I will try this and let you know.

Thanks
halley
13
Years of Service
User Offline
Joined: 27th Apr 2011
Location: China
Posted: 26th Oct 2011 20:42
It is uesful.

give my best

Login to post a reply

Server time is: 2024-11-22 10:14:39
Your offset time is: 2024-11-22 10:14:39