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

Class IS_ISM

source code

InSim Multi

LFS will send this packet when a host is started or joined.

Instance Methods [hide private]
 
__init__(self, ReqI=0, Host=0, HName='')
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, Host=0, HName='')
(Constructor)

source code 

Initialise the packet.

Parameters:
  • ReqI - usually 0 / or if a reply : ReqI as received in the TINY_ISM
  • Host - 0 = guest / 1 = host
  • HName - the name of the host joined or started

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.