Skip to content

Commit 50f8fd4

Browse files
committed
Implementation notes for Windows Runtime support.
1 parent 372b6d6 commit 50f8fd4

File tree

1 file changed

+43
-1
lines changed

1 file changed

+43
-1
lines changed

asio/src/doc/overview/implementation.qbk

Lines changed: 43 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ Scatter-Gather:
226226
* For sockets, at most 16 buffers may be transferred in a single operation.
227227

228228

229-
[heading Windows NT, 2000, XP, 2003 and Vista]
229+
[heading Windows NT, 2000, XP, 2003, Vista, 7 and 8]
230230

231231
Demultiplexing mechanism:
232232

@@ -259,5 +259,47 @@ Scatter-Gather:
259259
* For stream-oriented handles, only one buffer may be transferred in a single
260260
operation.
261261

262+
[heading Windows Runtime]
263+
264+
Asio provides limited support for the Windows Runtime. It requires that the
265+
language extensions be enabled. Due to the restricted facilities exposed by the
266+
Windows Runtime API, the support comes with the following caveats:
267+
268+
* The core facilities such as the `io_service`, `strand`, buffers, composed
269+
operations, timers, etc., should all work as normal.
270+
271+
* For sockets, only client-side TCP is supported.
272+
273+
* Explicit binding of a client-side TCP socket is not supported.
274+
275+
* The `cancel()` function is not supported for sockets. Asynchronous
276+
operations may only be cancelled by closing the socket.
277+
278+
* Operations that use `null_buffers` are not supported.
279+
280+
* Only `tcp::no_delay` and `socket_base::keep_alive` options are supported.
281+
282+
* Resolvers do not support service names, only numbers. I.e. you must
283+
use "80" rather than "http".
284+
285+
* Most resolver query flags have no effect.
286+
287+
Demultiplexing mechanism:
288+
289+
* Uses the `Windows::Networking::Sockets::StreamSocket` class to implement
290+
asynchronous TCP socket operations.
291+
292+
Threads:
293+
294+
* Event completions are delivered to the Windows thread pool and posted to the
295+
`io_service` for the handler to be executed.
296+
297+
* An additional thread per `io_service` is used to trigger timers. This thread
298+
is created on construction of the first timer objects.
299+
300+
Scatter-Gather:
301+
302+
* For sockets, at most one buffer may be transferred in a single operation.
303+
262304

263305
[endsect]

0 commit comments

Comments
 (0)