1<html> 2<head> 3<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> 4<title>io_context::service</title> 5<link rel="stylesheet" href="../../../../doc/src/boostbook.css" type="text/css"> 6<meta name="generator" content="DocBook XSL Stylesheets V1.79.1"> 7<link rel="home" href="../../boost_asio.html" title="Boost.Asio"> 8<link rel="up" href="../reference.html" title="Reference"> 9<link rel="prev" href="io_context__basic_executor_type/_basic_executor_type.html" title="io_context::basic_executor_type::~basic_executor_type"> 10<link rel="next" href="io_context__service/get_io_context.html" title="io_context::service::get_io_context"> 11</head> 12<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"> 13<table cellpadding="2" width="100%"><tr> 14<td valign="top"><img alt="Boost C++ Libraries" width="277" height="86" src="../../../../boost.png"></td> 15<td align="center"><a href="../../../../index.html">Home</a></td> 16<td align="center"><a href="../../../../libs/libraries.htm">Libraries</a></td> 17<td align="center"><a href="http://www.boost.org/users/people.html">People</a></td> 18<td align="center"><a href="http://www.boost.org/users/faq.html">FAQ</a></td> 19<td align="center"><a href="../../../../more/index.htm">More</a></td> 20</tr></table> 21<hr> 22<div class="spirit-nav"> 23<a accesskey="p" href="io_context__basic_executor_type/_basic_executor_type.html"><img src="../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../reference.html"><img src="../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../boost_asio.html"><img src="../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="io_context__service/get_io_context.html"><img src="../../../../doc/src/images/next.png" alt="Next"></a> 24</div> 25<div class="section"> 26<div class="titlepage"><div><div><h3 class="title"> 27<a name="boost_asio.reference.io_context__service"></a><a class="link" href="io_context__service.html" title="io_context::service">io_context::service</a> 28</h3></div></div></div> 29<p> 30 Base class for all <a class="link" href="io_context.html" title="io_context"><code class="computeroutput">io_context</code></a> 31 services. 32 </p> 33<pre class="programlisting">class service 34</pre> 35<h5> 36<a name="boost_asio.reference.io_context__service.h0"></a> 37 <span class="phrase"><a name="boost_asio.reference.io_context__service.member_functions"></a></span><a class="link" href="io_context__service.html#boost_asio.reference.io_context__service.member_functions">Member 38 Functions</a> 39 </h5> 40<div class="informaltable"><table class="table"> 41<colgroup> 42<col> 43<col> 44</colgroup> 45<thead><tr> 46<th> 47 <p> 48 Name 49 </p> 50 </th> 51<th> 52 <p> 53 Description 54 </p> 55 </th> 56</tr></thead> 57<tbody><tr> 58<td> 59 <p> 60 <a class="link" href="io_context__service/get_io_context.html" title="io_context::service::get_io_context"><span class="bold"><strong>get_io_context</strong></span></a> 61 </p> 62 </td> 63<td> 64 <p> 65 Get the io_context object that owns the service. 66 </p> 67 </td> 68</tr></tbody> 69</table></div> 70<h5> 71<a name="boost_asio.reference.io_context__service.h1"></a> 72 <span class="phrase"><a name="boost_asio.reference.io_context__service.protected_member_functions"></a></span><a class="link" href="io_context__service.html#boost_asio.reference.io_context__service.protected_member_functions">Protected 73 Member Functions</a> 74 </h5> 75<div class="informaltable"><table class="table"> 76<colgroup> 77<col> 78<col> 79</colgroup> 80<thead><tr> 81<th> 82 <p> 83 Name 84 </p> 85 </th> 86<th> 87 <p> 88 Description 89 </p> 90 </th> 91</tr></thead> 92<tbody> 93<tr> 94<td> 95 <p> 96 <a class="link" href="io_context__service/service.html" title="io_context::service::service"><span class="bold"><strong>service</strong></span></a> <span class="silver">[constructor]</span> 97 </p> 98 </td> 99<td> 100 <p> 101 Constructor. 102 </p> 103 </td> 104</tr> 105<tr> 106<td> 107 <p> 108 <a class="link" href="io_context__service/_service.html" title="io_context::service::~service"><span class="bold"><strong>~service</strong></span></a> <span class="silver">[destructor]</span> 109 </p> 110 </td> 111<td> 112 <p> 113 Destructor. 114 </p> 115 </td> 116</tr> 117</tbody> 118</table></div> 119<h5> 120<a name="boost_asio.reference.io_context__service.h2"></a> 121 <span class="phrase"><a name="boost_asio.reference.io_context__service.requirements"></a></span><a class="link" href="io_context__service.html#boost_asio.reference.io_context__service.requirements">Requirements</a> 122 </h5> 123<p> 124 <span class="emphasis"><em>Header: </em></span><code class="literal">boost/asio/io_context.hpp</code> 125 </p> 126<p> 127 <span class="emphasis"><em>Convenience header: </em></span><code class="literal">boost/asio.hpp</code> 128 </p> 129</div> 130<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> 131<td align="left"></td> 132<td align="right"><div class="copyright-footer">Copyright © 2003-2020 Christopher M. 133 Kohlhoff<p> 134 Distributed under the Boost Software License, Version 1.0. (See accompanying 135 file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>) 136 </p> 137</div></td> 138</tr></table> 139<hr> 140<div class="spirit-nav"> 141<a accesskey="p" href="io_context__basic_executor_type/_basic_executor_type.html"><img src="../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../reference.html"><img src="../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../boost_asio.html"><img src="../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="io_context__service/get_io_context.html"><img src="../../../../doc/src/images/next.png" alt="Next"></a> 142</div> 143</body> 144</html> 145