Part of twisted.words.protocols.toc View Source View In Hierarchy
Known subclasses: twisted.words.im.tocsupport.TOCProto
Split Table into Classes Show Methods in One Table
| Line # | Kind | Name | Docs |
|---|---|---|---|
| 783 | Method | __init__ | Undocumented |
| 805 | Method | sendFlap | Undocumented |
| 818 | Method | isFlap | tests to see if a flap is actually on the buffer |
| 830 | Method | readFlap | Undocumented |
| 843 | Method | connectionMade | Called when a connection is made. |
| 847 | Method | connectionLost | Called when the connection is shut down. |
| 851 | Method | dataReceived | Called whenever data is received. |
| 858 | Method | modeSendNick | Undocumented |
| 867 | Method | modeData | Undocumented |
| 894 | Method | tocUNKNOWN | Undocumented |
| 897 | Method | tocSIGN_ON | Undocumented |
| 904 | Method | tocNICK | Handle a message that looks like:
|
| 912 | Method | tocCONFIG | Handle a message that looks like:
|
| 950 | Method | tocIM_IN | Handle a message that looks like:
|
| 961 | Method | tocUPDATE_BUDDY | Handle a message that looks like:
|
| 976 | Method | tocERROR | Handle a message that looks like:
|
| 985 | Method | tocEVILED | Handle a message that looks like:
|
| 993 | Method | tocCHAT_JOIN | Handle a message that looks like:
|
| 1003 | Method | tocCHAT_UPDATE_BUDDY | Handle a message that looks like:
|
| 1018 | Method | tocCHAT_IN | Handle a message that looks like:
|
| 1032 | Method | tocCHAT_INVITE | Handle a message that looks like:
|
| 1040 | Method | tocCHAT_LEFT | Handle a message that looks like:
|
| 1050 | Method | tocRVOUS_PROPOSE | Handle a message that looks like:
|
| 1073 | Method | tocSEND_FILE | Undocumented |
| 1086 | Method | tocGET_FILE | Undocumented |
| 1092 | Method | onLine | called when we are first online |
| 1098 | Method | gotConfig | called when we get a configuration from the server |
| 1108 | Method | hearError | called when an error is received |
| 1116 | Method | hearWarning | called when we get warned |
| 1124 | Method | hearMessage | called when you receive an IM |
| 1133 | Method | updateBuddy | called when a buddy changes state |
| 1146 | Method | chatJoined | we just joined a chat room |
| 1155 | Method | chatUpdate | a user has joined the room |
| 1164 | Method | chatHearMessage | a message was sent to the room |
| 1173 | Method | chatHearWhisper | someone whispered to us in a chatroom |
| 1182 | Method | chatInvited | we were invited to a chat room |
| 1192 | Method | chatLeft | we left the room |
| 1199 | Method | rvousProposal | we were asked for a rondevouz |
| 1211 | Method | receiveBytes | we received part of a file from a file transfer |
| 1221 | Method | isaway | return our away status |
| 1227 | Method | set_config | set the server configuration |
| 1247 | Method | add_buddy | Undocumented |
| 1254 | Method | del_buddy | Undocumented |
| 1261 | Method | add_permit | Undocumented |
| 1277 | Method | del_permit | Undocumented |
| 1287 | Method | add_deny | Undocumented |
| 1303 | Method | del_deny | Undocumented |
| 1314 | Method | signon | called to finish the setup, and signon to the network |
| 1321 | Method | say | send a message |
| 1332 | Method | idle | change idle state |
| 1339 | Method | evil | warn a user |
| 1347 | Method | away | change away state |
| 1357 | Method | chat_join | join a chat room |
| 1366 | Method | chat_say | send a message to a chatroom |
| 1374 | Method | chat_whisper | whisper to another user in a chatroom |
| 1383 | Method | chat_leave | leave a chat room. |
| 1390 | Method | chat_invite | invite a user[s] to the chat room |
| 1406 | Method | chat_accept | accept an invite to a chat room |
| 1413 | Method | rvous_accept | Undocumented |
| 1420 | Method | rvous_cancel | Undocumented |
| 802 | Method | _debug | Undocumented |
Inherited from BaseProtocol (via Protocol):
| Line # | Kind | Name | Docs |
|---|---|---|---|
| 341 | Method | makeConnection | Make a connection to a transport and a server. |
| Line # | Kind | Name | Docs |
|---|---|---|---|
| 783 | Method | __init__ | Undocumented |
| 1247 | Method | add_buddy | Undocumented |
| 1287 | Method | add_deny | Undocumented |
| 1261 | Method | add_permit | Undocumented |
| 1347 | Method | away | change away state |
| 1406 | Method | chat_accept | accept an invite to a chat room |
| 1390 | Method | chat_invite | invite a user[s] to the chat room |
| 1357 | Method | chat_join | join a chat room |
| 1383 | Method | chat_leave | leave a chat room. |
| 1366 | Method | chat_say | send a message to a chatroom |
| 1374 | Method | chat_whisper | whisper to another user in a chatroom |
| 1164 | Method | chatHearMessage | a message was sent to the room |
| 1173 | Method | chatHearWhisper | someone whispered to us in a chatroom |
| 1182 | Method | chatInvited | we were invited to a chat room |
| 1146 | Method | chatJoined | we just joined a chat room |
| 1192 | Method | chatLeft | we left the room |
| 1155 | Method | chatUpdate | a user has joined the room |
| 847 | Method | connectionLost | Called when the connection is shut down. |
| 843 | Method | connectionMade | Called when a connection is made. |
| 851 | Method | dataReceived | Called whenever data is received. |
| 1254 | Method | del_buddy | Undocumented |
| 1303 | Method | del_deny | Undocumented |
| 1277 | Method | del_permit | Undocumented |
| 1339 | Method | evil | warn a user |
| 1098 | Method | gotConfig | called when we get a configuration from the server |
| 1108 | Method | hearError | called when an error is received |
| 1124 | Method | hearMessage | called when you receive an IM |
| 1116 | Method | hearWarning | called when we get warned |
| 1332 | Method | idle | change idle state |
| 1221 | Method | isaway | return our away status |
| 818 | Method | isFlap | tests to see if a flap is actually on the buffer |
| 341 | Method | makeConnection | Make a connection to a transport and a server. |
| 867 | Method | modeData | Undocumented |
| 858 | Method | modeSendNick | Undocumented |
| 1092 | Method | onLine | called when we are first online |
| 830 | Method | readFlap | Undocumented |
| 1211 | Method | receiveBytes | we received part of a file from a file transfer |
| 1413 | Method | rvous_accept | Undocumented |
| 1420 | Method | rvous_cancel | Undocumented |
| 1199 | Method | rvousProposal | we were asked for a rondevouz |
| 1321 | Method | say | send a message |
| 805 | Method | sendFlap | Undocumented |
| 1227 | Method | set_config | set the server configuration |
| 1314 | Method | signon | called to finish the setup, and signon to the network |
| 1018 | Method | tocCHAT_IN | Handle a message that looks like:
|
| 1032 | Method | tocCHAT_INVITE | Handle a message that looks like:
|
| 993 | Method | tocCHAT_JOIN | Handle a message that looks like:
|
| 1040 | Method | tocCHAT_LEFT | Handle a message that looks like:
|
| 1003 | Method | tocCHAT_UPDATE_BUDDY | Handle a message that looks like:
|
| 912 | Method | tocCONFIG | Handle a message that looks like:
|
| 976 | Method | tocERROR | Handle a message that looks like:
|
| 985 | Method | tocEVILED | Handle a message that looks like:
|
| 1086 | Method | tocGET_FILE | Undocumented |
| 950 | Method | tocIM_IN | Handle a message that looks like:
|
| 904 | Method | tocNICK | Handle a message that looks like:
|
| 1050 | Method | tocRVOUS_PROPOSE | Handle a message that looks like:
|
| 1073 | Method | tocSEND_FILE | Undocumented |
| 897 | Method | tocSIGN_ON | Undocumented |
| 894 | Method | tocUNKNOWN | Undocumented |
| 961 | Method | tocUPDATE_BUDDY | Handle a message that looks like:
|
| 1133 | Method | updateBuddy | called when a buddy changes state |
| 802 | Method | _debug | Undocumented |
Called when a connection is made.
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.Called when the connection is shut down.
Clear any circular references here, and any external references to this Protocol. The connection has been closed.| Parameters | reason | (type: twisted.python.failure.Failure
) |
Called whenever data is received.
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. |
NICK:<format of nickname>
CONFIG:<config>Format of config data:
IM_IN:<user>:<autoreply T|F>:message
UPDATE_BUDDY:<username>:<online T|F>:<warning level>:<signon time>:<idle time (minutes)>:<user class>
ERROR:<error code>:<misc. data>
EVILED:<current warning level>:<user who warned us>
CHAT_JOIN:<room id>:<room name>
CHAT_UPDATE_BUDDY:<room id>:<in room? T/F>:<user 1>:<user 2>...
CHAT_IN:<room id>:<username>:<whisper T/F>:<message>whisper isn't used
CHAT_INVITE:<room name>:<room id>:<username>:<message>
RVOUS_PROPOSE:<user>:<uuid>:<cookie>:<seq>:<rip>:<pip>:<vip>:<port>
[:tlv tag1:tlv value1[:tlv tag2:tlv value2[:...]]]