Very good way to do it. That way you can define yourself a good, strict interface struct for sending data between the client and serverZer0XoL 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
How does video game networking work?
Moderator: Coders of Rage
- RyanPridgeon
- Chaos Rift Maniac
- Posts: 447
- Joined: Sun Sep 21, 2008 1:34 pm
- Current Project: "Triangle"
- Favorite Gaming Platforms: PC
- Programming Language of Choice: C/C++
- Location: UK
- Contact:
Re: How does video game networking work?
- Zer0XoL
- ES Beta Backer
- Posts: 54
- Joined: Fri Apr 24, 2009 1:18 pm
- Current Project: Zelda untitled multiplayer game
- Favorite Gaming Platforms: PC, GBA, N64
- Programming Language of Choice: C++, Lua
- Location: Sweden
- Contact:
Re: How does video game networking work?
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.RyanPridgeon wrote:Very good way to do it. That way you can define yourself a good, strict interface struct for sending data between the client and serverZer0XoL 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
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