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

Class IS_ISI

source code

InSim Init - packet to initialise the InSim system

Instance Methods [hide private]
 
__init__(self, ReqI=0, UDPPort=0, Flags=0, Prefix=' ', Interval=0, Admin='', IName='')
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, UDPPort=0, Flags=0, Prefix=' ', Interval=0, Admin='', IName='')
(Constructor)

source code 

Initialise the packet.

Parameters:
  • ReqI (number) - If non-zero LFS will send an IS_VER packet
  • UDPPort (number) - Port for UDP replies from LFS (0 to 65535)
  • Flags (number) - ISF_ bit flags for options
  • Prefix (string) - Special host message prefix character
  • Interval (number) - Time in ms between NLP or MCI (0 = none)
  • Admin (string) - Admin password (if set in LFS)
  • IName (string) - A short name for your program

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.