Jump to content

  • Log In with Google      Sign In   
  • Create Account

Awesome job so far everyone! Please give us your feedback on how our article efforts are going. We still need more finished articles for our May contest theme: Remake the Classics

#Actualwood_brian

Posted 01 August 2012 - 08:04 PM

Depending on how Player is defined that may not work.  It would probably be better to use a marshalling/serialization library.

#1wood_brian

Posted 01 August 2012 - 08:03 PM

i'm using TCP

currintly im sending messages with structs

struct ClientPacket
{
  Player p;
};


void Send()
{

ClientPacket packet;

packet.p = a;

send(conn,(char const *)&packet,sizeof(packet),0);

}


Depending on how Player is defined that may not work.  It would probably be better to use a marshalling/serialization library.

PARTNERS