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

Source Code for Module dpkt.yahoo

 1  # $Id: yahoo.py 23 2006-11-08 15:45:33Z dugsong $ 
 2  # -*- coding: utf-8 -*- 
 3  """Yahoo Messenger.""" 
 4  from __future__ import absolute_import 
 5   
 6  from . import dpkt 
 7   
 8   
9 -class YHOO(dpkt.Packet):
10 """Yahoo Messenger. 11 12 TODO: Longer class information.... 13 14 Attributes: 15 __hdr__: Header fields of Yahoo Messenger. 16 TODO. 17 """ 18 19 __hdr__ = [ 20 ('version', '8s', ' ' * 8), 21 ('length', 'I', 0), 22 ('service', 'I', 0), 23 ('connid', 'I', 0), 24 ('magic', 'I', 0), 25 ('unknown', 'I', 0), 26 ('type', 'I', 0), 27 ('nick1', '36s', ' ' * 36), 28 ('nick2', '36s', ' ' * 36) 29 ] 30 __byte_order__ = '<'
31 32
33 -class YMSG(dpkt.Packet):
34 __hdr__ = [ 35 ('version', '8s', ' ' * 8), 36 ('length', 'H', 0), 37 ('type', 'H', 0), 38 ('unknown1', 'I', 0), 39 ('unknown2', 'I', 0) 40 ]
41