Arguments:
+ * *protocol_factory* must be a callable returning a
+ :ref:`protocol <asyncio-protocol>` implementation.
+
* The *host* parameter can be set to several types which determine behavior:
- If *host* is a string, the TCP server is bound to *host* and *port*.
- if *host* is a sequence of strings, the TCP server is bound to all
:class:`str`, :class:`bytes`, and :class:`~pathlib.Path` paths
are supported.
+ See the documentation of the :meth:`loop.create_server` method
+ for information about arguments to this method.
+
Availability: UNIX.
.. versionadded:: 3.7
Parameters:
+ * *protocol_factory* must be a callable returning a
+ :ref:`protocol <asyncio-protocol>` implementation.
+
* *sock* is a preexisting socket object returned from
:meth:`socket.accept <socket.socket.accept>`.
*pipe* is a :term:`file-like object <file object>`.
Return pair ``(transport, protocol)``, where *transport* supports
- the :class:`ReadTransport` interface.
+ the :class:`ReadTransport` interface and *protocol* is an object
+ instantiated by the *protocol_factory*.
With :class:`SelectorEventLoop` event loop, the *pipe* is set to
non-blocking mode.
*pipe* is :term:`file-like object <file object>`.
Return pair ``(transport, protocol)``, where *transport* supports
- :class:`WriteTransport` interface.
+ :class:`WriteTransport` interface and *protocol* is an object
+ instantiated by the *protocol_factory*.
With :class:`SelectorEventLoop` event loop, the *pipe* is set to
non-blocking mode.
for documentation on other arguments.
Returns a pair of ``(transport, protocol)``, where *transport*
- conforms to the :class:`asyncio.SubprocessTransport` base class.
+ conforms to the :class:`asyncio.SubprocessTransport` base class and
+ *protocol* is an object instantiated by the *protocol_factory*.
.. coroutinemethod:: loop.subprocess_shell(protocol_factory, cmd, \*, \
stdin=subprocess.PIPE, stdout=subprocess.PIPE, \
the remaining arguments.
Returns a pair of ``(transport, protocol)``, where *transport*
- conforms to the :class:`SubprocessTransport` base class.
+ conforms to the :class:`SubprocessTransport` base class and
+ *protocol* is an object instantiated by the *protocol_factory*.
.. note::
It is the application's responsibility to ensure that all whitespace