asyncore
index
/usr/lib/python1.5/asyncore.py
 

# -*- Mode: Python; tab-width: 4 -*-
#       $Id: asyncore.py,v 1.1 1999/01/12 20:19:27 guido Exp $
#       Author: Sam Rushing <rushing@nightmare.com>

   
Modules
                        
FCNTL
fcntl
os
select
socket
string
sys

   
Classes
                        
dispatcher
dispatcher_with_send
file_dispatcher
file_wrapper

   
class dispatcher
              
__getattr__(self, attr)
__init__(self, sock=None)
__repr__(self)
accept(self)
add_channel(self)
bind(self, addr)
close(self)
connect(self, address)
create_socket(self, family, type)
del_channel(self)
handle_accept(self)
handle_close(self)
handle_connect(self)
handle_error(self, *info)
handle_expt(self)
handle_expt_event(self)
handle_oob(self)
handle_read(self)
handle_read_event(self)
handle_write(self)
handle_write_event(self)
listen(self, num)
log(self, message)
readable(self)
recv(self, buffer_size)
send(self, data)
set_reuse_addr(self)
set_socket(self, socket)
writable(self)

   
class dispatcher_with_send(dispatcher)
              
__init__(self, sock=None)
handle_write(self)
initiate_send(self)
send(self, data)
writable(self)

   
class file_dispatcher(dispatcher)
              
__init__(self, fd)
set_file(self, fd)

   
class file_wrapper
              
__init__(self, fd)
close(self)
fileno(self)
recv(self, *args)
write(self, *args)

   
Constants
                        
EALREADY = 114
ECONNRESET = 104
EINPROGRESS = 115
ENOTCONN = 107
EWOULDBLOCK = 11