Jump to content
SubSpace Forum Network

Recommended Posts

Posted
My packet:
0 0x1 0 0 0xd7 0xff 0xff 0xff

I don't get any reply from the server and I'm thinking I might have inderecly changed something in my connect request packet.

Posted

Are you sending in little-endian byte order? to check you could send the last short packet seperatly, as 01 00

 

so it would be like:

packet.type=0x00;

packet.subtype=0x01;

packet.key=-(rand() % 0x7FFFFFFF);

packet.version1=0x01;

packet.version2=0x00;

Posted
eek! I found what was wrong! Since I thought the #pragma pack(1) only affected the size of the structs - I had removed it. Putting it right back in solved the problem.
Guest
This topic is now closed to further replies.
×
×
  • Create New...