| Trees | Index | Help |
|
|---|
| Package svs_core :: Package network :: Module packets |
|
Encapsulators for information exchange between clients.
The objects provide network serialisation through the use of the Twisted Perspective Broker system:
http://twistedmatrix.comAuthor: Simon Yuill
Contact: simon@lipparosa.org
Copyright: 2005 Simon Yuill
License: GNU GPL version 2 or any later version
| Classes | |
|---|---|
DataPacket |
Generic data packet. |
DataRequest |
Encapsulates a request for data. |
ListenRequest |
Encapsulates a request for one client to listen to another. |
ProfileRequest |
Encapsulates a request for searching client profiles. |
| Exceptions | |
|---|---|
DataPacketException |
|
ProfileRequestException |
|
| Function Summary | |
|---|---|
DataPacket
|
Factory method to create timestamped data packet. |
DataRequest
|
Factory method to produce timestamped data request. |
ListenRequest
|
Factory method to produce timestamped listener request. |
DataPacket
|
Factory method to create DataPacket for chat message. |
ListenRequest
|
Factory method to produce timestamped profile request. |
| String |
Convert message back into string. |
| Array |
Extracts recipients and message from messageInput. |
| Function Details |
|---|
makeDataPacket(sender, recipient=None, content=None, label=None, timeToLive=None)Factory method to create timestamped data packet.
|
makeDataRequest(sender, recipient=None, label=None, args=[], retrievalAction=None)Factory method to produce timestamped data request.
|
makeListenRequest(sender, recipient=None, label=None, action=None)Factory method to produce timestamped listener request.
|
makeMessagePacket(sender, messageInput)Factory method to createDataPacket for chat message.
|
makeProfileRequest(sender, clientNames=None, services=None, methods=None, commands=None)Factory method to produce timestamped profile request. At least one of the search parameters must be speicified, otherwise throws aProfileRequestException.
|
__messageInputString(messageInput)Convert message back into string.
|
__parseMessageInput(messageInput)Extracts recipients and message frommessageInput.
|
| Trees | Index | Help |
|
|---|
| Generated by Epydoc 2.1 on Thu Oct 20 15:30:28 2005 | http://epydoc.sf.net |