Diff of /Doc/library/asynchat.rst [3939ff] .. [53c60c]  Maximize  Restore

  Switch to side-by-side view

--- a/Doc/library/asynchat.rst
+++ b/Doc/library/asynchat.rst
@@ -81,6 +81,12 @@
    :exc:`NotImplementedError` exception.
+.. method:: async_chat._collect_incoming_data(data)
+   Sample implementation of a data collection rutine to be used in conjunction
+   with :meth:`_get_data` in a user-specified :meth:`found_terminator`.
 .. method:: async_chat.discard_buffers()
    In emergencies this method will discard any data held in the input and/or
@@ -93,6 +99,12 @@
    by :meth:`set_terminator`. The default method, which must be overridden,
    raises a :exc:`NotImplementedError` exception. The buffered input data
    should be available via an instance attribute.
+.. method:: async_chat._get_data()
+   Will return and clear the data received with the sample
+   :meth:`_collect_incoming_data` implementation.
 .. method:: async_chat.get_terminator()

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

No, thanks