Show differencesHistory of post edits
#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.