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
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.
Posted: 26th Oct 2011 19:31
Thanks Paul,

I will try this and let you know.

Thanks
Posted: 26th Oct 2011 20:42
It is uesful.