//flex table opened by JP

Click to See Complete Forum and Search --> : Help with winsock


matthew13l
12-20-2003, 11:46 PM
I'm trying to make a multiplayer version of my game (using VB6) so my brother and i can play it online. I just started learning winsock today, so i'm not an expert. I can make the game connect using winsock, but here's my question: How can I make the game be able to know what data it's receiving? For example, if it receives the "Player1.Left" value and the "Bullet.left" value, both values will get put together when they get received by the other person, and the game wont be able to know what the values are for. Can I assign names to the data I'm sending? I'm having a little trouble explaining my question, hopefully you know what I mean:(

Thanks
-Matt:t

Dark_Raver
12-22-2003, 02:50 AM
well, you can formulate the pocket of data that you get for the game.

lets say that the first 5 or so characters represent the data being sent. than you can simply have if statements figure out what the data is and the rest of the pocket could be the actual data formed in whatever way necessary for your game.

since it is your game and you are designing the internet comm for it, you are the one that decides how it works.

DR