@@ -201,8 +201,10 @@ Creating connections
201201.. method :: BaseEventLoop.create_connection(protocol_factory, host=None, port=None, \*, ssl=None, family=0, proto=0, flags=0, sock=None, local_addr=None, server_hostname=None)
202202
203203 Create a streaming transport connection to a given Internet *host * and
204- *port *. *protocol_factory * must be a callable returning a
205- :ref: `protocol <asyncio-protocol >` instance.
204+ *port *: socket family :py:data: `~socket.AF_INET ` or
205+ :py:data: `~socket.AF_INET6 ` depending on *host * (or *family * if specified),
206+ socket type :py:data: `~socket.SOCK_STREAM `. *protocol_factory * must be a
207+ callable returning a :ref: `protocol <asyncio-protocol >` instance.
206208
207209 This method returns a :ref: `coroutine object <coroutine >` which will try to
208210 establish the connection in the background. When successful, the
@@ -265,6 +267,35 @@ Creating connections
265267 (:class: `StreamReader `, :class: `StreamWriter `) instead of a protocol.
266268
267269
270+ .. method :: BaseEventLoop.create_datagram_endpoint(protocol_factory, local_addr=None, remote_addr=None, \*, family=0, proto=0, flags=0)
271+
272+ Create datagram connection: socket family :py:data: `~socket.AF_INET ` or
273+ :py:data: `~socket.AF_INET6 ` depending on *host * (or *family * if specified),
274+ socket type :py:data: `~socket.SOCK_DGRAM `.
275+
276+ This method returns a :ref: `coroutine object <coroutine >` which will try to
277+ establish the connection in the background. When successful, the
278+ coroutine returns a ``(transport, protocol) `` pair.
279+
280+ See the :meth: `BaseEventLoop.create_connection ` method for parameters.
281+
282+
283+ .. method :: BaseEventLoop.create_unix_connection(protocol_factory, path, \*, ssl=None, sock=None, server_hostname=None)
284+
285+ Create UNIX connection: socket family :py:data: `~socket.AF_UNIX `, socket
286+ type :py:data: `~socket.SOCK_STREAM `. The :py:data: `~socket.AF_UNIX ` socket
287+ family is used to communicate between processes on the same machine
288+ efficiently.
289+
290+ This method returns a :ref: `coroutine object <coroutine >` which will try to
291+ establish the connection in the background. When successful, the
292+ coroutine returns a ``(transport, protocol) `` pair.
293+
294+ See the :meth: `BaseEventLoop.create_connection ` method for parameters.
295+
296+ Availability: UNIX.
297+
298+
268299Creating listening connections
269300------------------------------
270301
@@ -307,11 +338,13 @@ Creating listening connections
307338 The function :func: `start_server ` creates a (:class: `StreamReader `,
308339 :class: `StreamWriter `) pair and calls back a function with this pair.
309340
310- .. method :: BaseEventLoop.create_datagram_endpoint(protocol_factory, local_addr=None, remote_addr=None, \*, family=0, proto=0, flags=0)
311341
312- Create datagram connection.
342+ .. method :: BaseEventLoop.create_unix_server(protocol_factory, path=None, \*, sock=None, backlog=100, ssl=None)
313343
314- This method returns a :ref: `coroutine object <coroutine >`.
344+ Similar to :meth: `BaseEventLoop.create_server `, but specific to the
345+ socket family :py:data: `~socket.AF_UNIX `.
346+
347+ Availability: UNIX.
315348
316349
317350
0 commit comments