1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
AW#hc@sßddlmZmZmZmZmZmZmZmZm    Z    m
Z
ddl m Z ddl mZddlmZeddƒ\ZZZZZZZZZZZZZZZ defd„ƒYZ!d    d d
„ƒYZ"d S( iÿÿÿÿ(
tc_intt    Structuretc_ushorttc_ubytetmemsett    addressoftmemmovetsizeoftcreate_string_buffert    string_at(tmylog(tb2a_hex(terroriittagMMORPGPackHeadcBsŒeZdZdZdefdefdefdefdefgZd„Zd„Z    d    „Z
d
d
d „Z d „Z d „Z d„ZRS(s·â°üÍ·Ààit    sessionIDt    poolIndexttypet
dstSvrTypet
srcSvrTypecCstj|ƒ|jƒdS(N(Rt__init__tclear(tself((sZ.\\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\PyMongoDB\Protocol\MMORPGPack.pyR0s cCs&tt|ƒt|ƒt|ƒƒdS(N(RRR(Rt anotherHead((sZ.\\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\PyMongoDB\Protocol\MMORPGPack.pytassign4scCs tt|ƒd|jƒƒdS(Ni(RRt    getLength(R((sZ.\\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\PyMongoDB\Protocol\MMORPGPack.pyR7sicCsÑ||ks?tjdtjd|tfƒ}tj|ƒdSt|ƒ||jƒkrtjdtjdt|ƒ||jƒƒƒ}tj|ƒdS|jƒtt    |ƒ|||jƒƒ|jƒS(NR serror pos = %d len = %diÿÿÿÿslen = %d while %d expected!(
R t    formatMsgt ERROR_NO_10tlenR
Rt ERROR_NO_11RRR(Rtbuftpostlengthtmsg((sZ.\\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\PyMongoDB\Protocol\MMORPGPack.pytreadData:s " 1 
 cCs
ttƒS(N(RR (R((sZ.\\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\PyMongoDB\Protocol\MMORPGPack.pyRGscCstt|ƒ|jƒƒS(N(R    RR(R((sZ.\\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\PyMongoDB\Protocol\MMORPGPack.pyt    getBufferJscCs&d|j|j|j|j|jfS(Ns‡//MMORPG·â°üÍ·//tagMMORPGPackHead:
    sessionID:0x%x,
    poolIndex:0x%x,
    type:0x%x,
    dstSvrType:0x%x,
    srcSvrType:0x%x
    (RRRRR(R((sZ.\\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\PyMongoDB\Protocol\MMORPGPack.pyt outputStringMs (t__name__t
__module__t__doc__t_pack_RRRt_fields_RRRR!RR"R#(((sZ.\\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\PyMongoDB\Protocol\MMORPGPack.pyR 's                                     t MMORPGPacketcBsƒeZdZd„Zd„Zd„Zd„Zd„Zd„Zd„Z    d„Z
d    „Z d
„Z d „Z d „Zd „ZRS(s·â°üÀàcCstƒ|_d|_dS(Nt(R t_MMORPGPacket__packHeadt_MMORPGPacket__buf(R((sZ.\\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\PyMongoDB\Protocol\MMORPGPack.pyR^s cCs|jj|jƒdS(N(R+R(Rt anotherPack((sZ.\\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\PyMongoDB\Protocol\MMORPGPack.pyt
assignHeaddscCs|j|ƒ|j|_dS(N(R.R,(Rtother((sZ.\\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\PyMongoDB\Protocol\MMORPGPack.pyRgs cCs|jS(N(R+(R((sZ.\\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\PyMongoDB\Protocol\MMORPGPack.pyt getPackHeadkscCs
|jjS(N(R+R(R((sZ.\\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\PyMongoDB\Protocol\MMORPGPack.pyt getDstSvrTypenscCs||j_dS(N(R+R(RR((sZ.\\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\PyMongoDB\Protocol\MMORPGPack.pyt setSrcSvrTypeqscCs,|jjƒd|_d|_d|_dS(NR*iÿÿÿÿ(R+RR,t_MMORPGPacket__recvFromSocketIDt_MMORPGPacket__sendViaSocketID(R((sZ.\\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\PyMongoDB\Protocol\MMORPGPack.pyRts         cCsrt|ƒ}||jjƒkr%dS|jj|d|ƒ}d|krMdS||dkra|S|||_|S(Niÿÿÿÿi(RR+RR!R,(RRtbufLentreadLen((sZ.\\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\PyMongoDB\Protocol\MMORPGPack.pyR!zs   cCs|jjƒ|jS(N(R+R"R,(R((sZ.\\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\PyMongoDB\Protocol\MMORPGPack.pyt getPackData†scCs ||_dS(N(R,(RR((sZ.\\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\PyMongoDB\Protocol\MMORPGPack.pyt    setBuffer‰scCs|jS(N(R,(R((sZ.\\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\PyMongoDB\Protocol\MMORPGPack.pyR"ŒscCs t|jƒS(N(RR,(R((sZ.\\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\PyMongoDB\Protocol\MMORPGPack.pyRscCs|jjƒt|jƒS(N(R+R#R R,(R((sZ.\\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\PyMongoDB\Protocol\MMORPGPack.pyR#’s(R$R%R&RR.RR0R1R2RR!R7R8R"RR#(((sZ.\\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\PyMongoDB\Protocol\MMORPGPack.pyR)\s                                                 N((#tctypesRRRRRRRRRR    tCommonR
tbinasciiR tDBCommonR trangetstMintstDatat stCenterGatetstGametstLogintstRoutetstMaptstGatet stInterfacetstDbSaveServertstCreateRoleServertstGMToolt stMergeClientt    stNoSensetstMaxR R)(((sZ.\\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\PyMongoDB\Protocol\MMORPGPack.pyt<module>
s F<5