Module Session :: Class BaseSession
[hide private]
[frames] | no frames]

Class BaseSession

source code

asyncore.dispatcher --+    
                      |    
     Network.Connection --+
                          |
              Task.Task --+
                          |
         MessageHandler --+
                          |
                         BaseSession
Known Subclasses:
ClientSession, ServerSession

Instance Methods [hide private]
 
__init__(self, engine, broker, sock='') source code
 
__str__(self) source code
 
isPrimary(self) source code
 
run(self, ticks) source code
 
stopped(self) source code
 
disconnect(self) source code
 
sendMessage(self, message) source code
 
handleMessage(self, sender, message) source code
 
handleRegistration(self) source code
 
isConnected(self) source code

Inherited from Network.Connection: accept, close, connect, handleClose, handleConnect, handlePacket, handle_close, handle_connect, handle_read, handle_write, sendPacket, setServer, writable

Inherited from asyncore.dispatcher: __getattr__, __repr__, add_channel, bind, create_socket, del_channel, handle_accept, handle_error, handle_expt, handle_expt_event, handle_read_event, handle_write_event, listen, log, log_info, readable, recv, send, set_reuse_addr, set_socket

Inherited from Task.Task: started

Inherited from MessageHandler: handleSessionClosed, handleSessionOpened

Class Variables [hide private]

Inherited from asyncore.dispatcher: accepting, addr, closing, connected, debug

Method Details [hide private]

__init__(self, engine, broker, sock='')
(Constructor)

source code 
Overrides: Network.Connection.__init__

run(self, ticks)

source code 
Overrides: Task.Task.run

stopped(self)

source code 
Overrides: Task.Task.stopped

handleMessage(self, sender, message)

source code 
Overrides: MessageHandler.handleMessage

handleRegistration(self)

source code 
Overrides: Network.Connection.handleRegistration