Table of Contents

Module: irc | Twisted-0.19.0/twisted/protocols/irc.py
--- | ---
Internet Relay Chat Protocol implementation References: * RFC 1459: Internet Relay Chat Protocol RFC 2812: Internet Relay Chat: Client Protocol The Client-To-Client-Protocol http://www.irchelp.org/irchelp/rfc/ctcpspec.html
Imported modules |
--- | ---
import errno import operator import os from os import path import random import re import shutil import stat import string import struct import sys import tempfile import time import traceback from twisted.internet import reactor from twisted.persisted import styles from twisted.protocols import basic, protocol from twisted.python import log, reflect import types
Functions |
ctcpDequote ctcpExtract ctcpQuote ctcpStringify dccDescribe | fileSize lowDequote lowQuote parsemsg split
| ctcpDequote
    ctcpDequote ( s )
| ctcpExtract
    ctcpExtract ( message )
### Extract CTCP data from a string. Returns a dictionary with two items: 'extended': a list of CTCP (tag, data) tuples 'normal': a list of strings which were not inside a CTCP delimeter
| ctcpQuote
    ctcpQuote ( s )
| ctcpStringify
    ctcpStringify ( messages )
| dccDescribe
    dccDescribe ( data )
Given the data chunk from a DCC query, return a descriptive string.
| fileSize
    fileSize ( file )
I'll try my damndest to determine the size of this file object.
| lowDequote
    lowDequote ( s )
| lowQuote
    lowQuote ( s )
| parsemsg
    parsemsg ( s )
Breaks a message from an IRC server into its prefix, command, and arguments.
| split
    split ( str,  length=80 )
### split(str, length = 80) -> list of strs Breaks a message into multiple lines, prefering to break at whitespace near str[length]. Also breaks at .
Classes |
DccChat | Direct Client Connection protocol type CHAT.
DccFileReceive | Higher-level coverage for getting a file from DCC SEND.
DccFileReceiveBasic | Bare protocol to receive a Direct Client Connection SEND stream.
DccSendFactory |
DccSendProtocol | Protocol for an outgoing Direct Client Connection SEND.
IRC | Internet Relay Chat server protocol.
IRCBadMessage |
IRCClient | Internet Relay Chat client protocol, with sprinkles.
IRCPasswordMismatch |

Table of Contents

This document was automatically generated on Sun Jul 14 19:52:57 2002 by HappyDoc version 2.0