Sign in to follow this  
DiscoPat

DirectPlay Message Sends twice.. help?

Recommended Posts

DiscoPat    122
Hi Guys, I'm developing a network battleship game, and for some reason, when i send a message it sends twice: public: System::Void SendData(int type, int recipient, String *mess) { NetworkPacket *packet = new NetworkPacket(); packet->Write(Convert::ToString(type)); packet->Write(mess); Microsoft::DirectX::DirectPlay::SendFlags flags; flags = SendFlags::Sync,SendFlags::NoLoopback; m_Server->SendTo((int) recipient, packet, 0, flags); } I have other very similar types of SendData Methods (only difference is their parameters), which work ok. Does anyone know why this may be? Thanks, Pat

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this