pyre.nexus.Peer

Module Contents

class pyre.nexus.Peer.Peer(name=None, timer=None, **kwds)

Bases: pyre.component

A component base class that supplies the two ingredients necessary for building event driven applications

marshaler
doc = the serializer that enables the transmission of objects among peers
dispatcher
doc = the manager of the event loop
timer
run(self)

Start processing requests

prepare(self)

Carry out any necessary start up steps

watch(self)

Activate my event loop

shutdown(self)

Shut the peer down and exit gracefully

stop(self)

Signal my event loop to stop processing events