this class provides support for clients connecting to a switchboard
server.
Switchboard servers are used for conversations with other people on
the MSN network. This means that the number of conversations at any given
time will be directly proportional to the number of connections to
varioius switchboard servers. MSN makes no distinction between single and
group conversations, so any number of users may be invited to join a
specific conversation taking place on a switchboard server.
Method Summary |
|
__init__(self)
|
|
checkMessage (self,
message)
hook for detecting any notification type messages (e.g. |
|
connectionFailed (self)
(Deprecated) (inherited from Protocol )
|
|
connectionLost (self,
reason)
Called when the connection is shut down. |
|
connectionMade (self)
Called when a connection is made. |
|
dataReceived (self,
data)
Protocol.dataReceived. (inherited from LineReceiver )
|
|
fileInvitationReply (self,
iCookie,
accept)
used to reply to a file transfer invitation. |
|
gotBadLine (self,
line,
why)
called when a handler notifies me that this line is broken (inherited from MSNEventBase )
|
|
gotChattingUsers (self,
users)
called after connecting to an existing chat session. |
|
gotError (self,
errorCode)
called when the server sends an error which is not in response to a
sent command (ie. (inherited from MSNEventBase )
|
|
gotMessage (self,
message)
called when we receive a message. |
|
gotSendRequest (self,
fileName,
fileSize,
iCookie,
message)
called when a contact is trying to send us a file. |
|
handle_ACK(self,
params)
|
|
handle_ANS(self,
params)
|
|
handle_BYE(self,
params)
|
|
handle_CAL(self,
params)
|
|
handle_IRO(self,
params)
|
|
handle_JOI(self,
params)
|
|
handle_MSG(self,
params)
(inherited from MSNEventBase )
|
|
handle_NAK(self,
params)
|
|
handle_UNKNOWN (self,
cmd,
params)
implement me in subclasses if you want to handle unknown events (inherited from MSNEventBase )
|
|
handle_USR(self,
params)
|
|
inviteUser (self,
userHandle)
used to invite a user to the current switchboard server. |
|
lineLengthExceeded (self,
line)
Called when the maximum line length has been reached. (inherited from LineReceiver )
|
|
lineReceived (self,
line)
Override this for when each line is received. (inherited from MSNEventBase )
|
|
loggedIn (self)
called when all login details have been negotiated. |
|
rawDataReceived (self,
data)
Override this for when raw data is received. (inherited from MSNEventBase )
|
|
sendFileInvitation (self,
fileName,
fileSize)
send an notification that we want to send a file. |
|
sendLine (self,
line)
Sends a line to the other end of the connection. (inherited from LineReceiver )
|
|
sendMessage (self,
message)
used to send a message. |
|
sendTransferInfo (self,
accept,
iCookie,
authCookie,
ip,
port)
send information relating to a file transfer session. |
|
sendTypingNotification (self)
used to send a typing notification. |
|
setLineMode (self,
extra)
Sets the line-mode of this receiver. (inherited from LineReceiver )
|
|
setRawMode (self)
Sets the raw mode of this receiver. (inherited from LineReceiver )
|
|
userJoined (self,
userHandle,
screenName)
called when a user has joined the conversation. |
|
userLeft (self,
userHandle)
called when a user has left the conversation. |
|
userTyping (self,
message)
called when we receive the special type of message notifying us that a
user is typing a message. |