blob: 60827d172d1dd8ed492d0bb1e9b30418953c86ad [file] [log] [blame]
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.20"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Qpid Proton C++ API: scheduled_send.cpp</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(document).ready(function() { init_search(); });
/* @license-end */
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
<tbody>
<tr style="height: 56px;">
<td id="projectalign" style="padding-left: 0.5em;">
<div id="projectname">Qpid Proton C++ API
&#160;<span id="projectnumber">0.32.0</span>
</div>
</td>
<td> <div id="MSearchBox" class="MSearchBoxInactive">
<span class="left">
<img id="MSearchSelect" src="search/mag_sel.svg"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
alt=""/>
<input type="text" id="MSearchField" value="Search" accesskey="S"
onfocus="searchBox.OnSearchFieldFocus(true)"
onblur="searchBox.OnSearchFieldFocus(false)"
onkeyup="searchBox.OnSearchFieldChange(event)"/>
</span><span class="right">
<a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.svg" alt=""/></a>
</span>
</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.20 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
<div id="nav-tree">
<div id="nav-tree-contents">
<div id="nav-sync" class="sync"></div>
</div>
</div>
<div id="splitbar" style="-moz-user-select:none;"
class="ui-resizable-handle">
</div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(document).ready(function(){initNavTree('scheduled_send_8cpp-example.html',''); initResizable(); });
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>
<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0"
name="MSearchResults" id="MSearchResults">
</iframe>
</div>
<div class="header">
<div class="headertitle">
<div class="title">scheduled_send.cpp</div> </div>
</div><!--header-->
<div class="contents">
<p>Shows how to use <a class="el" href="classproton_1_1container.html#aa99ede2051ccdf5fe8257d893559ea26" title="Schedule fn for execution after a duration.">proton::container::schedule</a> to schedule a timed callback.This version uses std::function and so requires C++11 or better. For a C++03 compatible approach see <a class="el" href="scheduled_send_03_8cpp-example.html">scheduled_send_03.cpp</a>.</p>
<div class="fragment"><div class="line"><span class="comment">/*</span></div>
<div class="line"><span class="comment"> *</span></div>
<div class="line"><span class="comment"> * Licensed to the Apache Software Foundation (ASF) under one</span></div>
<div class="line"><span class="comment"> * or more contributor license agreements. See the NOTICE file</span></div>
<div class="line"><span class="comment"> * distributed with this work for additional information</span></div>
<div class="line"><span class="comment"> * regarding copyright ownership. The ASF licenses this file</span></div>
<div class="line"><span class="comment"> * to you under the Apache License, Version 2.0 (the</span></div>
<div class="line"><span class="comment"> * &quot;License&quot;); you may not use this file except in compliance</span></div>
<div class="line"><span class="comment"> * with the License. You may obtain a copy of the License at</span></div>
<div class="line"><span class="comment"> *</span></div>
<div class="line"><span class="comment"> * http://www.apache.org/licenses/LICENSE-2.0</span></div>
<div class="line"><span class="comment"> *</span></div>
<div class="line"><span class="comment"> * Unless required by applicable law or agreed to in writing,</span></div>
<div class="line"><span class="comment"> * software distributed under the License is distributed on an</span></div>
<div class="line"><span class="comment"> * &quot;AS IS&quot; BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY</span></div>
<div class="line"><span class="comment"> * KIND, either express or implied. See the License for the</span></div>
<div class="line"><span class="comment"> * specific language governing permissions and limitations</span></div>
<div class="line"><span class="comment"> * under the License.</span></div>
<div class="line"><span class="comment"> *</span></div>
<div class="line"><span class="comment"> */</span></div>
<div class="line"> </div>
<div class="line"><span class="preprocessor">#include &quot;options.hpp&quot;</span></div>
<div class="line"> </div>
<div class="line"><span class="preprocessor">#include &lt;<a class="code" href="container_8hpp.html">proton/container.hpp</a>&gt;</span></div>
<div class="line"><span class="preprocessor">#include &lt;<a class="code" href="connection_8hpp.html">proton/connection.hpp</a>&gt;</span></div>
<div class="line"><span class="preprocessor">#include &lt;<a class="code" href="message_8hpp.html">proton/message.hpp</a>&gt;</span></div>
<div class="line"><span class="preprocessor">#include &lt;<a class="code" href="messaging__handler_8hpp.html">proton/messaging_handler.hpp</a>&gt;</span></div>
<div class="line"><span class="preprocessor">#include &lt;<a class="code" href="sender_8hpp.html">proton/sender.hpp</a>&gt;</span></div>
<div class="line"><span class="preprocessor">#include &lt;<a class="code" href="tracker_8hpp.html">proton/tracker.hpp</a>&gt;</span></div>
<div class="line"><span class="preprocessor">#include &lt;<a class="code" href="work__queue_8hpp.html">proton/work_queue.hpp</a>&gt;</span></div>
<div class="line"> </div>
<div class="line"><span class="preprocessor">#include &lt;iostream&gt;</span></div>
<div class="line"> </div>
<div class="line"><span class="preprocessor">#include &quot;fake_cpp11.hpp&quot;</span></div>
<div class="line"> </div>
<div class="line"><span class="comment">// Send messages at a constant rate one per interval. cancel after a timeout.</span></div>
<div class="line"><span class="keyword">class </span>scheduled_sender : <span class="keyword">public</span> <a name="_a0"></a><a class="code" href="classproton_1_1messaging__handler.html">proton::messaging_handler</a> {</div>
<div class="line"> <span class="keyword">private</span>:</div>
<div class="line"> std::string url;</div>
<div class="line"> <a name="_a1"></a><a class="code" href="classproton_1_1sender.html">proton::sender</a> sender;</div>
<div class="line"> <a name="_a2"></a><a class="code" href="classproton_1_1duration.html">proton::duration</a> interval, timeout;</div>
<div class="line"> <a name="_a3"></a><a class="code" href="classproton_1_1work__queue.html">proton::work_queue</a>* work_queue;</div>
<div class="line"> <span class="keywordtype">bool</span> ready, canceled;</div>
<div class="line"> </div>
<div class="line"> <span class="keyword">public</span>:</div>
<div class="line"> </div>
<div class="line"> scheduled_sender(<span class="keyword">const</span> std::string &amp;s, <span class="keywordtype">double</span> d, <span class="keywordtype">double</span> t) :</div>
<div class="line"> url(s),</div>
<div class="line"> interval(<span class="keywordtype">int</span>(d*<a name="a4"></a><a class="code" href="classproton_1_1duration.html#aced1c394edccf069b2748d46965fb562">proton::duration::SECOND</a>.milliseconds())), <span class="comment">// Send interval.</span></div>
<div class="line"> timeout(<span class="keywordtype">int</span>(t*<a class="code" href="classproton_1_1duration.html#aced1c394edccf069b2748d46965fb562">proton::duration::SECOND</a>.milliseconds())), <span class="comment">// Cancel after timeout.</span></div>
<div class="line"> work_queue(0),</div>
<div class="line"> ready(<span class="keyword">true</span>), <span class="comment">// Ready to send.</span></div>
<div class="line"> canceled(<span class="keyword">false</span>) <span class="comment">// Canceled.</span></div>
<div class="line"> {}</div>
<div class="line"> </div>
<div class="line"> <span class="comment">// The awkward looking double lambda is necessary because the scheduled lambdas run in the container context</span></div>
<div class="line"> <span class="comment">// and must arrange lambdas for send and close to happen in the connection context.</span></div>
<div class="line"> <span class="keywordtype">void</span> <a name="a5"></a><a class="code" href="classproton_1_1messaging__handler.html#a9188622c33638e076d2214080129c824">on_container_start</a>(<a name="_a6"></a><a class="code" href="classproton_1_1container.html">proton::container</a> &amp;c) OVERRIDE {</div>
<div class="line"> c.<a name="a7"></a><a class="code" href="classproton_1_1container.html#adfbfd13668611a525bb44328d7a3b1e8">open_sender</a>(url);</div>
<div class="line"> }</div>
<div class="line"> </div>
<div class="line"> <span class="keywordtype">void</span> <a name="a8"></a><a class="code" href="classproton_1_1messaging__handler.html#ac655d56c64574c9eb7b10e80d32764f4">on_sender_open</a>(<a class="code" href="classproton_1_1sender.html">proton::sender</a> &amp;s) OVERRIDE {</div>
<div class="line"> sender = s;</div>
<div class="line"> work_queue = &amp;s.<a name="a9"></a><a class="code" href="classproton_1_1link.html#a7c755d6ac6385e007adb61966598ba63">work_queue</a>();</div>
<div class="line"> <span class="comment">// Call this-&gt;cancel after timeout.</span></div>
<div class="line"> s.<a name="a10"></a><a class="code" href="classproton_1_1link.html#a2f632b80247e868b8264b8a025b84baf">container</a>().<a name="a11"></a><a class="code" href="classproton_1_1container.html#aa99ede2051ccdf5fe8257d893559ea26">schedule</a>(timeout, [<span class="keyword">this</span>]() { this-&gt;work_queue-&gt;<a name="a12"></a><a class="code" href="classproton_1_1work__queue.html#a59dae2153455bc095477a3b66a0b681e">add</a>( [<span class="keyword">this</span>]() { this-&gt;cancel(); }); });</div>
<div class="line"> <span class="comment">// Start regular ticks every interval.</span></div>
<div class="line"> s.<a class="code" href="classproton_1_1link.html#a2f632b80247e868b8264b8a025b84baf">container</a>().<a class="code" href="classproton_1_1container.html#aa99ede2051ccdf5fe8257d893559ea26">schedule</a>(interval, [<span class="keyword">this</span>]() { this-&gt;work_queue-&gt;<a class="code" href="classproton_1_1work__queue.html#a59dae2153455bc095477a3b66a0b681e">add</a>( [<span class="keyword">this</span>]() { this-&gt;tick(); }); });</div>
<div class="line"> }</div>
<div class="line"> </div>
<div class="line"> <span class="keywordtype">void</span> cancel() {</div>
<div class="line"> canceled = <span class="keyword">true</span>;</div>
<div class="line"> sender.<a name="a13"></a><a class="code" href="classproton_1_1link.html#aff302bb6016f2ae29f01bb4e07389a52">connection</a>().<a name="a14"></a><a class="code" href="classproton_1_1connection.html#a5ae591df94fc66ccb85cbb6565368bca">close</a>();</div>
<div class="line"> }</div>
<div class="line"> </div>
<div class="line"> <span class="keywordtype">void</span> tick() {</div>
<div class="line"> <span class="comment">// Schedule the next tick unless we have been cancelled.</span></div>
<div class="line"> <span class="keywordflow">if</span> (!canceled)</div>
<div class="line"> sender.<a class="code" href="classproton_1_1link.html#a2f632b80247e868b8264b8a025b84baf">container</a>().<a class="code" href="classproton_1_1container.html#aa99ede2051ccdf5fe8257d893559ea26">schedule</a>(interval, [<span class="keyword">this</span>]() { this-&gt;work_queue-&gt;<a class="code" href="classproton_1_1work__queue.html#a59dae2153455bc095477a3b66a0b681e">add</a>( [<span class="keyword">this</span>]() { this-&gt;tick(); }); });</div>
<div class="line"> <span class="keywordflow">if</span> (sender.<a name="a15"></a><a class="code" href="classproton_1_1link.html#afd27bd11ba72d7df51c44f71b15749eb">credit</a>() &gt; 0) <span class="comment">// Only send if we have credit</span></div>
<div class="line"> send();</div>
<div class="line"> <span class="keywordflow">else</span></div>
<div class="line"> ready = <span class="keyword">true</span>; <span class="comment">// Set the ready flag, send as soon as we get credit.</span></div>
<div class="line"> }</div>
<div class="line"> </div>
<div class="line"> <span class="keywordtype">void</span> <a name="a16"></a><a class="code" href="classproton_1_1messaging__handler.html#a86c9509ba3ce1925150c5b7a9a937c94">on_sendable</a>(<a class="code" href="classproton_1_1sender.html">proton::sender</a> &amp;) OVERRIDE {</div>
<div class="line"> <span class="keywordflow">if</span> (ready) <span class="comment">// We have been ticked since the last send.</span></div>
<div class="line"> send();</div>
<div class="line"> }</div>
<div class="line"> </div>
<div class="line"> <span class="keywordtype">void</span> send() {</div>
<div class="line"> std::cout &lt;&lt; <span class="stringliteral">&quot;send&quot;</span> &lt;&lt; std::endl;</div>
<div class="line"> sender.<a name="a17"></a><a class="code" href="classproton_1_1sender.html#a214eb30b24e6831d016a47b9dddda830">send</a>(<a name="_a18"></a><a class="code" href="classproton_1_1message.html">proton::message</a>(<span class="stringliteral">&quot;ping&quot;</span>));</div>
<div class="line"> ready = <span class="keyword">false</span>;</div>
<div class="line"> }</div>
<div class="line">};</div>
<div class="line"> </div>
<div class="line"> </div>
<div class="line"><span class="keywordtype">int</span> main(<span class="keywordtype">int</span> argc, <span class="keywordtype">char</span> **argv) {</div>
<div class="line"> std::string address(<span class="stringliteral">&quot;127.0.0.1:5672/examples&quot;</span>);</div>
<div class="line"> <span class="keywordtype">double</span> interval = 1.0;</div>
<div class="line"> <span class="keywordtype">double</span> timeout = 5.0;</div>
<div class="line"> </div>
<div class="line"> example::options opts(argc, argv);</div>
<div class="line"> </div>
<div class="line"> opts.add_value(address, <span class="charliteral">&#39;a&#39;</span>, <span class="stringliteral">&quot;address&quot;</span>, <span class="stringliteral">&quot;connect and send to URL&quot;</span>, <span class="stringliteral">&quot;URL&quot;</span>);</div>
<div class="line"> opts.add_value(interval, <span class="charliteral">&#39;i&#39;</span>, <span class="stringliteral">&quot;interval&quot;</span>, <span class="stringliteral">&quot;send a message every INTERVAL seconds&quot;</span>, <span class="stringliteral">&quot;INTERVAL&quot;</span>);</div>
<div class="line"> opts.add_value(timeout, <span class="charliteral">&#39;t&#39;</span>, <span class="stringliteral">&quot;timeout&quot;</span>, <span class="stringliteral">&quot;stop after T seconds&quot;</span>, <span class="stringliteral">&quot;T&quot;</span>);</div>
<div class="line"> </div>
<div class="line"> <span class="keywordflow">try</span> {</div>
<div class="line"> opts.parse();</div>
<div class="line"> scheduled_sender h(address, interval, timeout);</div>
<div class="line"> <a class="code" href="classproton_1_1container.html">proton::container</a>(h).<a name="a19"></a><a class="code" href="classproton_1_1container.html#a13a43e6d814de94978c515cb084873b1">run</a>();</div>
<div class="line"> <span class="keywordflow">return</span> 0;</div>
<div class="line"> } <span class="keywordflow">catch</span> (<span class="keyword">const</span> example::bad_option&amp; e) {</div>
<div class="line"> std::cout &lt;&lt; opts &lt;&lt; std::endl &lt;&lt; e.what() &lt;&lt; std::endl;</div>
<div class="line"> } <span class="keywordflow">catch</span> (<span class="keyword">const</span> std::exception&amp; e) {</div>
<div class="line"> std::cerr &lt;&lt; e.what() &lt;&lt; std::endl;</div>
<div class="line"> }</div>
<div class="line"> </div>
<div class="line"> <span class="keywordflow">return</span> 1;</div>
<div class="line">}</div>
</div><!-- fragment --> </div><!-- contents -->
</div><!-- doc-content -->
<div class="ttc" id="aclassproton_1_1container_html_aa99ede2051ccdf5fe8257d893559ea26"><div class="ttname"><a href="classproton_1_1container.html#aa99ede2051ccdf5fe8257d893559ea26">proton::container::schedule</a></div><div class="ttdeci">void schedule(duration dur, work fn)</div><div class="ttdoc">Schedule fn for execution after a duration.</div></div>
<div class="ttc" id="aclassproton_1_1link_html_a2f632b80247e868b8264b8a025b84baf"><div class="ttname"><a href="classproton_1_1link.html#a2f632b80247e868b8264b8a025b84baf">proton::link::container</a></div><div class="ttdeci">class container &amp; container() const</div><div class="ttdoc">The container for this link.</div></div>
<div class="ttc" id="amessaging__handler_8hpp_html"><div class="ttname"><a href="messaging__handler_8hpp.html">messaging_handler.hpp</a></div><div class="ttdoc">Handler for Proton messaging events.</div></div>
<div class="ttc" id="amessage_8hpp_html"><div class="ttname"><a href="message_8hpp.html">message.hpp</a></div><div class="ttdoc">An AMQP message.</div></div>
<div class="ttc" id="atracker_8hpp_html"><div class="ttname"><a href="tracker_8hpp.html">tracker.hpp</a></div><div class="ttdoc">A tracker for a sent message.</div></div>
<div class="ttc" id="aclassproton_1_1container_html"><div class="ttname"><a href="classproton_1_1container.html">proton::container</a></div><div class="ttdoc">A top-level container of connections, sessions, and links.</div><div class="ttdef"><b>Definition:</b> container.hpp:50</div></div>
<div class="ttc" id="aclassproton_1_1link_html_aff302bb6016f2ae29f01bb4e07389a52"><div class="ttname"><a href="classproton_1_1link.html#aff302bb6016f2ae29f01bb4e07389a52">proton::link::connection</a></div><div class="ttdeci">class connection connection() const</div><div class="ttdoc">The connection that owns this link.</div></div>
<div class="ttc" id="awork__queue_8hpp_html"><div class="ttname"><a href="work__queue_8hpp.html">work_queue.hpp</a></div><div class="ttdoc">Unsettled API - A context for thread-safe execution of work.</div></div>
<div class="ttc" id="aclassproton_1_1messaging__handler_html_a9188622c33638e076d2214080129c824"><div class="ttname"><a href="classproton_1_1messaging__handler.html#a9188622c33638e076d2214080129c824">proton::messaging_handler::on_container_start</a></div><div class="ttdeci">virtual void on_container_start(container &amp;)</div><div class="ttdoc">The container event loop is starting.</div></div>
<div class="ttc" id="aclassproton_1_1duration_html"><div class="ttname"><a href="classproton_1_1duration.html">proton::duration</a></div><div class="ttdoc">A span of time in milliseconds.</div><div class="ttdef"><b>Definition:</b> duration.hpp:39</div></div>
<div class="ttc" id="aclassproton_1_1connection_html_a5ae591df94fc66ccb85cbb6565368bca"><div class="ttname"><a href="classproton_1_1connection.html#a5ae591df94fc66ccb85cbb6565368bca">proton::connection::close</a></div><div class="ttdeci">void close()</div><div class="ttdoc">Close the connection.</div></div>
<div class="ttc" id="aclassproton_1_1messaging__handler_html_a86c9509ba3ce1925150c5b7a9a937c94"><div class="ttname"><a href="classproton_1_1messaging__handler.html#a86c9509ba3ce1925150c5b7a9a937c94">proton::messaging_handler::on_sendable</a></div><div class="ttdeci">virtual void on_sendable(sender &amp;)</div><div class="ttdoc">A message can be sent.</div></div>
<div class="ttc" id="aconnection_8hpp_html"><div class="ttname"><a href="connection_8hpp.html">connection.hpp</a></div><div class="ttdoc">A connection to a remote AMQP peer.</div></div>
<div class="ttc" id="aclassproton_1_1work__queue_html_a59dae2153455bc095477a3b66a0b681e"><div class="ttname"><a href="classproton_1_1work__queue.html#a59dae2153455bc095477a3b66a0b681e">proton::work_queue::add</a></div><div class="ttdeci">bool add(work fn)</div><div class="ttdoc">Unsettled API - Add work fn to the work queue.</div></div>
<div class="ttc" id="asender_8hpp_html"><div class="ttname"><a href="sender_8hpp.html">sender.hpp</a></div><div class="ttdoc">A channel for sending messages.</div></div>
<div class="ttc" id="aclassproton_1_1sender_html_a214eb30b24e6831d016a47b9dddda830"><div class="ttname"><a href="classproton_1_1sender.html#a214eb30b24e6831d016a47b9dddda830">proton::sender::send</a></div><div class="ttdeci">tracker send(const message &amp;m)</div><div class="ttdoc">Send a message on the sender.</div></div>
<div class="ttc" id="aclassproton_1_1messaging__handler_html"><div class="ttname"><a href="classproton_1_1messaging__handler.html">proton::messaging_handler</a></div><div class="ttdoc">Handler for Proton messaging events.</div><div class="ttdef"><b>Definition:</b> messaging_handler.hpp:69</div></div>
<div class="ttc" id="aclassproton_1_1sender_html"><div class="ttname"><a href="classproton_1_1sender.html">proton::sender</a></div><div class="ttdoc">A channel for sending messages.</div><div class="ttdef"><b>Definition:</b> sender.hpp:40</div></div>
<div class="ttc" id="aclassproton_1_1link_html_afd27bd11ba72d7df51c44f71b15749eb"><div class="ttname"><a href="classproton_1_1link.html#afd27bd11ba72d7df51c44f71b15749eb">proton::link::credit</a></div><div class="ttdeci">int credit() const</div><div class="ttdoc">Credit available on the link.</div></div>
<div class="ttc" id="aclassproton_1_1link_html_a7c755d6ac6385e007adb61966598ba63"><div class="ttname"><a href="classproton_1_1link.html#a7c755d6ac6385e007adb61966598ba63">proton::link::work_queue</a></div><div class="ttdeci">class work_queue &amp; work_queue() const</div><div class="ttdoc">Get the work_queue for the link.</div></div>
<div class="ttc" id="aclassproton_1_1messaging__handler_html_ac655d56c64574c9eb7b10e80d32764f4"><div class="ttname"><a href="classproton_1_1messaging__handler.html#ac655d56c64574c9eb7b10e80d32764f4">proton::messaging_handler::on_sender_open</a></div><div class="ttdeci">virtual void on_sender_open(sender &amp;)</div><div class="ttdoc">The remote peer opened the link.</div></div>
<div class="ttc" id="aclassproton_1_1duration_html_aced1c394edccf069b2748d46965fb562"><div class="ttname"><a href="classproton_1_1duration.html#aced1c394edccf069b2748d46965fb562">proton::duration::SECOND</a></div><div class="ttdeci">static const duration SECOND</div><div class="ttdoc">One second.</div><div class="ttdef"><b>Definition:</b> duration.hpp:55</div></div>
<div class="ttc" id="aclassproton_1_1container_html_a13a43e6d814de94978c515cb084873b1"><div class="ttname"><a href="classproton_1_1container.html#a13a43e6d814de94978c515cb084873b1">proton::container::run</a></div><div class="ttdeci">void run()</div><div class="ttdoc">Run the container in the current thread.</div></div>
<div class="ttc" id="acontainer_8hpp_html"><div class="ttname"><a href="container_8hpp.html">container.hpp</a></div><div class="ttdoc">A top-level container of connections, sessions, and links.</div></div>
<div class="ttc" id="aclassproton_1_1container_html_adfbfd13668611a525bb44328d7a3b1e8"><div class="ttname"><a href="classproton_1_1container.html#adfbfd13668611a525bb44328d7a3b1e8">proton::container::open_sender</a></div><div class="ttdeci">returned&lt; sender &gt; open_sender(const std::string &amp;addr_url)</div><div class="ttdoc">Open a connection and sender for addr_url.</div></div>
<div class="ttc" id="aclassproton_1_1message_html"><div class="ttname"><a href="classproton_1_1message.html">proton::message</a></div><div class="ttdoc">An AMQP message.</div><div class="ttdef"><b>Definition:</b> message.hpp:50</div></div>
<div class="ttc" id="aclassproton_1_1work__queue_html"><div class="ttname"><a href="classproton_1_1work__queue.html">proton::work_queue</a></div><div class="ttdoc">Unsettled API - A context for thread-safe execution of work.</div><div class="ttdef"><b>Definition:</b> work_queue.hpp:339</div></div>
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
<ul>
<li class="footer">Generated by <a href="http://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.8.20 </li>
</ul>
</div>
</body>
</html>