packet.unpack man page on RedHat

Man page or keyword search:  
man Server   29550 pages
apropos Keyword Search (all sections)
Output format
RedHat logo
[printable version]

PACKET.UNPACK(1)	      packet.unpack 1.0.1	      PACKET.UNPACK(1)

NAME
       packet.unpack - Unpack module

DESCRIPTION
       Provides	 the object for managing and unpacking raw data from a working
       buffer.

CLASSES
   class Unpack(__builtin__.object)
       Unpack object

       Usage:
	   from packet.unpack import Unpack

	   x = Unpack(buffer)

	   # Get the 32 bytes from the working buffer
	   data = x.rawdata(32)

	   # Unpack an 'unsigned short' (2 bytes)
	   short_int = x.unpack(2, 'H')[0]

       Methods defined here:
       ---------------------

       __init__(self, data)
	      Constructor

	      Initialize object's private data.

	      data:  Raw packet data

       rawdata(self, size)
	      Get the number of bytes given from the working buffer.

       unpack(self, size, fmt)
	      Get the number of	 bytes	given  from  the  working  buffer  and
	      process  it  according  to  the given format.  Return a tuple of
	      unpack items, see struct.unpack.

BUGS
       No known bugs.

AUTHOR
       Jorge Mora (mora@netapp.com)

NFStest 1.0.2			 10 April 2013		      PACKET.UNPACK(1)
[top]

List of man pages available for RedHat

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net