Part of twisted.words.protocols.toc View Source View In Hierarchy
Method | connectionMade | Called when a connection is made. |
Method | connectionLost | Called when the connection is shut down. |
Method | sendFlap | send a FLAP to the client |
Method | dataReceived | Called whenever data is received. |
Method | isFlap | tests to see if a flap is actually on the buffer |
Method | readFlap | read the first FLAP off self._buf, raising errors if it isn't in the right form. |
Method | modeFlapon | Undocumented |
Method | modeSignon | Undocumented |
Method | modeTocSignon | Undocumented |
Method | authorize | Undocumented |
Method | modeConnected | Undocumented |
Method | toc_unknown | Undocumented |
Method | toc_init_done | called when all the setup is done. |
Method | toc_add_permit | adds users to the permit list. if the list is null, then set the mode to DENYALL |
Method | toc_add_deny | adds users to the deny list. if the list is null, then set the mode to PERMITALL |
Method | toc_evil | warns a user. |
Method | toc_add_buddy | adds users to the buddy list |
Method | toc_remove_buddy | removes users from the buddy list |
Method | toc_send_im | incoming instant message |
Method | toc_set_info | set the users information, retrivable with toc_get_info |
Method | toc_set_idle | set/unset idle |
Method | toc_set_away | set/unset away message |
Method | toc_chat_join | joins the chat room. |
Method | toc_chat_invite | invite others to the room. |
Method | toc_chat_accept | accept an invitation. |
Method | toc_chat_send | send a message to the chat room. |
Method | toc_chat_whisper | Undocumented |
Method | toc_chat_leave | leave the room. |
Method | toc_set_config | set the saved config. this gets send when you log in. |
Method | toc_get_info | get the user info for a user |
Method | toc_format_nickname | change the format of your nickname. |
Method | toc_change_passwd | Undocumented |
Method | sendError | send an error to the user. listing of error messages is below. |
Method | updateUsers | Update the users who have us on their buddylist. |
Method | getStatus | Undocumented |
Method | canContact | Undocumented |
Method | buddyUpdate | Update the buddy. Called from updateUsers() |
Method | hearWhisper | Called when you get an IM. If auto=1, it's an autoreply from an away message. |
Method | evilFrom | Undocumented |
Method | chatJoin | Undocumented |
Method | chatInvite | Undocumented |
Method | chatUserUpdate | Undocumented |
Method | chatMessage | Undocumented |
Method | chatWhisper | Undocumented |
Method | chatLeave | Undocumented |
Method | _debug | Undocumented |
Inherited from BaseProtocol (via Protocol):
Method | makeConnection | Make a connection to a transport and a server. |
This may be considered the initializer of the protocol, because it is called when the connection is completed. For clients, this is called once the connection to the server has been established; for servers, this is called after an accept() call stops blocking and a socket has been received. If you need to send any greeting or initial message, do it here.
Clear any circular references here, and any external references to this Protocol. The connection has been closed.
Parameters | reason | (type: twisted.python.failure.Failure
) |
Use this method to translate to a higher-level message. Usually, some callback will be made upon the receipt of each complete protocol message.
Parameters | data | a string of indeterminate length. Please keep in mind that you will probably need to buffer some data, as partial (or multiple) protocol messages may be received! I recommend that unit tests for protocols call through to this method with differing chunk sizes, down to one byte at a time. |
toc_add_buddy <buddyname1> [<buddyname2>] [<buddyname3>]...
toc_remove_buddy <buddyname1> [<buddyname2>] [<buddyname3>]...
toc_send_im <screenname> <quoted message> [auto]
toc_set_info <user info (quoted)>
toc_chat_invite <room id> <invite message> <buddy 1> [<buddy2>]...
toc_chat_send <room id> <message>
toc_set_config <config>
toc_format_nickname <new format>