Vega strike Python Modules doc  0.5.1
Documentation of the " Modules " folder of Vega strike
 All Data Structures Namespaces Files Functions Variables
file_dispatcher Class Reference
Inheritance diagram for file_dispatcher:
dispatcher

Public Member Functions

def __init__
 
def set_file
 
- Public Member Functions inherited from dispatcher
def __init__
 
def __repr__
 
def add_channel
 
def del_channel
 
def create_socket
 
def set_socket
 

Data Fields

 connected
 
 socket
 
- Data Fields inherited from dispatcher
 connected
 
 socket
 
 family_and_type
 

Additional Inherited Members

- Static Public Attributes inherited from dispatcher
int debug = 0
 
int connected = 0
 
int accepting = 0
 
int closing = 0
 
 addr = None
 

Detailed Description

Definition at line 538 of file asyncore.py.

Constructor & Destructor Documentation

def __init__ (   self,
  fd 
)

Definition at line 539 of file asyncore.py.

540  def __init__ (self, fd):
541  dispatcher.__init__ (self)
542  self.connected = 1
543  # set it to non-blocking mode
544  flags = fcntl.fcntl (fd, fcntl.F_GETFL, 0)
545  flags = flags | os.O_NONBLOCK
546  fcntl.fcntl (fd, fcntl.F_SETFL, flags)
547  self.set_file (fd)

Member Function Documentation

def set_file (   self,
  fd 
)

Definition at line 548 of file asyncore.py.

References dispatcher._fileno.

549  def set_file (self, fd):
550  self._fileno = fd
551  self.socket = file_wrapper (fd)
552  self.add_channel()

Field Documentation

connected

Definition at line 541 of file asyncore.py.

socket

Definition at line 550 of file asyncore.py.


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