Jump to content
  • Advertisement


This topic is now archived and is closed to further replies.


Question on direct play

This topic is 5436 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I use to use winsock when i used vb for networking etc. For games i use to send long strings of code eg #B09304900432 where # would be the start, B would stand for bullet, xxx yyy angle. Then i would decode the line on the other end. Im wondering how directplay works. Like from a beginners point of view, nothing technical. Like somewhere i saw things like player.x .y etc for directplay. Does directplay work like you have a structure or something and it sends the data straight to the values, like you dont have to manually decode the data recieved/code data send etc.

Share this post

Link to post
Share on other sites
In DP you can do the same thing, sending strings around the network. It depends on the (maybe) size of the structures and variables and the coding-style.
I think the best for a C++ programmer would be sending a structure through the network. You can do this by typecasting in the Send() function =)

BTW, in WS you can also typecast a struct. Right? :S


Share this post

Link to post
Share on other sites

  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!