Development:Network:process trade ship
From Ghoulwiki
Revision as of 22:10, 17 June 2012 by Ghoulsblade (talk | contribs)
example packetlog
packetlog by wireshark
// buy ship and die // peer0_0 = client > server char peer0_0[] = { 0x00, 0x00, 0x00, 0x22, 0x01, 0x00, 0x00, 0x00 }; char peer0_1[] = { 0x34, 0x72, 0x01, 0x98, 0x79, 0x31, 0x5f, 0xdd, 0x00, 0x00, 0x00, 0x12, 0x00, 0x00, 0x00, 0x00, 0x21, 0xbc, 0x00, 0x0c, 0x48, 0x79, 0x65, 0x6e, 0x61, 0x2e, 0x68, 0x75, 0x6e, 0x74, 0x65, 0x72, 0xbb, 0x01 }; char peer1_0[] = { 0x00, 0x00, 0x00, 0x10, 0x01, 0x00, 0xd6, 0x08 }; char peer1_1[] = { 0x2c, 0x54, 0x01, 0x98, 0x79, 0x31, 0x60, 0x39, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x30, 0x00, 0x00, 0x00, 0x00, 0x10, 0x01, 0x00, 0xd6, 0x08, 0x1b, 0x54, 0x01, 0x98, 0x79, 0x31, 0x60, 0x39, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x65, 0x6d };
-- packetlogs/buy-ship-die.c Packet({from=client,cmd=CMD_SHIPDEALER,head={{len=34,pri=1,flags=0x0},{cmd=52,serial=408,datalen=18,flags=0x0}}}) Packet({from=server,cmd=CMD_SAVEACCOUNTS,head={{len=16,pri=1,flags=0xd6},{cmd=44,serial=408,datalen=0,flags=0x0}}}) Packet({from=server,cmd=CMD_KILL,head={{len=16,pri=1,flags=0xd6},{cmd=27,serial=408,datalen=0,flags=0x0}}})
-- packetlogs/respawn-and-undock.c Packet({from=client,cmd=CMD_RESPAWN,head={{len=16,pri=1,flags=0x0},{cmd=16,serial=0,datalen=0,flags=0x0}}}) Packet({from=server,cmd=CMD_ADDEDYOU,head={{len=67,pri=1,flags=0xd6},{cmd=15,serial=456,datalen=51,flags=0x0}}}) Packet({from=server,cmd=CMD_ENTERCLIENT,head={{len=9905,pri=1,flags=0xd6},{cmd=13,serial=0,datalen=9889,flags=0x0}}}) Packet({from=server,cmd=CMD_SNAPCARGO,head={{len=263,pri=1,flags=0xd6},{cmd=40,serial=0,datalen=247,flags=0x0}}}) Packet({from=server,cmd=CMD_CREDITS,head={{len=21,pri=1,flags=0xd6},{cmd=42,serial=456,datalen=5,flags=0x0}}}) Packet({from=server,cmd=CMD_SNAPCARGO,head={{len=37368,pri=1,flags=0xd6},{cmd=40,serial=0,datalen=37352,flags=0x0}}}) Packet({from=server,cmd=CMD_DOCK,head={{len=25,pri=1,flags=0xd6},{cmd=38,serial=456,datalen=9,flags=0x0}}}) Packet({from=server,cmd=CMD_TXTMESSAGE,head={{len=59,pri=1,flags=0xd6},{cmd=33,serial=0,datalen=43,flags=0x0}}}) Packet({from=server,cmd=CMD_SAVEDATA,head={{len=71,pri=1,flags=0xd6},{cmd=49,serial=0,datalen=55,flags=0x0}}}) Packet({from=server,cmd=CMD_SAVEDATA,head={{len=278,pri=1,flags=0xd6},{cmd=49,serial=0,datalen=262,flags=0x0}}}) ... dozens of CMD_SAVEDATA ... Packet({from=server,cmd=CMD_SAVEDATA,head={{len=32,pri=1,flags=0xd6},{cmd=49,serial=0,datalen=16,flags=0x0}}}) Packet({from=server,cmd=CMD_CARGOUPGRADE,head={{len=66,pri=1,flags=0xd6},{cmd=41,serial=456,datalen=50,flags=0x0}}}) Packet({from=server,cmd=CMD_CARGOUPGRADE,head={{len=66,pri=1,flags=0xd6},{cmd=41,serial=456,datalen=50,flags=0x0}}}) Packet({from=server,cmd=CMD_CARGOUPGRADE,head={{len=66,pri=1,flags=0xd6},{cmd=41,serial=456,datalen=50,flags=0x0}}}) Packet({from=server,cmd=CMD_CARGOUPGRADE,head={{len=66,pri=1,flags=0xd6},{cmd=41,serial=456,datalen=50,flags=0x0}}}) Packet({from=server,cmd=CMD_CARGOUPGRADE,head={{len=66,pri=1,flags=0xd6},{cmd=41,serial=456,datalen=50,flags=0x0}}}) Packet({from=server,cmd=CMD_CARGOUPGRADE,head={{len=66,pri=1,flags=0xd6},{cmd=41,serial=456,datalen=50,flags=0x0}}}) Packet({from=server,cmd=CMD_CARGOUPGRADE,head={{len=66,pri=1,flags=0xd6},{cmd=41,serial=456,datalen=50,flags=0x0}}}) Packet({from=server,cmd=CMD_CARGOUPGRADE,head={{len=66,pri=1,flags=0xd6},{cmd=41,serial=456,datalen=50,flags=0x0}}}) Packet({from=client,cmd=CMD_CUSTOM,head={{len=46,pri=1,flags=0x0},{cmd=51,serial=456,datalen=30,flags=0x0}}}) Packet({from=server,cmd=CMD_CARGOUPGRADE,head={{len=66,pri=1,flags=0xd6},{cmd=41,serial=456,datalen=50,flags=0x0}}}) Packet({from=server,cmd=CMD_CARGOUPGRADE,head={{len=66,pri=1,flags=0xd6},{cmd=41,serial=456,datalen=50,flags=0x0}}}) Packet({from=server,cmd=CMD_CARGOUPGRADE,head={{len=66,pri=1,flags=0xd6},{cmd=41,serial=456,datalen=50,flags=0x0}}}) Packet({from=server,cmd=CMD_CARGOUPGRADE,head={{len=66,pri=1,flags=0xd6},{cmd=41,serial=456,datalen=50,flags=0x0}}}) Packet({from=server,cmd=CMD_CUSTOM,head={{len=44,pri=1,flags=0xd6},{cmd=51,serial=456,datalen=28,flags=0x0}}}) Packet({from=client,cmd=CMD_CUSTOM,head={{len=60,pri=1,flags=0x0},{cmd=51,serial=456,datalen=44,flags=0x0}}}) Packet({from=server,cmd=CMD_CUSTOM,head={{len=550,pri=1,flags=0xd6},{cmd=51,serial=456,datalen=534,flags=0x0}}}) Packet({from=server,cmd=CMD_CUSTOM,head={{len=94,pri=1,flags=0xd6},{cmd=51,serial=456,datalen=78,flags=0x0}}}) Packet({from=client,cmd=CMD_UNDOCK,head={{len=20,pri=1,flags=0x0},{cmd=39,serial=456,datalen=4,flags=0x0}}}) Packet({from=server,cmd=CMD_SAVEDATA,head={{len=45,pri=1,flags=0xd6},{cmd=49,serial=0,datalen=29,flags=0x0}}}) Packet({from=server,cmd=CMD_SAVEDATA,head={{len=49,pri=1,flags=0xd6},{cmd=49,serial=0,datalen=33,flags=0x0}}}) Packet({from=server,cmd=CMD_UNDOCK,head={{len=20,pri=1,flags=0xd6},{cmd=39,serial=456,datalen=4,flags=0x0}}}) Packet({from=server,cmd=CMD_POSUPDATE,head={{len=104,pri=1,flags=0xd6},{cmd=17,serial=456,datalen=88,flags=0x0}}}) Packet({from=server,cmd=CMD_SAVEDATA,head={{len=41,pri=1,flags=0xd6},{cmd=49,serial=0,datalen=25,flags=0x0}}}) Packet({from=server,cmd=CMD_SAVEDATA,head={{len=48,pri=1,flags=0xd6},{cmd=49,serial=0,datalen=32,flags=0x0}}}) Packet({from=server,cmd=CMD_SAVEDATA,head={{len=40,pri=1,flags=0xd6},{cmd=49,serial=0,datalen=24,flags=0x0}}}) Packet({from=server,cmd=CMD_SAVEDATA,head={{len=75,pri=1,flags=0xd6},{cmd=49,serial=0,datalen=59,flags=0x0}}}) Packet({from=client,cmd=CMD_TARGET,head={{len=20,pri=1,flags=0x0},{cmd=22,serial=456,datalen=4,flags=0x0}}}) Packet({from=client,cmd=CMD_TARGET,head={{len=20,pri=1,flags=0x0},{cmd=22,serial=456,datalen=4,flags=0x0}}}) Packet({from=client,cmd=CMD_TARGET,head={{len=20,pri=1,flags=0xb2},{cmd=22,serial=456,datalen=4,flags=0x0}}}) Packet({from=client,cmd=CMD_TARGET,head={{len=20,pri=1,flags=0xb2},{cmd=22,serial=456,datalen=4,flags=0x0}}}) Packet({from=client,cmd=CMD_TARGET,head={{len=20,pri=1,flags=0x0},{cmd=22,serial=456,datalen=4,flags=0x0}}}) Packet({from=client,cmd=CMD_TARGET,head={{len=20,pri=1,flags=0x0},{cmd=22,serial=456,datalen=4,flags=0x0}}}) Packet({from=client,cmd=CMD_TARGET,head={{len=20,pri=1,flags=0x0},{cmd=22,serial=456,datalen=4,flags=0x0}}})