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

Class IS_VER

source code

VERsion. It is advisable to request version information as soon as you have connected, to avoid problems when connecting to a host with a later or earlier version. You will be sent a version packet on connection if you set ReqI in the IS_ISI packet.

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

source code 

Initialise the packet.

Parameters:
  • ReqI (number) - ReqI as received in the request packet
  • Version (string) - LFS version, e.g. 0.3G
  • Product (string) - Product : DEMO or S1
  • InSimVer (number) - InSim Version : increased when InSim packets change

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.