Module pyinsim :: Class IS_RIP
[hide private]
[frames] | no frames]

Class IS_RIP

source code

Replay Information Packet

Instance Methods [hide private]
 
__init__(self, ReqI=0, Error=0, MPR=0, Paused=0, Options=0, CTime=0, TTime=0, RName='')
Initialise the packet.
source code
string
pack(self)
Pack the packet values into a binary formatted string.
source code
 
unpack(self, data)
Unpack the packet data from a binary formatted string.
source code
Method Details [hide private]

__init__(self, ReqI=0, Error=0, MPR=0, Paused=0, Options=0, CTime=0, TTime=0, RName='')
(Constructor)

source code 

Initialise the packet.

Parameters:
  • ReqI - request : non-zero / reply : same value returned
  • Error - 0 or 1 = OK / options from RIP_
  • MPR - 0 = SPR / 1 = MPR
  • Paused - request : pause on arrival / reply : paused state
  • Options - various options from RIPOPT_
  • CTime - (hundredths) request : destination / reply : position
  • TTime - (hundredths) request : zero / reply : replay length
  • RName - zero or replay name: last byte must be zero

pack(self)

source code 

Pack the packet values into a binary formatted string.

Returns: string
A binary formatted string.

unpack(self, data)

source code 

Unpack the packet data from a binary formatted string.

Parameters:
  • data (string) - The packet data as a binary formatted string.