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

Class IS_MTC

source code

Msg To Connection - hosts only - send to a connection or a player

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

source code 

Initialise the packet.

Parameters:
  • ReqI - 0
  • UCID - connection's unique id (0 = host)
  • PLID - player's unique id (if zero, use UCID)
  • Msg - Message (64 characters)

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.