Module bzClient :: Class bzConnection
[frames] | no frames]

Class bzConnection

source code


A connection to the server

Instance Methods
bzClient
__init__(self, hostname='127.0.0.1', port=50000)
Returns: N/A
source code
 
__repr__(self) source code
[Int, Int, Int , string, vector , matrix , matrix, Int ,Int, Int]
OpenSession(self, pseudo, password)
Open a session on the server by: sending an ACCEPT String receiving a WelcomeMessage throw bzException.BZooConnectionError
source code
 
CloseSession(self)
Close connection with server
source code

Inherited from bzClientSocket: CloseConnection, Connect, Connected, ReceiveData, SendData

Instance Variables
integer id
the identifier given by server
string. password
the password used for this connection
string. pseudo
the pseudo used for the connection

Inherited from bzClientSocket: port, receive_status, sa, servername, socket

Method Details

__init__(self, hostname='127.0.0.1', port=50000)
(Constructor)

source code 
Parameters:
  • hostname (String.) - The server hostname or IP adress
  • port (Integer) - The port of the server to connect to
Returns: bzClient
N/A
Overrides: bzClientSocket.__init__

__repr__(self)
(Representation operator)

source code 
Overrides: bzClientSocket.__repr__

OpenSession(self, pseudo, password)

source code 
Open a session on the server by: sending an ACCEPT String receiving a WelcomeMessage throw bzException.BZooConnectionError
Parameters:
  • pseudo (String.) - the login to use for this session.
  • password (String.) - the password.
Returns: [Int, Int, Int , string, vector , matrix , matrix, Int ,Int, Int]
[realid, result, reason, effpseudo, position , orientation , heading, state,action, scene]