Difference between revisions of "Development:Network:process dock"

From Ghoulwiki
Jump to: navigation, search
 
 
Line 4: Line 4:
 
=== packetlog by wireshark ===
 
=== packetlog by wireshark ===
 
see [[Development:Network:packetlog_dock]]
 
see [[Development:Network:packetlog_dock]]
 
=== packetlog by proxy (incomplete) ===
 
for some reason docking never finished, probably missing udp position transmission
 
  
 
<pre>
 
<pre>
// trying to dock to atlantis in mmo, but doesn't work, nothing happens
+
-- packetlogs/dock.c
// point-of-view = server, so  recv=data sent from client to server,   send=data sent from server to client
+
Packet({from=client,cmd=CMD_TARGET,head={{len=20,pri=1,flags=0x0},{cmd=22,serial=129,datalen=4,flags=0x0}}})
// warning : display of packets above 512bytes are shortened to 128 bytes at beginning and end, and ... in between
+
Packet({from=client,cmd=CMD_DOCK,head={{len=20,pri=1,flags=0x0},{cmd=38,serial=129,datalen=4,flags=0x0}}})
TCP(6777,'vega'):Recv(Data(8,{0x00,0x00,0x00,0x14,0x01,0x00,0x00,0x00},"????????"))
+
Packet({from=client,cmd=CMD_DOCK,head={{len=20,pri=1,flags=0xb2},{cmd=38,serial=129,datalen=4,flags=0x0}}})
TCP(6777,'vega'):Recv(Data(28,{0x26,0x00,0x01,0xDD,0x77,0x4B,0xAB,0x2C,0x00,0x00,0x00,0x04,0x00,0x00,0x00,0x00,0xBD,0xBC,0x01,0xB0,0x00,0x00,0x00,0x14,0x01,0x00,0x00,0x00},"&???wK?,????????????????????"))
+
Packet({from=client,cmd=CMD_DOCK,head={{len=20,pri=1,flags=0x0},{cmd=38,serial=129,datalen=4,flags=0x0}}})
TCP(6777,'vega'):Recv(Data(20,{0x26,0x00,0x01,0xDD,0x77,0x4B,0xAB,0x2C,0x00,0x00,0x00,0x04,0x00,0x00,0x00,0x00,0xBD,0xBC,0x01,0xB0},"&???wK?,????????????"))
+
Packet({from=server,cmd=CMD_DOCK,head={{len=25,pri=1,flags=0x7a},{cmd=38,serial=129,datalen=9,flags=0x0}}})
 
+
Packet({from=server,cmd=CMD_SAVEDATA,head={{len=45,pri=1,flags=0x7a},{cmd=49,serial=0,datalen=29,flags=0x0}}})
 
+
Packet({from=server,cmd=CMD_SAVEDATA,head={{len=54,pri=1,flags=0x7a},{cmd=49,serial=0,datalen=38,flags=0x0}}})
 
+
Packet({from=server,cmd=CMD_SAVEDATA,head={{len=67,pri=1,flags=0x7a},{cmd=49,serial=0,datalen=51,flags=0x0}}})
 
+
Packet({from=server,cmd=CMD_SAVEDATA,head={{len=220,pri=1,flags=0x7a},{cmd=49,serial=0,datalen=204,flags=0x0}}})
// docking at plainfield station :
+
.... dozens of CMD_SAVEDATA ....
 
+
Packet({from=server,cmd=CMD_SAVEDATA,head={{len=32,pri=1,flags=0x7a},{cmd=49,serial=0,datalen=16,flags=0x0}}})
// first pressing d: (green docking slot markers appear)
+
Packet({from=client,cmd=CMD_CUSTOM,head={{len=46,pri=1,flags=0x0},{cmd=51,serial=129,datalen=30,flags=0x0}}})
TCP(6777,'vega'):Recv(Data(28,{0x00,0x00,0x00,0x14,0x01,0x00,0x00,0x00,0x26,0x00,0x01,0xDD,0x77,0x6A,0x1A,0xCA,0x00,0x00,0x00,0x04,0x00,0x00,0x00,0x00,0xBD,0xBC,0x01,0xD1},"????????&???wj??????????????"))
+
Packet({from=server,cmd=CMD_CUSTOM,head={{len=44,pri=1,flags=0x7a},{cmd=51,serial=129,datalen=28,flags=0x0}}})
 
+
Packet({from=client,cmd=CMD_CUSTOM,head={{len=59,pri=1,flags=0x0},{cmd=51,serial=129,datalen=43,flags=0x0}}})
// second pressing d when in docking marker : nothing happens
+
Packet({from=server,cmd=CMD_CUSTOM,head={{len=38,pri=1,flags=0x7a},{cmd=51,serial=129,datalen=22,flags=0x0}}})
TCP(6777,'vega'):Recv(Data(8,{0x00,0x00,0x00,0x14,0x01,0x00,0x00,0x00},"????????"))
 
TCP(6777,'vega'):Recv(Data(20,{0x26,0x00,0x01,0xDD,0x77,0x6B,0x70,0x04,0x00,0x00,0x00,0x04,0x00,0x00,0x00,0x00,0xBD,0xBC,0x01,0xD1},"&???wkp?????????????"))
 
TCP(6777,'vega'):Recv(Data(8,{0x00,0x00,0x00,0x14,0x01,0x00,0x00,0x00},"????????"))
 
TCP(6777,'vega'):Recv(Data(20,{0x26,0x00,0x01,0xDD,0x77,0x6B,0x70,0x04,0x00,0x00,0x00,0x04,0x00,0x00,0x00,0x00,0xBD,0xBC,0x01,0xD1},"&???wkp?????????????"))
 
 
 
 
 
 
</pre>
 
</pre>

Latest revision as of 20:36, 17 June 2012

example packetlog

packetlog by wireshark

see Development:Network:packetlog_dock

-- packetlogs/dock.c
Packet({from=client,cmd=CMD_TARGET,head={{len=20,pri=1,flags=0x0},{cmd=22,serial=129,datalen=4,flags=0x0}}})
Packet({from=client,cmd=CMD_DOCK,head={{len=20,pri=1,flags=0x0},{cmd=38,serial=129,datalen=4,flags=0x0}}})
Packet({from=client,cmd=CMD_DOCK,head={{len=20,pri=1,flags=0xb2},{cmd=38,serial=129,datalen=4,flags=0x0}}})
Packet({from=client,cmd=CMD_DOCK,head={{len=20,pri=1,flags=0x0},{cmd=38,serial=129,datalen=4,flags=0x0}}})
Packet({from=server,cmd=CMD_DOCK,head={{len=25,pri=1,flags=0x7a},{cmd=38,serial=129,datalen=9,flags=0x0}}})
Packet({from=server,cmd=CMD_SAVEDATA,head={{len=45,pri=1,flags=0x7a},{cmd=49,serial=0,datalen=29,flags=0x0}}})
Packet({from=server,cmd=CMD_SAVEDATA,head={{len=54,pri=1,flags=0x7a},{cmd=49,serial=0,datalen=38,flags=0x0}}})
Packet({from=server,cmd=CMD_SAVEDATA,head={{len=67,pri=1,flags=0x7a},{cmd=49,serial=0,datalen=51,flags=0x0}}})
Packet({from=server,cmd=CMD_SAVEDATA,head={{len=220,pri=1,flags=0x7a},{cmd=49,serial=0,datalen=204,flags=0x0}}})
.... dozens of CMD_SAVEDATA ....
Packet({from=server,cmd=CMD_SAVEDATA,head={{len=32,pri=1,flags=0x7a},{cmd=49,serial=0,datalen=16,flags=0x0}}})
Packet({from=client,cmd=CMD_CUSTOM,head={{len=46,pri=1,flags=0x0},{cmd=51,serial=129,datalen=30,flags=0x0}}})
Packet({from=server,cmd=CMD_CUSTOM,head={{len=44,pri=1,flags=0x7a},{cmd=51,serial=129,datalen=28,flags=0x0}}})
Packet({from=client,cmd=CMD_CUSTOM,head={{len=59,pri=1,flags=0x0},{cmd=51,serial=129,datalen=43,flags=0x0}}})
Packet({from=server,cmd=CMD_CUSTOM,head={{len=38,pri=1,flags=0x7a},{cmd=51,serial=129,datalen=22,flags=0x0}}})