Package circuits :: Package net :: Module sockets :: Class Connect

Class Connect

object --+    
         |    
core.Event --+
             |
            Connect

Connect Event

This Event is sent when a new client connection has arrived on a server. This event is also used for client's to initiate a new connection to a remote host.


Note: This event is used for both Client and Server Components.

Instance Methods
 
__init__(self, *args, **kwargs)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature

Inherited from core.Event: __eq__, __getitem__, __repr__

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __setattr__, __sizeof__, __str__, __subclasshook__

Class Variables

Inherited from core.Event: target

Instance Variables

Inherited from core.Event: channel, name

Properties

Inherited from object: __class__

Method Details

__init__(self, *args, **kwargs)
(Constructor)

 

x.__init__(...) initializes x; see x.__class__.__doc__ for signature

Parameters:
  • args (tuple) - Client: (host, port) Server: (sock, host, port)
  • kwargs (dict) - Client: (ssl)
Overrides: object.__init__