qpid-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rob...@apache.org
Subject [44/51] [partial] qpid-site git commit: PROTON-1374: update the website for Proton 0.16.0
Date Tue, 13 Dec 2016 17:52:39 GMT
http://git-wip-us.apache.org/repos/asf/qpid-site/blob/7833dc2a/content/releases/qpid-proton-0.16.0/proton/c/api/annotated.html
----------------------------------------------------------------------
diff --git a/content/releases/qpid-proton-0.16.0/proton/c/api/annotated.html b/content/releases/qpid-proton-0.16.0/proton/c/api/annotated.html
new file mode 100755
index 0000000..462c469
--- /dev/null
+++ b/content/releases/qpid-proton-0.16.0/proton/c/api/annotated.html
@@ -0,0 +1,115 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://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.3.1"/>
+<title>Qpid Proton C API: Class List</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="navtree.js"></script>
+<script type="text/javascript">
+  $(document).ready(initResizable);
+  $(window).load(resizeHeight);
+</script>
+<link href="search/search.css" rel="stylesheet" type="text/css"/>
+<script type="text/javascript" src="search/search.js"></script>
+<script type="text/javascript">
+  $(document).ready(function() { searchBox.OnSelectItem(0); });
+</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 style="padding-left: 0.5em;">
+   <div id="projectname">Qpid Proton C API
+   &#160;<span id="projectnumber">0.16.0</span>
+   </div>
+  </td>
+   <td>        <div id="MSearchBox" class="MSearchBoxInactive">
+        <span class="left">
+          <img id="MSearchSelect" src="search/mag_sel.png"
+               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.png" alt=""/></a>
+          </span>
+        </div>
+</td>
+ </tr>
+ </tbody>
+</table>
+</div>
+<!-- end header part -->
+<!-- Generated by Doxygen 1.8.3.1 -->
+<script type="text/javascript">
+var searchBox = new SearchBox("searchBox", "search",false,'Search');
+</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">
+$(document).ready(function(){initNavTree('annotated.html','');});
+</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)">
+<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Typedefs</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Enumerations</a><a class="SelectItem" href="javascript:vo
 id(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&#160;</span>Enumerator</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark">&#160;</span>Groups</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(9)"><span class="SelectionMark">&#160;</span>Pages</a></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">Class List</div>  </div>
+</div><!--header-->
+<div class="contents">
+<div class="textblock">Here are the classes, structs, unions and interfaces with brief descriptions:</div><div class="directory">
+<table class="directory">
+<tr id="row_0_" class="even"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><img src="ftv2cl.png" alt="C" width="24" height="22" /><a class="el" href="group__api__types.html#structpn__atom__t" target="_self">pn_atom_t</a></td><td class="desc">A descriminated union that holds any scalar AMQP value</td></tr>
+<tr id="row_1_"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><img src="ftv2cl.png" alt="C" width="24" height="22" /><a class="el" href="group__api__types.html#structpn__bytes__t" target="_self">pn_bytes_t</a></td><td class="desc">A const byte buffer</td></tr>
+<tr id="row_2_" class="even"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><img src="ftv2cl.png" alt="C" width="24" height="22" /><a class="el" href="group__connection__driver.html#structpn__connection__driver__t" target="_self">pn_connection_driver_t</a></td><td class="desc">The elements needed to drive AMQP IO and events</td></tr>
+<tr id="row_3_"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><img src="ftv2cl.png" alt="C" width="24" height="22" /><a class="el" href="group__amqp__types.html#structpn__decimal128__t" target="_self">pn_decimal128_t</a></td><td class="desc">A 128-bit decimal floating-point number</td></tr>
+<tr id="row_4_" class="even"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><img src="ftv2cl.png" alt="C" width="24" height="22" /><a class="el" href="group__api__types.html#structpn__rwbytes__t" target="_self">pn_rwbytes_t</a></td><td class="desc">A non-const byte buffer</td></tr>
+<tr id="row_5_"><td class="entry"><img src="ftv2lastnode.png" alt="\" width="16" height="22" /><img src="ftv2cl.png" alt="C" width="24" height="22" /><a class="el" href="group__amqp__types.html#structpn__uuid__t" target="_self">pn_uuid_t</a></td><td class="desc">A 16-byte universally unique identifier</td></tr>
+</table>
+</div><!-- directory -->
+</div><!-- contents -->
+</div><!-- doc-content -->
+<!-- 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.png" alt="doxygen"/></a> 1.8.3.1 </li>
+  </ul>
+</div>
+</body>
+</html>

http://git-wip-us.apache.org/repos/asf/qpid-site/blob/7833dc2a/content/releases/qpid-proton-0.16.0/proton/c/api/annotated.js
----------------------------------------------------------------------
diff --git a/content/releases/qpid-proton-0.16.0/proton/c/api/annotated.js b/content/releases/qpid-proton-0.16.0/proton/c/api/annotated.js
new file mode 100755
index 0000000..af49e08
--- /dev/null
+++ b/content/releases/qpid-proton-0.16.0/proton/c/api/annotated.js
@@ -0,0 +1,9 @@
+var annotated =
+[
+    [ "pn_atom_t", "group__api__types.html#structpn__atom__t", "group__api__types" ],
+    [ "pn_bytes_t", "group__api__types.html#structpn__bytes__t", "group__api__types" ],
+    [ "pn_connection_driver_t", "group__connection__driver.html#structpn__connection__driver__t", "group__connection__driver" ],
+    [ "pn_decimal128_t", "group__amqp__types.html#structpn__decimal128__t", "group__amqp__types" ],
+    [ "pn_rwbytes_t", "group__api__types.html#structpn__rwbytes__t", "group__api__types" ],
+    [ "pn_uuid_t", "group__amqp__types.html#structpn__uuid__t", "group__amqp__types" ]
+];
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/qpid-site/blob/7833dc2a/content/releases/qpid-proton-0.16.0/proton/c/api/bc_s.png
----------------------------------------------------------------------
diff --git a/content/releases/qpid-proton-0.16.0/proton/c/api/bc_s.png b/content/releases/qpid-proton-0.16.0/proton/c/api/bc_s.png
new file mode 100755
index 0000000..224b29a
Binary files /dev/null and b/content/releases/qpid-proton-0.16.0/proton/c/api/bc_s.png differ

http://git-wip-us.apache.org/repos/asf/qpid-site/blob/7833dc2a/content/releases/qpid-proton-0.16.0/proton/c/api/bdwn.png
----------------------------------------------------------------------
diff --git a/content/releases/qpid-proton-0.16.0/proton/c/api/bdwn.png b/content/releases/qpid-proton-0.16.0/proton/c/api/bdwn.png
new file mode 100755
index 0000000..940a0b9
Binary files /dev/null and b/content/releases/qpid-proton-0.16.0/proton/c/api/bdwn.png differ

http://git-wip-us.apache.org/repos/asf/qpid-site/blob/7833dc2a/content/releases/qpid-proton-0.16.0/proton/c/api/broker_8c-example.html
----------------------------------------------------------------------
diff --git a/content/releases/qpid-proton-0.16.0/proton/c/api/broker_8c-example.html b/content/releases/qpid-proton-0.16.0/proton/c/api/broker_8c-example.html
new file mode 100755
index 0000000..2faeaa5
--- /dev/null
+++ b/content/releases/qpid-proton-0.16.0/proton/c/api/broker_8c-example.html
@@ -0,0 +1,593 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://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.3.1"/>
+<title>Qpid Proton C API: broker.c</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="navtree.js"></script>
+<script type="text/javascript">
+  $(document).ready(initResizable);
+  $(window).load(resizeHeight);
+</script>
+<link href="search/search.css" rel="stylesheet" type="text/css"/>
+<script type="text/javascript" src="search/search.js"></script>
+<script type="text/javascript">
+  $(document).ready(function() { searchBox.OnSelectItem(0); });
+</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 style="padding-left: 0.5em;">
+   <div id="projectname">Qpid Proton C API
+   &#160;<span id="projectnumber">0.16.0</span>
+   </div>
+  </td>
+   <td>        <div id="MSearchBox" class="MSearchBoxInactive">
+        <span class="left">
+          <img id="MSearchSelect" src="search/mag_sel.png"
+               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.png" alt=""/></a>
+          </span>
+        </div>
+</td>
+ </tr>
+ </tbody>
+</table>
+</div>
+<!-- end header part -->
+<!-- Generated by Doxygen 1.8.3.1 -->
+<script type="text/javascript">
+var searchBox = new SearchBox("searchBox", "search",false,'Search');
+</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">
+$(document).ready(function(){initNavTree('broker_8c-example.html','');});
+</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)">
+<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Typedefs</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Enumerations</a><a class="SelectItem" href="javascript:vo
 id(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&#160;</span>Enumerator</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark">&#160;</span>Groups</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(9)"><span class="SelectionMark">&#160;</span>Pages</a></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">broker.c</div>  </div>
+</div><!--header-->
+<div class="contents">
+<p>A simple multithreaded broker that works with the send and receive examples.<b>Requires C++11</b></p>
+<div class="fragment"><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"></div>
+<div class="line"><span class="preprocessor">#include &lt;<a class="code" href="connection__driver_8h.html" title="Experimental - Low-level IO integration ">proton/connection_driver.h</a>&gt;</span></div>
+<div class="line"><span class="preprocessor">#include &lt;<a class="code" href="proactor_8h.html" title="Experimental - Multithreaded IO">proton/proactor.h</a>&gt;</span></div>
+<div class="line"><span class="preprocessor">#include &lt;proton/engine.h&gt;</span></div>
+<div class="line"><span class="preprocessor">#include &lt;<a class="code" href="sasl_8h.html" title="SASL secure transport layer. ">proton/sasl.h</a>&gt;</span></div>
+<div class="line"><span class="preprocessor">#include &lt;<a class="code" href="transport_8h.html" title="A network channel supporting an AMQP connection. ">proton/transport.h</a>&gt;</span></div>
+<div class="line"><span class="preprocessor">#include &lt;<a class="code" href="url_8h.html" title="Deprecated - A URL parser ">proton/url.h</a>&gt;</span></div>
+<div class="line"></div>
+<div class="line"><span class="preprocessor">#include &lt;stdio.h&gt;</span></div>
+<div class="line"><span class="preprocessor">#include &lt;stdlib.h&gt;</span></div>
+<div class="line"><span class="preprocessor">#include &lt;string.h&gt;</span></div>
+<div class="line"><span class="preprocessor">#include &lt;unistd.h&gt;</span></div>
+<div class="line"></div>
+<div class="line"><span class="comment">/* TODO aconway 2016-10-14: this example does not require libuv IO,</span></div>
+<div class="line"><span class="comment">   it uses uv.h only for portable mutex and thread functions.</span></div>
+<div class="line"><span class="comment">*/</span></div>
+<div class="line"><span class="preprocessor">#include &lt;uv.h&gt;</span></div>
+<div class="line"></div>
+<div class="line"><span class="keywordtype">bool</span> enable_debug = <span class="keyword">false</span>;</div>
+<div class="line"></div>
+<div class="line"><span class="keywordtype">void</span> debug(<span class="keyword">const</span> <span class="keywordtype">char</span>* fmt, ...) {</div>
+<div class="line">  <span class="keywordflow">if</span> (enable_debug) {</div>
+<div class="line">    va_list(ap);</div>
+<div class="line">    va_start(ap, fmt);</div>
+<div class="line">    vfprintf(stderr, fmt, ap);</div>
+<div class="line">    fputc(<span class="charliteral">&#39;\n&#39;</span>, stderr);</div>
+<div class="line">    fflush(stderr);</div>
+<div class="line">  }</div>
+<div class="line">}</div>
+<div class="line"></div>
+<div class="line"><span class="keywordtype">void</span> check(<span class="keywordtype">int</span> err, <span class="keyword">const</span> <span class="keywordtype">char</span>* s) {</div>
+<div class="line">  <span class="keywordflow">if</span> (err != 0) {</div>
+<div class="line">    perror(s);</div>
+<div class="line">    exit(1);</div>
+<div class="line">  }</div>
+<div class="line">}</div>
+<div class="line"></div>
+<div class="line"><span class="keywordtype">void</span> pcheck(<span class="keywordtype">int</span> err, <span class="keyword">const</span> <span class="keywordtype">char</span>* s) {</div>
+<div class="line">  <span class="keywordflow">if</span> (err != 0) {</div>
+<div class="line">    fprintf(stderr, <span class="stringliteral">&quot;%s: %s&quot;</span>, s, <a name="a0"></a><a class="code" href="group__error.html#gac6b84f09fac8e82bd41a62212d4d8f64" title="Get the name of the error code.">pn_code</a>(err));</div>
+<div class="line">    exit(1);</div>
+<div class="line">  }</div>
+<div class="line">}</div>
+<div class="line"></div>
+<div class="line"><span class="comment">/* Simple re-sizable vector that acts as a queue */</span></div>
+<div class="line"><span class="preprocessor">#define VEC(T) struct { T* data; size_t len, cap; }</span></div>
+<div class="line"><span class="preprocessor"></span></div>
+<div class="line"><span class="preprocessor">#define VEC_INIT(V)                             \</span></div>
+<div class="line"><span class="preprocessor">  do {                                          \</span></div>
+<div class="line"><span class="preprocessor">    V.len = 0;                                  \</span></div>
+<div class="line"><span class="preprocessor">    V.cap = 16;                                 \</span></div>
+<div class="line"><span class="preprocessor">    void **vp = (void**)&amp;V.data;                \</span></div>
+<div class="line"><span class="preprocessor">    *vp = malloc(V.cap * sizeof(*V.data));      \</span></div>
+<div class="line"><span class="preprocessor">  } while(0)</span></div>
+<div class="line"><span class="preprocessor"></span></div>
+<div class="line"><span class="preprocessor">#define VEC_FINAL(V) free(V.data)</span></div>
+<div class="line"><span class="preprocessor"></span></div>
+<div class="line"><span class="preprocessor">#define VEC_PUSH(V, X)                                  \</span></div>
+<div class="line"><span class="preprocessor">  do {                                                  \</span></div>
+<div class="line"><span class="preprocessor">    if (V.len == V.cap) {                               \</span></div>
+<div class="line"><span class="preprocessor">      V.cap *= 2;                                       \</span></div>
+<div class="line"><span class="preprocessor">      void **vp = (void**)&amp;V.data;                      \</span></div>
+<div class="line"><span class="preprocessor">      *vp = realloc(V.data, V.cap * sizeof(*V.data));   \</span></div>
+<div class="line"><span class="preprocessor">    }                                                   \</span></div>
+<div class="line"><span class="preprocessor">    V.data[V.len++] = X;                                \</span></div>
+<div class="line"><span class="preprocessor">  } while(0)                                            \</span></div>
+<div class="line"><span class="preprocessor"></span></div>
+<div class="line"><span class="preprocessor"></span><span class="preprocessor">#define VEC_POP(V)                                              \</span></div>
+<div class="line"><span class="preprocessor">  do {                                                          \</span></div>
+<div class="line"><span class="preprocessor">    if (V.len &gt; 0)                                              \</span></div>
+<div class="line"><span class="preprocessor">      memmove(V.data, V.data+1, (--V.len)*sizeof(*V.data));     \</span></div>
+<div class="line"><span class="preprocessor">  } while(0)</span></div>
+<div class="line"><span class="preprocessor"></span></div>
+<div class="line"><span class="comment">/* Simple thread-safe queue implementation */</span></div>
+<div class="line"><span class="keyword">typedef</span> <span class="keyword">struct </span>queue_t {</div>
+<div class="line">  uv_mutex_t lock;</div>
+<div class="line">  <span class="keywordtype">char</span>* name;</div>
+<div class="line">  VEC(<a name="_a1"></a><a class="code" href="group__api__types.html#structpn__rwbytes__t" title="A non-const byte buffer.">pn_rwbytes_t</a>) messages;   <span class="comment">/* Messages on the queue_t */</span></div>
+<div class="line">  VEC(<a class="code" href="group__connection.html#ga886351d81ff3a977a284a206526c5aff" title="An AMQP Connection object.">pn_connection_t</a>*) waiting; <span class="comment">/* Connections waiting to send messages from this queue */</span></div>
+<div class="line">  struct queue_t *next;            <span class="comment">/* Next queue in chain */</span></div>
+<div class="line">  <span class="keywordtype">size_t</span> sent;                     <span class="comment">/* Count of messages sent, used as delivery tag */</span></div>
+<div class="line">} queue_t;</div>
+<div class="line"></div>
+<div class="line">static <span class="keywordtype">void</span> queue_init(queue_t *q, const <span class="keywordtype">char</span>* name, queue_t *next) {</div>
+<div class="line">  debug(<span class="stringliteral">&quot;created queue %s&quot;</span>, name);</div>
+<div class="line">  uv_mutex_init(&amp;q-&gt;lock);</div>
+<div class="line">  q-&gt;name = strdup(name);</div>
+<div class="line">  VEC_INIT(q-&gt;messages);</div>
+<div class="line">  VEC_INIT(q-&gt;waiting);</div>
+<div class="line">  q-&gt;next = next;</div>
+<div class="line">  q-&gt;sent = 0;</div>
+<div class="line">}</div>
+<div class="line"></div>
+<div class="line"><span class="keyword">static</span> <span class="keywordtype">void</span> queue_destroy(queue_t *q) {</div>
+<div class="line">  uv_mutex_destroy(&amp;q-&gt;lock);</div>
+<div class="line">  free(q-&gt;name);</div>
+<div class="line">  <span class="keywordflow">for</span> (<span class="keywordtype">size_t</span> i = 0; i &lt; q-&gt;messages.len; ++i)</div>
+<div class="line">    free(q-&gt;messages.data[i].start);</div>
+<div class="line">  VEC_FINAL(q-&gt;messages);</div>
+<div class="line">  <span class="keywordflow">for</span> (<span class="keywordtype">size_t</span> i = 0; i &lt; q-&gt;waiting.len; ++i)</div>
+<div class="line">    pn_decref(q-&gt;waiting.data[i]);</div>
+<div class="line">  VEC_FINAL(q-&gt;waiting);</div>
+<div class="line">}</div>
+<div class="line"></div>
+<div class="line"><span class="comment">/* Send a message on s, or record s as eating if no messages.</span></div>
+<div class="line"><span class="comment">   Called in s dispatch loop, assumes s has credit.</span></div>
+<div class="line"><span class="comment">*/</span></div>
+<div class="line"><span class="keyword">static</span> <span class="keywordtype">void</span> queue_send(queue_t *q, <a class="code" href="group__link.html#ga89dad3aa7934329a7ff467c636687bc0" title="An AMQP Link object.">pn_link_t</a> *s) {</div>
+<div class="line">  <a class="code" href="group__api__types.html#structpn__rwbytes__t" title="A non-const byte buffer.">pn_rwbytes_t</a> m = { 0 };</div>
+<div class="line">  <span class="keywordtype">size_t</span> tag = 0;</div>
+<div class="line">  uv_mutex_lock(&amp;q-&gt;lock);</div>
+<div class="line">  <span class="keywordflow">if</span> (q-&gt;messages.len == 0) { <span class="comment">/* Empty, record connection as waiting */</span></div>
+<div class="line">    debug(<span class="stringliteral">&quot;queue is empty %s&quot;</span>, q-&gt;name);</div>
+<div class="line">    <span class="comment">/* Record connection for wake-up if not already on the list. */</span></div>
+<div class="line">    <a class="code" href="group__connection.html#ga886351d81ff3a977a284a206526c5aff" title="An AMQP Connection object.">pn_connection_t</a> *c = <a name="a2"></a><a class="code" href="group__session.html#gaa45a8aa758334528a86cb7914ebe8545" title="Get the parent connection for a session object.">pn_session_connection</a>(<a name="a3"></a><a class="code" href="group__link.html#gac63e43305fb1a5e3b14399a9ddc8f24d" title="Get the parent session for a link object.">pn_link_session</a>(s));</div>
+<div class="line">    <span class="keywordtype">size_t</span> i = 0;</div>
+<div class="line">    <span class="keywordflow">for</span> (; i &lt; q-&gt;waiting.len &amp;&amp; q-&gt;waiting.data[i] != c; ++i)</div>
+<div class="line">      ;</div>
+<div class="line">    <span class="keywordflow">if</span> (i == q-&gt;waiting.len) {</div>
+<div class="line">      VEC_PUSH(q-&gt;waiting, c);</div>
+<div class="line">    }</div>
+<div class="line">  } <span class="keywordflow">else</span> {</div>
+<div class="line">    debug(<span class="stringliteral">&quot;sending from queue %s&quot;</span>, q-&gt;name);</div>
+<div class="line">    m = q-&gt;messages.data[0];</div>
+<div class="line">    VEC_POP(q-&gt;messages);</div>
+<div class="line">    tag = ++q-&gt;sent;</div>
+<div class="line">  }</div>
+<div class="line">  uv_mutex_unlock(&amp;q-&gt;lock);</div>
+<div class="line">  <span class="keywordflow">if</span> (m.<a name="a4"></a>start) {</div>
+<div class="line">    <a class="code" href="group__delivery.html#gacdfce854066c0a4ff4db9f9a0478f340" title="An AMQP Delivery object.">pn_delivery_t</a> *d = <a name="a5"></a><a class="code" href="group__delivery.html#ga6a7ef2e317b4ed292cafbb358f0ba6ad" title="Create a delivery on a link.">pn_delivery</a>(s, <a name="a6"></a><a class="code" href="group__delivery.html#gaea4522ac1fef9228fb6c743d2a36fd27" title="Construct a delivery tag.">pn_dtag</a>((<span class="keywordtype">char</span>*)&amp;tag, <span class="keyword">sizeof</span>(tag)));</div>
+<div class="line">    <a name="a7"></a><a class="code" href="group__link.html#gaa825fac21730f3f9fff37d156e5f88e9" title="Send message data for the current delivery on a link.">pn_link_send</a>(s, m.start, m.<a name="a8"></a>size);</div>
+<div class="line">    <a name="a9"></a><a class="code" href="group__link.html#ga93824a3859c37463e44458cd2f63d31f" title="Advance the current delivery of a link to the next delivery on the link.">pn_link_advance</a>(s);</div>
+<div class="line">    <a name="a10"></a><a class="code" href="group__delivery.html#ga98c275fd7158e8b9d7d48d70503d68df" title="Settle a delivery.">pn_delivery_settle</a>(d);  <span class="comment">/* Pre-settled: unreliable, there will bea no ack/ */</span></div>
+<div class="line">    free(m.start);</div>
+<div class="line">  }</div>
+<div class="line">}</div>
+<div class="line"></div>
+<div class="line"><span class="comment">/* Data associated with each broker connection */</span></div>
+<div class="line"><span class="keyword">typedef</span> <span class="keyword">struct </span>broker_data_t {</div>
+<div class="line">  <span class="keywordtype">bool</span> check_queues;          <span class="comment">/* Check senders on the connection for available data in queues. */</span></div>
+<div class="line">} broker_data_t;</div>
+<div class="line"></div>
+<div class="line"><span class="comment">/* Use the context pointer as a boolean flag to indicate we need to check queues */</span></div>
+<div class="line"><span class="keywordtype">void</span> pn_connection_set_check_queues(<a class="code" href="group__connection.html#ga886351d81ff3a977a284a206526c5aff" title="An AMQP Connection object.">pn_connection_t</a> *c, <span class="keywordtype">bool</span> check) {</div>
+<div class="line">  <a name="a11"></a><a class="code" href="group__connection.html#gad3203b366cb1ff5becd1778a8dd6b1a6">pn_connection_set_context</a>(c, (<span class="keywordtype">void</span>*)check);</div>
+<div class="line">}</div>
+<div class="line"></div>
+<div class="line"><span class="keywordtype">bool</span> pn_connection_get_check_queues(<a class="code" href="group__connection.html#ga886351d81ff3a977a284a206526c5aff" title="An AMQP Connection object.">pn_connection_t</a> *c) {</div>
+<div class="line">  <span class="keywordflow">return</span> (<span class="keywordtype">bool</span>)<a name="a12"></a><a class="code" href="group__connection.html#ga50613e6c09186dc3f1a2f36238c61f07">pn_connection_get_context</a>(c);</div>
+<div class="line">}</div>
+<div class="line"></div>
+<div class="line"><span class="comment">/* Put a message on the queue, called in receiver dispatch loop.</span></div>
+<div class="line"><span class="comment">   If the queue was previously empty, notify waiting senders.</span></div>
+<div class="line"><span class="comment">*/</span></div>
+<div class="line"><span class="keyword">static</span> <span class="keywordtype">void</span> queue_receive(<a class="code" href="group__proactor.html#gabba42c7929dfceb9d296535bad0c93dc" title="The proactor, see pn_proactor()">pn_proactor_t</a> *d, queue_t *q, <a class="code" href="group__api__types.html#structpn__rwbytes__t" title="A non-const byte buffer.">pn_rwbytes_t</a> m) {</div>
+<div class="line">  debug(<span class="stringliteral">&quot;received to queue %s&quot;</span>, q-&gt;name);</div>
+<div class="line">  uv_mutex_lock(&amp;q-&gt;lock);</div>
+<div class="line">  VEC_PUSH(q-&gt;messages, m);</div>
+<div class="line">  <span class="keywordflow">if</span> (q-&gt;messages.len == 1) { <span class="comment">/* Was empty, notify waiting connections */</span></div>
+<div class="line">    <span class="keywordflow">for</span> (<span class="keywordtype">size_t</span> i = 0; i &lt; q-&gt;waiting.len; ++i) {</div>
+<div class="line">      <a class="code" href="group__connection.html#ga886351d81ff3a977a284a206526c5aff" title="An AMQP Connection object.">pn_connection_t</a> *c = q-&gt;waiting.data[i];</div>
+<div class="line">      pn_connection_set_check_queues(c, <span class="keyword">true</span>);</div>
+<div class="line">      <a name="a13"></a><a class="code" href="group__proactor.html#ga2e5c9fddae8d7aa07fc93438c5ae2d86" title="Cause a PN_CONNECTION_WAKE event to be returned by the proactor, even if there are no IO events pendi...">pn_connection_wake</a>(c); <span class="comment">/* Wake the connection */</span></div>
+<div class="line">    }</div>
+<div class="line">    q-&gt;waiting.len = 0;</div>
+<div class="line">  }</div>
+<div class="line">  uv_mutex_unlock(&amp;q-&gt;lock);</div>
+<div class="line">}</div>
+<div class="line"></div>
+<div class="line"><span class="comment">/* Thread safe set of queues */</span></div>
+<div class="line"><span class="keyword">typedef</span> <span class="keyword">struct </span>queues_t {</div>
+<div class="line">  uv_mutex_t lock;</div>
+<div class="line">  queue_t *queues;</div>
+<div class="line">  <span class="keywordtype">size_t</span> sent;</div>
+<div class="line">} queues_t;</div>
+<div class="line"></div>
+<div class="line"><span class="keywordtype">void</span> queues_init(queues_t *qs) {</div>
+<div class="line">  uv_mutex_init(&amp;qs-&gt;lock);</div>
+<div class="line">  qs-&gt;queues = NULL;</div>
+<div class="line">}</div>
+<div class="line"></div>
+<div class="line"><span class="keywordtype">void</span> queues_destroy(queues_t *qs) {</div>
+<div class="line">  <span class="keywordflow">for</span> (queue_t *q = qs-&gt;queues; q; q = q-&gt;next) {</div>
+<div class="line">    queue_destroy(q);</div>
+<div class="line">    free(q);</div>
+<div class="line">  }</div>
+<div class="line">  uv_mutex_destroy(&amp;qs-&gt;lock);</div>
+<div class="line">}</div>
+<div class="line"></div>
+<div class="line">queue_t* queues_get(queues_t *qs, <span class="keyword">const</span> <span class="keywordtype">char</span>* name) {</div>
+<div class="line">  uv_mutex_lock(&amp;qs-&gt;lock);</div>
+<div class="line">  queue_t *q;</div>
+<div class="line">  <span class="keywordflow">for</span> (q = qs-&gt;queues; q &amp;&amp; strcmp(q-&gt;name, name) != 0; q = q-&gt;next)</div>
+<div class="line">    ;</div>
+<div class="line">  <span class="keywordflow">if</span> (!q) {</div>
+<div class="line">    q = (queue_t*)malloc(<span class="keyword">sizeof</span>(queue_t));</div>
+<div class="line">    queue_init(q, name, qs-&gt;queues);</div>
+<div class="line">    qs-&gt;queues = q;</div>
+<div class="line">  }</div>
+<div class="line">  uv_mutex_unlock(&amp;qs-&gt;lock);</div>
+<div class="line">  <span class="keywordflow">return</span> q;</div>
+<div class="line">}</div>
+<div class="line"></div>
+<div class="line"><span class="comment">/* The broker implementation */</span></div>
+<div class="line"><span class="keyword">typedef</span> <span class="keyword">struct </span>broker_t {</div>
+<div class="line">  <a class="code" href="group__proactor.html#gabba42c7929dfceb9d296535bad0c93dc" title="The proactor, see pn_proactor()">pn_proactor_t</a> *proactor;</div>
+<div class="line">  queues_t queues;</div>
+<div class="line">  <span class="keyword">const</span> <span class="keywordtype">char</span> *container_id;     <span class="comment">/* AMQP container-id */</span></div>
+<div class="line">  <span class="keywordtype">size_t</span> threads;</div>
+<div class="line">  <a class="code" href="group__api__types.html#ga9a701bc6dc9af9f42c3f4679172a723c" title="A span of time in milliseconds.">pn_millis_t</a> heartbeat;</div>
+<div class="line">  <span class="keywordtype">bool</span> finished;</div>
+<div class="line">} broker_t;</div>
+<div class="line"></div>
+<div class="line"><span class="keywordtype">void</span> broker_init(broker_t *b, <span class="keyword">const</span> <span class="keywordtype">char</span> *container_id, <span class="keywordtype">size_t</span> threads, <a class="code" href="group__api__types.html#ga9a701bc6dc9af9f42c3f4679172a723c" title="A span of time in milliseconds.">pn_millis_t</a> heartbeat) {</div>
+<div class="line">  memset(b, 0, <span class="keyword">sizeof</span>(*b));</div>
+<div class="line">  b-&gt;proactor = <a name="a14"></a><a class="code" href="group__proactor.html#ga9d77772be7805709c87eeb01b06d67e2" title="Create a proactor.">pn_proactor</a>();</div>
+<div class="line">  queues_init(&amp;b-&gt;queues);</div>
+<div class="line">  b-&gt;container_id = container_id;</div>
+<div class="line">  b-&gt;threads = threads;</div>
+<div class="line">  b-&gt;heartbeat = 0;</div>
+<div class="line">}</div>
+<div class="line"></div>
+<div class="line"><span class="keywordtype">void</span> broker_stop(broker_t *b) {</div>
+<div class="line">  <span class="comment">/* In this broker an interrupt stops a thread, stopping all threads stops the broker */</span></div>
+<div class="line">  <span class="keywordflow">for</span> (<span class="keywordtype">size_t</span> i = 0; i &lt; b-&gt;threads; ++i)</div>
+<div class="line">    <a name="a15"></a><a class="code" href="group__proactor.html#gaff37a5b9d3d822ad9a961dae5155ebdb" title="Cause PN_PROACTOR_INTERRUPT to be returned to exactly one call of pn_proactor_wait().">pn_proactor_interrupt</a>(b-&gt;proactor);</div>
+<div class="line">}</div>
+<div class="line"></div>
+<div class="line"><span class="comment">/* Try to send if link is sender and has credit */</span></div>
+<div class="line"><span class="keyword">static</span> <span class="keywordtype">void</span> link_send(broker_t *b, <a class="code" href="group__link.html#ga89dad3aa7934329a7ff467c636687bc0" title="An AMQP Link object.">pn_link_t</a> *s) {</div>
+<div class="line">  <span class="keywordflow">if</span> (<a name="a16"></a><a class="code" href="group__link.html#ga7c48ef214568267839aea04ed337926b" title="Test if a link is a sender.">pn_link_is_sender</a>(s) &amp;&amp; <a name="a17"></a><a class="code" href="group__link.html#ga55428637f3b8c446efd5fea3f26c932d" title="Get the credit balance for a link.">pn_link_credit</a>(s) &gt; 0) {</div>
+<div class="line">    <span class="keyword">const</span> <span class="keywordtype">char</span> *qname = <a name="a18"></a><a class="code" href="group__terminus.html#ga3507b6cfe260a2bfaae9321235db7c9a" title="Get the address of a terminus object.">pn_terminus_get_address</a>(<a name="a19"></a><a class="code" href="group__link.html#ga2c8985a9d44a813ab1739a91ae3708a3" title="Access the locally defined source definition for a link.">pn_link_source</a>(s));</div>
+<div class="line">    queue_t *q = queues_get(&amp;b-&gt;queues, qname);</div>
+<div class="line">    queue_send(q, s);</div>
+<div class="line">  }</div>
+<div class="line">}</div>
+<div class="line"></div>
+<div class="line"><span class="keyword">static</span> <span class="keywordtype">void</span> queue_unsub(queue_t *q, <a class="code" href="group__connection.html#ga886351d81ff3a977a284a206526c5aff" title="An AMQP Connection object.">pn_connection_t</a> *c) {</div>
+<div class="line">  uv_mutex_lock(&amp;q-&gt;lock);</div>
+<div class="line">  <span class="keywordflow">for</span> (<span class="keywordtype">size_t</span> i = 0; i &lt; q-&gt;waiting.len; ++i) {</div>
+<div class="line">    <span class="keywordflow">if</span> (q-&gt;waiting.data[i] == c){</div>
+<div class="line">      q-&gt;waiting.data[i] = q-&gt;waiting.data[0]; <span class="comment">/* save old [0] */</span></div>
+<div class="line">      VEC_POP(q-&gt;waiting);</div>
+<div class="line">      <span class="keywordflow">break</span>;</div>
+<div class="line">    }</div>
+<div class="line">  }</div>
+<div class="line">  uv_mutex_unlock(&amp;q-&gt;lock);</div>
+<div class="line">}</div>
+<div class="line"></div>
+<div class="line"><span class="comment">/* Unsubscribe from the queue of interest to this link. */</span></div>
+<div class="line"><span class="keyword">static</span> <span class="keywordtype">void</span> link_unsub(broker_t *b, <a class="code" href="group__link.html#ga89dad3aa7934329a7ff467c636687bc0" title="An AMQP Link object.">pn_link_t</a> *s) {</div>
+<div class="line">  <span class="keywordflow">if</span> (<a class="code" href="group__link.html#ga7c48ef214568267839aea04ed337926b" title="Test if a link is a sender.">pn_link_is_sender</a>(s)) {</div>
+<div class="line">    <span class="keyword">const</span> <span class="keywordtype">char</span> *qname = <a class="code" href="group__terminus.html#ga3507b6cfe260a2bfaae9321235db7c9a" title="Get the address of a terminus object.">pn_terminus_get_address</a>(<a class="code" href="group__link.html#ga2c8985a9d44a813ab1739a91ae3708a3" title="Access the locally defined source definition for a link.">pn_link_source</a>(s));</div>
+<div class="line">    <span class="keywordflow">if</span> (qname) {</div>
+<div class="line">      queue_t *q = queues_get(&amp;b-&gt;queues, qname);</div>
+<div class="line">      queue_unsub(q, <a class="code" href="group__session.html#gaa45a8aa758334528a86cb7914ebe8545" title="Get the parent connection for a session object.">pn_session_connection</a>(<a class="code" href="group__link.html#gac63e43305fb1a5e3b14399a9ddc8f24d" title="Get the parent session for a link object.">pn_link_session</a>(s)));</div>
+<div class="line">    }</div>
+<div class="line">  }</div>
+<div class="line">}</div>
+<div class="line"></div>
+<div class="line"><span class="comment">/* Called in connection&#39;s event loop when a connection is woken for messages.*/</span></div>
+<div class="line"><span class="keyword">static</span> <span class="keywordtype">void</span> connection_unsub(broker_t *b, <a class="code" href="group__connection.html#ga886351d81ff3a977a284a206526c5aff" title="An AMQP Connection object.">pn_connection_t</a> *c) {</div>
+<div class="line">  <span class="keywordflow">for</span> (<a class="code" href="group__link.html#ga89dad3aa7934329a7ff467c636687bc0" title="An AMQP Link object.">pn_link_t</a> *l = <a name="a20"></a><a class="code" href="group__link.html#ga7c9434c40eb653f007ff5721e2ebf73e" title="Retrieve the first link that matches the given state mask.">pn_link_head</a>(c, 0); l != NULL; l = <a name="a21"></a><a class="code" href="group__link.html#ga9b2a9cfa00dfdae4e01bf75483433925" title="Retrieve the next link that matches the given state mask.">pn_link_next</a>(l, 0))</div>
+<div class="line">    link_unsub(b, l);</div>
+<div class="line">}</div>
+<div class="line"></div>
+<div class="line"><span class="keyword">static</span> <span class="keywordtype">void</span> session_unsub(broker_t *b, <a class="code" href="group__session.html#ga38ccb93b8f5c2892adafce5d5f0fbcd9" title="An AMQP Session object.">pn_session_t</a> *ssn) {</div>
+<div class="line">  <a class="code" href="group__connection.html#ga886351d81ff3a977a284a206526c5aff" title="An AMQP Connection object.">pn_connection_t</a> *c = <a class="code" href="group__session.html#gaa45a8aa758334528a86cb7914ebe8545" title="Get the parent connection for a session object.">pn_session_connection</a>(ssn);</div>
+<div class="line">  <span class="keywordflow">for</span> (<a class="code" href="group__link.html#ga89dad3aa7934329a7ff467c636687bc0" title="An AMQP Link object.">pn_link_t</a> *l = <a class="code" href="group__link.html#ga7c9434c40eb653f007ff5721e2ebf73e" title="Retrieve the first link that matches the given state mask.">pn_link_head</a>(c, 0); l != NULL; l = <a class="code" href="group__link.html#ga9b2a9cfa00dfdae4e01bf75483433925" title="Retrieve the next link that matches the given state mask.">pn_link_next</a>(l, 0)) {</div>
+<div class="line">    <span class="keywordflow">if</span> (<a class="code" href="group__link.html#gac63e43305fb1a5e3b14399a9ddc8f24d" title="Get the parent session for a link object.">pn_link_session</a>(l) == ssn)</div>
+<div class="line">      link_unsub(b, l);</div>
+<div class="line">  }</div>
+<div class="line">}</div>
+<div class="line"></div>
+<div class="line"><span class="keyword">static</span> <span class="keywordtype">void</span> check_condition(<a class="code" href="group__event.html#ga87f3028b4888632bbd56fb71ac737ae8" title="Notification of a state change in the protocol engine.">pn_event_t</a> *e, <a class="code" href="group__condition.html#ga11eb7db7d2c205169fe3d47c996a95a5" title="An AMQP Condition object.">pn_condition_t</a> *cond) {</div>
+<div class="line">  <span class="keywordflow">if</span> (<a name="a22"></a><a class="code" href="group__condition.html#ga112611a7a4087e050c476a430db2cfb9" title="Returns true if the condition object is holding some information, i.e.">pn_condition_is_set</a>(cond)) {</div>
+<div class="line">    <span class="keyword">const</span> <span class="keywordtype">char</span> *ename = e ? <a name="a23"></a><a class="code" href="group__event.html#ga3a85c046c11ce692c23b9566b022d54b" title="Get a human readable name for an event type.">pn_event_type_name</a>(<a name="a24"></a><a class="code" href="group__event.html#gacaea54ca51885933b4987c131a3d1b0d" title="Get the type of an event.">pn_event_type</a>(e)) : <span class="stringliteral">&quot;UNKNOWN&quot;</span>;</div>
+<div class="line">    fprintf(stderr, <span class="stringliteral">&quot;%s: %s: %s\n&quot;</span>, ename,</div>
+<div class="line">            <a name="a25"></a><a class="code" href="group__condition.html#ga05b0d374d90f11d9ebbf818662569689" title="Returns the name associated with the exceptional condition, or NULL if there is no conditional inform...">pn_condition_get_name</a>(cond), <a name="a26"></a><a class="code" href="group__condition.html#gaabebb65bfcf47b6f7d83ab6fb0153bb8" title="Gets the description associated with the exceptional condition.">pn_condition_get_description</a>(cond));</div>
+<div class="line">  }</div>
+<div class="line">}</div>
+<div class="line"></div>
+<div class="line"><span class="keyword">const</span> <span class="keywordtype">int</span> WINDOW=10;            <span class="comment">/* Incoming credit window */</span></div>
+<div class="line"></div>
+<div class="line"><span class="keyword">static</span> <span class="keywordtype">void</span> handle(broker_t* b, <a class="code" href="group__event.html#ga87f3028b4888632bbd56fb71ac737ae8" title="Notification of a state change in the protocol engine.">pn_event_t</a>* e) {</div>
+<div class="line">  <a class="code" href="group__connection.html#ga886351d81ff3a977a284a206526c5aff" title="An AMQP Connection object.">pn_connection_t</a> *c = <a name="a27"></a><a class="code" href="group__event.html#ga4f2c6a0fdf86a43e7e9874fcd2ccaf52" title="Get the connection associated with an event.">pn_event_connection</a>(e);</div>
+<div class="line"></div>
+<div class="line">  <span class="keywordflow">switch</span> (<a class="code" href="group__event.html#gacaea54ca51885933b4987c131a3d1b0d" title="Get the type of an event.">pn_event_type</a>(e)) {</div>
+<div class="line"></div>
+<div class="line">   <span class="keywordflow">case</span> <a name="a28"></a><a class="code" href="group__event.html#gga4876e2eed24a4d4e4c52b99842103cdaa0602b15957883e7d00ccdff4abca992c" title="Indicates the listener is ready to call pn_listener_accept() Events of this type point to the pn_list...">PN_LISTENER_ACCEPT</a>:</div>
+<div class="line">    <a name="a29"></a><a class="code" href="group__proactor.html#ga76bcf4efdfa82fff28318e1afad083dc" title="Asynchronously accept a connection using the listener.">pn_listener_accept</a>(<a name="a30"></a><a class="code" href="group__proactor.html#gad9ea34f659b8bd2d0089fb43fa468300" title="Return the listener associated with an event or NULL.">pn_event_listener</a>(e), <a name="a31"></a><a class="code" href="group__connection.html#gaa9e59c468ec0568b1528f5f83c4b301d" title="Factory to construct a new Connection.">pn_connection</a>());</div>
+<div class="line">    <span class="keywordflow">break</span>;</div>
+<div class="line"></div>
+<div class="line">   <span class="keywordflow">case</span> <a name="a32"></a><a class="code" href="group__event.html#gga4876e2eed24a4d4e4c52b99842103cdaa182e571a0310028514bce66a41063a6e" title="The connection has been created.">PN_CONNECTION_INIT</a>: </div>
+<div class="line">     <a name="a33"></a><a class="code" href="group__connection.html#gac4a34e0b1fc5665b26ae47a80a422a1a" title="Set the AMQP Container name advertised by a connection object.">pn_connection_set_container</a>(c, b-&gt;container_id);</div>
+<div class="line">     <span class="keywordflow">break</span>;</div>
+<div class="line"></div>
+<div class="line">   <span class="keywordflow">case</span> <a name="a34"></a><a class="code" href="group__event.html#gga4876e2eed24a4d4e4c52b99842103cdaaf61aa79ca82b3a8f5017dc735843fae5" title="The connection has been bound to a transport.">PN_CONNECTION_BOUND</a>: {</div>
+<div class="line">     <span class="comment">/* Turn off security */</span></div>
+<div class="line">     <a class="code" href="group__transport.html#gac26eda05f649bbf0399f3d8d78d12fa8" title="An AMQP Transport object.">pn_transport_t</a> *t = <a name="a35"></a><a class="code" href="group__connection.html#gad8bd46661ca997b9b2c2c38cb6983c59" title="Get the transport bound to a connection object.">pn_connection_transport</a>(c);</div>
+<div class="line">     <a name="a36"></a><a class="code" href="group__transport.html#ga285b4cced59c665ae178adf26128d3fc" title="Set whether a non-authenticated transport connection is allowed.">pn_transport_require_auth</a>(t, <span class="keyword">false</span>);</div>
+<div class="line">     <a name="a37"></a><a class="code" href="group__sasl.html#ga73299a6a22e141e7911a739590032625" title="SASL mechanisms that are to be considered for authentication.">pn_sasl_allowed_mechs</a>(<a name="a38"></a><a class="code" href="group__sasl.html#ga7968e80e2fe9360fc14cf865dd1ac21c" title="Construct an Authentication and Security Layer object.">pn_sasl</a>(t), <span class="stringliteral">&quot;ANONYMOUS&quot;</span>);</div>
+<div class="line">     <a name="a39"></a><a class="code" href="group__transport.html#gafb1c98602d17524eb40e48bf610362d7" title="Set the idle timeout for a transport.">pn_transport_set_idle_timeout</a>(t, 2 * b-&gt;heartbeat);</div>
+<div class="line">   }</div>
+<div class="line">   <span class="keywordflow">case</span> <a name="a40"></a><a class="code" href="group__event.html#gga4876e2eed24a4d4e4c52b99842103cdaad48bce685db553740fa71cc36473b5cc" title="The remote endpoint has opened the connection.">PN_CONNECTION_REMOTE_OPEN</a>: {</div>
+<div class="line">     <a name="a41"></a><a class="code" href="group__connection.html#ga4c0a2d40bb95202477ccc5aaa7456670" title="Open a connection.">pn_connection_open</a>(<a class="code" href="group__event.html#ga4f2c6a0fdf86a43e7e9874fcd2ccaf52" title="Get the connection associated with an event.">pn_event_connection</a>(e)); <span class="comment">/* Complete the open */</span></div>
+<div class="line">     <span class="keywordflow">break</span>;</div>
+<div class="line">   }</div>
+<div class="line">   <span class="keywordflow">case</span> <a name="a42"></a><a class="code" href="group__event.html#gga4876e2eed24a4d4e4c52b99842103cdaa28a2bfee806bbc1fe31499c8eec39db0" title="pn_connection_wake() was called.">PN_CONNECTION_WAKE</a>: {</div>
+<div class="line">     <span class="keywordflow">if</span> (pn_connection_get_check_queues(c)) {</div>
+<div class="line">       pn_connection_set_check_queues(c, <span class="keyword">false</span>);</div>
+<div class="line">       <span class="keywordtype">int</span> flags = <a name="a43"></a><a class="code" href="group__connection.html#ga0c3bf54f0991944a2f6eea36b561fa2b" title="The local endpoint state  is active.">PN_LOCAL_ACTIVE</a>&amp;<a name="a44"></a><a class="code" href="group__connection.html#gad96220f2886c21a4f2eebc9487f53a87" title="The remote endpoint state  is active.">PN_REMOTE_ACTIVE</a>;</div>
+<div class="line">       <span class="keywordflow">for</span> (<a class="code" href="group__link.html#ga89dad3aa7934329a7ff467c636687bc0" title="An AMQP Link object.">pn_link_t</a> *l = <a class="code" href="group__link.html#ga7c9434c40eb653f007ff5721e2ebf73e" title="Retrieve the first link that matches the given state mask.">pn_link_head</a>(c, flags); l != NULL; l = <a class="code" href="group__link.html#ga9b2a9cfa00dfdae4e01bf75483433925" title="Retrieve the next link that matches the given state mask.">pn_link_next</a>(l, flags))</div>
+<div class="line">         link_send(b, l);</div>
+<div class="line">     }</div>
+<div class="line">     <span class="keywordflow">break</span>;</div>
+<div class="line">   }</div>
+<div class="line">   <span class="keywordflow">case</span> <a name="a45"></a><a class="code" href="group__event.html#gga4876e2eed24a4d4e4c52b99842103cdaaf67df046bea45df34aea863d9541e806" title="The remote endpoint has opened the session.">PN_SESSION_REMOTE_OPEN</a>: {</div>
+<div class="line">     <a name="a46"></a><a class="code" href="group__session.html#ga2b345eada2c15249caaefaa894d1aae3" title="Open a session.">pn_session_open</a>(<a name="a47"></a><a class="code" href="group__event.html#gaf4af0bfbe0e0a8e432f0e803df14ecb5" title="Get the session associated with an event.">pn_event_session</a>(e));</div>
+<div class="line">     <span class="keywordflow">break</span>;</div>
+<div class="line">   }</div>
+<div class="line">   <span class="keywordflow">case</span> <a name="a48"></a><a class="code" href="group__event.html#gga4876e2eed24a4d4e4c52b99842103cdaa45edb44a6cc7908b5032944e08925307" title="The remote endpoint has opened the link.">PN_LINK_REMOTE_OPEN</a>: {</div>
+<div class="line">     <a class="code" href="group__link.html#ga89dad3aa7934329a7ff467c636687bc0" title="An AMQP Link object.">pn_link_t</a> *l = <a name="a49"></a><a class="code" href="group__event.html#ga75f230ef55f03a1f943df79279f8d111" title="Get the link associated with an event.">pn_event_link</a>(e);</div>
+<div class="line">     <span class="keywordflow">if</span> (<a class="code" href="group__link.html#ga7c48ef214568267839aea04ed337926b" title="Test if a link is a sender.">pn_link_is_sender</a>(l)) {</div>
+<div class="line">       <span class="keyword">const</span> <span class="keywordtype">char</span> *source = <a class="code" href="group__terminus.html#ga3507b6cfe260a2bfaae9321235db7c9a" title="Get the address of a terminus object.">pn_terminus_get_address</a>(<a name="a50"></a><a class="code" href="group__link.html#gadf6b8ff6223465f21a481e9287f60671" title="Access the remotely defined source definition for a link.">pn_link_remote_source</a>(l));</div>
+<div class="line">       <a name="a51"></a><a class="code" href="group__terminus.html#ga0603db45f03fcef0ef18f4f89ebf3de1" title="Set the address of a terminus object.">pn_terminus_set_address</a>(<a class="code" href="group__link.html#ga2c8985a9d44a813ab1739a91ae3708a3" title="Access the locally defined source definition for a link.">pn_link_source</a>(l), source);</div>
+<div class="line">     } <span class="keywordflow">else</span> {</div>
+<div class="line">       <span class="keyword">const</span> <span class="keywordtype">char</span>* target = <a class="code" href="group__terminus.html#ga3507b6cfe260a2bfaae9321235db7c9a" title="Get the address of a terminus object.">pn_terminus_get_address</a>(<a name="a52"></a><a class="code" href="group__link.html#gabf61668a66ae189dbb4820da6ee30d90" title="Access the remotely defined target definition for a link.">pn_link_remote_target</a>(l));</div>
+<div class="line">       <a class="code" href="group__terminus.html#ga0603db45f03fcef0ef18f4f89ebf3de1" title="Set the address of a terminus object.">pn_terminus_set_address</a>(<a name="a53"></a><a class="code" href="group__link.html#ga997c85388b9fb30151ea3b40b946e958" title="Access the locally defined target definition for a link.">pn_link_target</a>(l), target);</div>
+<div class="line">       <a name="a54"></a><a class="code" href="group__link.html#gafec44cf1c79ec03f3ac009e1879e71a9" title="Grant credit for incoming deliveries on a receiver.">pn_link_flow</a>(l, WINDOW);</div>
+<div class="line">     }</div>
+<div class="line">     <a name="a55"></a><a class="code" href="group__link.html#gaabaca3f5d03970a122240eebc588add6" title="Open a link.">pn_link_open</a>(l);</div>
+<div class="line">     <span class="keywordflow">break</span>;</div>
+<div class="line">   }</div>
+<div class="line">   <span class="keywordflow">case</span> <a name="a56"></a><a class="code" href="group__event.html#gga4876e2eed24a4d4e4c52b99842103cdaa4eaecc54c07cdc9b0df7b1d536a7dc3f" title="The flow control state for a link has changed.">PN_LINK_FLOW</a>: {</div>
+<div class="line">     link_send(b, <a class="code" href="group__event.html#ga75f230ef55f03a1f943df79279f8d111" title="Get the link associated with an event.">pn_event_link</a>(e));</div>
+<div class="line">     <span class="keywordflow">break</span>;</div>
+<div class="line">   }</div>
+<div class="line">   <span class="keywordflow">case</span> <a name="a57"></a><a class="code" href="group__event.html#gga4876e2eed24a4d4e4c52b99842103cdaa70bbfc163d85732b5652dc70fb3330fe" title="A delivery has been created or updated.">PN_DELIVERY</a>: {</div>
+<div class="line">     <a class="code" href="group__delivery.html#gacdfce854066c0a4ff4db9f9a0478f340" title="An AMQP Delivery object.">pn_delivery_t</a> *d = <a name="a58"></a><a class="code" href="group__event.html#ga10fa6f53bdabe0851ebb2d8a0bf6a52c" title="Get the delivery associated with an event.">pn_event_delivery</a>(e);</div>
+<div class="line">     <a class="code" href="group__link.html#ga89dad3aa7934329a7ff467c636687bc0" title="An AMQP Link object.">pn_link_t</a> *r = <a name="a59"></a><a class="code" href="group__delivery.html#gad3dd82fe9a649d70d4f3430c34699638" title="Get the parent link for a delivery object.">pn_delivery_link</a>(d);</div>
+<div class="line">     <span class="keywordflow">if</span> (<a name="a60"></a><a class="code" href="group__link.html#gae7045dd02f2c9450ff8737e005628d81" title="Test if a link is a receiver.">pn_link_is_receiver</a>(r) &amp;&amp;</div>
+<div class="line">         <a name="a61"></a><a class="code" href="group__delivery.html#ga13364206124b653b90f5ee3ddae9ff35" title="Check if a delivery is readable.">pn_delivery_readable</a>(d) &amp;&amp; !<a name="a62"></a><a class="code" href="group__delivery.html#ga23c7b3c678228ccb21378e7c8ec9a72d" title="Check if a delivery only has partial message data.">pn_delivery_partial</a>(d))</div>
+<div class="line">     {</div>
+<div class="line">       <span class="keywordtype">size_t</span> size = <a name="a63"></a><a class="code" href="group__delivery.html#ga17523835dbc8d1906bd71df69d09cc40" title="Get the amount of pending message data for a delivery.">pn_delivery_pending</a>(d);</div>
+<div class="line">       <span class="comment">/* The broker does not decode the message, just forwards it. */</span></div>
+<div class="line">       <a class="code" href="group__api__types.html#structpn__rwbytes__t" title="A non-const byte buffer.">pn_rwbytes_t</a> m = { size, (<span class="keywordtype">char</span>*)malloc(size) };</div>
+<div class="line">       <a name="a64"></a><a class="code" href="group__link.html#ga06c97ce7396973dca0d311567f25f95a" title="Receive message data for the current delivery on a link.">pn_link_recv</a>(r, m.start, m.size);</div>
+<div class="line">       <span class="keyword">const</span> <span class="keywordtype">char</span> *qname = <a class="code" href="group__terminus.html#ga3507b6cfe260a2bfaae9321235db7c9a" title="Get the address of a terminus object.">pn_terminus_get_address</a>(<a class="code" href="group__link.html#ga997c85388b9fb30151ea3b40b946e958" title="Access the locally defined target definition for a link.">pn_link_target</a>(r));</div>
+<div class="line">       queue_receive(b-&gt;proactor, queues_get(&amp;b-&gt;queues, qname), m);</div>
+<div class="line">       <a name="a65"></a><a class="code" href="group__delivery.html#ga570c54003c2ba18b84405737925e5176" title="Update the disposition of a delivery.">pn_delivery_update</a>(d, <a name="a66"></a><a class="code" href="group__delivery.html#gac64952b813a707586c6b3898e09552e4" title="The PN_ACCEPTED delivery state is a terminal state indicating that the delivery was successfully proc...">PN_ACCEPTED</a>);</div>
+<div class="line">       <a class="code" href="group__delivery.html#ga98c275fd7158e8b9d7d48d70503d68df" title="Settle a delivery.">pn_delivery_settle</a>(d);</div>
+<div class="line">       <a class="code" href="group__link.html#gafec44cf1c79ec03f3ac009e1879e71a9" title="Grant credit for incoming deliveries on a receiver.">pn_link_flow</a>(r, WINDOW - <a class="code" href="group__link.html#ga55428637f3b8c446efd5fea3f26c932d" title="Get the credit balance for a link.">pn_link_credit</a>(r));</div>
+<div class="line">     }</div>
+<div class="line">     <span class="keywordflow">break</span>;</div>
+<div class="line">   }</div>
+<div class="line"></div>
+<div class="line">   <span class="keywordflow">case</span> <a name="a67"></a><a class="code" href="group__event.html#gga4876e2eed24a4d4e4c52b99842103cdaa1ca722ce3c0b2c13a33636cded8430ba" title="Indicates that the both the head and tail of the transport are closed.">PN_TRANSPORT_CLOSED</a>:</div>
+<div class="line">    connection_unsub(b, <a class="code" href="group__event.html#ga4f2c6a0fdf86a43e7e9874fcd2ccaf52" title="Get the connection associated with an event.">pn_event_connection</a>(e));</div>
+<div class="line">    check_condition(e, <a name="a68"></a><a class="code" href="group__transport.html#gac458d9fdb684f9501e89b96fc51f5c34" title="Get additional information about the condition of the transport.">pn_transport_condition</a>(<a name="a69"></a><a class="code" href="group__event.html#ga14525ae84870388141898bbf57f2b151" title="Get the transport associated with an event.">pn_event_transport</a>(e)));</div>
+<div class="line">    <span class="keywordflow">break</span>;</div>
+<div class="line"></div>
+<div class="line">   <span class="keywordflow">case</span> <a name="a70"></a><a class="code" href="group__event.html#gga4876e2eed24a4d4e4c52b99842103cdaa1252529cf9f03d214c9b4fea5cf11b2f" title="The remote endpoint has closed the connection.">PN_CONNECTION_REMOTE_CLOSE</a>:</div>
+<div class="line">    check_condition(e, <a name="a71"></a><a class="code" href="group__connection.html#ga72a362389b99d8e891bf2e4fb4290754" title="Get the remote condition associated with the connection endpoint.">pn_connection_remote_condition</a>(<a class="code" href="group__event.html#ga4f2c6a0fdf86a43e7e9874fcd2ccaf52" title="Get the connection associated with an event.">pn_event_connection</a>(e)));</div>
+<div class="line">    connection_unsub(b, <a class="code" href="group__event.html#ga4f2c6a0fdf86a43e7e9874fcd2ccaf52" title="Get the connection associated with an event.">pn_event_connection</a>(e));</div>
+<div class="line">    <a name="a72"></a><a class="code" href="group__connection.html#gac25afdf810ad188b2cb3bf31a7482ca0" title="Close a connection.">pn_connection_close</a>(<a class="code" href="group__event.html#ga4f2c6a0fdf86a43e7e9874fcd2ccaf52" title="Get the connection associated with an event.">pn_event_connection</a>(e));</div>
+<div class="line">    <span class="keywordflow">break</span>;</div>
+<div class="line"></div>
+<div class="line">   <span class="keywordflow">case</span> <a name="a73"></a><a class="code" href="group__event.html#gga4876e2eed24a4d4e4c52b99842103cdaa3410075b825c59b8f4efdcddf5a5b135" title="The remote endpoint has closed the session.">PN_SESSION_REMOTE_CLOSE</a>:</div>
+<div class="line">    check_condition(e, <a name="a74"></a><a class="code" href="group__session.html#gae21b3fda1567bad1f8a8fe162ffaeece" title="Get the remote condition associated with the session endpoint.">pn_session_remote_condition</a>(<a class="code" href="group__event.html#gaf4af0bfbe0e0a8e432f0e803df14ecb5" title="Get the session associated with an event.">pn_event_session</a>(e)));</div>
+<div class="line">    session_unsub(b, <a class="code" href="group__event.html#gaf4af0bfbe0e0a8e432f0e803df14ecb5" title="Get the session associated with an event.">pn_event_session</a>(e));</div>
+<div class="line">    <a name="a75"></a><a class="code" href="group__session.html#ga12e5c4e71b0df4087d16ccc8b63b42b5" title="Close a session.">pn_session_close</a>(<a class="code" href="group__event.html#gaf4af0bfbe0e0a8e432f0e803df14ecb5" title="Get the session associated with an event.">pn_event_session</a>(e));</div>
+<div class="line">    <a name="a76"></a><a class="code" href="group__session.html#ga0f95b5177494a68991d75444c2f6f812" title="Free a session object.">pn_session_free</a>(<a class="code" href="group__event.html#gaf4af0bfbe0e0a8e432f0e803df14ecb5" title="Get the session associated with an event.">pn_event_session</a>(e));</div>
+<div class="line">    <span class="keywordflow">break</span>;</div>
+<div class="line"></div>
+<div class="line">   <span class="keywordflow">case</span> <a name="a77"></a><a class="code" href="group__event.html#gga4876e2eed24a4d4e4c52b99842103cdaa1153f0108be071c31210dd1cd3e40a1f" title="The remote endpoint has closed the link.">PN_LINK_REMOTE_CLOSE</a>:</div>
+<div class="line">    check_condition(e, <a name="a78"></a><a class="code" href="group__link.html#ga97dc5133125c9b7e4afbb1b76e6efe7b" title="Get the remote condition associated with a link endpoint.">pn_link_remote_condition</a>(<a class="code" href="group__event.html#ga75f230ef55f03a1f943df79279f8d111" title="Get the link associated with an event.">pn_event_link</a>(e)));</div>
+<div class="line">    link_unsub(b, <a class="code" href="group__event.html#ga75f230ef55f03a1f943df79279f8d111" title="Get the link associated with an event.">pn_event_link</a>(e));</div>
+<div class="line">    <a name="a79"></a><a class="code" href="group__link.html#ga4851693eb6a16fd9ab61e2df6f00770d" title="Close a link.">pn_link_close</a>(<a class="code" href="group__event.html#ga75f230ef55f03a1f943df79279f8d111" title="Get the link associated with an event.">pn_event_link</a>(e));</div>
+<div class="line">    <a name="a80"></a><a class="code" href="group__link.html#gadd3b8899fe023d3506fb88d228d6b1b7" title="Free a link object.">pn_link_free</a>(<a class="code" href="group__event.html#ga75f230ef55f03a1f943df79279f8d111" title="Get the link associated with an event.">pn_event_link</a>(e));</div>
+<div class="line">    <span class="keywordflow">break</span>;</div>
+<div class="line"></div>
+<div class="line">   <span class="keywordflow">case</span> <a name="a81"></a><a class="code" href="group__event.html#gga4876e2eed24a4d4e4c52b99842103cdaad5920df168cd28daaf253cad789d8aca" title="Indicates the listener has closed.">PN_LISTENER_CLOSE</a>:</div>
+<div class="line">    check_condition(e, <a name="a82"></a><a class="code" href="group__proactor.html#ga6dba0fded7ca1718397151c62e65535b" title="Get the error condition for a listener.">pn_listener_condition</a>(<a class="code" href="group__proactor.html#gad9ea34f659b8bd2d0089fb43fa468300" title="Return the listener associated with an event or NULL.">pn_event_listener</a>(e)));</div>
+<div class="line">    <span class="keywordflow">break</span>;</div>
+<div class="line"></div>
+<div class="line">   <span class="keywordflow">case</span> <a name="a83"></a><a class="code" href="group__event.html#gga4876e2eed24a4d4e4c52b99842103cdaa894e93f167ef39e28a07c9cdf6b1181b" title="The proactor becaome inactive: all listeners and connections are closed and their events processed...">PN_PROACTOR_INACTIVE</a>: <span class="comment">/* listener and all connections closed */</span></div>
+<div class="line">    broker_stop(b);</div>
+<div class="line">    <span class="keywordflow">break</span>;</div>
+<div class="line"></div>
+<div class="line">   <span class="keywordflow">case</span> <a name="a84"></a><a class="code" href="group__event.html#gga4876e2eed24a4d4e4c52b99842103cdaaee05826a80e94b5b86c4544e4715f499" title="Indicates pn_proactor_interrupt() was called to interrupt a proactor thread Events of this type point...">PN_PROACTOR_INTERRUPT</a>:</div>
+<div class="line">    b-&gt;finished = <span class="keyword">true</span>;</div>
+<div class="line">    <span class="keywordflow">break</span>;</div>
+<div class="line"></div>
+<div class="line">   <span class="keywordflow">default</span>:</div>
+<div class="line">    <span class="keywordflow">break</span>;</div>
+<div class="line">  }</div>
+<div class="line">}</div>
+<div class="line"></div>
+<div class="line"><span class="keyword">static</span> <span class="keywordtype">void</span> broker_thread(<span class="keywordtype">void</span> *void_broker) {</div>
+<div class="line">  broker_t *b = (broker_t*)void_broker;</div>
+<div class="line">  <span class="keywordflow">do</span> {</div>
+<div class="line">    <a class="code" href="group__event.html#ga6bc581dfeaa8e8d46d07d37229d565c9" title="Experimental - A batch of events to handle.">pn_event_batch_t</a> *events = <a name="a85"></a><a class="code" href="group__proactor.html#ga56f5830965c20d3dbfc63e795eb243c4" title="Wait for events to handle.">pn_proactor_wait</a>(b-&gt;proactor);</div>
+<div class="line">    <a class="code" href="group__event.html#ga87f3028b4888632bbd56fb71ac737ae8" title="Notification of a state change in the protocol engine.">pn_event_t</a> *e;</div>
+<div class="line">    <span class="keywordflow">while</span> ((e = <a name="a86"></a><a class="code" href="group__event.html#gac3fbf151357d3101ac294cb675348c76" title="Experimental - Remove the next event from the batch and return it.">pn_event_batch_next</a>(events))) {</div>
+<div class="line">      handle(b, e);</div>
+<div class="line">    }</div>
+<div class="line">    <a name="a87"></a><a class="code" href="group__proactor.html#gab45680de5c02690a1f1ad1a3c70e9d65" title="Call when done handling a batch of events.">pn_proactor_done</a>(b-&gt;proactor, events);</div>
+<div class="line">  } <span class="keywordflow">while</span>(!b-&gt;finished);</div>
+<div class="line">}</div>
+<div class="line"></div>
+<div class="line"><span class="keyword">static</span> <span class="keywordtype">void</span> usage(<span class="keyword">const</span> <span class="keywordtype">char</span> *arg0) {</div>
+<div class="line">  fprintf(stderr, <span class="stringliteral">&quot;Usage: %s [-d] [-a url] [-t thread-count]\n&quot;</span>, arg0);</div>
+<div class="line">  exit(1);</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">  <span class="comment">/* Command line options */</span></div>
+<div class="line">  <span class="keywordtype">char</span> *urlstr = NULL;</div>
+<div class="line">  <span class="keywordtype">char</span> container_id[256];</div>
+<div class="line">  <span class="comment">/* Default container-id is program:pid */</span></div>
+<div class="line">  snprintf(container_id, <span class="keyword">sizeof</span>(container_id), <span class="stringliteral">&quot;%s:%d&quot;</span>, argv[0], getpid());</div>
+<div class="line">  <span class="keywordtype">size_t</span> nthreads = 4;</div>
+<div class="line">  <a class="code" href="group__api__types.html#ga9a701bc6dc9af9f42c3f4679172a723c" title="A span of time in milliseconds.">pn_millis_t</a> heartbeat = 0;</div>
+<div class="line">  <span class="keywordtype">int</span> opt;</div>
+<div class="line">  <span class="keywordflow">while</span> ((opt = getopt(argc, argv, <span class="stringliteral">&quot;a:t:dh:c:&quot;</span>)) != -1) {</div>
+<div class="line">    <span class="keywordflow">switch</span> (opt) {</div>
+<div class="line">     <span class="keywordflow">case</span> <span class="charliteral">&#39;a&#39;</span>: urlstr = optarg; <span class="keywordflow">break</span>;</div>
+<div class="line">     <span class="keywordflow">case</span> <span class="charliteral">&#39;t&#39;</span>: nthreads = atoi(optarg); <span class="keywordflow">break</span>;</div>
+<div class="line">     <span class="keywordflow">case</span> <span class="charliteral">&#39;d&#39;</span>: enable_debug = <span class="keyword">true</span>; <span class="keywordflow">break</span>;</div>
+<div class="line">     <span class="keywordflow">case</span> <span class="charliteral">&#39;h&#39;</span>: heartbeat = atoi(optarg); <span class="keywordflow">break</span>;</div>
+<div class="line">     <span class="keywordflow">case</span> <span class="charliteral">&#39;c&#39;</span>: strncpy(container_id, optarg, <span class="keyword">sizeof</span>(container_id)); <span class="keywordflow">break</span>;</div>
+<div class="line">     <span class="keywordflow">default</span>: usage(argv[0]); <span class="keywordflow">break</span>;</div>
+<div class="line">    }</div>
+<div class="line">  }</div>
+<div class="line">  <span class="keywordflow">if</span> (optind &lt; argc)</div>
+<div class="line">    usage(argv[0]);</div>
+<div class="line"></div>
+<div class="line">  broker_t b;</div>
+<div class="line">  broker_init(&amp;b, container_id, nthreads, heartbeat);</div>
+<div class="line"></div>
+<div class="line">  <span class="comment">/* Parse the URL or use default values */</span></div>
+<div class="line">  <a class="code" href="group__url.html#gafbe4340c29b1abd7394767456ad3b8ea" title="A parsed URL.">pn_url_t</a> *url = urlstr ? <a name="a88"></a><a class="code" href="group__url.html#gaaa9f2f29b90525fbf73739cae8b84776" title="Parse a string URL as a pn_url_t.">pn_url_parse</a>(urlstr) : NULL;</div>
+<div class="line">  <span class="comment">/* Listen on IPv6 wildcard. On systems that do not set IPV6ONLY by default,</span></div>
+<div class="line"><span class="comment">     this will also listen for mapped IPv4 on the same port.</span></div>
+<div class="line"><span class="comment">  */</span></div>
+<div class="line">  <span class="keyword">const</span> <span class="keywordtype">char</span> *host = url ? pn_url_get_host(url) : <span class="stringliteral">&quot;::&quot;</span>;</div>
+<div class="line">  <span class="keyword">const</span> <span class="keywordtype">char</span> *port = url ? pn_url_get_port(url) : <span class="stringliteral">&quot;amqp&quot;</span>;</div>
+<div class="line">  <a name="a89"></a><a class="code" href="group__proactor.html#ga68300a70c58a825564d5b4ee5d147696" title="Start listening with listener.">pn_proactor_listen</a>(b.proactor, <a name="a90"></a><a class="code" href="group__proactor.html#gaaaf34821f3d29274ec41e7ce71022540" title="Create a listener.">pn_listener</a>(), host, port, 16);</div>
+<div class="line">  printf(<span class="stringliteral">&quot;listening on &#39;%s:%s&#39; %zd threads\n&quot;</span>, host, port, b.threads);</div>
+<div class="line"></div>
+<div class="line">  <span class="keywordflow">if</span> (url) <a name="a91"></a><a class="code" href="group__url.html#gab65d8b2c49f5e3f720cea8a3c1a1e6d1" title="Free a URL.">pn_url_free</a>(url);</div>
+<div class="line">  <span class="keywordflow">if</span> (b.threads &lt;= 0) {</div>
+<div class="line">    fprintf(stderr, <span class="stringliteral">&quot;invalid value -t %zu, threads must be &gt; 0\n&quot;</span>, b.threads);</div>
+<div class="line">    exit(1);</div>
+<div class="line">  }</div>
+<div class="line">  <span class="comment">/* Start n-1 threads and use main thread */</span></div>
+<div class="line">  uv_thread_t* threads = (uv_thread_t*)calloc(<span class="keyword">sizeof</span>(uv_thread_t), b.threads);</div>
+<div class="line">  <span class="keywordflow">for</span> (<span class="keywordtype">size_t</span> i = 0; i &lt; b.threads-1; ++i) {</div>
+<div class="line">    check(uv_thread_create(&amp;threads[i], broker_thread, &amp;b), <span class="stringliteral">&quot;pthread_create&quot;</span>);</div>
+<div class="line">  }</div>
+<div class="line">  broker_thread(&amp;b);            <span class="comment">/* Use the main thread too. */</span></div>
+<div class="line">  <span class="keywordflow">for</span> (<span class="keywordtype">size_t</span> i = 0; i &lt; b.threads-1; ++i) {</div>
+<div class="line">    check(uv_thread_join(&amp;threads[i]), <span class="stringliteral">&quot;pthread_join&quot;</span>);</div>
+<div class="line">  }</div>
+<div class="line">  <a name="a92"></a><a class="code" href="group__proactor.html#ga10fa443c109cee057a3c30e69f93fcef" title="Free the proactor.">pn_proactor_free</a>(b.proactor);</div>
+<div class="line">  free(threads);</div>
+<div class="line">  <span class="keywordflow">return</span> 0;</div>
+<div class="line">}</div>
+</div><!-- fragment --> </div><!-- contents -->
+</div><!-- doc-content -->
+<!-- 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.png" alt="doxygen"/></a> 1.8.3.1 </li>
+  </ul>
+</div>
+</body>
+</html>

http://git-wip-us.apache.org/repos/asf/qpid-site/blob/7833dc2a/content/releases/qpid-proton-0.16.0/proton/c/api/classes.html
----------------------------------------------------------------------
diff --git a/content/releases/qpid-proton-0.16.0/proton/c/api/classes.html b/content/releases/qpid-proton-0.16.0/proton/c/api/classes.html
new file mode 100755
index 0000000..58639e4
--- /dev/null
+++ b/content/releases/qpid-proton-0.16.0/proton/c/api/classes.html
@@ -0,0 +1,122 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://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.3.1"/>
+<title>Qpid Proton C API: Class Index</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="navtree.js"></script>
+<script type="text/javascript">
+  $(document).ready(initResizable);
+  $(window).load(resizeHeight);
+</script>
+<link href="search/search.css" rel="stylesheet" type="text/css"/>
+<script type="text/javascript" src="search/search.js"></script>
+<script type="text/javascript">
+  $(document).ready(function() { searchBox.OnSelectItem(0); });
+</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 style="padding-left: 0.5em;">
+   <div id="projectname">Qpid Proton C API
+   &#160;<span id="projectnumber">0.16.0</span>
+   </div>
+  </td>
+   <td>        <div id="MSearchBox" class="MSearchBoxInactive">
+        <span class="left">
+          <img id="MSearchSelect" src="search/mag_sel.png"
+               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.png" alt=""/></a>
+          </span>
+        </div>
+</td>
+ </tr>
+ </tbody>
+</table>
+</div>
+<!-- end header part -->
+<!-- Generated by Doxygen 1.8.3.1 -->
+<script type="text/javascript">
+var searchBox = new SearchBox("searchBox", "search",false,'Search');
+</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">
+$(document).ready(function(){initNavTree('classes.html','');});
+</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)">
+<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Typedefs</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Enumerations</a><a class="SelectItem" href="javascript:vo
 id(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&#160;</span>Enumerator</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark">&#160;</span>Groups</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(9)"><span class="SelectionMark">&#160;</span>Pages</a></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">Class Index</div>  </div>
+</div><!--header-->
+<div class="contents">
+<div class="qindex"><a class="qindex" href="#letter_A">A</a>&#160;|&#160;<a class="qindex" href="#letter_B">B</a>&#160;|&#160;<a class="qindex" href="#letter_C">C</a>&#160;|&#160;<a class="qindex" href="#letter_D">D</a>&#160;|&#160;<a class="qindex" href="#letter_R">R</a>&#160;|&#160;<a class="qindex" href="#letter_U">U</a></div>
+<table style="margin: 10px; white-space: nowrap;" align="center" width="95%" border="0" cellspacing="0" cellpadding="0">
+<tr><td rowspan="2" valign="bottom"><a name="letter_A"></a><table border="0" cellspacing="0" cellpadding="0"><tr><td><div class="ah">&#160;&#160;A&#160;&#160;</div></td></tr></table>
+</td><td rowspan="2" valign="bottom"><a name="letter_C"></a><table border="0" cellspacing="0" cellpadding="0"><tr><td><div class="ah">&#160;&#160;C&#160;&#160;</div></td></tr></table>
+</td><td rowspan="2" valign="bottom"><a name="letter_R"></a><table border="0" cellspacing="0" cellpadding="0"><tr><td><div class="ah">&#160;&#160;R&#160;&#160;</div></td></tr></table>
+</td><td></td></tr>
+<tr><td></td></tr>
+<tr><td valign="top"><a class="el" href="group__api__types.html#structpn__atom__t">pn_atom_t</a>&#160;&#160;&#160;</td><td valign="top"><a class="el" href="group__connection__driver.html#structpn__connection__driver__t">pn_connection_driver_t</a>&#160;&#160;&#160;</td><td valign="top"><a class="el" href="group__api__types.html#structpn__rwbytes__t">pn_rwbytes_t</a>&#160;&#160;&#160;</td><td></td></tr>
+<tr><td rowspan="2" valign="bottom"><a name="letter_B"></a><table border="0" cellspacing="0" cellpadding="0"><tr><td><div class="ah">&#160;&#160;B&#160;&#160;</div></td></tr></table>
+</td><td rowspan="2" valign="bottom"><a name="letter_D"></a><table border="0" cellspacing="0" cellpadding="0"><tr><td><div class="ah">&#160;&#160;D&#160;&#160;</div></td></tr></table>
+</td><td rowspan="2" valign="bottom"><a name="letter_U"></a><table border="0" cellspacing="0" cellpadding="0"><tr><td><div class="ah">&#160;&#160;U&#160;&#160;</div></td></tr></table>
+</td><td></td></tr>
+<tr><td></td></tr>
+<tr><td valign="top"><a class="el" href="group__api__types.html#structpn__bytes__t">pn_bytes_t</a>&#160;&#160;&#160;</td><td valign="top"><a class="el" href="group__amqp__types.html#structpn__decimal128__t">pn_decimal128_t</a>&#160;&#160;&#160;</td><td valign="top"><a class="el" href="group__amqp__types.html#structpn__uuid__t">pn_uuid_t</a>&#160;&#160;&#160;</td><td></td></tr>
+<tr><td></td><td></td><td></td><td></td></tr>
+</table>
+<div class="qindex"><a class="qindex" href="#letter_A">A</a>&#160;|&#160;<a class="qindex" href="#letter_B">B</a>&#160;|&#160;<a class="qindex" href="#letter_C">C</a>&#160;|&#160;<a class="qindex" href="#letter_D">D</a>&#160;|&#160;<a class="qindex" href="#letter_R">R</a>&#160;|&#160;<a class="qindex" href="#letter_U">U</a></div>
+</div><!-- contents -->
+</div><!-- doc-content -->
+<!-- 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.png" alt="doxygen"/></a> 1.8.3.1 </li>
+  </ul>
+</div>
+</body>
+</html>

http://git-wip-us.apache.org/repos/asf/qpid-site/blob/7833dc2a/content/releases/qpid-proton-0.16.0/proton/c/api/closed.png
----------------------------------------------------------------------
diff --git a/content/releases/qpid-proton-0.16.0/proton/c/api/closed.png b/content/releases/qpid-proton-0.16.0/proton/c/api/closed.png
new file mode 100755
index 0000000..98cc2c9
Binary files /dev/null and b/content/releases/qpid-proton-0.16.0/proton/c/api/closed.png differ


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@qpid.apache.org
For additional commands, e-mail: commits-help@qpid.apache.org


Mime
View raw message