Kaydet (Commit) 2195d537 authored tarafından R David Murray's avatar R David Murray

Merge: #26209: Clarify type of *localaddr*/*remoteadr* in smtpd docs.

...@@ -32,9 +32,10 @@ SMTPServer Objects ...@@ -32,9 +32,10 @@ SMTPServer Objects
map=None, enable_SMTPUTF8=False, decode_data=False) map=None, enable_SMTPUTF8=False, decode_data=False)
Create a new :class:`SMTPServer` object, which binds to local address Create a new :class:`SMTPServer` object, which binds to local address
*localaddr*. It will treat *remoteaddr* as an upstream SMTP relayer. It *localaddr*. It will treat *remoteaddr* as an upstream SMTP relayer. Both
inherits from :class:`asyncore.dispatcher`, and so will insert itself into *localaddr* and *remoteaddr* should be a :ref:`(host, port) <host_port>`
:mod:`asyncore`'s event loop on instantiation. tuple. The object inherits from :class:`asyncore.dispatcher`, and so will
insert itself into :mod:`asyncore`'s event loop on instantiation.
*data_size_limit* specifies the maximum number of bytes that will be *data_size_limit* specifies the maximum number of bytes that will be
accepted in a ``DATA`` command. A value of ``None`` or ``0`` means no accepted in a ``DATA`` command. A value of ``None`` or ``0`` means no
......
...@@ -63,6 +63,8 @@ created. Socket addresses are represented as follows: ...@@ -63,6 +63,8 @@ created. Socket addresses are represented as follows:
.. versionchanged:: 3.5 .. versionchanged:: 3.5
Writable :term:`bytes-like object` is now accepted. Writable :term:`bytes-like object` is now accepted.
.. _host_port:
- A pair ``(host, port)`` is used for the :const:`AF_INET` address family, - A pair ``(host, port)`` is used for the :const:`AF_INET` address family,
where *host* is a string representing either a hostname in Internet domain where *host* is a string representing either a hostname in Internet domain
notation like ``'daring.cwi.nl'`` or an IPv4 address like ``'100.50.200.5'``, notation like ``'daring.cwi.nl'`` or an IPv4 address like ``'100.50.200.5'``,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment