@@ -221,6 +221,8 @@ Creating connections
221
221
to bind the socket to locally. The *local_host * and *local_port *
222
222
are looked up using getaddrinfo(), similarly to *host * and *port *.
223
223
224
+ On Windows with :class: `ProactorEventLoop `, SSL/TLS is not supported.
225
+
224
226
.. seealso ::
225
227
226
228
The :func: `open_connection ` function can be used to get a pair of
@@ -239,6 +241,8 @@ Creating connections
239
241
240
242
See the :meth: `BaseEventLoop.create_connection ` method for parameters.
241
243
244
+ On Windows with :class: `ProactorEventLoop `, this method is not supported.
245
+
242
246
243
247
.. method :: BaseEventLoop.create_unix_connection(protocol_factory, path, \*, ssl=None, sock=None, server_hostname=None)
244
248
@@ -251,6 +255,8 @@ Creating connections
251
255
establish the connection in the background. When successful, the
252
256
coroutine returns a ``(transport, protocol) `` pair.
253
257
258
+ On Windows with :class: `ProactorEventLoop `, SSL/TLS is not supported.
259
+
254
260
See the :meth: `BaseEventLoop.create_connection ` method for parameters.
255
261
256
262
Availability: UNIX.
@@ -261,19 +267,19 @@ Creating listening connections
261
267
262
268
.. method :: BaseEventLoop.create_server(protocol_factory, host=None, port=None, \*, family=socket.AF_UNSPEC, flags=socket.AI_PASSIVE, sock=None, backlog=100, ssl=None, reuse_address=None)
263
269
264
- Create a TCP server bound to host and port. Return a :class: `Server ` object,
270
+ Create a TCP server bound to * host * and * port * . Return a :class: `Server ` object,
265
271
its :attr: `~Server.sockets ` attribute contains created sockets. Use the
266
272
:meth: `Server.close ` method to stop the server: close listening sockets.
267
273
268
274
This method is a :ref: `coroutine <coroutine >`.
269
275
270
- If *host * is an empty string or None all interfaces are assumed
276
+ If *host * is an empty string or `` None ``, all interfaces are assumed
271
277
and a list of multiple sockets will be returned (most likely
272
278
one for IPv4 and another one for IPv6).
273
279
274
- *family * can be set to either :data: `~ socket.AF_INET ` or
280
+ *family * can be set to either :data: `socket.AF_INET ` or
275
281
:data: `~socket.AF_INET6 ` to force the socket to use IPv4 or IPv6. If not set
276
- it will be determined from host (defaults to :data: `~ socket.AF_UNSPEC `).
282
+ it will be determined from host (defaults to :data: `socket.AF_UNSPEC `).
277
283
278
284
*flags * is a bitmask for :meth: `getaddrinfo `.
279
285
@@ -283,14 +289,16 @@ Creating listening connections
283
289
*backlog * is the maximum number of queued connections passed to
284
290
:meth: `~socket.socket.listen ` (defaults to 100).
285
291
286
- ssl can be set to an :class: `~ssl.SSLContext ` to enable SSL over the
292
+ * ssl * can be set to an :class: `~ssl.SSLContext ` to enable SSL over the
287
293
accepted connections.
288
294
289
295
*reuse_address * tells the kernel to reuse a local socket in
290
296
TIME_WAIT state, without waiting for its natural timeout to
291
297
expire. If not specified will automatically be set to True on
292
298
UNIX.
293
299
300
+ On Windows with :class: `ProactorEventLoop `, SSL/TLS is not supported.
301
+
294
302
.. seealso ::
295
303
296
304
The function :func: `start_server ` creates a (:class: `StreamReader `,
@@ -308,6 +316,11 @@ Creating listening connections
308
316
Watch file descriptors
309
317
----------------------
310
318
319
+ On Windows with :class: `SelectorEventLoop `, only socket handles are supported
320
+ (ex: pipe file descriptors are not supported).
321
+
322
+ On Windows with :class: `ProactorEventLoop `, these methods are not supported.
323
+
311
324
.. method :: BaseEventLoop.add_reader(fd, callback, \*args)
312
325
313
326
Start watching the file descriptor for read availability and then call the
@@ -419,6 +432,9 @@ Resolve host name
419
432
Connect pipes
420
433
-------------
421
434
435
+ On Windows with :class: `SelectorEventLoop `, these methods are not supported.
436
+ Use :class: `ProactorEventLoop ` to support pipes on Windows.
437
+
422
438
.. method :: BaseEventLoop.connect_read_pipe(protocol_factory, pipe)
423
439
424
440
Register read pipe in eventloop.
0 commit comments