webkit  2cdf99a9e3038c7e01b3c37e8ad903ecbe5eecf1
https://github.com/WebKit/webkit
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
Public Member Functions | Public Attributes | List of all members
webkitpy.thirdparty.irc.irclib.DCCConnection Class Reference
Inheritance diagram for webkitpy.thirdparty.irc.irclib.DCCConnection:
webkitpy.thirdparty.irc.irclib.Connection

Public Member Functions

def __init__ (self, irclibobj, dcctype)
 
def connect (self, address, port)
 
def listen (self)
 
def disconnect (self, message="")
 
def process_data (self)
 
def privmsg (self, string)
 
- Public Member Functions inherited from webkitpy.thirdparty.irc.irclib.Connection
def __init__ (self, irclibobj)
 
def execute_at (self, at, function, arguments=())
 Convenience wrappers. More...
 
def execute_delayed (self, delay, function, arguments=())
 

Public Attributes

 connected
 
 passive
 
 dcctype
 
 peeraddress
 
 peerport
 
 socket
 
 previous_buffer
 
 handlers
 
 localport
 
- Public Attributes inherited from webkitpy.thirdparty.irc.irclib.Connection
 irclibobj
 

Detailed Description

This class represents a DCC connection.

DCCConnection objects are instantiated by calling the dcc
method on an IRC object.

Constructor & Destructor Documentation

◆ __init__()

def webkitpy.thirdparty.irc.irclib.DCCConnection.__init__ (   self,
  irclibobj,
  dcctype 
)

Member Function Documentation

◆ connect()

def webkitpy.thirdparty.irc.irclib.DCCConnection.connect (   self,
  address,
  port 
)
Connect/reconnect to a DCC peer.

Arguments:
    address -- Host/IP address of the peer.

    port -- The port number to connect to.

Returns the DCCConnection object.

◆ disconnect()

def webkitpy.thirdparty.irc.irclib.DCCConnection.disconnect (   self,
  message = "" 
)
Hang up the connection and close the object.

Arguments:

    message -- Quit message.

◆ listen()

def webkitpy.thirdparty.irc.irclib.DCCConnection.listen (   self)
Wait for a connection/reconnection from a DCC peer.

Returns the DCCConnection object.

The local IP address and port are available as
self.localaddress and self.localport.  After connection from a
peer, the peer address and port are available as
self.peeraddress and self.peerport.

◆ privmsg()

def webkitpy.thirdparty.irc.irclib.DCCConnection.privmsg (   self,
  string 
)
Send data to DCC peer.

The string will be padded with appropriate LF if it's a DCC
CHAT session.

◆ process_data()

def webkitpy.thirdparty.irc.irclib.DCCConnection.process_data (   self)
[Internal]

Member Data Documentation

◆ connected

webkitpy.thirdparty.irc.irclib.DCCConnection.connected

◆ dcctype

webkitpy.thirdparty.irc.irclib.DCCConnection.dcctype

◆ handlers

webkitpy.thirdparty.irc.irclib.DCCConnection.handlers

◆ localport

webkitpy.thirdparty.irc.irclib.DCCConnection.localport

◆ passive

webkitpy.thirdparty.irc.irclib.DCCConnection.passive

◆ peeraddress

webkitpy.thirdparty.irc.irclib.DCCConnection.peeraddress

◆ peerport

webkitpy.thirdparty.irc.irclib.DCCConnection.peerport

◆ previous_buffer

webkitpy.thirdparty.irc.irclib.DCCConnection.previous_buffer

◆ socket

webkitpy.thirdparty.irc.irclib.DCCConnection.socket

The documentation for this class was generated from the following file: