Home | Trees | Index | Help |
---|
Package twisted :: Package protocols :: Module msn :: Class MSNMessage |
|
Method Summary | |
---|---|
__init__(self,
length,
userHandle,
screenName,
message)
| |
get the desired header value | |
return the message - not including headers | |
check to see if the desired header exists | |
set the desired header | |
set the message text | |
used to calculte the number to send as the message length when sending a message. |
Instance Variable Summary | |
---|---|
ack
- This variable is used to tell the server how to respond once the
message has been sent. | |
dict | headers
- The message headers |
length
- The message length (including headers and line endings) | |
message
- The message | |
screenName
- The screen name of the sender (this is only used when receiving a
message) | |
userHandle
- The user handle (passport) of the sender (this is only used when
receiving a message) |
Class Variable Summary | |
---|---|
str |
ack
|
str |
MESSAGE_ACK
|
str |
MESSAGE_ACK_NONE
|
str |
MESSAGE_NACK
|
Method Details |
---|
getHeader(self, header)get the desired header value
|
getMessage(self)return the message - not including headers |
hasHeader(self, header)check to see if the desired header exists |
setHeader(self, header, value)set the desired header |
setMessage(self, message)set the message text |
_calcMessageLen(self)used to calculte the number to send as the message length when sending a message. |
Instance Variable Details |
---|
headersThe message headers
|
lengthThe message length (including headers and line endings) |
messageThe message |
screenNameThe screen name of the sender (this is only used when receiving a message) |
userHandleThe user handle (passport) of the sender (this is only used when receiving a message) |
Class Variable Details |
---|
ack
|
MESSAGE_ACK
|
MESSAGE_ACK_NONE
|
MESSAGE_NACK
|
Home | Trees | Index | Help |
---|
Generated by Epydoc 1.1 on Thu May 8 13:18:51 2003 | http://epydoc.sf.net |