| Home | Trees | Index | Help |
|
|---|
| Package twisted :: Package protocols :: Module msn :: Class MSNMessage |
|
| Method Summary | |
|---|---|
__init__(self,
length,
userHandle,
screenName,
message)
| |
used to calculte the number to send as the message length when sending a 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 | |
| Instance Variable Summary | |
|---|---|
str |
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 |
MESSAGE_ACK = 'A'
|
str |
MESSAGE_ACK_NONE = 'U'
|
str |
MESSAGE_NACK = 'N'
|
| Method Details |
|---|
_calcMessageLen(self)used to calculte the number to send as the message length when sending a message. |
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 |
| 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 |
|---|
MESSAGE_ACK
|
MESSAGE_ACK_NONE
|
MESSAGE_NACK
|
| Home | Trees | Index | Help |
|
|---|
| Generated by Epydoc 2.0 on Sat May 15 20:08:24 2004 | http://epydoc.sf.net |