Archived

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

johnnyBravo

Question on direct play

Recommended Posts

johnnyBravo    100
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
Pipo DeClown    804
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

.lick

Share this post


Link to post
Share on other sites