Package dpkt :: Module yahoo
[hide private]
[frames] | no frames]

Source Code for Module dpkt.yahoo

 1  # $Id: yahoo.py 271 2006-01-11 16:03:33Z dugsong $ 
 2   
 3  """Yahoo Messenger.""" 
 4   
 5  import dpkt 
 6   
7 -class YHOO(dpkt.Packet):
8 __hdr__ = [ 9 ('version', '8s', ' ' * 8), 10 ('length', 'I', 0), 11 ('service', 'I', 0), 12 ('connid', 'I', 0), 13 ('magic', 'I', 0), 14 ('unknown', 'I', 0), 15 ('type', 'I', 0), 16 ('nick1', '36s', ' ' * 36), 17 ('nick2', '36s', ' ' * 36) 18 ] 19 __byte_order__ = '<'
20
21 -class YMSG(dpkt.Packet):
22 __hdr__ = [ 23 ('version', '8s', ' ' * 8), 24 ('length', 'H', 0), 25 ('type', 'H', 0), 26 ('unknown1', 'I', 0), 27 ('unknown2', 'I', 0) 28 ]
29