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__,
__provides__,
addMessage,
adminCallRemote,
checkPropertyType,
check_properties,
do_check,
fixRenamedProperties,
getMood,
getName,
getWorkerName,
modifyProperty,
observerAppend,
observerRemove,
removeMessage,
setMedium,
setMood,
setShutdownHook,
setWorkerName,
setup,
setup_completed,
stop,
waitForHappy,
warnDeprecatedProperties
Inherited from common.common.InitMixin:
__providedBy__
Inherited from extern.log.log.Loggable:
debug,
doLog,
error,
info,
log,
logFunction,
logObjectName,
warning,
warningFailure,
writeMarker
|