Home | Trees | Index | Help |
---|
Package beepy :: Package profiles :: Module profile :: Class Profile |
|
BEEPManagementProfile
,
EchoProfile
,
ReverbProfile
,
SASLProfile
,
TimeProfile
,
TLSProfile
Method Summary | |
---|---|
Create a new Profile object. | |
mimeDecode() is a convenience function used to help make life easier for profile programmers, like me. | |
mimeEncode() is a convenience function used to help make life easier for profile programmers, like me. | |
processMessage() is called by the Channel to which this profile is bound. | |
setChannel() binds this Profile to the Channel it belongs to. |
Method Details |
---|
__init__(self,
session,
profileInit=None,
init_callback=None)
Create a new Profile object.
|
mimeDecode(self, payload)mimeDecode() is a convenience function used to help make life easier for profile programmers, like me. It takes the payload and extracts the data from the headers.
|
mimeEncode(self, payload, contentType='application/octet-stream', encoding=None)mimeEncode() is a convenience function used to help make life easier for profile programmers, like me. It takes a given payload and adds MIME headers to it. Note: The separation between the MIME headers is a single newline ' ', not ' '. Not sure why, but MimeWriter is doing it for some reason. @param payload: the data to encode @param contentType: the MIME content type @param encoding: an alternate encoding. |
processMessage(self, msg)processMessage() is called by the Channel to which this profile is bound. This forms the main processing method of a profile. This method should be overridden by subclasses.
|
setChannel(self, channel)setChannel() binds this Profile to the Channel it belongs to. If this method is not called to set the Channel for the Profile, they channel will be unable to process any messages. |
Home | Trees | Index | Help |
---|
Generated by Epydoc 2.0 on Thu Sep 30 14:39:25 2004 | http://epydoc.sf.net |