summaryrefslogtreecommitdiffstats
path: root/Doc/library/asynchat.rst
diff options
context:
space:
mode:
authorJosiah Carlson <josiah.carlson@gmail.com>2008-07-07 04:15:08 (GMT)
committerJosiah Carlson <josiah.carlson@gmail.com>2008-07-07 04:15:08 (GMT)
commitd74900ebb5a22b387b49684990da1925e1d6bdc9 (patch)
tree2bdffc475f22a3db675656e49458f74ebfc39951 /Doc/library/asynchat.rst
parentd51ee54a232f4986abd18a4113f3af1158c2fd53 (diff)
downloadcpython-d74900ebb5a22b387b49684990da1925e1d6bdc9.zip
cpython-d74900ebb5a22b387b49684990da1925e1d6bdc9.tar.gz
cpython-d74900ebb5a22b387b49684990da1925e1d6bdc9.tar.bz2
Committing Py3k version of changelist 64080 and 64257, along with updated tests
for smtpd, which required updating with the new semantics.
Diffstat (limited to 'Doc/library/asynchat.rst')
-rw-r--r--Doc/library/asynchat.rst12
1 files changed, 12 insertions, 0 deletions
diff --git a/Doc/library/asynchat.rst b/Doc/library/asynchat.rst
index 6f15441..ff6432e 100644
--- a/Doc/library/asynchat.rst
+++ b/Doc/library/asynchat.rst
@@ -81,6 +81,12 @@ connection requests.
: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
@@ -95,6 +101,12 @@ connection requests.
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()
Returns the current terminator for the channel.