Package congress :: Module node :: Class Node
[hide private]

Class Node

source code

Known Subclasses:

Instance Methods [hide private]
 
__init__(self, (host, port), client_class=<class congress.node.Peer at 0x9f511dc>, debug=False, id=None, pyev_loop=None, debug_file=None) source code
 
_debug(self, message) source code
 
_gen_id(self) source code
 
_remove_peer(self, peer) source code
 
_sig_cb(self, watcher, events) source code
 
_sock_ev(self, watcher, events) source code
 
_timer_cb(self, watcher, events) source code
 
add_peer(self, conn, connect=False, existing_socket=None) source code
 
debug_peers(self) source code
 
enqueue_message(self, message) source code
 
handle_message(self, message, peer) source code
 
peer_cleanup(self, peer)
Stub for subclasses.
source code
 
register_handshake(self, func, peer=None)
Any time a new incoming connectin is made, the argument will be executed with the arguments peer and the server itself.
source code
 
register_message_callback(self, message, func) source code
 
register_message_handler(self, atype, func) source code
 
register_message_timeout(self, message, func, peer, timeout=3) source code
 
register_timed(self, interval, func) source code
 
shutdown(self) source code
 
start(self) source code