qpid-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jr...@apache.org
Subject [45/51] [abbrv] [partial] qpid-site git commit: QPID-8154: Refresh the proton doc snapshot
Date Tue, 01 May 2018 13:45:35 GMT
http://git-wip-us.apache.org/repos/asf/qpid-site/blob/701caf21/content/releases/qpid-proton-master/proton/c/api/direct_8c-example.html
----------------------------------------------------------------------
diff --git a/content/releases/qpid-proton-master/proton/c/api/direct_8c-example.html b/content/releases/qpid-proton-master/proton/c/api/direct_8c-example.html
index d520f51..36a0010 100755
--- a/content/releases/qpid-proton-master/proton/c/api/direct_8c-example.html
+++ b/content/releases/qpid-proton-master/proton/c/api/direct_8c-example.html
@@ -94,7 +94,7 @@ $(document).ready(function(){initNavTree('direct_8c-example.html','');});
 </div><!--header-->
 <div class="contents">
 <p>A server that can be used to demonstrate direct (no broker) peer-to-peer communication It can accept an incoming connection from either the <a class="el" href="send_8c-example.html">send.c</a> or <a class="el" href="receive_8c-example.html">receive.c</a> examples and will act as the directly-connected counterpart (receive or send)</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="li
 ne"><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 &lt;<a class="code" 
 href="condition_8h.html">proton/condition.h</a>&gt;</span></div><div class="line"><span class="preprocessor">#include &lt;<a class="code" href="connection_8h.html">proton/connection.h</a>&gt;</span></div><div class="line"><span class="preprocessor">#include &lt;<a class="code" href="delivery_8h.html">proton/delivery.h</a>&gt;</span></div><div class="line"><span class="preprocessor">#include &lt;<a class="code" href="link_8h.html">proton/link.h</a>&gt;</span></div><div class="line"><span class="preprocessor">#include &lt;<a class="code" href="listener_8h.html">proton/listener.h</a>&gt;</span></div><div class="line"><span class="preprocessor">#include &lt;<a class="code" href="message_8h.html">proton/message.h</a>&gt;</span></div><div class="line"><span class="preprocessor">#include &lt;<a class="code" href="proactor_8h.html">proton/proactor.h</a>&gt;</span></div><div class="line"><span class="preprocessor">#include &lt;<a class="code" href="sasl_8h.html">proton/sasl.h</a>&gt;</span><
 /div><div class="line"><span class="preprocessor">#include &lt;<a class="code" href="session_8h.html">proton/session.h</a>&gt;</span></div><div class="line"><span class="preprocessor">#include &lt;<a class="code" href="transport_8h.html">proton/transport.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"></div><div class="line"><span class="keyword">typedef</span> <span class="keyword">struct </span>app_data_t {</div><div class="line">  <span class="keyword">const</span> <span class="keywordtype">char</span> *host, *port;</div><div class="line">  <span class="keyword">const</span> <span class="keywordtype">char</span> *amqp_address;</div><div class="line">  <span class="keyword">const</span> <span class="keywordtype">char</span> *container_id;</div><div class="line">  <span class="keywordtype">int</span> mes
 sage_count;</div><div class="line"></div><div class="line">  <a class="code" href="types_8h.html#abba42c7929dfceb9d296535bad0c93dc">pn_proactor_t</a> *proactor;</div><div class="line">  <a class="code" href="group__listener.html#ga68ac7072ae60612d0bca5470014bf216">pn_listener_t</a> *listener;</div><div class="line">  <a name="_a0"></a><a class="code" href="group__api__types.html#structpn__rwbytes__t">pn_rwbytes_t</a> message_buffer;</div><div class="line"></div><div class="line">  <span class="comment">/* Sender values */</span></div><div class="line">  <span class="keywordtype">int</span> sent;</div><div class="line">  <span class="keywordtype">int</span> acknowledged;</div><div class="line">  <a class="code" href="group__link.html#ga89dad3aa7934329a7ff467c636687bc0">pn_link_t</a> *sender;</div><div class="line"></div><div class="line">  <span class="comment">/* Receiver values */</span></div><div class="line">  <span class="keywordtype">int</span> received;</div><div class="line">
 } app_data_t;</div><div class="line"></div><div class="line"><span class="keyword">static</span> <span class="keyword">const</span> <span class="keywordtype">int</span> BATCH = 1000; <span class="comment">/* Batch size for unlimited receive */</span></div><div class="line"></div><div class="line"><span class="keyword">static</span> <span class="keywordtype">int</span> exit_code = 0;</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">pn_event_t</a> *e, <a class="code" href="group__condition.html#ga11eb7db7d2c205169fe3d47c996a95a5">pn_condition_t</a> *cond) {</div><div class="line">  <span class="keywordflow">if</span> (<a name="a1"></a><a class="code" href="group__condition.html#ga112611a7a4087e050c476a430db2cfb9">pn_condition_is_set</a>(cond)) {</div><div class="line">    fprintf(stderr, <span class="stringliteral">&quot;%s
 : %s: %s\n&quot;</span>, <a name="a2"></a><a class="code" href="group__event.html#ga3a85c046c11ce692c23b9566b022d54b">pn_event_type_name</a>(<a name="a3"></a><a class="code" href="group__event.html#gacaea54ca51885933b4987c131a3d1b0d">pn_event_type</a>(e)),</div><div class="line">            <a name="a4"></a><a class="code" href="group__condition.html#ga05b0d374d90f11d9ebbf818662569689">pn_condition_get_name</a>(cond), <a name="a5"></a><a class="code" href="group__condition.html#gaabebb65bfcf47b6f7d83ab6fb0153bb8">pn_condition_get_description</a>(cond));</div><div class="line">    <a name="a6"></a><a class="code" href="group__connection.html#gac25afdf810ad188b2cb3bf31a7482ca0">pn_connection_close</a>(<a name="a7"></a><a class="code" href="group__event.html#ga4f2c6a0fdf86a43e7e9874fcd2ccaf52">pn_event_connection</a>(e));</div><div class="line">    exit_code = 1;</div><div class="line">  }</div><div class="line">}</div><div class="line"></div><div class="line"><span class="comment">/* 
 Create a message with a map { &quot;sequence&quot; : number } encode it and return the encoded buffer. */</span></div><div class="line"><span class="keyword">static</span> <a name="_a8"></a><a class="code" href="group__api__types.html#structpn__bytes__t">pn_bytes_t</a> encode_message(app_data_t* app) {</div><div class="line">  <span class="comment">/* Construct a message with the map { &quot;sequence&quot;: app.sent } */</span></div><div class="line">  <a class="code" href="group__message.html#gad9259fa9271e8844c8e05a7e8978e3b2">pn_message_t</a>* message = <a name="a9"></a><a class="code" href="group__message.html#gaaf98d84b9ddc1c6537dddd4c9c5b979e">pn_message</a>();</div><div class="line">  <a name="a10"></a><a class="code" href="group__data.html#ga6cfb9e64b87f8d90a5b4237ca016a016">pn_data_put_int</a>(<a name="a11"></a><a class="code" href="group__message.html#ga296bd7b984c4b9cfabc297ab5badf7de">pn_message_id</a>(message), app-&gt;sent); <span class="comment">/* Set the message_id 
 also */</span></div><div class="line">  <a class="code" href="group__data.html#ga5d6cf528776e8b6ad6d67caf095986bf">pn_data_t</a>* body = <a name="a12"></a><a class="code" href="group__message.html#ga145c06edbcccfbe97136bfb5cb2b22b1">pn_message_body</a>(message);</div><div class="line">  <a name="a13"></a><a class="code" href="group__data.html#ga4c77c7a884bbd9a757b31060962d8543">pn_data_put_map</a>(body);</div><div class="line">  <a name="a14"></a><a class="code" href="group__data.html#ga1093449b80357dabf3f70a4bf804f4f7">pn_data_enter</a>(body);</div><div class="line">  <a name="a15"></a><a class="code" href="group__data.html#ga5dc9c9c7db2018d12753767c075cc6ee">pn_data_put_string</a>(body, <a name="a16"></a><a class="code" href="group__api__types.html#gab4f7e8d204246a3702c6e31a404b0edb">pn_bytes</a>(<span class="keyword">sizeof</span>(<span class="stringliteral">&quot;sequence&quot;</span>)-1, <span class="stringliteral">&quot;sequence&quot;</span>));</div><div class="line">  <a clas
 s="code" href="group__data.html#ga6cfb9e64b87f8d90a5b4237ca016a016">pn_data_put_int</a>(body, app-&gt;sent); <span class="comment">/* The sequence number */</span></div><div class="line">  <a name="a17"></a><a class="code" href="group__data.html#ga67a656cbdbf0a47a223ff1c8507ecf48">pn_data_exit</a>(body);</div><div class="line"></div><div class="line">  <span class="comment">/* encode the message, expanding the encode buffer as needed */</span></div><div class="line">  <span class="keywordflow">if</span> (app-&gt;message_buffer.start == NULL) {</div><div class="line">    <span class="keyword">static</span> <span class="keyword">const</span> <span class="keywordtype">size_t</span> initial_size = 128;</div><div class="line">    app-&gt;message_buffer = <a name="a18"></a><a class="code" href="group__api__types.html#ga9fb5bee0255a52b1b8b8fa1b8620cbca">pn_rwbytes</a>(initial_size, (<span class="keywordtype">char</span>*)malloc(initial_size));</div><div class="line">  }</div><div class="li
 ne">  <span class="comment">/* app-&gt;message_buffer is the total buffer space available. */</span></div><div class="line">  <span class="comment">/* mbuf wil point at just the portion used by the encoded message */</span></div><div class="line">  <a class="code" href="group__api__types.html#structpn__rwbytes__t">pn_rwbytes_t</a> mbuf = <a class="code" href="group__api__types.html#ga9fb5bee0255a52b1b8b8fa1b8620cbca">pn_rwbytes</a>(app-&gt;message_buffer.size, app-&gt;message_buffer.start);</div><div class="line">  <span class="keywordtype">int</span> status = 0;</div><div class="line">  <span class="keywordflow">while</span> ((status = <a name="a19"></a><a class="code" href="group__message.html#ga2173bbce3c1f4b04074e42d2fe7da473">pn_message_encode</a>(message, mbuf.<a name="a20"></a>start, &amp;mbuf.<a name="a21"></a>size)) == <a name="a22"></a><a class="code" href="group__error.html#gaaeef136648e1fd51c2b56c0265fa86f7">PN_OVERFLOW</a>) {</div><div class="line">    app-&gt;message_b
 uffer.size *= 2;</div><div class="line">    app-&gt;message_buffer.start = (<span class="keywordtype">char</span>*)realloc(app-&gt;message_buffer.start, app-&gt;message_buffer.size);</div><div class="line">    mbuf.size = app-&gt;message_buffer.size;</div><div class="line">  }</div><div class="line">  <span class="keywordflow">if</span> (status != 0) {</div><div class="line">    fprintf(stderr, <span class="stringliteral">&quot;error encoding message: %s\n&quot;</span>, <a name="a23"></a><a class="code" href="group__error.html#ga67cbe6ebb143370e0604f5b84d716c56">pn_error_text</a>(<a name="a24"></a><a class="code" href="group__message.html#ga9ad09178e7682efde76e2d39f352dfe8">pn_message_error</a>(message)));</div><div class="line">    exit(1);</div><div class="line">  }</div><div class="line">  <a name="a25"></a><a class="code" href="group__message.html#ga69aadbc3a80f1fa16962774e711392f8">pn_message_free</a>(message);</div><div class="line">  <span class="keywordflow">return</span> <a
  class="code" href="group__api__types.html#gab4f7e8d204246a3702c6e31a404b0edb">pn_bytes</a>(mbuf.size, mbuf.start);</div><div class="line">}</div><div class="line"></div><div class="line"><span class="preprocessor">#define MAX_SIZE 1024</span></div><div class="line"></div><div class="line"><span class="keyword">static</span> <span class="keywordtype">void</span> decode_message(<a class="code" href="group__delivery.html#gacdfce854066c0a4ff4db9f9a0478f340">pn_delivery_t</a> *dlv) {</div><div class="line">  <span class="keyword">static</span> <span class="keywordtype">char</span> buffer[MAX_SIZE];</div><div class="line">  ssize_t len;</div><div class="line">  <span class="comment">// try to decode the message body</span></div><div class="line">  <span class="keywordflow">if</span> (<a name="a26"></a><a class="code" href="group__delivery.html#ga17523835dbc8d1906bd71df69d09cc40">pn_delivery_pending</a>(dlv) &lt; MAX_SIZE) {</div><div class="line">    <span class="comment">// read in the 
 raw data</span></div><div class="line">    len = <a name="a27"></a><a class="code" href="group__link.html#ga06c97ce7396973dca0d311567f25f95a">pn_link_recv</a>(<a name="a28"></a><a class="code" href="group__delivery.html#gad3dd82fe9a649d70d4f3430c34699638">pn_delivery_link</a>(dlv), buffer, MAX_SIZE);</div><div class="line">    <span class="keywordflow">if</span> (len &gt; 0) {</div><div class="line">      <span class="comment">// decode it into a proton message</span></div><div class="line">      <a class="code" href="group__message.html#gad9259fa9271e8844c8e05a7e8978e3b2">pn_message_t</a> *m = <a class="code" href="group__message.html#gaaf98d84b9ddc1c6537dddd4c9c5b979e">pn_message</a>();</div><div class="line">      <span class="keywordflow">if</span> (<a name="a29"></a><a class="code" href="group__error.html#gac73fbd2363c5f562f85dde459e631394">PN_OK</a> == <a name="a30"></a><a class="code" href="group__message.html#gab0bae90838f4661b0c82c15f25e1e988">pn_message_decode</a>(m, buffe
 r, len)) {</div><div class="line">        pn_string_t *s = pn_string(NULL);</div><div class="line">        pn_inspect(<a class="code" href="group__message.html#ga145c06edbcccfbe97136bfb5cb2b22b1">pn_message_body</a>(m), s);</div><div class="line">        printf(<span class="stringliteral">&quot;%s\n&quot;</span>, pn_string_get(s));</div><div class="line">        pn_free(s);</div><div class="line">      }</div><div class="line">      <a class="code" href="group__message.html#ga69aadbc3a80f1fa16962774e711392f8">pn_message_free</a>(m);</div><div class="line">    }</div><div class="line">  }</div><div class="line">}</div><div class="line"></div><div class="line"><span class="comment">/* This function handles events when we are acting as the receiver */</span></div><div class="line"><span class="keyword">static</span> <span class="keywordtype">void</span> handle_receive(app_data_t* app, <a class="code" href="group__event.html#ga87f3028b4888632bbd56fb71ac737ae8">pn_event_t</a>* event) {</
 div><div class="line">  <span class="keywordflow">switch</span> (<a class="code" href="group__event.html#gacaea54ca51885933b4987c131a3d1b0d">pn_event_type</a>(event)) {</div><div class="line"></div><div class="line">   <span class="keywordflow">case</span> <a name="a31"></a><a class="code" href="group__event.html#gga4876e2eed24a4d4e4c52b99842103cdaa45edb44a6cc7908b5032944e08925307">PN_LINK_REMOTE_OPEN</a>: {</div><div class="line">     <a class="code" href="group__link.html#ga89dad3aa7934329a7ff467c636687bc0">pn_link_t</a> *l = <a name="a32"></a><a class="code" href="group__event.html#ga75f230ef55f03a1f943df79279f8d111">pn_event_link</a>(event);</div><div class="line">     <a name="a33"></a><a class="code" href="group__link.html#gaabaca3f5d03970a122240eebc588add6">pn_link_open</a>(l);</div><div class="line">     <a name="a34"></a><a class="code" href="group__link.html#gafec44cf1c79ec03f3ac009e1879e71a9">pn_link_flow</a>(l, app-&gt;message_count ? app-&gt;message_count : BATCH);</div
 ><div class="line">   } <span class="keywordflow">break</span>;</div><div class="line"></div><div class="line">   <span class="keywordflow">case</span> <a name="a35"></a><a class="code" href="group__event.html#gga4876e2eed24a4d4e4c52b99842103cdaa70bbfc163d85732b5652dc70fb3330fe">PN_DELIVERY</a>: {</div><div class="line">     <span class="comment">/* A message has been received */</span></div><div class="line">     <a class="code" href="group__link.html#ga89dad3aa7934329a7ff467c636687bc0">pn_link_t</a> *link = NULL;</div><div class="line">     <a class="code" href="group__delivery.html#gacdfce854066c0a4ff4db9f9a0478f340">pn_delivery_t</a> *dlv = <a name="a36"></a><a class="code" href="group__event.html#ga10fa6f53bdabe0851ebb2d8a0bf6a52c">pn_event_delivery</a>(event);</div><div class="line">     <span class="keywordflow">if</span> (<a name="a37"></a><a class="code" href="group__delivery.html#ga13364206124b653b90f5ee3ddae9ff35">pn_delivery_readable</a>(dlv) &amp;&amp; !<a name="a38"></
 a><a class="code" href="group__delivery.html#ga23c7b3c678228ccb21378e7c8ec9a72d">pn_delivery_partial</a>(dlv)) {</div><div class="line">       link = <a class="code" href="group__delivery.html#gad3dd82fe9a649d70d4f3430c34699638">pn_delivery_link</a>(dlv);</div><div class="line">       decode_message(dlv);</div><div class="line">       <span class="comment">/* Accept the delivery */</span></div><div class="line">       <a name="a39"></a><a class="code" href="group__delivery.html#ga570c54003c2ba18b84405737925e5176">pn_delivery_update</a>(dlv, <a name="a40"></a><a class="code" href="group__delivery.html#gac64952b813a707586c6b3898e09552e4">PN_ACCEPTED</a>);</div><div class="line">       <span class="comment">/* done with the delivery, move to the next and free it */</span></div><div class="line">       <a name="a41"></a><a class="code" href="group__link.html#ga93824a3859c37463e44458cd2f63d31f">pn_link_advance</a>(link);</div><div class="line">       <a name="a42"></a><a class="code" hre
 f="group__delivery.html#ga98c275fd7158e8b9d7d48d70503d68df">pn_delivery_settle</a>(dlv);  <span class="comment">/* dlv is now freed */</span></div><div class="line"></div><div class="line">       <span class="keywordflow">if</span> (app-&gt;message_count == 0) {</div><div class="line">         <span class="comment">/* receive forever - see if more credit is needed */</span></div><div class="line">         <span class="keywordflow">if</span> (<a name="a43"></a><a class="code" href="group__link.html#ga55428637f3b8c446efd5fea3f26c932d">pn_link_credit</a>(link) &lt; BATCH/2) {</div><div class="line">           <span class="comment">/* Grant enough credit to bring it up to BATCH: */</span></div><div class="line">           <a class="code" href="group__link.html#gafec44cf1c79ec03f3ac009e1879e71a9">pn_link_flow</a>(link, BATCH - <a class="code" href="group__link.html#ga55428637f3b8c446efd5fea3f26c932d">pn_link_credit</a>(link));</div><div class="line">         }</div><div class="line">    
    } <span class="keywordflow">else</span> <span class="keywordflow">if</span> (++app-&gt;received &gt;= app-&gt;message_count) {</div><div class="line">         <span class="comment">/* done receiving, close the endpoints */</span></div><div class="line">         printf(<span class="stringliteral">&quot;%d messages received\n&quot;</span>, app-&gt;received);</div><div class="line">         <a class="code" href="group__session.html#ga38ccb93b8f5c2892adafce5d5f0fbcd9">pn_session_t</a> *ssn = <a name="a44"></a><a class="code" href="group__link.html#gac63e43305fb1a5e3b14399a9ddc8f24d">pn_link_session</a>(link);</div><div class="line">         <a name="a45"></a><a class="code" href="group__link.html#ga4851693eb6a16fd9ab61e2df6f00770d">pn_link_close</a>(link);</div><div class="line">         <a name="a46"></a><a class="code" href="group__session.html#ga12e5c4e71b0df4087d16ccc8b63b42b5">pn_session_close</a>(ssn);</div><div class="line">         <a class="code" href="group__connection.html
 #gac25afdf810ad188b2cb3bf31a7482ca0">pn_connection_close</a>(<a name="a47"></a><a class="code" href="group__session.html#gaa45a8aa758334528a86cb7914ebe8545">pn_session_connection</a>(ssn));</div><div class="line">       }</div><div class="line">     }</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="comment">/* This function handles events when we are acting as the sender */</span></div><div class="line"><span class="keyword">static</span> <span class="keywordtype">void</span> handle_send(app_data_t* app, <a class="code" href="group__event.html#ga87f3028b4888632bbd56fb71ac737ae8">pn_event_t</a>* event) {</div><div class="line">  <span class="keywordflow">switch</span> (<a class="code" href="group__
 event.html#gacaea54ca51885933b4987c131a3d1b0d">pn_event_type</a>(event)) {</div><div class="line"></div><div class="line">   <span class="keywordflow">case</span> <a class="code" href="group__event.html#gga4876e2eed24a4d4e4c52b99842103cdaa45edb44a6cc7908b5032944e08925307">PN_LINK_REMOTE_OPEN</a>: {</div><div class="line">     <a class="code" href="group__link.html#ga89dad3aa7934329a7ff467c636687bc0">pn_link_t</a>* l = <a class="code" href="group__event.html#ga75f230ef55f03a1f943df79279f8d111">pn_event_link</a>(event);</div><div class="line">     <a name="a48"></a><a class="code" href="group__terminus.html#ga0603db45f03fcef0ef18f4f89ebf3de1">pn_terminus_set_address</a>(<a name="a49"></a><a class="code" href="group__link.html#ga997c85388b9fb30151ea3b40b946e958">pn_link_target</a>(l), app-&gt;amqp_address);</div><div class="line">     <a class="code" href="group__link.html#gaabaca3f5d03970a122240eebc588add6">pn_link_open</a>(l);</div><div class="line">   } <span class="keywordflow">bre
 ak</span>;</div><div class="line"></div><div class="line">   <span class="keywordflow">case</span> <a name="a50"></a><a class="code" href="group__event.html#gga4876e2eed24a4d4e4c52b99842103cdaa4eaecc54c07cdc9b0df7b1d536a7dc3f">PN_LINK_FLOW</a>: {</div><div class="line">     <span class="comment">/* The peer has given us some credit, now we can send messages */</span></div><div class="line">     <a class="code" href="group__link.html#ga89dad3aa7934329a7ff467c636687bc0">pn_link_t</a> *sender = <a class="code" href="group__event.html#ga75f230ef55f03a1f943df79279f8d111">pn_event_link</a>(event);</div><div class="line">     <span class="keywordflow">while</span> (<a class="code" href="group__link.html#ga55428637f3b8c446efd5fea3f26c932d">pn_link_credit</a>(sender) &gt; 0 &amp;&amp; app-&gt;sent &lt; app-&gt;message_count) {</div><div class="line">       ++app-&gt;sent;</div><div class="line">       <span class="comment">// Use sent counter as unique delivery tag.</span></div><div class="l
 ine">       <a name="a51"></a><a class="code" href="group__delivery.html#ga6a7ef2e317b4ed292cafbb358f0ba6ad">pn_delivery</a>(sender, <a name="a52"></a><a class="code" href="group__delivery.html#gaea4522ac1fef9228fb6c743d2a36fd27">pn_dtag</a>((<span class="keyword">const</span> <span class="keywordtype">char</span> *)&amp;app-&gt;sent, <span class="keyword">sizeof</span>(app-&gt;sent)));</div><div class="line">       <a class="code" href="group__api__types.html#structpn__bytes__t">pn_bytes_t</a> msgbuf = encode_message(app);</div><div class="line">       <a name="a53"></a><a class="code" href="group__link.html#gaa825fac21730f3f9fff37d156e5f88e9">pn_link_send</a>(sender, msgbuf.<a name="a54"></a>start, msgbuf.<a name="a55"></a>size);</div><div class="line">       <a class="code" href="group__link.html#ga93824a3859c37463e44458cd2f63d31f">pn_link_advance</a>(sender);</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 class="code" href="group__event.html#gga4876e2eed24a4d4e4c52b99842103cdaa70bbfc163d85732b5652dc70fb3330fe">PN_DELIVERY</a>: {</div><div class="line">     <span class="comment">/* We received acknowledgedment from the peer that a message was delivered. */</span></div><div class="line">     <a class="code" href="group__delivery.html#gacdfce854066c0a4ff4db9f9a0478f340">pn_delivery_t</a>* d = <a class="code" href="group__event.html#ga10fa6f53bdabe0851ebb2d8a0bf6a52c">pn_event_delivery</a>(event);</div><div class="line">     <span class="keywordflow">if</span> (<a name="a56"></a><a class="code" href="group__delivery.html#gac1c3f2e7217b51f0e2f8c4264b0689d1">pn_delivery_remote_state</a>(d) == <a class="code" href="group__delivery.html#gac64952b813a707586c6b3898e09552e4">PN_ACCEPTED</a>) {</div><div class="line">       <span class="keywordflow">if</span> (++app-&gt;acknowledged == app-&gt;message
 _count) {</div><div class="line">         printf(<span class="stringliteral">&quot;%d messages sent and acknowledged\n&quot;</span>, app-&gt;acknowledged);</div><div class="line">         <a class="code" href="group__connection.html#gac25afdf810ad188b2cb3bf31a7482ca0">pn_connection_close</a>(<a class="code" href="group__event.html#ga4f2c6a0fdf86a43e7e9874fcd2ccaf52">pn_event_connection</a>(event));</div><div class="line">         <span class="comment">/* Continue handling events till we receive TRANSPORT_CLOSED */</span></div><div class="line">       }</div><div class="line">     }</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="comment">/* Handle all events, delegate to handle_send or handle_rece
 ive depending on link mode.</span></div><div class="line"><span class="comment">   Return true to continue, false to exit</span></div><div class="line"><span class="comment">*/</span></div><div class="line"><span class="keyword">static</span> <span class="keywordtype">bool</span> handle(app_data_t* app, <a class="code" href="group__event.html#ga87f3028b4888632bbd56fb71ac737ae8">pn_event_t</a>* event) {</div><div class="line">  <span class="keywordflow">switch</span> (<a class="code" href="group__event.html#gacaea54ca51885933b4987c131a3d1b0d">pn_event_type</a>(event)) {</div><div class="line"></div><div class="line">   <span class="keywordflow">case</span> <a name="a57"></a><a class="code" href="group__event.html#gga4876e2eed24a4d4e4c52b99842103cdaa6e25f00110ab278fd8b34fee00bd5fd7">PN_LISTENER_OPEN</a>:</div><div class="line">    printf(<span class="stringliteral">&quot;listening\n&quot;</span>);</div><div class="line">    fflush(stdout);</div><div class="line">    <span class="keywo
 rdflow">break</span>;</div><div class="line"></div><div class="line">   <span class="keywordflow">case</span> <a name="a58"></a><a class="code" href="group__event.html#gga4876e2eed24a4d4e4c52b99842103cdaa0602b15957883e7d00ccdff4abca992c">PN_LISTENER_ACCEPT</a>:</div><div class="line">    <a name="a59"></a><a class="code" href="group__listener.html#gaaee3c3f3822484bc2e370406abf5b736">pn_listener_accept</a>(<a name="a60"></a><a class="code" href="group__listener.html#ga6214da9323c8e6fcec8badc57a82e9df">pn_event_listener</a>(event), <a name="a61"></a><a class="code" href="group__connection.html#gaa9e59c468ec0568b1528f5f83c4b301d">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="a62"></a><a class="code" href="group__event.html#gga4876e2eed24a4d4e4c52b99842103cdaa182e571a0310028514bce66a41063a6e">PN_CONNECTION_INIT</a>:</div><div class="line">    <a nam
 e="a63"></a><a class="code" href="group__connection.html#gac4a34e0b1fc5665b26ae47a80a422a1a">pn_connection_set_container</a>(<a class="code" href="group__event.html#ga4f2c6a0fdf86a43e7e9874fcd2ccaf52">pn_event_connection</a>(event), app-&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="a64"></a><a class="code" href="group__event.html#gga4876e2eed24a4d4e4c52b99842103cdaaf61aa79ca82b3a8f5017dc735843fae5">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">pn_transport_t</a> *t = <a name="a65"></a><a class="code" href="group__event.html#ga14525ae84870388141898bbf57f2b151">pn_event_transport</a>(event);</div><div class="line">     <a name="a66"></a><a class="code" href="group__transport.html#ga2
 85b4cced59c665ae178adf26128d3fc">pn_transport_require_auth</a>(t, <span class="keyword">false</span>);</div><div class="line">     <a name="a67"></a><a class="code" href="group__sasl.html#ga73299a6a22e141e7911a739590032625">pn_sasl_allowed_mechs</a>(<a name="a68"></a><a class="code" href="group__sasl.html#ga7968e80e2fe9360fc14cf865dd1ac21c">pn_sasl</a>(t), <span class="stringliteral">&quot;ANONYMOUS&quot;</span>);</div><div class="line">   }</div><div class="line">   <span class="keywordflow">case</span> <a name="a69"></a><a class="code" href="group__event.html#gga4876e2eed24a4d4e4c52b99842103cdaad48bce685db553740fa71cc36473b5cc">PN_CONNECTION_REMOTE_OPEN</a>: {</div><div class="line">     <a name="a70"></a><a class="code" href="group__connection.html#ga4c0a2d40bb95202477ccc5aaa7456670">pn_connection_open</a>(<a class="code" href="group__event.html#ga4f2c6a0fdf86a43e7e9874fcd2ccaf52">pn_event_connection</a>(event)); <span class="comment">/* Complete the open */</span></div><div clas
 s="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="a71"></a><a class="code" href="group__event.html#gga4876e2eed24a4d4e4c52b99842103cdaaf67df046bea45df34aea863d9541e806">PN_SESSION_REMOTE_OPEN</a>: {</div><div class="line">     <a name="a72"></a><a class="code" href="group__session.html#ga2b345eada2c15249caaefaa894d1aae3">pn_session_open</a>(<a name="a73"></a><a class="code" href="group__event.html#gaf4af0bfbe0e0a8e432f0e803df14ecb5">pn_event_session</a>(event));</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="a74"></a><a class="code" href="group__event.html#gga4876e2eed24a4d4e4c52b99842103cdaa1ca722ce3c0b2c13a33636cded8430ba">PN_TRANSPORT_CLOSED</a>:</div><div class="line">    check_condition(event, <a name="a75">
 </a><a class="code" href="group__transport.html#gac458d9fdb684f9501e89b96fc51f5c34">pn_transport_condition</a>(<a class="code" href="group__event.html#ga14525ae84870388141898bbf57f2b151">pn_event_transport</a>(event)));</div><div class="line">    <a name="a76"></a><a class="code" href="group__listener.html#ga17a5b8573f00e16b233c59a3bb17c104">pn_listener_close</a>(app-&gt;listener); <span class="comment">/* Finished */</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="a77"></a><a class="code" href="group__event.html#gga4876e2eed24a4d4e4c52b99842103cdaa1252529cf9f03d214c9b4fea5cf11b2f">PN_CONNECTION_REMOTE_CLOSE</a>:</div><div class="line">    check_condition(event, <a name="a78"></a><a class="code" href="group__connection.html#ga72a362389b99d8e891bf2e4fb4290754">pn_connection_remote_condition</a>(<a class="code" href="group__event.html#ga4f2c6a0fdf86a43e7e9874fcd2c
 caf52">pn_event_connection</a>(event)));</div><div class="line">    <a class="code" href="group__connection.html#gac25afdf810ad188b2cb3bf31a7482ca0">pn_connection_close</a>(<a class="code" href="group__event.html#ga4f2c6a0fdf86a43e7e9874fcd2ccaf52">pn_event_connection</a>(event));</div><div class="line">    <span class="keywordflow">break</span>;</div><div class="line"></div><div class="line">   <span class="keywordflow">case</span> <a name="a79"></a><a class="code" href="group__event.html#gga4876e2eed24a4d4e4c52b99842103cdaa3410075b825c59b8f4efdcddf5a5b135">PN_SESSION_REMOTE_CLOSE</a>:</div><div class="line">    check_condition(event, <a name="a80"></a><a class="code" href="group__session.html#gae21b3fda1567bad1f8a8fe162ffaeece">pn_session_remote_condition</a>(<a class="code" href="group__event.html#gaf4af0bfbe0e0a8e432f0e803df14ecb5">pn_event_session</a>(event)));</div><div class="line">    <a class="code" href="group__connection.html#gac25afdf810ad188b2cb3bf31a7482ca0">pn_connect
 ion_close</a>(<a class="code" href="group__event.html#ga4f2c6a0fdf86a43e7e9874fcd2ccaf52">pn_event_connection</a>(event));</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#gga4876e2eed24a4d4e4c52b99842103cdaa1153f0108be071c31210dd1cd3e40a1f">PN_LINK_REMOTE_CLOSE</a>:</div><div class="line">   <span class="keywordflow">case</span> <a name="a82"></a><a class="code" href="group__event.html#gga4876e2eed24a4d4e4c52b99842103cdaa5a84b68a2bd5ca705187381a785121d2">PN_LINK_REMOTE_DETACH</a>:</div><div class="line">    check_condition(event, <a name="a83"></a><a class="code" href="group__link.html#ga97dc5133125c9b7e4afbb1b76e6efe7b">pn_link_remote_condition</a>(<a class="code" href="group__event.html#ga75f230ef55f03a1f943df79279f8d111">pn_event_link</a>(event)));</div><div class="line">    <a class="code" href="group__connection.htm
 l#gac25afdf810ad188b2cb3bf31a7482ca0">pn_connection_close</a>(<a class="code" href="group__event.html#ga4f2c6a0fdf86a43e7e9874fcd2ccaf52">pn_event_connection</a>(event));</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#gga4876e2eed24a4d4e4c52b99842103cdaa4afa8c2da61f4c665c669fbe37b1c5fe">PN_PROACTOR_TIMEOUT</a>:</div><div class="line">    <span class="comment">/* Wake the sender&#39;s connection */</span></div><div class="line">    <a name="a85"></a><a class="code" href="group__proactor.html#ga0f49c771fe3bff54f58c9d583ca30560">pn_connection_wake</a>(<a class="code" href="group__session.html#gaa45a8aa758334528a86cb7914ebe8545">pn_session_connection</a>(<a class="code" href="group__link.html#gac63e43305fb1a5e3b14399a9ddc8f24d">pn_link_session</a>(app-&gt;sender)));</div><div class="line">    <span class="keywordflow">break
 </span>;</div><div class="line"></div><div class="line">   <span class="keywordflow">case</span> <a name="a86"></a><a class="code" href="group__event.html#gga4876e2eed24a4d4e4c52b99842103cdaad5920df168cd28daaf253cad789d8aca">PN_LISTENER_CLOSE</a>:</div><div class="line">    check_condition(event, <a name="a87"></a><a class="code" href="group__listener.html#gaa49d0d11a9f46a75fbbbebf6def2d4b2">pn_listener_condition</a>(<a class="code" href="group__listener.html#ga6214da9323c8e6fcec8badc57a82e9df">pn_event_listener</a>(event)));</div><div class="line">    <span class="keywordflow">break</span>;</div><div class="line"></div><div class="line">   <span class="keywordflow">case</span> <a name="a88"></a><a class="code" href="group__event.html#gga4876e2eed24a4d4e4c52b99842103cdaa894e93f167ef39e28a07c9cdf6b1181b">PN_PROACTOR_INACTIVE</a>:</div><div class="line">    <span class="keywordflow">return</span> <span class="keyword">false</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">     <a class="code" href="group__link.html#ga89dad3aa7934329a7ff467c636687bc0">pn_link_t</a> *l = <a class="code" href="group__event.html#ga75f230ef55f03a1f943df79279f8d111">pn_event_link</a>(event);</div><div class="line">     <span class="keywordflow">if</span> (l) {                      <span class="comment">/* Only delegate link-related events */</span></div><div class="line">       <span class="keywordflow">if</span> (<a name="a89"></a><a class="code" href="group__link.html#ga7c48ef214568267839aea04ed337926b">pn_link_is_sender</a>(l)) {</div><div class="line">         handle_send(app, event);</div><div class="line">       } <span class="keywordflow">else</span> {</div><div class="line">         handle_receive(app, event);</div><div class="line">       }</div><div class="line">     }</div><div class="line">   }</div><div class="line">  }</div><div c
 lass="line">  <span class="keywordflow">return</span> <span class="keyword">true</span>;</div><div class="line">}</div><div class="line"></div><div class="line"><span class="keywordtype">void</span> run(app_data_t *app) {</div><div class="line">  <span class="comment">/* Loop and handle events */</span></div><div class="line">  <span class="keywordflow">do</span> {</div><div class="line">    <a class="code" href="group__event.html#ga6bc581dfeaa8e8d46d07d37229d565c9">pn_event_batch_t</a> *events = <a name="a90"></a><a class="code" href="group__proactor.html#ga2b66a46f3e557010ec61bd105326753d">pn_proactor_wait</a>(app-&gt;proactor);</div><div class="line">    <span class="keywordflow">for</span> (<a class="code" href="group__event.html#ga87f3028b4888632bbd56fb71ac737ae8">pn_event_t</a> *e = <a name="a91"></a><a class="code" href="group__event.html#gac3fbf151357d3101ac294cb675348c76">pn_event_batch_next</a>(events); e; e = <a class="code" href="group__event.html#gac3fbf151357d3101ac294
 cb675348c76">pn_event_batch_next</a>(events)) {</div><div class="line">      <span class="keywordflow">if</span> (!handle(app, e)) {</div><div class="line">        <span class="keywordflow">return</span>;</div><div class="line">      }</div><div class="line">    }</div><div class="line">    <a name="a92"></a><a class="code" href="group__proactor.html#gade60ff2292b74841766f953b906285c0">pn_proactor_done</a>(app-&gt;proactor, events);</div><div class="line">  } <span class="keywordflow">while</span>(<span class="keyword">true</span>);</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="keyword">struct </span>app_data_t app = {0};</div><div class="line">  <span class="keywordtype">int</span> i = 0;</div><div class="line">  app.container_id = argv[i++];   <span class="comment">/* Should be unique */
 </span></div><div class="line">  app.host = (argc &gt; 1) ? argv[i++] : <span class="stringliteral">&quot;&quot;</span>;</div><div class="line">  app.port = (argc &gt; 1) ? argv[i++] : <span class="stringliteral">&quot;amqp&quot;</span>;</div><div class="line">  app.amqp_address = (argc &gt; i) ? argv[i++] : <span class="stringliteral">&quot;examples&quot;</span>;</div><div class="line">  app.message_count = (argc &gt; i) ? atoi(argv[i++]) : 10;</div><div class="line"></div><div class="line">  <span class="comment">/* Create the proactor and connect */</span></div><div class="line">  app.proactor = <a name="a93"></a><a class="code" href="group__proactor.html#gac2a925b3de00efd8cd40fa9920169554">pn_proactor</a>();</div><div class="line">  app.listener = <a name="a94"></a><a class="code" href="group__listener.html#gabba0a7d2e916188e3ec07d0acf8f3fc5">pn_listener</a>();</div><div class="line">  <span class="keywordtype">char</span> addr[<a name="a95"></a><a class="code" href="group__proa
 ctor.html#ga29ae114b42fb797c103dc9883ebcb256">PN_MAX_ADDR</a>];</div><div class="line">  <a name="a96"></a><a class="code" href="group__proactor.html#gaf67a7642c9003b36255b58776b494c96">pn_proactor_addr</a>(addr, <span class="keyword">sizeof</span>(addr), app.host, app.port);</div><div class="line">  <a name="a97"></a><a class="code" href="group__proactor.html#gacbed6a4ab75ef8452c10d52e4cd62752">pn_proactor_listen</a>(app.proactor, app.listener, addr, 16);</div><div class="line">  run(&amp;app);</div><div class="line">  <a name="a98"></a><a class="code" href="group__proactor.html#ga5260c2653d4af5eb2f1c8c6190e9d6cf">pn_proactor_free</a>(app.proactor);</div><div class="line">  free(app.message_buffer.start);</div><div class="line">  <span class="keywordflow">return</span> exit_code;</div><div class="line">}</div></div><!-- fragment --> </div><!-- contents -->
+<div class="fragment"></div><!-- fragment --> </div><!-- contents -->
 </div><!-- doc-content -->
 <!-- start footer part -->
 <div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->

http://git-wip-us.apache.org/repos/asf/qpid-site/blob/701caf21/content/releases/qpid-proton-master/proton/c/api/engine_8h_source.html
----------------------------------------------------------------------
diff --git a/content/releases/qpid-proton-master/proton/c/api/engine_8h_source.html b/content/releases/qpid-proton-master/proton/c/api/engine_8h_source.html
index 1c9dc70..b888568 100755
--- a/content/releases/qpid-proton-master/proton/c/api/engine_8h_source.html
+++ b/content/releases/qpid-proton-master/proton/c/api/engine_8h_source.html
@@ -3,7 +3,8 @@
 <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.11"/>
+<meta name="generator" content="Doxygen 1.8.13"/>
+<meta name="viewport" content="width=device-width, initial-scale=1"/>
 <title>Qpid Proton C API: proton/engine.h Source File</title>
 <link href="tabs.css" rel="stylesheet" type="text/css"/>
 <script type="text/javascript" src="jquery.js"></script>
@@ -14,7 +15,6 @@
 <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/searchdata.js"></script>
@@ -55,7 +55,7 @@
 </table>
 </div>
 <!-- end header part -->
-<!-- Generated by Doxygen 1.8.11 -->
+<!-- Generated by Doxygen 1.8.13 -->
 <script type="text/javascript">
 var searchBox = new SearchBox("searchBox", "search",false,'Search');
 </script>
@@ -94,7 +94,7 @@ $(document).ready(function(){initNavTree('engine_8h_source.html','');});
 </div><!--header-->
 <div class="contents">
 <div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;<span class="preprocessor">#ifndef PROTON_ENGINE_H</span></div><div class="line"><a name="l00002"></a><span class="lineno">    2</span>&#160;<span class="preprocessor">#define PROTON_ENGINE_H 1</span></div><div class="line"><a name="l00003"></a><span class="lineno">    3</span>&#160;</div><div class="line"><a name="l00004"></a><span class="lineno">    4</span>&#160;<span class="comment">/*</span></div><div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160;<span class="comment"> *</span></div><div class="line"><a name="l00006"></a><span class="lineno">    6</span>&#160;<span class="comment"> * Licensed to the Apache Software Foundation (ASF) under one</span></div><div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160;<span class="comment"> * or more contributor license agreements.  See the NOTICE file</span></div><div class="line"><a name="
 l00008"></a><span class="lineno">    8</span>&#160;<span class="comment"> * distributed with this work for additional information</span></div><div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160;<span class="comment"> * regarding copyright ownership.  The ASF licenses this file</span></div><div class="line"><a name="l00010"></a><span class="lineno">   10</span>&#160;<span class="comment"> * to you under the Apache License, Version 2.0 (the</span></div><div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160;<span class="comment"> * &quot;License&quot;); you may not use this file except in compliance</span></div><div class="line"><a name="l00012"></a><span class="lineno">   12</span>&#160;<span class="comment"> * with the License.  You may obtain a copy of the License at</span></div><div class="line"><a name="l00013"></a><span class="lineno">   13</span>&#160;<span class="comment"> *</span></div><div class="line"><a name="l00014"></a><spa
 n class="lineno">   14</span>&#160;<span class="comment"> *   http://www.apache.org/licenses/LICENSE-2.0</span></div><div class="line"><a name="l00015"></a><span class="lineno">   15</span>&#160;<span class="comment"> *</span></div><div class="line"><a name="l00016"></a><span class="lineno">   16</span>&#160;<span class="comment"> * Unless required by applicable law or agreed to in writing,</span></div><div class="line"><a name="l00017"></a><span class="lineno">   17</span>&#160;<span class="comment"> * software distributed under the License is distributed on an</span></div><div class="line"><a name="l00018"></a><span class="lineno">   18</span>&#160;<span class="comment"> * &quot;AS IS&quot; BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY</span></div><div class="line"><a name="l00019"></a><span class="lineno">   19</span>&#160;<span class="comment"> * KIND, either express or implied.  See the License for the</span></div><div class="line"><a name="l00020"></a><span class="lineno">   
 20</span>&#160;<span class="comment"> * specific language governing permissions and limitations</span></div><div class="line"><a name="l00021"></a><span class="lineno">   21</span>&#160;<span class="comment"> * under the License.</span></div><div class="line"><a name="l00022"></a><span class="lineno">   22</span>&#160;<span class="comment"> *</span></div><div class="line"><a name="l00023"></a><span class="lineno">   23</span>&#160;<span class="comment"> */</span></div><div class="line"><a name="l00024"></a><span class="lineno">   24</span>&#160;</div><div class="line"><a name="l00029"></a><span class="lineno">   29</span>&#160;<span class="preprocessor">#include &lt;<a class="code" href="condition_8h.html">proton/condition.h</a>&gt;</span></div><div class="line"><a name="l00030"></a><span class="lineno">   30</span>&#160;<span class="preprocessor">#include &lt;<a class="code" href="connection_8h.html">proton/connection.h</a>&gt;</span></div><div class="line"><a name="l00031"></a><sp
 an class="lineno">   31</span>&#160;<span class="preprocessor">#include &lt;<a class="code" href="session_8h.html">proton/session.h</a>&gt;</span></div><div class="line"><a name="l00032"></a><span class="lineno">   32</span>&#160;<span class="preprocessor">#include &lt;<a class="code" href="terminus_8h.html">proton/terminus.h</a>&gt;</span></div><div class="line"><a name="l00033"></a><span class="lineno">   33</span>&#160;<span class="preprocessor">#include &lt;<a class="code" href="link_8h.html">proton/link.h</a>&gt;</span></div><div class="line"><a name="l00034"></a><span class="lineno">   34</span>&#160;<span class="preprocessor">#include &lt;<a class="code" href="delivery_8h.html">proton/delivery.h</a>&gt;</span></div><div class="line"><a name="l00035"></a><span class="lineno">   35</span>&#160;<span class="preprocessor">#include &lt;<a class="code" href="event_8h.html">proton/event.h</a>&gt;</span></div><div class="line"><a name="l00036"></a><span class="lineno">   36</span>&#1
 60;<span class="preprocessor">#include &lt;<a class="code" href="transport_8h.html">proton/transport.h</a>&gt;</span></div><div class="line"><a name="l00037"></a><span class="lineno">   37</span>&#160;</div><div class="line"><a name="l00042"></a><span class="lineno">   42</span>&#160;<span class="preprocessor">#endif </span><span class="comment">/* engine.h */</span><span class="preprocessor"></span></div><div class="ttc" id="transport_8h_html"><div class="ttname"><a href="transport_8h.html">transport.h</a></div><div class="ttdoc">A network channel supporting an AMQP connection. </div></div>
-<div class="ttc" id="connection_8h_html"><div class="ttname"><a href="connection_8h.html">connection.h</a></div><div class="ttdoc">A channel for communication between two peers on a network. </div></div>
+<div class="ttc" id="connection_8h_html"><div class="ttname"><a href="connection_8h.html">connection.h</a></div><div class="ttdoc">A connection to a remote AMQP peer. </div></div>
 <div class="ttc" id="session_8h_html"><div class="ttname"><a href="session_8h.html">session.h</a></div><div class="ttdoc">A container of links. </div></div>
 <div class="ttc" id="terminus_8h_html"><div class="ttname"><a href="terminus_8h.html">terminus.h</a></div><div class="ttdoc">A source or target for messages. </div></div>
 <div class="ttc" id="condition_8h_html"><div class="ttname"><a href="condition_8h.html">condition.h</a></div><div class="ttdoc">An endpoint error state. </div></div>
@@ -109,7 +109,7 @@ $(document).ready(function(){initNavTree('engine_8h_source.html','');});
     <li class="navelem"><a class="el" href="dir_25143d27009f52d175c1d192441a738a.html">proton</a></li><li class="navelem"><b>engine.h</b></li>
     <li class="footer">Generated by
     <a href="http://www.doxygen.org/index.html">
-    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.11 </li>
+    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.13 </li>
   </ul>
 </div>
 </body>

http://git-wip-us.apache.org/repos/asf/qpid-site/blob/701caf21/content/releases/qpid-proton-master/proton/c/api/error_8h.html
----------------------------------------------------------------------
diff --git a/content/releases/qpid-proton-master/proton/c/api/error_8h.html b/content/releases/qpid-proton-master/proton/c/api/error_8h.html
index cb9144a..5f8fe34 100755
--- a/content/releases/qpid-proton-master/proton/c/api/error_8h.html
+++ b/content/releases/qpid-proton-master/proton/c/api/error_8h.html
@@ -149,8 +149,12 @@ Macros</h2></td></tr>
 <tr class="separator:gafbb090366e9dbf9a5bb0735df1e23d33"><td class="memSeparator" colspan="2">&#160;</td></tr>
 <tr class="memitem:gab1f773ca03b0953de6ce3caf4c795b8d"><td class="memItemLeft" align="right" valign="top">
 #define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__error.html#gab1f773ca03b0953de6ce3caf4c795b8d">PN_OUT_OF_MEMORY</a></td></tr>
-<tr class="memdesc:gab1f773ca03b0953de6ce3caf4c795b8d"><td class="mdescLeft">&#160;</td><td class="mdescRight">Out-of-momory error. <br /></td></tr>
+<tr class="memdesc:gab1f773ca03b0953de6ce3caf4c795b8d"><td class="mdescLeft">&#160;</td><td class="mdescRight">Out-of-memory error. <br /></td></tr>
 <tr class="separator:gab1f773ca03b0953de6ce3caf4c795b8d"><td class="memSeparator" colspan="2">&#160;</td></tr>
+<tr class="memitem:ga82db456291c2627e31becc44b733a7f0"><td class="memItemLeft" align="right" valign="top">
+#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__error.html#ga82db456291c2627e31becc44b733a7f0">PN_ABORTED</a></td></tr>
+<tr class="memdesc:ga82db456291c2627e31becc44b733a7f0"><td class="mdescLeft">&#160;</td><td class="mdescRight">Delivery aborted error. <br /></td></tr>
+<tr class="separator:ga82db456291c2627e31becc44b733a7f0"><td class="memSeparator" colspan="2">&#160;</td></tr>
 </table><table class="memberdecls">
 <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="typedef-members"></a>
 Typedefs</h2></td></tr>

http://git-wip-us.apache.org/repos/asf/qpid-site/blob/701caf21/content/releases/qpid-proton-master/proton/c/api/error_8h.js
----------------------------------------------------------------------
diff --git a/content/releases/qpid-proton-master/proton/c/api/error_8h.js b/content/releases/qpid-proton-master/proton/c/api/error_8h.js
index cbf52e1..047c165 100755
--- a/content/releases/qpid-proton-master/proton/c/api/error_8h.js
+++ b/content/releases/qpid-proton-master/proton/c/api/error_8h.js
@@ -11,6 +11,7 @@ var error_8h =
     [ "PN_INTR", "group__error.html#ga53284958be0c328f90ca3a4a0793d965", null ],
     [ "PN_INPROGRESS", "group__error.html#gafbb090366e9dbf9a5bb0735df1e23d33", null ],
     [ "PN_OUT_OF_MEMORY", "group__error.html#gab1f773ca03b0953de6ce3caf4c795b8d", null ],
+    [ "PN_ABORTED", "group__error.html#ga82db456291c2627e31becc44b733a7f0", null ],
     [ "pn_error_t", "group__error.html#ga24a289d5b32c9bd8a775600a5af83d52", null ],
     [ "pn_code", "group__error.html#gac6b84f09fac8e82bd41a62212d4d8f64", null ],
     [ "pn_error", "group__error.html#ga0992aa0df5290a2ae639246b0c2f5481", null ],

http://git-wip-us.apache.org/repos/asf/qpid-site/blob/701caf21/content/releases/qpid-proton-master/proton/c/api/error_8h_source.html
----------------------------------------------------------------------
diff --git a/content/releases/qpid-proton-master/proton/c/api/error_8h_source.html b/content/releases/qpid-proton-master/proton/c/api/error_8h_source.html
index 52c1af1..b072e6a 100755
--- a/content/releases/qpid-proton-master/proton/c/api/error_8h_source.html
+++ b/content/releases/qpid-proton-master/proton/c/api/error_8h_source.html
@@ -93,7 +93,7 @@ $(document).ready(function(){initNavTree('error_8h_source.html','');});
 <div class="title">error.h</div>  </div>
 </div><!--header-->
 <div class="contents">
-<a href="error_8h.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;<span class="preprocessor">#ifndef PROTON_ERROR_H</span></div><div class="line"><a name="l00002"></a><span class="lineno">    2</span>&#160;<span class="preprocessor">#define PROTON_ERROR_H 1</span></div><div class="line"><a name="l00003"></a><span class="lineno">    3</span>&#160;</div><div class="line"><a name="l00004"></a><span class="lineno">    4</span>&#160;<span class="comment">/*</span></div><div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160;<span class="comment"> *</span></div><div class="line"><a name="l00006"></a><span class="lineno">    6</span>&#160;<span class="comment"> * Licensed to the Apache Software Foundation (ASF) under one</span></div><div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160;<span class="comment"> * or more contributor license agreement
 s.  See the NOTICE file</span></div><div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160;<span class="comment"> * distributed with this work for additional information</span></div><div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160;<span class="comment"> * regarding copyright ownership.  The ASF licenses this file</span></div><div class="line"><a name="l00010"></a><span class="lineno">   10</span>&#160;<span class="comment"> * to you under the Apache License, Version 2.0 (the</span></div><div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160;<span class="comment"> * &quot;License&quot;); you may not use this file except in compliance</span></div><div class="line"><a name="l00012"></a><span class="lineno">   12</span>&#160;<span class="comment"> * with the License.  You may obtain a copy of the License at</span></div><div class="line"><a name="l00013"></a><span class="lineno">   13</span>&#160;<span class="comm
 ent"> *</span></div><div class="line"><a name="l00014"></a><span class="lineno">   14</span>&#160;<span class="comment"> *   http://www.apache.org/licenses/LICENSE-2.0</span></div><div class="line"><a name="l00015"></a><span class="lineno">   15</span>&#160;<span class="comment"> *</span></div><div class="line"><a name="l00016"></a><span class="lineno">   16</span>&#160;<span class="comment"> * Unless required by applicable law or agreed to in writing,</span></div><div class="line"><a name="l00017"></a><span class="lineno">   17</span>&#160;<span class="comment"> * software distributed under the License is distributed on an</span></div><div class="line"><a name="l00018"></a><span class="lineno">   18</span>&#160;<span class="comment"> * &quot;AS IS&quot; BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY</span></div><div class="line"><a name="l00019"></a><span class="lineno">   19</span>&#160;<span class="comment"> * KIND, either express or implied.  See the License for the</span></div>
 <div class="line"><a name="l00020"></a><span class="lineno">   20</span>&#160;<span class="comment"> * specific language governing permissions and limitations</span></div><div class="line"><a name="l00021"></a><span class="lineno">   21</span>&#160;<span class="comment"> * under the License.</span></div><div class="line"><a name="l00022"></a><span class="lineno">   22</span>&#160;<span class="comment"> *</span></div><div class="line"><a name="l00023"></a><span class="lineno">   23</span>&#160;<span class="comment"> */</span></div><div class="line"><a name="l00024"></a><span class="lineno">   24</span>&#160;</div><div class="line"><a name="l00025"></a><span class="lineno">   25</span>&#160;<span class="preprocessor">#include &lt;proton/import_export.h&gt;</span></div><div class="line"><a name="l00026"></a><span class="lineno">   26</span>&#160;<span class="preprocessor">#include &lt;stdarg.h&gt;</span></div><div class="line"><a name="l00027"></a><span class="lineno">   27</span>&#160
 ;</div><div class="line"><a name="l00028"></a><span class="lineno">   28</span>&#160;<span class="preprocessor">#ifdef __cplusplus</span></div><div class="line"><a name="l00029"></a><span class="lineno">   29</span>&#160;<span class="keyword">extern</span> <span class="stringliteral">&quot;C&quot;</span> {</div><div class="line"><a name="l00030"></a><span class="lineno">   30</span>&#160;<span class="preprocessor">#endif</span></div><div class="line"><a name="l00031"></a><span class="lineno">   31</span>&#160;</div><div class="line"><a name="l00044"></a><span class="lineno"><a class="line" href="group__error.html#ga24a289d5b32c9bd8a775600a5af83d52">   44</a></span>&#160;<span class="keyword">typedef</span> <span class="keyword">struct </span><a class="code" href="group__error.html#ga24a289d5b32c9bd8a775600a5af83d52">pn_error_t</a> <a class="code" href="group__error.html#ga24a289d5b32c9bd8a775600a5af83d52">pn_error_t</a>;</div><div class="line"><a name="l00045"></a><span class="linen
 o">   45</span>&#160;</div><div class="line"><a name="l00046"></a><span class="lineno"><a class="line" href="group__error.html#gac73fbd2363c5f562f85dde459e631394">   46</a></span>&#160;<span class="preprocessor">#define PN_OK (0)              </span></div><div class="line"><a name="l00047"></a><span class="lineno"><a class="line" href="group__error.html#ga9e0f51b097f94293cdbbdeb5422a27a3">   47</a></span>&#160;<span class="preprocessor">#define PN_EOS (-1)            </span></div><div class="line"><a name="l00048"></a><span class="lineno"><a class="line" href="group__error.html#ga664f7bdd616c30b72bd50bcc17839c81">   48</a></span>&#160;<span class="preprocessor">#define PN_ERR (-2)            </span></div><div class="line"><a name="l00049"></a><span class="lineno"><a class="line" href="group__error.html#gaaeef136648e1fd51c2b56c0265fa86f7">   49</a></span>&#160;<span class="preprocessor">#define PN_OVERFLOW (-3)       </span></div><div class="line"><a name="l00050"></a><span class="li
 neno"><a class="line" href="group__error.html#ga3317339fb405435df42fa93d62f0e14c">   50</a></span>&#160;<span class="preprocessor">#define PN_UNDERFLOW (-4)      </span></div><div class="line"><a name="l00051"></a><span class="lineno"><a class="line" href="group__error.html#ga5efbe6093556326613d2ccd3864a00aa">   51</a></span>&#160;<span class="preprocessor">#define PN_STATE_ERR (-5)      </span></div><div class="line"><a name="l00052"></a><span class="lineno"><a class="line" href="group__error.html#ga5551b7172de89dc540bd7c2beedd325a">   52</a></span>&#160;<span class="preprocessor">#define PN_ARG_ERR (-6)        </span></div><div class="line"><a name="l00053"></a><span class="lineno"><a class="line" href="group__error.html#ga8bcf4aa6de1a6530713839bcae97d4a2">   53</a></span>&#160;<span class="preprocessor">#define PN_TIMEOUT (-7)        </span></div><div class="line"><a name="l00054"></a><span class="lineno"><a class="line" href="group__error.html#ga53284958be0c328f90ca3a4a0793d965"
 >   54</a></span>&#160;<span class="preprocessor">#define PN_INTR (-8)           </span></div><div class="line"><a name="l00055"></a><span class="lineno"><a class="line" href="group__error.html#gafbb090366e9dbf9a5bb0735df1e23d33">   55</a></span>&#160;<span class="preprocessor">#define PN_INPROGRESS (-9)     </span></div><div class="line"><a name="l00056"></a><span class="lineno"><a class="line" href="group__error.html#gab1f773ca03b0953de6ce3caf4c795b8d">   56</a></span>&#160;<span class="preprocessor">#define PN_OUT_OF_MEMORY (-10) </span></div><div class="line"><a name="l00062"></a><span class="lineno">   62</span>&#160;<span class="preprocessor">PN_EXTERN const char *pn_code(int code);</span></div><div class="line"><a name="l00063"></a><span class="lineno">   63</span>&#160;</div><div class="line"><a name="l00067"></a><span class="lineno">   67</span>&#160;PN_EXTERN <a class="code" href="group__error.html#ga24a289d5b32c9bd8a775600a5af83d52">pn_error_t</a> *<a class="code" href="g
 roup__error.html#ga0992aa0df5290a2ae639246b0c2f5481">pn_error</a>(<span class="keywordtype">void</span>);</div><div class="line"><a name="l00068"></a><span class="lineno">   68</span>&#160;    </div><div class="line"><a name="l00072"></a><span class="lineno">   72</span>&#160;PN_EXTERN <span class="keywordtype">void</span> <a class="code" href="group__error.html#ga5e57528759aedb00e68aafd0d025d06c">pn_error_free</a>(<a class="code" href="group__error.html#ga24a289d5b32c9bd8a775600a5af83d52">pn_error_t</a> *error);</div><div class="line"><a name="l00073"></a><span class="lineno">   73</span>&#160;</div><div class="line"><a name="l00077"></a><span class="lineno">   77</span>&#160;PN_EXTERN <span class="keywordtype">void</span> <a class="code" href="group__error.html#ga15440ed9515967950fa4504a53fc0b64">pn_error_clear</a>(<a class="code" href="group__error.html#ga24a289d5b32c9bd8a775600a5af83d52">pn_error_t</a> *error);</div><div class="line"><a name="l00078"></a><span class="lineno">   
 78</span>&#160;</div><div class="line"><a name="l00082"></a><span class="lineno">   82</span>&#160;PN_EXTERN <span class="keywordtype">int</span> <a class="code" href="group__error.html#gac5b68c9e6a637810a55c0b0e6f66c90d">pn_error_set</a>(<a class="code" href="group__error.html#ga24a289d5b32c9bd8a775600a5af83d52">pn_error_t</a> *error, <span class="keywordtype">int</span> code, <span class="keyword">const</span> <span class="keywordtype">char</span> *text);</div><div class="line"><a name="l00083"></a><span class="lineno">   83</span>&#160;</div><div class="line"><a name="l00088"></a><span class="lineno">   88</span>&#160;PN_EXTERN <span class="keywordtype">int</span> <a class="code" href="group__error.html#ga59db2b3acdca714819c6450d2d5440a1">pn_error_vformat</a>(<a class="code" href="group__error.html#ga24a289d5b32c9bd8a775600a5af83d52">pn_error_t</a> *error, <span class="keywordtype">int</span> code, <span class="keyword">const</span> <span class="keywordtype">char</span> *fmt, va_
 list ap);</div><div class="line"><a name="l00089"></a><span class="lineno">   89</span>&#160;</div><div class="line"><a name="l00094"></a><span class="lineno">   94</span>&#160;PN_EXTERN <span class="keywordtype">int</span> <a class="code" href="group__error.html#ga806d0788eeb97fd52d645cb8b75f8bf2">pn_error_format</a>(<a class="code" href="group__error.html#ga24a289d5b32c9bd8a775600a5af83d52">pn_error_t</a> *error, <span class="keywordtype">int</span> code, <span class="keyword">const</span> <span class="keywordtype">char</span> *fmt, ...);</div><div class="line"><a name="l00095"></a><span class="lineno">   95</span>&#160;</div><div class="line"><a name="l00099"></a><span class="lineno">   99</span>&#160;PN_EXTERN <span class="keywordtype">int</span> <a class="code" href="group__error.html#ga00e179c24bc0954e1f01c64aa832ee2c">pn_error_code</a>(<a class="code" href="group__error.html#ga24a289d5b32c9bd8a775600a5af83d52">pn_error_t</a> *error);</div><div class="line"><a name="l00100"></
 a><span class="lineno">  100</span>&#160;</div><div class="line"><a name="l00105"></a><span class="lineno">  105</span>&#160;PN_EXTERN <span class="keyword">const</span> <span class="keywordtype">char</span> *<a class="code" href="group__error.html#ga67cbe6ebb143370e0604f5b84d716c56">pn_error_text</a>(<a class="code" href="group__error.html#ga24a289d5b32c9bd8a775600a5af83d52">pn_error_t</a> *error);</div><div class="line"><a name="l00106"></a><span class="lineno">  106</span>&#160;</div><div class="line"><a name="l00110"></a><span class="lineno">  110</span>&#160;PN_EXTERN <span class="keywordtype">int</span> <a class="code" href="group__error.html#ga96ccb65768c64ee0a1b71b83e08489d3">pn_error_copy</a>(<a class="code" href="group__error.html#ga24a289d5b32c9bd8a775600a5af83d52">pn_error_t</a> *error, <a class="code" href="group__error.html#ga24a289d5b32c9bd8a775600a5af83d52">pn_error_t</a> *src);</div><div class="line"><a name="l00111"></a><span class="lineno">  111</span>&#160;</div>
 <div class="line"><a name="l00115"></a><span class="lineno">  115</span>&#160;<span class="preprocessor">#define PN_RETURN_IF_ERROR(x) \</span></div><div class="line"><a name="l00116"></a><span class="lineno">  116</span>&#160;<span class="preprocessor">do {\</span></div><div class="line"><a name="l00117"></a><span class="lineno">  117</span>&#160;<span class="preprocessor">int r = (x);\</span></div><div class="line"><a name="l00118"></a><span class="lineno">  118</span>&#160;<span class="preprocessor">if (r &lt; 0) return r; \</span></div><div class="line"><a name="l00119"></a><span class="lineno">  119</span>&#160;<span class="preprocessor">} while (0)</span></div><div class="line"><a name="l00120"></a><span class="lineno">  120</span>&#160;</div><div class="line"><a name="l00128"></a><span class="lineno">  128</span>&#160;<span class="preprocessor">#ifdef __cplusplus</span></div><div class="line"><a name="l00129"></a><span class="lineno">  129</span>&#160;}</div><div class="line"
 ><a name="l00130"></a><span class="lineno">  130</span>&#160;<span class="preprocessor">#endif</span></div><div class="line"><a name="l00131"></a><span class="lineno">  131</span>&#160;</div><div class="line"><a name="l00132"></a><span class="lineno">  132</span>&#160;<span class="preprocessor">#endif </span><span class="comment">/* error.h */</span><span class="preprocessor"></span></div><div class="ttc" id="group__error_html_ga96ccb65768c64ee0a1b71b83e08489d3"><div class="ttname"><a href="group__error.html#ga96ccb65768c64ee0a1b71b83e08489d3">pn_error_copy</a></div><div class="ttdeci">int pn_error_copy(pn_error_t *error, pn_error_t *src)</div><div class="ttdoc">Copy the src error. </div></div>
+<a href="error_8h.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;<span class="preprocessor">#ifndef PROTON_ERROR_H</span></div><div class="line"><a name="l00002"></a><span class="lineno">    2</span>&#160;<span class="preprocessor">#define PROTON_ERROR_H 1</span></div><div class="line"><a name="l00003"></a><span class="lineno">    3</span>&#160;</div><div class="line"><a name="l00004"></a><span class="lineno">    4</span>&#160;<span class="comment">/*</span></div><div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160;<span class="comment"> *</span></div><div class="line"><a name="l00006"></a><span class="lineno">    6</span>&#160;<span class="comment"> * Licensed to the Apache Software Foundation (ASF) under one</span></div><div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160;<span class="comment"> * or more contributor license agreement
 s.  See the NOTICE file</span></div><div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160;<span class="comment"> * distributed with this work for additional information</span></div><div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160;<span class="comment"> * regarding copyright ownership.  The ASF licenses this file</span></div><div class="line"><a name="l00010"></a><span class="lineno">   10</span>&#160;<span class="comment"> * to you under the Apache License, Version 2.0 (the</span></div><div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160;<span class="comment"> * &quot;License&quot;); you may not use this file except in compliance</span></div><div class="line"><a name="l00012"></a><span class="lineno">   12</span>&#160;<span class="comment"> * with the License.  You may obtain a copy of the License at</span></div><div class="line"><a name="l00013"></a><span class="lineno">   13</span>&#160;<span class="comm
 ent"> *</span></div><div class="line"><a name="l00014"></a><span class="lineno">   14</span>&#160;<span class="comment"> *   http://www.apache.org/licenses/LICENSE-2.0</span></div><div class="line"><a name="l00015"></a><span class="lineno">   15</span>&#160;<span class="comment"> *</span></div><div class="line"><a name="l00016"></a><span class="lineno">   16</span>&#160;<span class="comment"> * Unless required by applicable law or agreed to in writing,</span></div><div class="line"><a name="l00017"></a><span class="lineno">   17</span>&#160;<span class="comment"> * software distributed under the License is distributed on an</span></div><div class="line"><a name="l00018"></a><span class="lineno">   18</span>&#160;<span class="comment"> * &quot;AS IS&quot; BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY</span></div><div class="line"><a name="l00019"></a><span class="lineno">   19</span>&#160;<span class="comment"> * KIND, either express or implied.  See the License for the</span></div>
 <div class="line"><a name="l00020"></a><span class="lineno">   20</span>&#160;<span class="comment"> * specific language governing permissions and limitations</span></div><div class="line"><a name="l00021"></a><span class="lineno">   21</span>&#160;<span class="comment"> * under the License.</span></div><div class="line"><a name="l00022"></a><span class="lineno">   22</span>&#160;<span class="comment"> *</span></div><div class="line"><a name="l00023"></a><span class="lineno">   23</span>&#160;<span class="comment"> */</span></div><div class="line"><a name="l00024"></a><span class="lineno">   24</span>&#160;</div><div class="line"><a name="l00025"></a><span class="lineno">   25</span>&#160;<span class="preprocessor">#include &lt;proton/import_export.h&gt;</span></div><div class="line"><a name="l00026"></a><span class="lineno">   26</span>&#160;<span class="preprocessor">#include &lt;stdarg.h&gt;</span></div><div class="line"><a name="l00027"></a><span class="lineno">   27</span>&#160
 ;</div><div class="line"><a name="l00028"></a><span class="lineno">   28</span>&#160;<span class="preprocessor">#ifdef __cplusplus</span></div><div class="line"><a name="l00029"></a><span class="lineno">   29</span>&#160;<span class="keyword">extern</span> <span class="stringliteral">&quot;C&quot;</span> {</div><div class="line"><a name="l00030"></a><span class="lineno">   30</span>&#160;<span class="preprocessor">#endif</span></div><div class="line"><a name="l00031"></a><span class="lineno">   31</span>&#160;</div><div class="line"><a name="l00044"></a><span class="lineno"><a class="line" href="group__error.html#ga24a289d5b32c9bd8a775600a5af83d52">   44</a></span>&#160;<span class="keyword">typedef</span> <span class="keyword">struct </span><a class="code" href="group__error.html#ga24a289d5b32c9bd8a775600a5af83d52">pn_error_t</a> <a class="code" href="group__error.html#ga24a289d5b32c9bd8a775600a5af83d52">pn_error_t</a>;</div><div class="line"><a name="l00045"></a><span class="linen
 o">   45</span>&#160;</div><div class="line"><a name="l00046"></a><span class="lineno"><a class="line" href="group__error.html#gac73fbd2363c5f562f85dde459e631394">   46</a></span>&#160;<span class="preprocessor">#define PN_OK (0)              </span></div><div class="line"><a name="l00047"></a><span class="lineno"><a class="line" href="group__error.html#ga9e0f51b097f94293cdbbdeb5422a27a3">   47</a></span>&#160;<span class="preprocessor">#define PN_EOS (-1)            </span></div><div class="line"><a name="l00048"></a><span class="lineno"><a class="line" href="group__error.html#ga664f7bdd616c30b72bd50bcc17839c81">   48</a></span>&#160;<span class="preprocessor">#define PN_ERR (-2)            </span></div><div class="line"><a name="l00049"></a><span class="lineno"><a class="line" href="group__error.html#gaaeef136648e1fd51c2b56c0265fa86f7">   49</a></span>&#160;<span class="preprocessor">#define PN_OVERFLOW (-3)       </span></div><div class="line"><a name="l00050"></a><span class="li
 neno"><a class="line" href="group__error.html#ga3317339fb405435df42fa93d62f0e14c">   50</a></span>&#160;<span class="preprocessor">#define PN_UNDERFLOW (-4)      </span></div><div class="line"><a name="l00051"></a><span class="lineno"><a class="line" href="group__error.html#ga5efbe6093556326613d2ccd3864a00aa">   51</a></span>&#160;<span class="preprocessor">#define PN_STATE_ERR (-5)      </span></div><div class="line"><a name="l00052"></a><span class="lineno"><a class="line" href="group__error.html#ga5551b7172de89dc540bd7c2beedd325a">   52</a></span>&#160;<span class="preprocessor">#define PN_ARG_ERR (-6)        </span></div><div class="line"><a name="l00053"></a><span class="lineno"><a class="line" href="group__error.html#ga8bcf4aa6de1a6530713839bcae97d4a2">   53</a></span>&#160;<span class="preprocessor">#define PN_TIMEOUT (-7)        </span></div><div class="line"><a name="l00054"></a><span class="lineno"><a class="line" href="group__error.html#ga53284958be0c328f90ca3a4a0793d965"
 >   54</a></span>&#160;<span class="preprocessor">#define PN_INTR (-8)           </span></div><div class="line"><a name="l00055"></a><span class="lineno"><a class="line" href="group__error.html#gafbb090366e9dbf9a5bb0735df1e23d33">   55</a></span>&#160;<span class="preprocessor">#define PN_INPROGRESS (-9)     </span></div><div class="line"><a name="l00056"></a><span class="lineno"><a class="line" href="group__error.html#gab1f773ca03b0953de6ce3caf4c795b8d">   56</a></span>&#160;<span class="preprocessor">#define PN_OUT_OF_MEMORY (-10) </span></div><div class="line"><a name="l00057"></a><span class="lineno"><a class="line" href="group__error.html#ga82db456291c2627e31becc44b733a7f0">   57</a></span>&#160;<span class="preprocessor">#define PN_ABORTED (-11)       </span></div><div class="line"><a name="l00063"></a><span class="lineno">   63</span>&#160;<span class="preprocessor">PN_EXTERN const char *pn_code(int code);</span></div><div class="line"><a name="l00064"></a><span class="lineno
 ">   64</span>&#160;</div><div class="line"><a name="l00068"></a><span class="lineno">   68</span>&#160;PN_EXTERN <a class="code" href="group__error.html#ga24a289d5b32c9bd8a775600a5af83d52">pn_error_t</a> *<a class="code" href="group__error.html#ga0992aa0df5290a2ae639246b0c2f5481">pn_error</a>(<span class="keywordtype">void</span>);</div><div class="line"><a name="l00069"></a><span class="lineno">   69</span>&#160;</div><div class="line"><a name="l00073"></a><span class="lineno">   73</span>&#160;PN_EXTERN <span class="keywordtype">void</span> <a class="code" href="group__error.html#ga5e57528759aedb00e68aafd0d025d06c">pn_error_free</a>(<a class="code" href="group__error.html#ga24a289d5b32c9bd8a775600a5af83d52">pn_error_t</a> *error);</div><div class="line"><a name="l00074"></a><span class="lineno">   74</span>&#160;</div><div class="line"><a name="l00078"></a><span class="lineno">   78</span>&#160;PN_EXTERN <span class="keywordtype">void</span> <a class="code" href="group__error.htm
 l#ga15440ed9515967950fa4504a53fc0b64">pn_error_clear</a>(<a class="code" href="group__error.html#ga24a289d5b32c9bd8a775600a5af83d52">pn_error_t</a> *error);</div><div class="line"><a name="l00079"></a><span class="lineno">   79</span>&#160;</div><div class="line"><a name="l00083"></a><span class="lineno">   83</span>&#160;PN_EXTERN <span class="keywordtype">int</span> <a class="code" href="group__error.html#gac5b68c9e6a637810a55c0b0e6f66c90d">pn_error_set</a>(<a class="code" href="group__error.html#ga24a289d5b32c9bd8a775600a5af83d52">pn_error_t</a> *error, <span class="keywordtype">int</span> code, <span class="keyword">const</span> <span class="keywordtype">char</span> *text);</div><div class="line"><a name="l00084"></a><span class="lineno">   84</span>&#160;</div><div class="line"><a name="l00089"></a><span class="lineno">   89</span>&#160;PN_EXTERN <span class="keywordtype">int</span> <a class="code" href="group__error.html#ga59db2b3acdca714819c6450d2d5440a1">pn_error_vformat</a>
 (<a class="code" href="group__error.html#ga24a289d5b32c9bd8a775600a5af83d52">pn_error_t</a> *error, <span class="keywordtype">int</span> code, <span class="keyword">const</span> <span class="keywordtype">char</span> *fmt, va_list ap);</div><div class="line"><a name="l00090"></a><span class="lineno">   90</span>&#160;</div><div class="line"><a name="l00095"></a><span class="lineno">   95</span>&#160;PN_EXTERN <span class="keywordtype">int</span> <a class="code" href="group__error.html#ga806d0788eeb97fd52d645cb8b75f8bf2">pn_error_format</a>(<a class="code" href="group__error.html#ga24a289d5b32c9bd8a775600a5af83d52">pn_error_t</a> *error, <span class="keywordtype">int</span> code, <span class="keyword">const</span> <span class="keywordtype">char</span> *fmt, ...);</div><div class="line"><a name="l00096"></a><span class="lineno">   96</span>&#160;</div><div class="line"><a name="l00100"></a><span class="lineno">  100</span>&#160;PN_EXTERN <span class="keywordtype">int</span> <a class="c
 ode" href="group__error.html#ga00e179c24bc0954e1f01c64aa832ee2c">pn_error_code</a>(<a class="code" href="group__error.html#ga24a289d5b32c9bd8a775600a5af83d52">pn_error_t</a> *error);</div><div class="line"><a name="l00101"></a><span class="lineno">  101</span>&#160;</div><div class="line"><a name="l00106"></a><span class="lineno">  106</span>&#160;PN_EXTERN <span class="keyword">const</span> <span class="keywordtype">char</span> *<a class="code" href="group__error.html#ga67cbe6ebb143370e0604f5b84d716c56">pn_error_text</a>(<a class="code" href="group__error.html#ga24a289d5b32c9bd8a775600a5af83d52">pn_error_t</a> *error);</div><div class="line"><a name="l00107"></a><span class="lineno">  107</span>&#160;</div><div class="line"><a name="l00111"></a><span class="lineno">  111</span>&#160;PN_EXTERN <span class="keywordtype">int</span> <a class="code" href="group__error.html#ga96ccb65768c64ee0a1b71b83e08489d3">pn_error_copy</a>(<a class="code" href="group__error.html#ga24a289d5b32c9bd8a77
 5600a5af83d52">pn_error_t</a> *error, <a class="code" href="group__error.html#ga24a289d5b32c9bd8a775600a5af83d52">pn_error_t</a> *src);</div><div class="line"><a name="l00112"></a><span class="lineno">  112</span>&#160;</div><div class="line"><a name="l00116"></a><span class="lineno">  116</span>&#160;<span class="preprocessor">#define PN_RETURN_IF_ERROR(x) \</span></div><div class="line"><a name="l00117"></a><span class="lineno">  117</span>&#160;<span class="preprocessor">do {\</span></div><div class="line"><a name="l00118"></a><span class="lineno">  118</span>&#160;<span class="preprocessor">int r = (x);\</span></div><div class="line"><a name="l00119"></a><span class="lineno">  119</span>&#160;<span class="preprocessor">if (r &lt; 0) return r; \</span></div><div class="line"><a name="l00120"></a><span class="lineno">  120</span>&#160;<span class="preprocessor">} while (0)</span></div><div class="line"><a name="l00121"></a><span class="lineno">  121</span>&#160;</div><div class="l
 ine"><a name="l00129"></a><span class="lineno">  129</span>&#160;<span class="preprocessor">#ifdef __cplusplus</span></div><div class="line"><a name="l00130"></a><span class="lineno">  130</span>&#160;}</div><div class="line"><a name="l00131"></a><span class="lineno">  131</span>&#160;<span class="preprocessor">#endif</span></div><div class="line"><a name="l00132"></a><span class="lineno">  132</span>&#160;</div><div class="line"><a name="l00133"></a><span class="lineno">  133</span>&#160;<span class="preprocessor">#endif </span><span class="comment">/* error.h */</span><span class="preprocessor"></span></div><div class="ttc" id="group__error_html_ga96ccb65768c64ee0a1b71b83e08489d3"><div class="ttname"><a href="group__error.html#ga96ccb65768c64ee0a1b71b83e08489d3">pn_error_copy</a></div><div class="ttdeci">int pn_error_copy(pn_error_t *error, pn_error_t *src)</div><div class="ttdoc">Copy the src error. </div></div>
 <div class="ttc" id="group__error_html_gac5b68c9e6a637810a55c0b0e6f66c90d"><div class="ttname"><a href="group__error.html#gac5b68c9e6a637810a55c0b0e6f66c90d">pn_error_set</a></div><div class="ttdeci">int pn_error_set(pn_error_t *error, int code, const char *text)</div><div class="ttdoc">Set the error code and text. </div></div>
 <div class="ttc" id="group__error_html_ga24a289d5b32c9bd8a775600a5af83d52"><div class="ttname"><a href="group__error.html#ga24a289d5b32c9bd8a775600a5af83d52">pn_error_t</a></div><div class="ttdeci">struct pn_error_t pn_error_t</div><div class="ttdoc">An int error code and some string text to describe the error. </div><div class="ttdef"><b>Definition:</b> error.h:44</div></div>
 <div class="ttc" id="group__error_html_ga00e179c24bc0954e1f01c64aa832ee2c"><div class="ttname"><a href="group__error.html#ga00e179c24bc0954e1f01c64aa832ee2c">pn_error_code</a></div><div class="ttdeci">int pn_error_code(pn_error_t *error)</div><div class="ttdoc">Get the the error code. </div></div>


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


Mime
View raw message