Methods
|
|
|
|
__init__
|
__init__ ( self, sockp )
|
|
close
|
close ( self )
|
|
decode_seqno
|
decode_seqno ( self, buf )
|
|
default_handler
|
default_handler ( self, arg )
|
|
dispatch
|
dispatch ( self )
Exceptions
|
|
TypeError, "handle_%s: %s" %( cmd, msg )
ValueError, "invalid return type for %s" % cmd
|
|
|
encode_seqno
|
encode_seqno ( self, seqno )
|
|
get_seqno
|
get_seqno ( self )
|
|
registerHandler
|
registerHandler ( self, handler )
A Handler is an object with handle_XXX methods
|
|
reply
|
reply ( self, arg='' )
Send a reply immediately
otherwise reply will be sent when handler returns
|
|
send
|
send (
self,
cmd,
arg='',
seqno=None,
)
|
|