Page 2 of 2
Re: How does video game networking work?
Posted: Sun Jul 04, 2010 12:28 pm
by RyanPridgeon
Zer0XoL wrote:Just a little kind of offtopic note, ive managed to use placement new on my own structs and send them over the network, i dont know if this is a new usage, but it works and is simple, idk if its fast or secure, it stores the new struct in a char array buffer and then it sends it and then it recievs and then you can get it out of the buffer again
Very good way to do it. That way you can define yourself a good, strict interface struct for sending data between the client and server
Re: How does video game networking work?
Posted: Sun Jul 04, 2010 4:49 pm
by Zer0XoL
RyanPridgeon wrote:Zer0XoL wrote:Just a little kind of offtopic note, ive managed to use placement new on my own structs and send them over the network, i dont know if this is a new usage, but it works and is simple, idk if its fast or secure, it stores the new struct in a char array buffer and then it sends it and then it recievs and then you can get it out of the buffer again
Very good way to do it. That way you can define yourself a good, strict interface struct for sending data between the client and server
thank you
btw, i dont really know how to do networking stuff ive tried reading but its hard to follow, i just want to know how to make a server and a client.
i think i used your chat example to make a multiplayer game, it kind of worked but was buggy, so i was wondering if you could make a tutorial or something on winsock/sock programming?(you dont need to) or at least give me some links you learned from or something :P