The porter optionally sits in front of a set of streamer components.
The porter is what actually deals with incoming connections on a socket.
It decides which streamer to direct the connection to, then passes the FD
(along with some amount of already-read data) to the appropriate
streamer.
|
|
init(self)
A subclass should do as little as possible in its init method. |
source code
|
|
|
|
registerPath(self,
path,
avatar)
Register a path as being served by a streamer represented by this
avatar. |
source code
|
|
|
|
|
|
|
registerPrefix(self,
prefix,
avatar)
Register a destination for all requests directed to anything
beginning with a specified prefix. |
source code
|
|
|
|
deregisterPrefix(self,
prefix,
avatar)
Attempt to deregister a default destination for all requests not
directed to a specifically-mapped path. |
source code
|
|
|
|
|
|
|
|
|
|
generateSocketPath(self)
Generate a socket pathname in an appropriate location |
source code
|
|
|
|
generateRandomString(self,
numchars)
Generate a random US-ASCII string of length numchars |
source code
|
|
|
|
|
|
|
|
|
|
do_setup(self)
Subclasses can implement me to set up the component before it is
started. |
source code
|
|
|
Inherited from component.BaseComponent:
__init__,
addMessage,
adminCallRemote,
check_properties,
do_check,
fixRenamedProperties,
getMood,
getName,
getWorkerName,
observerAppend,
observerRemove,
setMedium,
setMood,
setShutdownHook,
setWorkerName,
setup,
setup_completed,
stop,
waitForHappy,
warnDeprecatedProperties
Inherited from object:
__delattr__,
__format__,
__getattribute__,
__hash__,
__new__,
__reduce__,
__reduce_ex__,
__repr__,
__setattr__,
__sizeof__,
__str__,
__subclasshook__
Inherited from extern.log.log.Loggable:
__providedBy__,
debug,
doLog,
error,
info,
log,
logFunction,
logObjectName,
warning,
warningFailure,
writeMarker
|