How does video game networking work?

Whether you're a newbie or an experienced programmer, any questions, help, or just talk of any language will be welcomed here.

Moderator: Coders of Rage

User avatar
RyanPridgeon
Chaos Rift Maniac
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?

Post 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 :)
Ryan Pridgeon
C, C++, C#, Java, ActionScript 3, HaXe, PHP, VB.Net, Pascal
Music | Blog
User avatar
Zer0XoL
ES Beta Backer
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?

Post 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
Image
Im Blue
Post Reply