• Advertisement
Sign in to follow this  

DirectPlay Message Sends twice.. help?

This topic is 4473 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

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
Advertisement
SOLVED!!!!!


i was supposed to pass in an Int, but i had to overload the senddata method - i needed one with the same sig..

bah! i got it fixed :)

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement