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

Class IS_BTC

source code

BuTton Click - sent back when user clicks a button

Instance Methods [hide private]
 
__init__(self, ReqI=0, UCID=0, ClickID=0, Inst=0, CFlags=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, UCID=0, ClickID=0, Inst=0, CFlags=0)
(Constructor)

source code 

Initialise the packet.

Parameters:
  • ReqI - ReqI as received in the IS_BTN
  • UCID - connection that clicked the button (zero if local)
  • ClickID - button identifier originally sent in IS_BTN
  • Inst - used internally by InSim
  • CFlags - button click flags from ISB_

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.