Module asynchat :: Class async_chat
[hide private]
[frames] | no frames]

_ClassType async_chat

asyncore.dispatcher --+
                      |
                     async_chat
Known Subclasses:

This is an abstract class. You must derive from this class, and add the two methods collect_incoming_data() and found_terminator()

Instance Methods [hide private]
 
__init__(self, conn=None)
 
collect_incoming_data(self, data)
 
found_terminator(self)
 
set_terminator(self, term)
Set the input delimiter.
 
get_terminator(self)
 
handle_read(self)
 
handle_write(self)
 
handle_close(self)
 
push(self, data)
 
push_with_producer(self, producer)
 
readable(self)
predicate for inclusion in the readable for select()
 
writable(self)
predicate for inclusion in the writable for select()
 
close_when_done(self)
automatically close this channel once the outgoing queue is empty
 
refill_buffer(self)
 
initiate_send(self)
 
discard_buffers(self)

Inherited from asyncore.dispatcher: __getattr__, __repr__, accept, add_channel, bind, close, connect, create_socket, del_channel, handle_accept, handle_connect, handle_error, handle_expt, handle_expt_event, handle_read_event, handle_write_event, listen, log, log_info, recv, send, set_reuse_addr, set_socket

Class Variables [hide private]
  ac_in_buffer_size = 4096
  ac_out_buffer_size = 4096

Inherited from asyncore.dispatcher: accepting, addr, closing, connected, debug

Method Details [hide private]

__init__(self, conn=None)
(Constructor)

 
Overrides: asyncore.dispatcher.__init__

set_terminator(self, term)

 

Set the input delimiter. Can be a fixed string of any length, an integer, or None

handle_read(self)

 
Overrides: asyncore.dispatcher.handle_read

handle_write(self)

 
Overrides: asyncore.dispatcher.handle_write

handle_close(self)

 
Overrides: asyncore.dispatcher.handle_close

readable(self)

 

predicate for inclusion in the readable for select()

Overrides: asyncore.dispatcher.readable

writable(self)

 

predicate for inclusion in the writable for select()

Overrides: asyncore.dispatcher.writable