Part of twisted.words.protocols.toc View Source View In Hierarchy
Known subclasses: twisted.words.im.tocsupport.TOCProto
Method | __init__ | Undocumented |
Method | sendFlap | Undocumented |
Method | isFlap | tests to see if a flap is actually on the buffer |
Method | readFlap | Undocumented |
Method | connectionMade | Called when a connection is made. |
Method | connectionLost | Called when the connection is shut down. |
Method | dataReceived | Called whenever data is received. |
Method | modeSendNick | Undocumented |
Method | modeData | Undocumented |
Method | tocUNKNOWN | Undocumented |
Method | tocSIGN_ON | Undocumented |
Method | tocNICK | Handle a message that looks like:
|
Method | tocCONFIG | Handle a message that looks like:
|
Method | tocIM_IN | Handle a message that looks like:
|
Method | tocUPDATE_BUDDY | Handle a message that looks like:
|
Method | tocERROR | Handle a message that looks like:
|
Method | tocEVILED | Handle a message that looks like:
|
Method | tocCHAT_JOIN | Handle a message that looks like:
|
Method | tocCHAT_UPDATE_BUDDY | Handle a message that looks like:
|
Method | tocCHAT_IN | Handle a message that looks like:
|
Method | tocCHAT_INVITE | Handle a message that looks like:
|
Method | tocCHAT_LEFT | Handle a message that looks like:
|
Method | tocRVOUS_PROPOSE | Handle a message that looks like:
|
Method | tocSEND_FILE | Undocumented |
Method | tocGET_FILE | Undocumented |
Method | onLine | called when we are first online |
Method | gotConfig | No summary |
Method | hearError | called when an error is received code := error code args := misc. arguments (username, etc.) |
Method | hearWarning | called when we get warned newamount := the current warning level username := the user who warned us, or '' if it's anonymous |
Method | hearMessage | No summary |
Method | updateBuddy | No summary |
Method | chatJoined | No summary |
Method | chatUpdate | No summary |
Method | chatHearMessage | No summary |
Method | chatHearWhisper | No summary |
Method | chatInvited | No summary |
Method | chatLeft | we left the room roomid := the AIM id for the room |
Method | rvousProposal | No summary |
Method | receiveBytes | No summary |
Method | isaway | return our away status |
Method | set_config | No summary |
Method | add_buddy | Undocumented |
Method | del_buddy | Undocumented |
Method | add_permit | Undocumented |
Method | del_permit | Undocumented |
Method | add_deny | Undocumented |
Method | del_deny | Undocumented |
Method | signon | called to finish the setup, and signon to the network |
Method | say | No summary |
Method | idle | change idle state idletime := the seconds that the user has been away, or 0 if they're back |
Method | evil | warn a user user := the user to warn anon := if true, an anonymous warning |
Method | away | change away state message := the message, or '' to come back from awayness |
Method | chat_join | join a chat room exchange := should almost always be 4 roomname := room name |
Method | chat_say | send a message to a chatroom roomid := the AIM id for the room message := the message to send |
Method | chat_whisper | No summary |
Method | chat_leave | leave a chat room. roomid := the AIM id for the room |
Method | chat_invite | No summary |
Method | chat_accept | accept an invite to a chat room roomid := the AIM id for the room |
Method | rvous_accept | Undocumented |
Method | rvous_cancel | Undocumented |
Method | _debug | Undocumented |
Inherited from BaseProtocol (via Protocol):
Method | makeConnection | Make a connection to a transport and a server. |
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[:...]]]