示例#1
0
文件: client.py 项目: pujo/lacewing
 def _load(self, data):
     (self.subchannel,
     messageSize) = unpack_from('<HI', data)
     
     message = Message(**self.settings)
     message.load(str(buffer(data, 6, messageSize)))
     self.message = message
     
     return 6 + messageSize
示例#2
0
文件: client.py 项目: pujo/lacewing
 def _load(self, data):
     (self.subchannel,
     self.channelId,
     self.playerId,
     messageSize) = unpack_from('<HIII', data)
     
     message = Message(**self.settings)
     message.load(str(buffer(data, 14, messageSize)))
     self.message = message
     
     return 14 + messageSize