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

Class IS_NCN

source code

New ConN

Instance Methods [hide private]
 
__init__(self, ReqI=0, UCID=0, UName='', PName='', Admin=0, Total=0, Flags=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, UName='', PName='', Admin=0, Total=0, Flags=0)
(Constructor)

source code 

Initialise the packet.

Parameters:
  • ReqI - 0 unless this is a reply to a TINY_NCN request
  • UCID - new connection's unique id (0 = host)
  • UName - username
  • PName - nickname
  • Admin - 1 if admin
  • Total - number of connections including host
  • Flags - bit 2 : remote

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.