This file is indexed.

/usr/share/proton-0.7/docs/api-c/a00052.html is in libqpid-proton2-dev-doc 0.7-2.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

   1
   2
   3
   4
   5
   6
   7
   8
   9
  10
  11
  12
  13
  14
  15
  16
  17
  18
  19
  20
  21
  22
  23
  24
  25
  26
  27
  28
  29
  30
  31
  32
  33
  34
  35
  36
  37
  38
  39
  40
  41
  42
  43
  44
  45
  46
  47
  48
  49
  50
  51
  52
  53
  54
  55
  56
  57
  58
  59
  60
  61
  62
  63
  64
  65
  66
  67
  68
  69
  70
  71
  72
  73
  74
  75
  76
  77
  78
  79
  80
  81
  82
  83
  84
  85
  86
  87
  88
  89
  90
  91
  92
  93
  94
  95
  96
  97
  98
  99
 100
 101
 102
 103
 104
 105
 106
 107
 108
 109
 110
 111
 112
 113
 114
 115
 116
 117
 118
 119
 120
 121
 122
 123
 124
 125
 126
 127
 128
 129
 130
 131
 132
 133
 134
 135
 136
 137
 138
 139
 140
 141
 142
 143
 144
 145
 146
 147
 148
 149
 150
 151
 152
 153
 154
 155
 156
 157
 158
 159
 160
 161
 162
 163
 164
 165
 166
 167
 168
 169
 170
 171
 172
 173
 174
 175
 176
 177
 178
 179
 180
 181
 182
 183
 184
 185
 186
 187
 188
 189
 190
 191
 192
 193
 194
 195
 196
 197
 198
 199
 200
 201
 202
 203
 204
 205
 206
 207
 208
 209
 210
 211
 212
 213
 214
 215
 216
 217
 218
 219
 220
 221
 222
 223
 224
 225
 226
 227
 228
 229
 230
 231
 232
 233
 234
 235
 236
 237
 238
 239
 240
 241
 242
 243
 244
 245
 246
 247
 248
 249
 250
 251
 252
 253
 254
 255
 256
 257
 258
 259
 260
 261
 262
 263
 264
 265
 266
 267
 268
 269
 270
 271
 272
 273
 274
 275
 276
 277
 278
 279
 280
 281
 282
 283
 284
 285
 286
 287
 288
 289
 290
 291
 292
 293
 294
 295
 296
 297
 298
 299
 300
 301
 302
 303
 304
 305
 306
 307
 308
 309
 310
 311
 312
 313
 314
 315
 316
 317
 318
 319
 320
 321
 322
 323
 324
 325
 326
 327
 328
 329
 330
 331
 332
 333
 334
 335
 336
 337
 338
 339
 340
 341
 342
 343
 344
 345
 346
 347
 348
 349
 350
 351
 352
 353
 354
 355
 356
 357
 358
 359
 360
 361
 362
 363
 364
 365
 366
 367
 368
 369
 370
 371
 372
 373
 374
 375
 376
 377
 378
 379
 380
 381
 382
 383
 384
 385
 386
 387
 388
 389
 390
 391
 392
 393
 394
 395
 396
 397
 398
 399
 400
 401
 402
 403
 404
 405
 406
 407
 408
 409
 410
 411
 412
 413
 414
 415
 416
 417
 418
 419
 420
 421
 422
 423
 424
 425
 426
 427
 428
 429
 430
 431
 432
 433
 434
 435
 436
 437
 438
 439
 440
 441
 442
 443
 444
 445
 446
 447
 448
 449
 450
 451
 452
 453
 454
 455
 456
 457
 458
 459
 460
 461
 462
 463
 464
 465
 466
 467
 468
 469
 470
 471
 472
 473
 474
 475
 476
 477
 478
 479
 480
 481
 482
 483
 484
 485
 486
 487
 488
 489
 490
 491
 492
 493
 494
 495
 496
 497
 498
 499
 500
 501
 502
 503
 504
 505
 506
 507
 508
 509
 510
 511
 512
 513
 514
 515
 516
 517
 518
 519
 520
 521
 522
 523
 524
 525
 526
 527
 528
 529
 530
 531
 532
 533
 534
 535
 536
 537
 538
 539
 540
 541
 542
 543
 544
 545
 546
 547
 548
 549
 550
 551
 552
 553
 554
 555
 556
 557
 558
 559
 560
 561
 562
 563
 564
 565
 566
 567
 568
 569
 570
 571
 572
 573
 574
 575
 576
 577
 578
 579
 580
 581
 582
 583
 584
 585
 586
 587
 588
 589
 590
 591
 592
 593
 594
 595
 596
 597
 598
 599
 600
 601
 602
 603
 604
 605
 606
 607
 608
 609
 610
 611
 612
 613
 614
 615
 616
 617
 618
 619
 620
 621
 622
 623
 624
 625
 626
 627
 628
 629
 630
 631
 632
 633
 634
 635
 636
 637
 638
 639
 640
 641
 642
 643
 644
 645
 646
 647
 648
 649
 650
 651
 652
 653
 654
 655
 656
 657
 658
 659
 660
 661
 662
 663
 664
 665
 666
 667
 668
 669
 670
 671
 672
 673
 674
 675
 676
 677
 678
 679
 680
 681
 682
 683
 684
 685
 686
 687
 688
 689
 690
 691
 692
 693
 694
 695
 696
 697
 698
 699
 700
 701
 702
 703
 704
 705
 706
 707
 708
 709
 710
 711
 712
 713
 714
 715
 716
 717
 718
 719
 720
 721
 722
 723
 724
 725
 726
 727
 728
 729
 730
 731
 732
 733
 734
 735
 736
 737
 738
 739
 740
 741
 742
 743
 744
 745
 746
 747
 748
 749
 750
 751
 752
 753
 754
 755
 756
 757
 758
 759
 760
 761
 762
 763
 764
 765
 766
 767
 768
 769
 770
 771
 772
 773
 774
 775
 776
 777
 778
 779
 780
 781
 782
 783
 784
 785
 786
 787
 788
 789
 790
 791
 792
 793
 794
 795
 796
 797
 798
 799
 800
 801
 802
 803
 804
 805
 806
 807
 808
 809
 810
 811
 812
 813
 814
 815
 816
 817
 818
 819
 820
 821
 822
 823
 824
 825
 826
 827
 828
 829
 830
 831
 832
 833
 834
 835
 836
 837
 838
 839
 840
 841
 842
 843
 844
 845
 846
 847
 848
 849
 850
 851
 852
 853
 854
 855
 856
 857
 858
 859
 860
 861
 862
 863
 864
 865
 866
 867
 868
 869
 870
 871
 872
 873
 874
 875
 876
 877
 878
 879
 880
 881
 882
 883
 884
 885
 886
 887
 888
 889
 890
 891
 892
 893
 894
 895
 896
 897
 898
 899
 900
 901
 902
 903
 904
 905
 906
 907
 908
 909
 910
 911
 912
 913
 914
 915
 916
 917
 918
 919
 920
 921
 922
 923
 924
 925
 926
 927
 928
 929
 930
 931
 932
 933
 934
 935
 936
 937
 938
 939
 940
 941
 942
 943
 944
 945
 946
 947
 948
 949
 950
 951
 952
 953
 954
 955
 956
 957
 958
 959
 960
 961
 962
 963
 964
 965
 966
 967
 968
 969
 970
 971
 972
 973
 974
 975
 976
 977
 978
 979
 980
 981
 982
 983
 984
 985
 986
 987
 988
 989
 990
 991
 992
 993
 994
 995
 996
 997
 998
 999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
1969
1970
1971
1972
1973
1974
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046
2047
2048
2049
2050
2051
2052
2053
2054
2055
2056
2057
2058
2059
2060
<!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.8"/>
<title>proton: Messenger</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="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">proton
   &#160;<span id="projectnumber">0</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.8 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="pages.html"><span>Related&#160;Pages</span></a></li>
      <li><a href="modules.html"><span>Modules</span></a></li>
      <li><a href="annotated.html"><span>Data&#160;Structures</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
      <li>
        <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>
      </li>
    </ul>
  </div>
</div><!-- top -->
<!-- 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>Data Structures</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:void(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>Macros</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(9)"><span class="SelectionMark">&#160;</span>Modules</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(10)"><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="summary">
<a href="#define-members">Macros</a> &#124;
<a href="#typedef-members">Typedefs</a> &#124;
<a href="#enum-members">Enumerations</a> &#124;
<a href="#func-members">Functions</a>  </div>
  <div class="headertitle">
<div class="title">Messenger</div>  </div>
</div><!--header-->
<div class="contents">
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="define-members"></a>
Macros</h2></td></tr>
<tr class="memitem:ga6c2e8d006ec05b913fa1e6dc510d23b9"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00052.html#ga6c2e8d006ec05b913fa1e6dc510d23b9">PN_CUMULATIVE</a>&#160;&#160;&#160;(0x1)</td></tr>
<tr class="memdesc:ga6c2e8d006ec05b913fa1e6dc510d23b9"><td class="mdescLeft">&#160;</td><td class="mdescRight">Indicates that an accept or reject should operate cumulatively.  <a href="#ga6c2e8d006ec05b913fa1e6dc510d23b9">More...</a><br /></td></tr>
<tr class="separator:ga6c2e8d006ec05b913fa1e6dc510d23b9"><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>
<tr class="memitem:ga0d342bb795d48591ad6b3f867766b8b1"><td class="memItemLeft" align="right" valign="top">typedef struct <a class="el" href="a00052.html#ga0d342bb795d48591ad6b3f867766b8b1">pn_messenger_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00052.html#ga0d342bb795d48591ad6b3f867766b8b1">pn_messenger_t</a></td></tr>
<tr class="memdesc:ga0d342bb795d48591ad6b3f867766b8b1"><td class="mdescLeft">&#160;</td><td class="mdescRight">A <a class="el" href="a00052.html#ga0d342bb795d48591ad6b3f867766b8b1" title="A pn_messenger_t provides a high level interface for sending and receiving messages (See pn_message_t...">pn_messenger_t</a> provides a high level interface for sending and receiving messages (See <a class="el" href="a00051.html#gad9259fa9271e8844c8e05a7e8978e3b2" title="An AMQP Message object. ">pn_message_t</a>).  <a href="#ga0d342bb795d48591ad6b3f867766b8b1">More...</a><br /></td></tr>
<tr class="separator:ga0d342bb795d48591ad6b3f867766b8b1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gabd73703511b9dae193765e9e57864291"><td class="memItemLeft" align="right" valign="top">typedef struct <a class="el" href="a00052.html#gabd73703511b9dae193765e9e57864291">pn_subscription_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00052.html#gabd73703511b9dae193765e9e57864291">pn_subscription_t</a></td></tr>
<tr class="memdesc:gabd73703511b9dae193765e9e57864291"><td class="mdescLeft">&#160;</td><td class="mdescRight">A subscription is a request for incoming messages.  <a href="#gabd73703511b9dae193765e9e57864291">More...</a><br /></td></tr>
<tr class="separator:gabd73703511b9dae193765e9e57864291"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gab1173cfe4bcaa0a530c8035dc75f42c7"><td class="memItemLeft" align="right" valign="top">typedef int64_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00052.html#gab1173cfe4bcaa0a530c8035dc75f42c7">pn_tracker_t</a></td></tr>
<tr class="memdesc:gab1173cfe4bcaa0a530c8035dc75f42c7"><td class="mdescLeft">&#160;</td><td class="mdescRight">Trackers provide a lightweight handle used to track the status of incoming and outgoing deliveries.  <a href="#gab1173cfe4bcaa0a530c8035dc75f42c7">More...</a><br /></td></tr>
<tr class="separator:gab1173cfe4bcaa0a530c8035dc75f42c7"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="enum-members"></a>
Enumerations</h2></td></tr>
<tr class="memitem:ga242e4ee54b9c0a416443c7da5f6e045b"><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00052.html#ga242e4ee54b9c0a416443c7da5f6e045b">pn_status_t</a> { <br />
&#160;&#160;<a class="el" href="a00052.html#gga242e4ee54b9c0a416443c7da5f6e045ba0b46b1041679460baaba2ddcdb2173f2">PN_STATUS_UNKNOWN</a> = 0, 
<a class="el" href="a00052.html#gga242e4ee54b9c0a416443c7da5f6e045ba4b0354a77173cd75c69159e15c23f611">PN_STATUS_PENDING</a> = 1, 
<a class="el" href="a00052.html#gga242e4ee54b9c0a416443c7da5f6e045ba693fd9044a50a4f02e842d04a4bf1467">PN_STATUS_ACCEPTED</a> = 2, 
<a class="el" href="a00052.html#gga242e4ee54b9c0a416443c7da5f6e045baf109df703952744009b3547f3b8f32bf">PN_STATUS_REJECTED</a> = 3, 
<br />
&#160;&#160;<a class="el" href="a00052.html#gga242e4ee54b9c0a416443c7da5f6e045ba67079750477effb7935df83381c47852">PN_STATUS_RELEASED</a> = 4, 
<a class="el" href="a00052.html#gga242e4ee54b9c0a416443c7da5f6e045ba77d94a6b6b745eef9307f144b57e81e8">PN_STATUS_MODIFIED</a> = 5, 
<a class="el" href="a00052.html#gga242e4ee54b9c0a416443c7da5f6e045ba1239e8ada7eabe2aeab98f2c881cd2ee">PN_STATUS_ABORTED</a> = 6, 
<a class="el" href="a00052.html#gga242e4ee54b9c0a416443c7da5f6e045ba1181bc7f51502ae11ed240866cd64583">PN_STATUS_SETTLED</a> = 7
<br />
 }</td></tr>
<tr class="memdesc:ga242e4ee54b9c0a416443c7da5f6e045b"><td class="mdescLeft">&#160;</td><td class="mdescRight">Describes all the possible states for a message associated with a given tracker.  <a href="a00052.html#ga242e4ee54b9c0a416443c7da5f6e045b">More...</a><br /></td></tr>
<tr class="separator:ga242e4ee54b9c0a416443c7da5f6e045b"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:ga5770958f2ad363cbce4e49ddde2f0249"><td class="memItemLeft" align="right" valign="top"><a class="el" href="a00023.html#acfa9628d87130a64f95ee17c57a7c13b">PN_EXTERN</a> <a class="el" href="a00052.html#ga0d342bb795d48591ad6b3f867766b8b1">pn_messenger_t</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00052.html#ga5770958f2ad363cbce4e49ddde2f0249">pn_messenger</a> (const char *name)</td></tr>
<tr class="memdesc:ga5770958f2ad363cbce4e49ddde2f0249"><td class="mdescLeft">&#160;</td><td class="mdescRight">Construct a new <a class="el" href="a00052.html#ga0d342bb795d48591ad6b3f867766b8b1" title="A pn_messenger_t provides a high level interface for sending and receiving messages (See pn_message_t...">pn_messenger_t</a> with the given name.  <a href="#ga5770958f2ad363cbce4e49ddde2f0249">More...</a><br /></td></tr>
<tr class="separator:ga5770958f2ad363cbce4e49ddde2f0249"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gaa300a232e25dbe6be6dca3949da82145"><td class="memItemLeft" align="right" valign="top"><a class="el" href="a00023.html#acfa9628d87130a64f95ee17c57a7c13b">PN_EXTERN</a> const char *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00052.html#gaa300a232e25dbe6be6dca3949da82145">pn_messenger_name</a> (<a class="el" href="a00052.html#ga0d342bb795d48591ad6b3f867766b8b1">pn_messenger_t</a> *messenger)</td></tr>
<tr class="memdesc:gaa300a232e25dbe6be6dca3949da82145"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get the name of a messenger.  <a href="#gaa300a232e25dbe6be6dca3949da82145">More...</a><br /></td></tr>
<tr class="separator:gaa300a232e25dbe6be6dca3949da82145"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga310d7de19eb8943a2818f53d9b45cfc9"><td class="memItemLeft" align="right" valign="top"><a class="el" href="a00023.html#acfa9628d87130a64f95ee17c57a7c13b">PN_EXTERN</a> int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00052.html#ga310d7de19eb8943a2818f53d9b45cfc9">pn_messenger_set_certificate</a> (<a class="el" href="a00052.html#ga0d342bb795d48591ad6b3f867766b8b1">pn_messenger_t</a> *messenger, const char *certificate)</td></tr>
<tr class="memdesc:ga310d7de19eb8943a2818f53d9b45cfc9"><td class="mdescLeft">&#160;</td><td class="mdescRight">Sets the path that will be used to get the certificate that will be used to identify this messenger to its peers.  <a href="#ga310d7de19eb8943a2818f53d9b45cfc9">More...</a><br /></td></tr>
<tr class="separator:ga310d7de19eb8943a2818f53d9b45cfc9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gaca5d33643cc6db452d4dd456f774f936"><td class="memItemLeft" align="right" valign="top"><a class="el" href="a00023.html#acfa9628d87130a64f95ee17c57a7c13b">PN_EXTERN</a> const char *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00052.html#gaca5d33643cc6db452d4dd456f774f936">pn_messenger_get_certificate</a> (<a class="el" href="a00052.html#ga0d342bb795d48591ad6b3f867766b8b1">pn_messenger_t</a> *messenger)</td></tr>
<tr class="memdesc:gaca5d33643cc6db452d4dd456f774f936"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get the certificate path.  <a href="#gaca5d33643cc6db452d4dd456f774f936">More...</a><br /></td></tr>
<tr class="separator:gaca5d33643cc6db452d4dd456f774f936"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gaac399276ec13c5bb2755b55aeddbc3cb"><td class="memItemLeft" align="right" valign="top"><a class="el" href="a00023.html#acfa9628d87130a64f95ee17c57a7c13b">PN_EXTERN</a> int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00052.html#gaac399276ec13c5bb2755b55aeddbc3cb">pn_messenger_set_private_key</a> (<a class="el" href="a00052.html#ga0d342bb795d48591ad6b3f867766b8b1">pn_messenger_t</a> *messenger, const char *private_key)</td></tr>
<tr class="memdesc:gaac399276ec13c5bb2755b55aeddbc3cb"><td class="mdescLeft">&#160;</td><td class="mdescRight">Set path to the private key that was used to sign the certificate.  <a href="#gaac399276ec13c5bb2755b55aeddbc3cb">More...</a><br /></td></tr>
<tr class="separator:gaac399276ec13c5bb2755b55aeddbc3cb"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gaa5e3ea6839e156d22afe0e8254e47b2d"><td class="memItemLeft" align="right" valign="top"><a class="el" href="a00023.html#acfa9628d87130a64f95ee17c57a7c13b">PN_EXTERN</a> const char *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00052.html#gaa5e3ea6839e156d22afe0e8254e47b2d">pn_messenger_get_private_key</a> (<a class="el" href="a00052.html#ga0d342bb795d48591ad6b3f867766b8b1">pn_messenger_t</a> *messenger)</td></tr>
<tr class="memdesc:gaa5e3ea6839e156d22afe0e8254e47b2d"><td class="mdescLeft">&#160;</td><td class="mdescRight">Gets the private key file for a messenger.  <a href="#gaa5e3ea6839e156d22afe0e8254e47b2d">More...</a><br /></td></tr>
<tr class="separator:gaa5e3ea6839e156d22afe0e8254e47b2d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga9b1e530ba6d77b9e1f3a6e1e44cb7cf0"><td class="memItemLeft" align="right" valign="top"><a class="el" href="a00023.html#acfa9628d87130a64f95ee17c57a7c13b">PN_EXTERN</a> int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00052.html#ga9b1e530ba6d77b9e1f3a6e1e44cb7cf0">pn_messenger_set_password</a> (<a class="el" href="a00052.html#ga0d342bb795d48591ad6b3f867766b8b1">pn_messenger_t</a> *messenger, const char *password)</td></tr>
<tr class="memdesc:ga9b1e530ba6d77b9e1f3a6e1e44cb7cf0"><td class="mdescLeft">&#160;</td><td class="mdescRight">Sets the private key password for a messenger.  <a href="#ga9b1e530ba6d77b9e1f3a6e1e44cb7cf0">More...</a><br /></td></tr>
<tr class="separator:ga9b1e530ba6d77b9e1f3a6e1e44cb7cf0"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gaca818b10d8ab415ff21b2df30e645588"><td class="memItemLeft" align="right" valign="top"><a class="el" href="a00023.html#acfa9628d87130a64f95ee17c57a7c13b">PN_EXTERN</a> const char *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00052.html#gaca818b10d8ab415ff21b2df30e645588">pn_messenger_get_password</a> (<a class="el" href="a00052.html#ga0d342bb795d48591ad6b3f867766b8b1">pn_messenger_t</a> *messenger)</td></tr>
<tr class="memdesc:gaca818b10d8ab415ff21b2df30e645588"><td class="mdescLeft">&#160;</td><td class="mdescRight">Gets the private key file password for a messenger.  <a href="#gaca818b10d8ab415ff21b2df30e645588">More...</a><br /></td></tr>
<tr class="separator:gaca818b10d8ab415ff21b2df30e645588"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga91d3800c61ab27f32c8c0fc513ef085c"><td class="memItemLeft" align="right" valign="top"><a class="el" href="a00023.html#acfa9628d87130a64f95ee17c57a7c13b">PN_EXTERN</a> int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00052.html#ga91d3800c61ab27f32c8c0fc513ef085c">pn_messenger_set_trusted_certificates</a> (<a class="el" href="a00052.html#ga0d342bb795d48591ad6b3f867766b8b1">pn_messenger_t</a> *messenger, const char *cert_db)</td></tr>
<tr class="memdesc:ga91d3800c61ab27f32c8c0fc513ef085c"><td class="mdescLeft">&#160;</td><td class="mdescRight">Sets the trusted certificates database for a messenger.  <a href="#ga91d3800c61ab27f32c8c0fc513ef085c">More...</a><br /></td></tr>
<tr class="separator:ga91d3800c61ab27f32c8c0fc513ef085c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga21ab008d0e2218de2bb2ff19d66e214c"><td class="memItemLeft" align="right" valign="top"><a class="el" href="a00023.html#acfa9628d87130a64f95ee17c57a7c13b">PN_EXTERN</a> const char *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00052.html#ga21ab008d0e2218de2bb2ff19d66e214c">pn_messenger_get_trusted_certificates</a> (<a class="el" href="a00052.html#ga0d342bb795d48591ad6b3f867766b8b1">pn_messenger_t</a> *messenger)</td></tr>
<tr class="memdesc:ga21ab008d0e2218de2bb2ff19d66e214c"><td class="mdescLeft">&#160;</td><td class="mdescRight">Gets the trusted certificates database for a messenger.  <a href="#ga21ab008d0e2218de2bb2ff19d66e214c">More...</a><br /></td></tr>
<tr class="separator:ga21ab008d0e2218de2bb2ff19d66e214c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga621e7edf471c5cf32d7251ed0a468877"><td class="memItemLeft" align="right" valign="top"><a class="el" href="a00023.html#acfa9628d87130a64f95ee17c57a7c13b">PN_EXTERN</a> int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00052.html#ga621e7edf471c5cf32d7251ed0a468877">pn_messenger_set_timeout</a> (<a class="el" href="a00052.html#ga0d342bb795d48591ad6b3f867766b8b1">pn_messenger_t</a> *messenger, int timeout)</td></tr>
<tr class="memdesc:ga621e7edf471c5cf32d7251ed0a468877"><td class="mdescLeft">&#160;</td><td class="mdescRight">Set the default timeout for a messenger.  <a href="#ga621e7edf471c5cf32d7251ed0a468877">More...</a><br /></td></tr>
<tr class="separator:ga621e7edf471c5cf32d7251ed0a468877"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga873eea2b97af52a138a2e1db7f4556e2"><td class="memItemLeft" align="right" valign="top"><a class="el" href="a00023.html#acfa9628d87130a64f95ee17c57a7c13b">PN_EXTERN</a> int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00052.html#ga873eea2b97af52a138a2e1db7f4556e2">pn_messenger_get_timeout</a> (<a class="el" href="a00052.html#ga0d342bb795d48591ad6b3f867766b8b1">pn_messenger_t</a> *messenger)</td></tr>
<tr class="memdesc:ga873eea2b97af52a138a2e1db7f4556e2"><td class="mdescLeft">&#160;</td><td class="mdescRight">Gets the timeout for a messenger object.  <a href="#ga873eea2b97af52a138a2e1db7f4556e2">More...</a><br /></td></tr>
<tr class="separator:ga873eea2b97af52a138a2e1db7f4556e2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gaf95b3b54f4ee2a97db09e83ea5a0f8c3"><td class="memItemLeft" align="right" valign="top"><a class="el" href="a00023.html#acfa9628d87130a64f95ee17c57a7c13b">PN_EXTERN</a> bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00052.html#gaf95b3b54f4ee2a97db09e83ea5a0f8c3">pn_messenger_is_blocking</a> (<a class="el" href="a00052.html#ga0d342bb795d48591ad6b3f867766b8b1">pn_messenger_t</a> *messenger)</td></tr>
<tr class="memdesc:gaf95b3b54f4ee2a97db09e83ea5a0f8c3"><td class="mdescLeft">&#160;</td><td class="mdescRight">Check if a messenger is in blocking mode.  <a href="#gaf95b3b54f4ee2a97db09e83ea5a0f8c3">More...</a><br /></td></tr>
<tr class="separator:gaf95b3b54f4ee2a97db09e83ea5a0f8c3"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gacd33f1218d6b6baed75462a3c9e31a81"><td class="memItemLeft" align="right" valign="top"><a class="el" href="a00023.html#acfa9628d87130a64f95ee17c57a7c13b">PN_EXTERN</a> int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00052.html#gacd33f1218d6b6baed75462a3c9e31a81">pn_messenger_set_blocking</a> (<a class="el" href="a00052.html#ga0d342bb795d48591ad6b3f867766b8b1">pn_messenger_t</a> *messenger, bool blocking)</td></tr>
<tr class="memdesc:gacd33f1218d6b6baed75462a3c9e31a81"><td class="mdescLeft">&#160;</td><td class="mdescRight">Enable or disable blocking behavior for a messenger during calls to <a class="el" href="a00052.html#gafcdc9ca1e3d1505c5ebfb26cc95fb2bb" title="Send messages from a messenger&#39;s outgoing queue. ">pn_messenger_send</a> and <a class="el" href="a00052.html#ga6a766d6dfb249b2f2db8de0fc4a73990" title="Retrieve messages into a messenger&#39;s incoming queue. ">pn_messenger_recv</a>.  <a href="#gacd33f1218d6b6baed75462a3c9e31a81">More...</a><br /></td></tr>
<tr class="separator:gacd33f1218d6b6baed75462a3c9e31a81"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gaf24ba09549f555a0323f7ae0be1978b1"><td class="memItemLeft" align="right" valign="top"><a class="el" href="a00023.html#acfa9628d87130a64f95ee17c57a7c13b">PN_EXTERN</a> bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00052.html#gaf24ba09549f555a0323f7ae0be1978b1">pn_messenger_is_passive</a> (<a class="el" href="a00052.html#ga0d342bb795d48591ad6b3f867766b8b1">pn_messenger_t</a> *messenger)</td></tr>
<tr class="memdesc:gaf24ba09549f555a0323f7ae0be1978b1"><td class="mdescLeft">&#160;</td><td class="mdescRight">Check if a messenger is in passive mode.  <a href="#gaf24ba09549f555a0323f7ae0be1978b1">More...</a><br /></td></tr>
<tr class="separator:gaf24ba09549f555a0323f7ae0be1978b1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga71ac6697b6fc8a39360dee9989f3a99b"><td class="memItemLeft" align="right" valign="top"><a class="el" href="a00023.html#acfa9628d87130a64f95ee17c57a7c13b">PN_EXTERN</a> int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00052.html#ga71ac6697b6fc8a39360dee9989f3a99b">pn_messenger_set_passive</a> (<a class="el" href="a00052.html#ga0d342bb795d48591ad6b3f867766b8b1">pn_messenger_t</a> *messenger, bool passive)</td></tr>
<tr class="memdesc:ga71ac6697b6fc8a39360dee9989f3a99b"><td class="mdescLeft">&#160;</td><td class="mdescRight">Set the passive mode for a messenger.  <a href="#ga71ac6697b6fc8a39360dee9989f3a99b">More...</a><br /></td></tr>
<tr class="separator:ga71ac6697b6fc8a39360dee9989f3a99b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gaf57143f98134870941839f9b665e87af"><td class="memItemLeft" align="right" valign="top"><a class="el" href="a00023.html#acfa9628d87130a64f95ee17c57a7c13b">PN_EXTERN</a> void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00052.html#gaf57143f98134870941839f9b665e87af">pn_messenger_free</a> (<a class="el" href="a00052.html#ga0d342bb795d48591ad6b3f867766b8b1">pn_messenger_t</a> *messenger)</td></tr>
<tr class="memdesc:gaf57143f98134870941839f9b665e87af"><td class="mdescLeft">&#160;</td><td class="mdescRight">Frees a Messenger.  <a href="#gaf57143f98134870941839f9b665e87af">More...</a><br /></td></tr>
<tr class="separator:gaf57143f98134870941839f9b665e87af"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga916bf706b4b2e6eb60fb5ad679a230d2"><td class="memItemLeft" align="right" valign="top"><a class="el" href="a00023.html#acfa9628d87130a64f95ee17c57a7c13b">PN_EXTERN</a> int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00052.html#ga916bf706b4b2e6eb60fb5ad679a230d2">pn_messenger_errno</a> (<a class="el" href="a00052.html#ga0d342bb795d48591ad6b3f867766b8b1">pn_messenger_t</a> *messenger)</td></tr>
<tr class="memdesc:ga916bf706b4b2e6eb60fb5ad679a230d2"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get the code for a messenger's most recent error.  <a href="#ga916bf706b4b2e6eb60fb5ad679a230d2">More...</a><br /></td></tr>
<tr class="separator:ga916bf706b4b2e6eb60fb5ad679a230d2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga66fff60287c43a457518382216464c5b"><td class="memItemLeft" align="right" valign="top"><a class="el" href="a00023.html#acfa9628d87130a64f95ee17c57a7c13b">PN_EXTERN</a> <a class="el" href="a00020.html#a24a289d5b32c9bd8a775600a5af83d52">pn_error_t</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00052.html#ga66fff60287c43a457518382216464c5b">pn_messenger_error</a> (<a class="el" href="a00052.html#ga0d342bb795d48591ad6b3f867766b8b1">pn_messenger_t</a> *messenger)</td></tr>
<tr class="memdesc:ga66fff60287c43a457518382216464c5b"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get a messenger's error object.  <a href="#ga66fff60287c43a457518382216464c5b">More...</a><br /></td></tr>
<tr class="separator:ga66fff60287c43a457518382216464c5b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga8f889c65a77b807bb249e116649f9cd3"><td class="memItemLeft" align="right" valign="top"><a class="el" href="a00023.html#acfa9628d87130a64f95ee17c57a7c13b">PN_EXTERN</a> int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00052.html#ga8f889c65a77b807bb249e116649f9cd3">pn_messenger_get_outgoing_window</a> (<a class="el" href="a00052.html#ga0d342bb795d48591ad6b3f867766b8b1">pn_messenger_t</a> *messenger)</td></tr>
<tr class="memdesc:ga8f889c65a77b807bb249e116649f9cd3"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get the size of a messenger's outgoing window.  <a href="#ga8f889c65a77b807bb249e116649f9cd3">More...</a><br /></td></tr>
<tr class="separator:ga8f889c65a77b807bb249e116649f9cd3"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga6e1ccb0c5a46d4f354b1b73ff5363531"><td class="memItemLeft" align="right" valign="top"><a class="el" href="a00023.html#acfa9628d87130a64f95ee17c57a7c13b">PN_EXTERN</a> int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00052.html#ga6e1ccb0c5a46d4f354b1b73ff5363531">pn_messenger_set_outgoing_window</a> (<a class="el" href="a00052.html#ga0d342bb795d48591ad6b3f867766b8b1">pn_messenger_t</a> *messenger, int window)</td></tr>
<tr class="memdesc:ga6e1ccb0c5a46d4f354b1b73ff5363531"><td class="mdescLeft">&#160;</td><td class="mdescRight">Set the size of a messenger's outgoing window.  <a href="#ga6e1ccb0c5a46d4f354b1b73ff5363531">More...</a><br /></td></tr>
<tr class="separator:ga6e1ccb0c5a46d4f354b1b73ff5363531"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gad8bdfb8f2d2ea1e8a873d048728b488f"><td class="memItemLeft" align="right" valign="top"><a class="el" href="a00023.html#acfa9628d87130a64f95ee17c57a7c13b">PN_EXTERN</a> int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00052.html#gad8bdfb8f2d2ea1e8a873d048728b488f">pn_messenger_get_incoming_window</a> (<a class="el" href="a00052.html#ga0d342bb795d48591ad6b3f867766b8b1">pn_messenger_t</a> *messenger)</td></tr>
<tr class="memdesc:gad8bdfb8f2d2ea1e8a873d048728b488f"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get the size of a messenger's incoming window.  <a href="#gad8bdfb8f2d2ea1e8a873d048728b488f">More...</a><br /></td></tr>
<tr class="separator:gad8bdfb8f2d2ea1e8a873d048728b488f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga0725c3cac4ae83188a54ed2308fc9e9a"><td class="memItemLeft" align="right" valign="top"><a class="el" href="a00023.html#acfa9628d87130a64f95ee17c57a7c13b">PN_EXTERN</a> int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00052.html#ga0725c3cac4ae83188a54ed2308fc9e9a">pn_messenger_set_incoming_window</a> (<a class="el" href="a00052.html#ga0d342bb795d48591ad6b3f867766b8b1">pn_messenger_t</a> *messenger, int window)</td></tr>
<tr class="memdesc:ga0725c3cac4ae83188a54ed2308fc9e9a"><td class="mdescLeft">&#160;</td><td class="mdescRight">Set the size of a messenger's incoming window.  <a href="#ga0725c3cac4ae83188a54ed2308fc9e9a">More...</a><br /></td></tr>
<tr class="separator:ga0725c3cac4ae83188a54ed2308fc9e9a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gaeb8b0b3a04c4dc4dbf83a66cbb8f54f1"><td class="memItemLeft" align="right" valign="top"><a class="el" href="a00023.html#acfa9628d87130a64f95ee17c57a7c13b">PN_EXTERN</a> int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00052.html#gaeb8b0b3a04c4dc4dbf83a66cbb8f54f1">pn_messenger_start</a> (<a class="el" href="a00052.html#ga0d342bb795d48591ad6b3f867766b8b1">pn_messenger_t</a> *messenger)</td></tr>
<tr class="memdesc:gaeb8b0b3a04c4dc4dbf83a66cbb8f54f1"><td class="mdescLeft">&#160;</td><td class="mdescRight">Currently a no-op placeholder.  <a href="#gaeb8b0b3a04c4dc4dbf83a66cbb8f54f1">More...</a><br /></td></tr>
<tr class="separator:gaeb8b0b3a04c4dc4dbf83a66cbb8f54f1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga40373fb89d70f6c3b7a4b9a0e9c2d3e4"><td class="memItemLeft" align="right" valign="top"><a class="el" href="a00023.html#acfa9628d87130a64f95ee17c57a7c13b">PN_EXTERN</a> int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00052.html#ga40373fb89d70f6c3b7a4b9a0e9c2d3e4">pn_messenger_stop</a> (<a class="el" href="a00052.html#ga0d342bb795d48591ad6b3f867766b8b1">pn_messenger_t</a> *messenger)</td></tr>
<tr class="memdesc:ga40373fb89d70f6c3b7a4b9a0e9c2d3e4"><td class="mdescLeft">&#160;</td><td class="mdescRight">Stops a messenger.  <a href="#ga40373fb89d70f6c3b7a4b9a0e9c2d3e4">More...</a><br /></td></tr>
<tr class="separator:ga40373fb89d70f6c3b7a4b9a0e9c2d3e4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gaba050f36861e436a18378a8a1ff835e0"><td class="memItemLeft" align="right" valign="top"><a class="el" href="a00023.html#acfa9628d87130a64f95ee17c57a7c13b">PN_EXTERN</a> bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00052.html#gaba050f36861e436a18378a8a1ff835e0">pn_messenger_stopped</a> (<a class="el" href="a00052.html#ga0d342bb795d48591ad6b3f867766b8b1">pn_messenger_t</a> *messenger)</td></tr>
<tr class="memdesc:gaba050f36861e436a18378a8a1ff835e0"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns true if a messenger is in the stopped state.  <a href="#gaba050f36861e436a18378a8a1ff835e0">More...</a><br /></td></tr>
<tr class="separator:gaba050f36861e436a18378a8a1ff835e0"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gaf1f1bfe4894d971f0b8d679bcab5cae6"><td class="memItemLeft" align="right" valign="top"><a class="el" href="a00023.html#acfa9628d87130a64f95ee17c57a7c13b">PN_EXTERN</a> <a class="el" href="a00052.html#gabd73703511b9dae193765e9e57864291">pn_subscription_t</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00052.html#gaf1f1bfe4894d971f0b8d679bcab5cae6">pn_messenger_subscribe</a> (<a class="el" href="a00052.html#ga0d342bb795d48591ad6b3f867766b8b1">pn_messenger_t</a> *messenger, const char *source)</td></tr>
<tr class="memdesc:gaf1f1bfe4894d971f0b8d679bcab5cae6"><td class="mdescLeft">&#160;</td><td class="mdescRight">Subscribes a messenger to messages from the specified source.  <a href="#gaf1f1bfe4894d971f0b8d679bcab5cae6">More...</a><br /></td></tr>
<tr class="separator:gaf1f1bfe4894d971f0b8d679bcab5cae6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gae8e9057967d3ca4d81318b147cd3f5ce"><td class="memItemLeft" align="right" valign="top"><a class="el" href="a00023.html#acfa9628d87130a64f95ee17c57a7c13b">PN_EXTERN</a> void *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00052.html#gae8e9057967d3ca4d81318b147cd3f5ce">pn_subscription_get_context</a> (<a class="el" href="a00052.html#gabd73703511b9dae193765e9e57864291">pn_subscription_t</a> *sub)</td></tr>
<tr class="memdesc:gae8e9057967d3ca4d81318b147cd3f5ce"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get a subscription's application context.  <a href="#gae8e9057967d3ca4d81318b147cd3f5ce">More...</a><br /></td></tr>
<tr class="separator:gae8e9057967d3ca4d81318b147cd3f5ce"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga6ab59170c21b3a53e6f0c9b4a271ebce"><td class="memItemLeft" align="right" valign="top"><a class="el" href="a00023.html#acfa9628d87130a64f95ee17c57a7c13b">PN_EXTERN</a> void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00052.html#ga6ab59170c21b3a53e6f0c9b4a271ebce">pn_subscription_set_context</a> (<a class="el" href="a00052.html#gabd73703511b9dae193765e9e57864291">pn_subscription_t</a> *sub, void *context)</td></tr>
<tr class="memdesc:ga6ab59170c21b3a53e6f0c9b4a271ebce"><td class="mdescLeft">&#160;</td><td class="mdescRight">Set an application context for a subscription.  <a href="#ga6ab59170c21b3a53e6f0c9b4a271ebce">More...</a><br /></td></tr>
<tr class="separator:ga6ab59170c21b3a53e6f0c9b4a271ebce"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga177587d2aa7a6fee101a111e40765deb"><td class="memItemLeft" align="right" valign="top"><a class="el" href="a00023.html#acfa9628d87130a64f95ee17c57a7c13b">PN_EXTERN</a> const char *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00052.html#ga177587d2aa7a6fee101a111e40765deb">pn_subscription_address</a> (<a class="el" href="a00052.html#gabd73703511b9dae193765e9e57864291">pn_subscription_t</a> *sub)</td></tr>
<tr class="memdesc:ga177587d2aa7a6fee101a111e40765deb"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get the source address of a subscription.  <a href="#ga177587d2aa7a6fee101a111e40765deb">More...</a><br /></td></tr>
<tr class="separator:ga177587d2aa7a6fee101a111e40765deb"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gadc93816636d614c8ea2abdeef1b99573"><td class="memItemLeft" align="right" valign="top"><a class="el" href="a00023.html#acfa9628d87130a64f95ee17c57a7c13b">PN_EXTERN</a> int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00052.html#gadc93816636d614c8ea2abdeef1b99573">pn_messenger_put</a> (<a class="el" href="a00052.html#ga0d342bb795d48591ad6b3f867766b8b1">pn_messenger_t</a> *messenger, <a class="el" href="a00051.html#gad9259fa9271e8844c8e05a7e8978e3b2">pn_message_t</a> *msg)</td></tr>
<tr class="memdesc:gadc93816636d614c8ea2abdeef1b99573"><td class="mdescLeft">&#160;</td><td class="mdescRight">Puts a message onto the messenger's outgoing queue.  <a href="#gadc93816636d614c8ea2abdeef1b99573">More...</a><br /></td></tr>
<tr class="separator:gadc93816636d614c8ea2abdeef1b99573"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga95063950449210b20ffb60bf2ea8f24b"><td class="memItemLeft" align="right" valign="top"><a class="el" href="a00023.html#acfa9628d87130a64f95ee17c57a7c13b">PN_EXTERN</a> <a class="el" href="a00052.html#ga242e4ee54b9c0a416443c7da5f6e045b">pn_status_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00052.html#ga95063950449210b20ffb60bf2ea8f24b">pn_messenger_status</a> (<a class="el" href="a00052.html#ga0d342bb795d48591ad6b3f867766b8b1">pn_messenger_t</a> *messenger, <a class="el" href="a00052.html#gab1173cfe4bcaa0a530c8035dc75f42c7">pn_tracker_t</a> tracker)</td></tr>
<tr class="memdesc:ga95063950449210b20ffb60bf2ea8f24b"><td class="mdescLeft">&#160;</td><td class="mdescRight">Track the status of a delivery.  <a href="#ga95063950449210b20ffb60bf2ea8f24b">More...</a><br /></td></tr>
<tr class="separator:ga95063950449210b20ffb60bf2ea8f24b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga8f41166af1cd932733d7c9cf10c22913"><td class="memItemLeft" align="right" valign="top"><a class="el" href="a00023.html#acfa9628d87130a64f95ee17c57a7c13b">PN_EXTERN</a> bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00052.html#ga8f41166af1cd932733d7c9cf10c22913">pn_messenger_buffered</a> (<a class="el" href="a00052.html#ga0d342bb795d48591ad6b3f867766b8b1">pn_messenger_t</a> *messenger, <a class="el" href="a00052.html#gab1173cfe4bcaa0a530c8035dc75f42c7">pn_tracker_t</a> tracker)</td></tr>
<tr class="memdesc:ga8f41166af1cd932733d7c9cf10c22913"><td class="mdescLeft">&#160;</td><td class="mdescRight">Check if the delivery associated with a given tracker is still waiting to be sent.  <a href="#ga8f41166af1cd932733d7c9cf10c22913">More...</a><br /></td></tr>
<tr class="separator:ga8f41166af1cd932733d7c9cf10c22913"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga318b28252ff310f1956bc892ffaffaf3"><td class="memItemLeft" align="right" valign="top"><a class="el" href="a00023.html#acfa9628d87130a64f95ee17c57a7c13b">PN_EXTERN</a> int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00052.html#ga318b28252ff310f1956bc892ffaffaf3">pn_messenger_settle</a> (<a class="el" href="a00052.html#ga0d342bb795d48591ad6b3f867766b8b1">pn_messenger_t</a> *messenger, <a class="el" href="a00052.html#gab1173cfe4bcaa0a530c8035dc75f42c7">pn_tracker_t</a> tracker, int flags)</td></tr>
<tr class="memdesc:ga318b28252ff310f1956bc892ffaffaf3"><td class="mdescLeft">&#160;</td><td class="mdescRight">Frees a Messenger from tracking the status associated with a given tracker.  <a href="#ga318b28252ff310f1956bc892ffaffaf3">More...</a><br /></td></tr>
<tr class="separator:ga318b28252ff310f1956bc892ffaffaf3"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gaea099f5cefb69de9042e91d7fce17878"><td class="memItemLeft" align="right" valign="top"><a class="el" href="a00023.html#acfa9628d87130a64f95ee17c57a7c13b">PN_EXTERN</a> <a class="el" href="a00052.html#gab1173cfe4bcaa0a530c8035dc75f42c7">pn_tracker_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00052.html#gaea099f5cefb69de9042e91d7fce17878">pn_messenger_outgoing_tracker</a> (<a class="el" href="a00052.html#ga0d342bb795d48591ad6b3f867766b8b1">pn_messenger_t</a> *messenger)</td></tr>
<tr class="memdesc:gaea099f5cefb69de9042e91d7fce17878"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get a tracker for the outgoing message most recently given to pn_messenger_put.  <a href="#gaea099f5cefb69de9042e91d7fce17878">More...</a><br /></td></tr>
<tr class="separator:gaea099f5cefb69de9042e91d7fce17878"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga088c9d9b1dfd0b32cafa1534019438c2"><td class="memItemLeft" align="right" valign="top"><a class="el" href="a00023.html#acfa9628d87130a64f95ee17c57a7c13b">PN_EXTERN</a> int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00052.html#ga088c9d9b1dfd0b32cafa1534019438c2">pn_messenger_work</a> (<a class="el" href="a00052.html#ga0d342bb795d48591ad6b3f867766b8b1">pn_messenger_t</a> *messenger, int timeout)</td></tr>
<tr class="memdesc:ga088c9d9b1dfd0b32cafa1534019438c2"><td class="mdescLeft">&#160;</td><td class="mdescRight">Sends or receives any outstanding messages queued for a messenger.  <a href="#ga088c9d9b1dfd0b32cafa1534019438c2">More...</a><br /></td></tr>
<tr class="separator:ga088c9d9b1dfd0b32cafa1534019438c2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gaf5a08242376fa805290966e89a54aa8e"><td class="memItemLeft" align="right" valign="top"><a class="el" href="a00023.html#acfa9628d87130a64f95ee17c57a7c13b">PN_EXTERN</a> int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00052.html#gaf5a08242376fa805290966e89a54aa8e">pn_messenger_interrupt</a> (<a class="el" href="a00052.html#ga0d342bb795d48591ad6b3f867766b8b1">pn_messenger_t</a> *messenger)</td></tr>
<tr class="memdesc:gaf5a08242376fa805290966e89a54aa8e"><td class="mdescLeft">&#160;</td><td class="mdescRight">Interrupt a messenger object that may be blocking in another thread.  <a href="#gaf5a08242376fa805290966e89a54aa8e">More...</a><br /></td></tr>
<tr class="separator:gaf5a08242376fa805290966e89a54aa8e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gafcdc9ca1e3d1505c5ebfb26cc95fb2bb"><td class="memItemLeft" align="right" valign="top"><a class="el" href="a00023.html#acfa9628d87130a64f95ee17c57a7c13b">PN_EXTERN</a> int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00052.html#gafcdc9ca1e3d1505c5ebfb26cc95fb2bb">pn_messenger_send</a> (<a class="el" href="a00052.html#ga0d342bb795d48591ad6b3f867766b8b1">pn_messenger_t</a> *messenger, int n)</td></tr>
<tr class="memdesc:gafcdc9ca1e3d1505c5ebfb26cc95fb2bb"><td class="mdescLeft">&#160;</td><td class="mdescRight">Send messages from a messenger's outgoing queue.  <a href="#gafcdc9ca1e3d1505c5ebfb26cc95fb2bb">More...</a><br /></td></tr>
<tr class="separator:gafcdc9ca1e3d1505c5ebfb26cc95fb2bb"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga6a766d6dfb249b2f2db8de0fc4a73990"><td class="memItemLeft" align="right" valign="top"><a class="el" href="a00023.html#acfa9628d87130a64f95ee17c57a7c13b">PN_EXTERN</a> int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00052.html#ga6a766d6dfb249b2f2db8de0fc4a73990">pn_messenger_recv</a> (<a class="el" href="a00052.html#ga0d342bb795d48591ad6b3f867766b8b1">pn_messenger_t</a> *messenger, int limit)</td></tr>
<tr class="memdesc:ga6a766d6dfb249b2f2db8de0fc4a73990"><td class="mdescLeft">&#160;</td><td class="mdescRight">Retrieve messages into a messenger's incoming queue.  <a href="#ga6a766d6dfb249b2f2db8de0fc4a73990">More...</a><br /></td></tr>
<tr class="separator:ga6a766d6dfb249b2f2db8de0fc4a73990"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga99c2fa02e546861b1cfe95bd133e2943"><td class="memItemLeft" align="right" valign="top"><a class="el" href="a00023.html#acfa9628d87130a64f95ee17c57a7c13b">PN_EXTERN</a> int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00052.html#ga99c2fa02e546861b1cfe95bd133e2943">pn_messenger_receiving</a> (<a class="el" href="a00052.html#ga0d342bb795d48591ad6b3f867766b8b1">pn_messenger_t</a> *messenger)</td></tr>
<tr class="memdesc:ga99c2fa02e546861b1cfe95bd133e2943"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get the capacity of the incoming message queue of a messenger.  <a href="#ga99c2fa02e546861b1cfe95bd133e2943">More...</a><br /></td></tr>
<tr class="separator:ga99c2fa02e546861b1cfe95bd133e2943"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga64d4dbf0f6cec27cd57d86728f43dd83"><td class="memItemLeft" align="right" valign="top"><a class="el" href="a00023.html#acfa9628d87130a64f95ee17c57a7c13b">PN_EXTERN</a> int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00052.html#ga64d4dbf0f6cec27cd57d86728f43dd83">pn_messenger_get</a> (<a class="el" href="a00052.html#ga0d342bb795d48591ad6b3f867766b8b1">pn_messenger_t</a> *messenger, <a class="el" href="a00051.html#gad9259fa9271e8844c8e05a7e8978e3b2">pn_message_t</a> *message)</td></tr>
<tr class="memdesc:ga64d4dbf0f6cec27cd57d86728f43dd83"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get the next message from the head of a messenger's incoming queue.  <a href="#ga64d4dbf0f6cec27cd57d86728f43dd83">More...</a><br /></td></tr>
<tr class="separator:ga64d4dbf0f6cec27cd57d86728f43dd83"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gab3e5a76bd09bbce0e4243b2f4e600d04"><td class="memItemLeft" align="right" valign="top"><a class="el" href="a00023.html#acfa9628d87130a64f95ee17c57a7c13b">PN_EXTERN</a> <a class="el" href="a00052.html#gab1173cfe4bcaa0a530c8035dc75f42c7">pn_tracker_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00052.html#gab3e5a76bd09bbce0e4243b2f4e600d04">pn_messenger_incoming_tracker</a> (<a class="el" href="a00052.html#ga0d342bb795d48591ad6b3f867766b8b1">pn_messenger_t</a> *messenger)</td></tr>
<tr class="memdesc:gab3e5a76bd09bbce0e4243b2f4e600d04"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get a tracker for the message most recently retrieved by <a class="el" href="a00052.html#ga64d4dbf0f6cec27cd57d86728f43dd83" title="Get the next message from the head of a messenger&#39;s incoming queue. ">pn_messenger_get()</a>.  <a href="#gab3e5a76bd09bbce0e4243b2f4e600d04">More...</a><br /></td></tr>
<tr class="separator:gab3e5a76bd09bbce0e4243b2f4e600d04"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga7281f105c4eca994486985aa1e0f1cc1"><td class="memItemLeft" align="right" valign="top"><a class="el" href="a00023.html#acfa9628d87130a64f95ee17c57a7c13b">PN_EXTERN</a> <a class="el" href="a00052.html#gabd73703511b9dae193765e9e57864291">pn_subscription_t</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00052.html#ga7281f105c4eca994486985aa1e0f1cc1">pn_messenger_incoming_subscription</a> (<a class="el" href="a00052.html#ga0d342bb795d48591ad6b3f867766b8b1">pn_messenger_t</a> *messenger)</td></tr>
<tr class="memdesc:ga7281f105c4eca994486985aa1e0f1cc1"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get the subscription of the message most recently retrieved by <a class="el" href="a00052.html#ga64d4dbf0f6cec27cd57d86728f43dd83" title="Get the next message from the head of a messenger&#39;s incoming queue. ">pn_messenger_get()</a>.  <a href="#ga7281f105c4eca994486985aa1e0f1cc1">More...</a><br /></td></tr>
<tr class="separator:ga7281f105c4eca994486985aa1e0f1cc1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga3ca5c41b89b7b47a721c06829e8c34e0"><td class="memItemLeft" align="right" valign="top"><a class="el" href="a00023.html#acfa9628d87130a64f95ee17c57a7c13b">PN_EXTERN</a> int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00052.html#ga3ca5c41b89b7b47a721c06829e8c34e0">pn_messenger_accept</a> (<a class="el" href="a00052.html#ga0d342bb795d48591ad6b3f867766b8b1">pn_messenger_t</a> *messenger, <a class="el" href="a00052.html#gab1173cfe4bcaa0a530c8035dc75f42c7">pn_tracker_t</a> tracker, int flags)</td></tr>
<tr class="memdesc:ga3ca5c41b89b7b47a721c06829e8c34e0"><td class="mdescLeft">&#160;</td><td class="mdescRight">Signal successful processing of message(s).  <a href="#ga3ca5c41b89b7b47a721c06829e8c34e0">More...</a><br /></td></tr>
<tr class="separator:ga3ca5c41b89b7b47a721c06829e8c34e0"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga2967722a8f354ea3a13c65cdbc2be78c"><td class="memItemLeft" align="right" valign="top"><a class="el" href="a00023.html#acfa9628d87130a64f95ee17c57a7c13b">PN_EXTERN</a> int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00052.html#ga2967722a8f354ea3a13c65cdbc2be78c">pn_messenger_reject</a> (<a class="el" href="a00052.html#ga0d342bb795d48591ad6b3f867766b8b1">pn_messenger_t</a> *messenger, <a class="el" href="a00052.html#gab1173cfe4bcaa0a530c8035dc75f42c7">pn_tracker_t</a> tracker, int flags)</td></tr>
<tr class="memdesc:ga2967722a8f354ea3a13c65cdbc2be78c"><td class="mdescLeft">&#160;</td><td class="mdescRight">Signal unsuccessful processing of message(s).  <a href="#ga2967722a8f354ea3a13c65cdbc2be78c">More...</a><br /></td></tr>
<tr class="separator:ga2967722a8f354ea3a13c65cdbc2be78c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga1822e0ee5af28130d13687cc0fff21c6"><td class="memItemLeft" align="right" valign="top"><a class="el" href="a00023.html#acfa9628d87130a64f95ee17c57a7c13b">PN_EXTERN</a> int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00052.html#ga1822e0ee5af28130d13687cc0fff21c6">pn_messenger_outgoing</a> (<a class="el" href="a00052.html#ga0d342bb795d48591ad6b3f867766b8b1">pn_messenger_t</a> *messenger)</td></tr>
<tr class="memdesc:ga1822e0ee5af28130d13687cc0fff21c6"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get the number of messages in the outgoing message queue of a messenger.  <a href="#ga1822e0ee5af28130d13687cc0fff21c6">More...</a><br /></td></tr>
<tr class="separator:ga1822e0ee5af28130d13687cc0fff21c6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gaeb207b3f558e04abf7336bc603cc669d"><td class="memItemLeft" align="right" valign="top"><a class="el" href="a00023.html#acfa9628d87130a64f95ee17c57a7c13b">PN_EXTERN</a> int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00052.html#gaeb207b3f558e04abf7336bc603cc669d">pn_messenger_incoming</a> (<a class="el" href="a00052.html#ga0d342bb795d48591ad6b3f867766b8b1">pn_messenger_t</a> *messenger)</td></tr>
<tr class="memdesc:gaeb207b3f558e04abf7336bc603cc669d"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get the number of messages in the incoming message queue of a messenger.  <a href="#gaeb207b3f558e04abf7336bc603cc669d">More...</a><br /></td></tr>
<tr class="separator:gaeb207b3f558e04abf7336bc603cc669d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga58608dc581eba5d56abc89d05377913e"><td class="memItemLeft" align="right" valign="top"><a class="el" href="a00023.html#acfa9628d87130a64f95ee17c57a7c13b">PN_EXTERN</a> int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00052.html#ga58608dc581eba5d56abc89d05377913e">pn_messenger_route</a> (<a class="el" href="a00052.html#ga0d342bb795d48591ad6b3f867766b8b1">pn_messenger_t</a> *messenger, const char *pattern, const char *address)</td></tr>
<tr class="memdesc:ga58608dc581eba5d56abc89d05377913e"><td class="mdescLeft">&#160;</td><td class="mdescRight">Adds a routing rule to a Messenger's internal routing table.  <a href="#ga58608dc581eba5d56abc89d05377913e">More...</a><br /></td></tr>
<tr class="separator:ga58608dc581eba5d56abc89d05377913e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga1d109dcc2178b777e950d0ae664d5085"><td class="memItemLeft" align="right" valign="top"><a class="el" href="a00023.html#acfa9628d87130a64f95ee17c57a7c13b">PN_EXTERN</a> int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00052.html#ga1d109dcc2178b777e950d0ae664d5085">pn_messenger_rewrite</a> (<a class="el" href="a00052.html#ga0d342bb795d48591ad6b3f867766b8b1">pn_messenger_t</a> *messenger, const char *pattern, const char *address)</td></tr>
<tr class="memdesc:ga1d109dcc2178b777e950d0ae664d5085"><td class="mdescLeft">&#160;</td><td class="mdescRight">Rewrite message addresses prior to transmission.  <a href="#ga1d109dcc2178b777e950d0ae664d5085">More...</a><br /></td></tr>
<tr class="separator:ga1d109dcc2178b777e950d0ae664d5085"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga48d37f185faf99c4270b41658e9bb7d8"><td class="memItemLeft" align="right" valign="top"><a class="el" href="a00023.html#acfa9628d87130a64f95ee17c57a7c13b">PN_EXTERN</a> <a class="el" href="a00054.html#gab7034170bf6367b989281d8ddaa87b09">pn_selectable_t</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00052.html#ga48d37f185faf99c4270b41658e9bb7d8">pn_messenger_selectable</a> (<a class="el" href="a00052.html#ga0d342bb795d48591ad6b3f867766b8b1">pn_messenger_t</a> *messenger)</td></tr>
<tr class="memdesc:ga48d37f185faf99c4270b41658e9bb7d8"><td class="mdescLeft">&#160;</td><td class="mdescRight">Extract <a class="el" href="a00054.html#gab7034170bf6367b989281d8ddaa87b09">selectables </a> from a passive messenger.  <a href="#ga48d37f185faf99c4270b41658e9bb7d8">More...</a><br /></td></tr>
<tr class="separator:ga48d37f185faf99c4270b41658e9bb7d8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gac031418719d3afdd29cc6e64a3d97d67"><td class="memItemLeft" align="right" valign="top"><a class="el" href="a00023.html#acfa9628d87130a64f95ee17c57a7c13b">PN_EXTERN</a> <a class="el" href="a00060.html#gad337c365b498106064ec28e00e5fb6dd">pn_timestamp_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00052.html#gac031418719d3afdd29cc6e64a3d97d67">pn_messenger_deadline</a> (<a class="el" href="a00052.html#ga0d342bb795d48591ad6b3f867766b8b1">pn_messenger_t</a> *messenger)</td></tr>
<tr class="memdesc:gac031418719d3afdd29cc6e64a3d97d67"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get the nearest deadline for selectables associated with a messenger.  <a href="#gac031418719d3afdd29cc6e64a3d97d67">More...</a><br /></td></tr>
<tr class="separator:gac031418719d3afdd29cc6e64a3d97d67"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<h2 class="groupheader">Macro Definition Documentation</h2>
<a class="anchor" id="ga6c2e8d006ec05b913fa1e6dc510d23b9"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define PN_CUMULATIVE&#160;&#160;&#160;(0x1)</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Indicates that an accept or reject should operate cumulatively. </p>

</div>
</div>
<h2 class="groupheader">Typedef Documentation</h2>
<a class="anchor" id="ga0d342bb795d48591ad6b3f867766b8b1"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">typedef struct <a class="el" href="a00052.html#ga0d342bb795d48591ad6b3f867766b8b1">pn_messenger_t</a> <a class="el" href="a00052.html#ga0d342bb795d48591ad6b3f867766b8b1">pn_messenger_t</a></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>A <a class="el" href="a00052.html#ga0d342bb795d48591ad6b3f867766b8b1" title="A pn_messenger_t provides a high level interface for sending and receiving messages (See pn_message_t...">pn_messenger_t</a> provides a high level interface for sending and receiving messages (See <a class="el" href="a00051.html#gad9259fa9271e8844c8e05a7e8978e3b2" title="An AMQP Message object. ">pn_message_t</a>). </p>
<p>Every messenger contains a single logical queue of incoming messages and a single logical queue of outgoing messages. The messages in these queues may be destined for, or originate from, a variety of addresses.</p>
<p>The messenger interface is single-threaded. All methods except one (<a class="el" href="a00052.html#gaf5a08242376fa805290966e89a54aa8e" title="Interrupt a messenger object that may be blocking in another thread. ">pn_messenger_interrupt()</a>) are intended to be used by one thread at a time.</p>
<h1>Address Syntax </h1>
<p>An address has the following form::</p>
<p>[ amqp[s]:// ] [user[:password]@] domain [/[name]]</p>
<p>Where domain can be one of::</p>
<p>host | host:port | ip | ip:port | name</p>
<p>The following are valid examples of addresses:</p>
<ul>
<li>example.org</li>
<li>example.org:1234</li>
<li>amqp://example.org</li>
<li>amqps://example.org</li>
<li>example.org/incoming</li>
<li>amqps://example.org/outgoing</li>
<li>amqps://fred:<a href="#" onclick="location.href='mai'+'lto:'+'tru'+'st'+'no1'+'@e'+'xam'+'pl'+'e.o'+'rg'; return false;">trust<span style="display: none;">.nosp@m.</span>no1@<span style="display: none;">.nosp@m.</span>examp<span style="display: none;">.nosp@m.</span>le.o<span style="display: none;">.nosp@m.</span>rg</a></li>
<li>127.0.0.1:1234</li>
<li>amqps://127.0.0.1:1234</li>
</ul>
<h1>Sending &amp; Receiving Messages </h1>
<p>The messenger API works in conjuction with the <a class="el" href="a00051.html#gad9259fa9271e8844c8e05a7e8978e3b2" title="An AMQP Message object. ">pn_message_t</a> API. A <a class="el" href="a00051.html#gad9259fa9271e8844c8e05a7e8978e3b2" title="An AMQP Message object. ">pn_message_t</a> is a mutable holder of message content.</p>
<p>The <a class="el" href="a00052.html#gadc93816636d614c8ea2abdeef1b99573" title="Puts a message onto the messenger&#39;s outgoing queue. ">pn_messenger_put()</a> operation copies content from the supplied <a class="el" href="a00051.html#gad9259fa9271e8844c8e05a7e8978e3b2" title="An AMQP Message object. ">pn_message_t</a> to the outgoing queue, and may send queued messages if it can do so without blocking. The <a class="el" href="a00052.html#gafcdc9ca1e3d1505c5ebfb26cc95fb2bb" title="Send messages from a messenger&#39;s outgoing queue. ">pn_messenger_send()</a> operation blocks until it has sent the requested number of messages, or until a timeout interrupts the attempt.</p>
<p>pn_messenger_t *messenger = pn_messenger(NULL); pn_message_t *message = <a class="el" href="a00051.html#ga29b1ebb0e3d0f4663e679eb92b5dfdb9" title="Construct a new pn_message_t. ">pn_message()</a>; char subject[1024]; for (int i = 0; i &lt; 3; i++) { pn_message_set_address(message, "amqp://host/queue"); sprintf(subject, "Hello World! %i", i); pn_message_set_subject(message, subject); pn_messenger_put(messenger, message) pn_messenger_send(messenger);</p>
<p>Similarly, the <a class="el" href="a00052.html#ga6a766d6dfb249b2f2db8de0fc4a73990" title="Retrieve messages into a messenger&#39;s incoming queue. ">pn_messenger_recv()</a> method receives messages into the incoming queue, and may block as it attempts to receive up to the requested number of messages, or until the timeout is reached. It may receive fewer than the requested number. The <a class="el" href="a00052.html#ga64d4dbf0f6cec27cd57d86728f43dd83" title="Get the next message from the head of a messenger&#39;s incoming queue. ">pn_messenger_get()</a> method pops the eldest message off the incoming queue and copies its content into the supplied <a class="el" href="a00051.html#gad9259fa9271e8844c8e05a7e8978e3b2" title="An AMQP Message object. ">pn_message_t</a> object. It will not block.</p>
<p>pn_messenger_t *messenger = pn_messenger(NULL); pn_message_t *message = <a class="el" href="a00051.html#ga29b1ebb0e3d0f4663e679eb92b5dfdb9" title="Construct a new pn_message_t. ">pn_message()</a> pn_messenger_recv(messenger): while (pn_messenger_incoming(messenger) &gt; 0) { pn_messenger_get(messenger, message); printf("%s", message.subject); }</p>
<p>Output: Hello World 0 Hello World 1 Hello World 2</p>
<p>The blocking flag allows you to turn off blocking behavior entirely, in which case <a class="el" href="a00052.html#gafcdc9ca1e3d1505c5ebfb26cc95fb2bb" title="Send messages from a messenger&#39;s outgoing queue. ">pn_messenger_send()</a> and <a class="el" href="a00052.html#ga6a766d6dfb249b2f2db8de0fc4a73990" title="Retrieve messages into a messenger&#39;s incoming queue. ">pn_messenger_recv()</a> will do whatever they can without blocking, and then return. You can then look at the number of incoming and outgoing messages to see how much outstanding work still remains. </p>

</div>
</div>
<a class="anchor" id="gabd73703511b9dae193765e9e57864291"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">typedef struct <a class="el" href="a00052.html#gabd73703511b9dae193765e9e57864291">pn_subscription_t</a> <a class="el" href="a00052.html#gabd73703511b9dae193765e9e57864291">pn_subscription_t</a></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>A subscription is a request for incoming messages. </p>
<dl class="todo"><dt><b><a class="el" href="a00062.html#_todo000003">Todo:</a></b></dt><dd>currently the subscription API is under developed, this should allow more explicit control over subscription properties and behaviour </dd></dl>

</div>
</div>
<a class="anchor" id="gab1173cfe4bcaa0a530c8035dc75f42c7"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">typedef int64_t <a class="el" href="a00052.html#gab1173cfe4bcaa0a530c8035dc75f42c7">pn_tracker_t</a></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Trackers provide a lightweight handle used to track the status of incoming and outgoing deliveries. </p>

</div>
</div>
<h2 class="groupheader">Enumeration Type Documentation</h2>
<a class="anchor" id="ga242e4ee54b9c0a416443c7da5f6e045b"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">enum <a class="el" href="a00052.html#ga242e4ee54b9c0a416443c7da5f6e045b">pn_status_t</a></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Describes all the possible states for a message associated with a given tracker. </p>
<table class="fieldtable">
<tr><th colspan="2">Enumerator</th></tr><tr><td class="fieldname"><a class="anchor" id="gga242e4ee54b9c0a416443c7da5f6e045ba0b46b1041679460baaba2ddcdb2173f2"></a>PN_STATUS_UNKNOWN&#160;</td><td class="fielddoc">
<p>The tracker is unknown. </p>
</td></tr>
<tr><td class="fieldname"><a class="anchor" id="gga242e4ee54b9c0a416443c7da5f6e045ba4b0354a77173cd75c69159e15c23f611"></a>PN_STATUS_PENDING&#160;</td><td class="fielddoc">
<p>The message is in flight. </p>
<p>For outgoing messages, use <a class="el" href="a00052.html#ga8f41166af1cd932733d7c9cf10c22913" title="Check if the delivery associated with a given tracker is still waiting to be sent. ">pn_messenger_buffered</a> to see if it has been sent or not. </p>
</td></tr>
<tr><td class="fieldname"><a class="anchor" id="gga242e4ee54b9c0a416443c7da5f6e045ba693fd9044a50a4f02e842d04a4bf1467"></a>PN_STATUS_ACCEPTED&#160;</td><td class="fielddoc">
<p>The message was accepted. </p>
</td></tr>
<tr><td class="fieldname"><a class="anchor" id="gga242e4ee54b9c0a416443c7da5f6e045baf109df703952744009b3547f3b8f32bf"></a>PN_STATUS_REJECTED&#160;</td><td class="fielddoc">
<p>The message was rejected. </p>
</td></tr>
<tr><td class="fieldname"><a class="anchor" id="gga242e4ee54b9c0a416443c7da5f6e045ba67079750477effb7935df83381c47852"></a>PN_STATUS_RELEASED&#160;</td><td class="fielddoc">
<p>The message was released. </p>
</td></tr>
<tr><td class="fieldname"><a class="anchor" id="gga242e4ee54b9c0a416443c7da5f6e045ba77d94a6b6b745eef9307f144b57e81e8"></a>PN_STATUS_MODIFIED&#160;</td><td class="fielddoc">
<p>The message was modified. </p>
</td></tr>
<tr><td class="fieldname"><a class="anchor" id="gga242e4ee54b9c0a416443c7da5f6e045ba1239e8ada7eabe2aeab98f2c881cd2ee"></a>PN_STATUS_ABORTED&#160;</td><td class="fielddoc">
<p>The message was aborted. </p>
</td></tr>
<tr><td class="fieldname"><a class="anchor" id="gga242e4ee54b9c0a416443c7da5f6e045ba1181bc7f51502ae11ed240866cd64583"></a>PN_STATUS_SETTLED&#160;</td><td class="fielddoc">
<p>The remote party has settled the message. </p>
</td></tr>
</table>

</div>
</div>
<h2 class="groupheader">Function Documentation</h2>
<a class="anchor" id="ga5770958f2ad363cbce4e49ddde2f0249"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="a00023.html#acfa9628d87130a64f95ee17c57a7c13b">PN_EXTERN</a> <a class="el" href="a00052.html#ga0d342bb795d48591ad6b3f867766b8b1">pn_messenger_t</a>* pn_messenger </td>
          <td>(</td>
          <td class="paramtype">const char *&#160;</td>
          <td class="paramname"><em>name</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Construct a new <a class="el" href="a00052.html#ga0d342bb795d48591ad6b3f867766b8b1" title="A pn_messenger_t provides a high level interface for sending and receiving messages (See pn_message_t...">pn_messenger_t</a> with the given name. </p>
<p>The name is global. If a NULL name is supplied, a UUID based name will be chosen.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">name</td><td>the name of the messenger or NULL</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>pointer to a new <a class="el" href="a00052.html#ga0d342bb795d48591ad6b3f867766b8b1" title="A pn_messenger_t provides a high level interface for sending and receiving messages (See pn_message_t...">pn_messenger_t</a> </dd></dl>

</div>
</div>
<a class="anchor" id="ga3ca5c41b89b7b47a721c06829e8c34e0"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="a00023.html#acfa9628d87130a64f95ee17c57a7c13b">PN_EXTERN</a> int pn_messenger_accept </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="a00052.html#ga0d342bb795d48591ad6b3f867766b8b1">pn_messenger_t</a> *&#160;</td>
          <td class="paramname"><em>messenger</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="a00052.html#gab1173cfe4bcaa0a530c8035dc75f42c7">pn_tracker_t</a>&#160;</td>
          <td class="paramname"><em>tracker</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>flags</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Signal successful processing of message(s). </p>
<p>With no flags this operation will signal the sender that the message referenced by the tracker was accepted. If the PN_CUMULATIVE flag is set, this operation will also reject all pending messages prior to the message indicated by the tracker.</p>
<p>Note that when a message is accepted or rejected multiple times, either explicitly, or implicitly through use of the <a class="el" href="a00052.html#ga6c2e8d006ec05b913fa1e6dc510d23b9" title="Indicates that an accept or reject should operate cumulatively. ">PN_CUMULATIVE</a> flag, only the first outcome applies. For example if a sequence of three messages are received: M1, M2, M3, and M2 is rejected, and M3 is cumulatively accepted, M2 will remain rejected and only M1 and M3 will be considered accepted.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">messenger</td><td>a messenger object </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">tracker</td><td>an incoming tracker </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">flags</td><td>0 or PN_CUMULATIVE </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>an error code or zero on success </dd></dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="a00020.html">error.h</a> </dd></dl>

</div>
</div>
<a class="anchor" id="ga8f41166af1cd932733d7c9cf10c22913"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="a00023.html#acfa9628d87130a64f95ee17c57a7c13b">PN_EXTERN</a> bool pn_messenger_buffered </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="a00052.html#ga0d342bb795d48591ad6b3f867766b8b1">pn_messenger_t</a> *&#160;</td>
          <td class="paramname"><em>messenger</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="a00052.html#gab1173cfe4bcaa0a530c8035dc75f42c7">pn_tracker_t</a>&#160;</td>
          <td class="paramname"><em>tracker</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Check if the delivery associated with a given tracker is still waiting to be sent. </p>
<p>Note that returning false does not imply that the delivery was actually sent over the wire.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">messenger</td><td>the messenger </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">tracker</td><td>the tracker identifying the delivery</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>true if the delivery is still buffered </dd></dl>

</div>
</div>
<a class="anchor" id="gac031418719d3afdd29cc6e64a3d97d67"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="a00023.html#acfa9628d87130a64f95ee17c57a7c13b">PN_EXTERN</a> <a class="el" href="a00060.html#gad337c365b498106064ec28e00e5fb6dd">pn_timestamp_t</a> pn_messenger_deadline </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="a00052.html#ga0d342bb795d48591ad6b3f867766b8b1">pn_messenger_t</a> *&#160;</td>
          <td class="paramname"><em>messenger</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Get the nearest deadline for selectables associated with a messenger. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">messenger</td><td>a messenger object </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>the nearest deadline </dd></dl>

</div>
</div>
<a class="anchor" id="ga916bf706b4b2e6eb60fb5ad679a230d2"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="a00023.html#acfa9628d87130a64f95ee17c57a7c13b">PN_EXTERN</a> int pn_messenger_errno </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="a00052.html#ga0d342bb795d48591ad6b3f867766b8b1">pn_messenger_t</a> *&#160;</td>
          <td class="paramname"><em>messenger</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Get the code for a messenger's most recent error. </p>
<p>The error code is initialized to zero at messenger creation. The error number is "sticky" i.e. error codes are not reset to 0 at the end of successful API calls. You can use <a class="el" href="a00052.html#ga66fff60287c43a457518382216464c5b" title="Get a messenger&#39;s error object. ">pn_messenger_error</a> to access the messenger's error object and clear explicitly if desired.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">messenger</td><td>the messenger to check for errors </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>an error code or zero if there is no error </dd></dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="a00020.html">error.h</a> </dd></dl>

</div>
</div>
<a class="anchor" id="ga66fff60287c43a457518382216464c5b"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="a00023.html#acfa9628d87130a64f95ee17c57a7c13b">PN_EXTERN</a> <a class="el" href="a00020.html#a24a289d5b32c9bd8a775600a5af83d52">pn_error_t</a>* pn_messenger_error </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="a00052.html#ga0d342bb795d48591ad6b3f867766b8b1">pn_messenger_t</a> *&#160;</td>
          <td class="paramname"><em>messenger</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Get a messenger's error object. </p>
<p>Returns a pointer to a pn_error_t that is valid until the messenger is freed. The pn_error_* API allows you to access the text, error number, and lets you set or clear the error code explicitly.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">messenger</td><td>the messenger to check for errors </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>a pointer to the messenger's error descriptor </dd></dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="a00020.html">error.h</a> </dd></dl>

</div>
</div>
<a class="anchor" id="gaf57143f98134870941839f9b665e87af"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="a00023.html#acfa9628d87130a64f95ee17c57a7c13b">PN_EXTERN</a> void pn_messenger_free </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="a00052.html#ga0d342bb795d48591ad6b3f867766b8b1">pn_messenger_t</a> *&#160;</td>
          <td class="paramname"><em>messenger</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Frees a Messenger. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">messenger</td><td>the messenger to free (or NULL), no longer valid on return </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="ga64d4dbf0f6cec27cd57d86728f43dd83"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="a00023.html#acfa9628d87130a64f95ee17c57a7c13b">PN_EXTERN</a> int pn_messenger_get </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="a00052.html#ga0d342bb795d48591ad6b3f867766b8b1">pn_messenger_t</a> *&#160;</td>
          <td class="paramname"><em>messenger</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="a00051.html#gad9259fa9271e8844c8e05a7e8978e3b2">pn_message_t</a> *&#160;</td>
          <td class="paramname"><em>message</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Get the next message from the head of a messenger's incoming queue. </p>
<p>The get operation copies the message data from the head of the messenger's incoming queue into the provided <a class="el" href="a00051.html#gad9259fa9271e8844c8e05a7e8978e3b2" title="An AMQP Message object. ">pn_message_t</a> object. If provided <a class="el" href="a00051.html#gad9259fa9271e8844c8e05a7e8978e3b2" title="An AMQP Message object. ">pn_message_t</a> pointer is NULL, the head essage will be discarded. This operation will return <a class="el" href="a00020.html#a9e0f51b097f94293cdbbdeb5422a27a3">PN_EOS</a> if there are no messages left on the incoming queue.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">messenger</td><td>a messenger object </td></tr>
    <tr><td class="paramdir">[out]</td><td class="paramname">message</td><td>upon return contains the message from the head of the queue </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>an error code or zero on success </dd></dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="a00020.html">error.h</a> </dd></dl>

</div>
</div>
<a class="anchor" id="gaca5d33643cc6db452d4dd456f774f936"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="a00023.html#acfa9628d87130a64f95ee17c57a7c13b">PN_EXTERN</a> const char* pn_messenger_get_certificate </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="a00052.html#ga0d342bb795d48591ad6b3f867766b8b1">pn_messenger_t</a> *&#160;</td>
          <td class="paramname"><em>messenger</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Get the certificate path. </p>
<p>This value may be set by pn_messenger_set_certificate. The default certificate path is null.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">messenger</td><td>the messenger </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>the certificate file path </dd></dl>

</div>
</div>
<a class="anchor" id="gad8bdfb8f2d2ea1e8a873d048728b488f"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="a00023.html#acfa9628d87130a64f95ee17c57a7c13b">PN_EXTERN</a> int pn_messenger_get_incoming_window </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="a00052.html#ga0d342bb795d48591ad6b3f867766b8b1">pn_messenger_t</a> *&#160;</td>
          <td class="paramname"><em>messenger</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Get the size of a messenger's incoming window. </p>
<p>The size of a messenger's incoming window limits the number of messages that can be accepted or rejected using trackers. Messages <em>do not</em> enter this window when they have been received (<a class="el" href="a00052.html#ga6a766d6dfb249b2f2db8de0fc4a73990" title="Retrieve messages into a messenger&#39;s incoming queue. ">pn_messenger_recv</a>) onto you incoming queue. Messages only enter this window only when you access them using pn_messenger_get. If your incoming window size is N, and you get N+1 messages without explicitly accepting or rejecting the oldest message, then it will be implicitly accepted when it falls off the edge of the incoming window.</p>
<p>The default incoming window size is 0.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">messenger</td><td>a messenger object </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>the incoming window for the messenger </dd></dl>

</div>
</div>
<a class="anchor" id="ga8f889c65a77b807bb249e116649f9cd3"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="a00023.html#acfa9628d87130a64f95ee17c57a7c13b">PN_EXTERN</a> int pn_messenger_get_outgoing_window </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="a00052.html#ga0d342bb795d48591ad6b3f867766b8b1">pn_messenger_t</a> *&#160;</td>
          <td class="paramname"><em>messenger</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Get the size of a messenger's outgoing window. </p>
<p>The size of the outgoing window limits the number of messages whose status you can check with a tracker. A message enters this window when you call pn_messenger_put on the message. For example, if your outgoing window size is 10, and you call pn_messenger_put 12 times, new status information will no longer be available for the first 2 messages.</p>
<p>The default outgoing window size is 0.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">messenger</td><td>a messenger object </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>the outgoing window for the messenger </dd></dl>

</div>
</div>
<a class="anchor" id="gaca818b10d8ab415ff21b2df30e645588"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="a00023.html#acfa9628d87130a64f95ee17c57a7c13b">PN_EXTERN</a> const char* pn_messenger_get_password </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="a00052.html#ga0d342bb795d48591ad6b3f867766b8b1">pn_messenger_t</a> *&#160;</td>
          <td class="paramname"><em>messenger</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Gets the private key file password for a messenger. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">messenger</td><td>a messenger object </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>password for the private key file </dd></dl>

</div>
</div>
<a class="anchor" id="gaa5e3ea6839e156d22afe0e8254e47b2d"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="a00023.html#acfa9628d87130a64f95ee17c57a7c13b">PN_EXTERN</a> const char* pn_messenger_get_private_key </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="a00052.html#ga0d342bb795d48591ad6b3f867766b8b1">pn_messenger_t</a> *&#160;</td>
          <td class="paramname"><em>messenger</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Gets the private key file for a messenger. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">messenger</td><td>a messenger object </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>the messenger's private key file path </dd></dl>

</div>
</div>
<a class="anchor" id="ga873eea2b97af52a138a2e1db7f4556e2"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="a00023.html#acfa9628d87130a64f95ee17c57a7c13b">PN_EXTERN</a> int pn_messenger_get_timeout </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="a00052.html#ga0d342bb795d48591ad6b3f867766b8b1">pn_messenger_t</a> *&#160;</td>
          <td class="paramname"><em>messenger</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Gets the timeout for a messenger object. </p>
<p>See <a class="el" href="a00052.html#ga621e7edf471c5cf32d7251ed0a468877" title="Set the default timeout for a messenger. ">pn_messenger_set_timeout()</a> for details.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">messenger</td><td>a messenger object </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>the timeout for the messenger, in milliseconds </dd></dl>

</div>
</div>
<a class="anchor" id="ga21ab008d0e2218de2bb2ff19d66e214c"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="a00023.html#acfa9628d87130a64f95ee17c57a7c13b">PN_EXTERN</a> const char* pn_messenger_get_trusted_certificates </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="a00052.html#ga0d342bb795d48591ad6b3f867766b8b1">pn_messenger_t</a> *&#160;</td>
          <td class="paramname"><em>messenger</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Gets the trusted certificates database for a messenger. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">messenger</td><td>a messenger object </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>path to the trusted certificates database </dd></dl>

</div>
</div>
<a class="anchor" id="gaeb207b3f558e04abf7336bc603cc669d"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="a00023.html#acfa9628d87130a64f95ee17c57a7c13b">PN_EXTERN</a> int pn_messenger_incoming </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="a00052.html#ga0d342bb795d48591ad6b3f867766b8b1">pn_messenger_t</a> *&#160;</td>
          <td class="paramname"><em>messenger</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Get the number of messages in the incoming message queue of a messenger. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">messenger</td><td>a messenger object </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>the incoming queue depth </dd></dl>

</div>
</div>
<a class="anchor" id="ga7281f105c4eca994486985aa1e0f1cc1"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="a00023.html#acfa9628d87130a64f95ee17c57a7c13b">PN_EXTERN</a> <a class="el" href="a00052.html#gabd73703511b9dae193765e9e57864291">pn_subscription_t</a>* pn_messenger_incoming_subscription </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="a00052.html#ga0d342bb795d48591ad6b3f867766b8b1">pn_messenger_t</a> *&#160;</td>
          <td class="paramname"><em>messenger</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Get the subscription of the message most recently retrieved by <a class="el" href="a00052.html#ga64d4dbf0f6cec27cd57d86728f43dd83" title="Get the next message from the head of a messenger&#39;s incoming queue. ">pn_messenger_get()</a>. </p>
<p>This operation will return NULL if <a class="el" href="a00052.html#ga64d4dbf0f6cec27cd57d86728f43dd83" title="Get the next message from the head of a messenger&#39;s incoming queue. ">pn_messenger_get()</a> has never been succesfully called.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">messenger</td><td>a messenger object </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>a pn_subscription_t or NULL </dd></dl>

</div>
</div>
<a class="anchor" id="gab3e5a76bd09bbce0e4243b2f4e600d04"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="a00023.html#acfa9628d87130a64f95ee17c57a7c13b">PN_EXTERN</a> <a class="el" href="a00052.html#gab1173cfe4bcaa0a530c8035dc75f42c7">pn_tracker_t</a> pn_messenger_incoming_tracker </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="a00052.html#ga0d342bb795d48591ad6b3f867766b8b1">pn_messenger_t</a> *&#160;</td>
          <td class="paramname"><em>messenger</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Get a tracker for the message most recently retrieved by <a class="el" href="a00052.html#ga64d4dbf0f6cec27cd57d86728f43dd83" title="Get the next message from the head of a messenger&#39;s incoming queue. ">pn_messenger_get()</a>. </p>
<p>A tracker for an incoming message allows you to accept or reject the associated message. It can also be used for cumulative accept/reject operations for the associated message and all prior messages as well.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">messenger</td><td>a messenger object </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>a pn_tracker_t or an undefined value if pn_messenger_get has never been called for the given messenger </dd></dl>

</div>
</div>
<a class="anchor" id="gaf5a08242376fa805290966e89a54aa8e"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="a00023.html#acfa9628d87130a64f95ee17c57a7c13b">PN_EXTERN</a> int pn_messenger_interrupt </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="a00052.html#ga0d342bb795d48591ad6b3f867766b8b1">pn_messenger_t</a> *&#160;</td>
          <td class="paramname"><em>messenger</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Interrupt a messenger object that may be blocking in another thread. </p>
<p>The messenger interface is single-threaded. This is the only messenger function intended to be concurrently called from another thread. It will interrupt any messenger function which is currently blocking and cause it to return with a status of <a class="el" href="a00020.html#a53284958be0c328f90ca3a4a0793d965">PN_INTR</a>.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">messenger</td><td>the Messenger to interrupt </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="gaf95b3b54f4ee2a97db09e83ea5a0f8c3"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="a00023.html#acfa9628d87130a64f95ee17c57a7c13b">PN_EXTERN</a> bool pn_messenger_is_blocking </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="a00052.html#ga0d342bb795d48591ad6b3f867766b8b1">pn_messenger_t</a> *&#160;</td>
          <td class="paramname"><em>messenger</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Check if a messenger is in blocking mode. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">messenger</td><td>a messenger object </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>true if blocking has been enabled, false otherwise </dd></dl>

</div>
</div>
<a class="anchor" id="gaf24ba09549f555a0323f7ae0be1978b1"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="a00023.html#acfa9628d87130a64f95ee17c57a7c13b">PN_EXTERN</a> bool pn_messenger_is_passive </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="a00052.html#ga0d342bb795d48591ad6b3f867766b8b1">pn_messenger_t</a> *&#160;</td>
          <td class="paramname"><em>messenger</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Check if a messenger is in passive mode. </p>
<p>A messenger that is in passive mode will never attempt to perform I/O internally, but instead will make all internal file descriptors accessible through <a class="el" href="a00052.html#ga48d37f185faf99c4270b41658e9bb7d8" title="Extract selectables  from a passive messenger. ">pn_messenger_selectable()</a> to be serviced externally. This can be useful for integrating messenger into an external event loop.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">messenger</td><td>a messenger object </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>true if the messenger is in passive mode, false otherwise </dd></dl>

</div>
</div>
<a class="anchor" id="gaa300a232e25dbe6be6dca3949da82145"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="a00023.html#acfa9628d87130a64f95ee17c57a7c13b">PN_EXTERN</a> const char* pn_messenger_name </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="a00052.html#ga0d342bb795d48591ad6b3f867766b8b1">pn_messenger_t</a> *&#160;</td>
          <td class="paramname"><em>messenger</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Get the name of a messenger. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">messenger</td><td>a messenger object </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>the name of the messenger </dd></dl>

</div>
</div>
<a class="anchor" id="ga1822e0ee5af28130d13687cc0fff21c6"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="a00023.html#acfa9628d87130a64f95ee17c57a7c13b">PN_EXTERN</a> int pn_messenger_outgoing </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="a00052.html#ga0d342bb795d48591ad6b3f867766b8b1">pn_messenger_t</a> *&#160;</td>
          <td class="paramname"><em>messenger</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Get the number of messages in the outgoing message queue of a messenger. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">messenger</td><td>a messenger object </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>the outgoing queue depth </dd></dl>

</div>
</div>
<a class="anchor" id="gaea099f5cefb69de9042e91d7fce17878"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="a00023.html#acfa9628d87130a64f95ee17c57a7c13b">PN_EXTERN</a> <a class="el" href="a00052.html#gab1173cfe4bcaa0a530c8035dc75f42c7">pn_tracker_t</a> pn_messenger_outgoing_tracker </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="a00052.html#ga0d342bb795d48591ad6b3f867766b8b1">pn_messenger_t</a> *&#160;</td>
          <td class="paramname"><em>messenger</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Get a tracker for the outgoing message most recently given to pn_messenger_put. </p>
<p>This tracker may be used with pn_messenger_status to determine the delivery status of the message, as long as the message is still within your outgoing window.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">messenger</td><td>the messenger</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>a pn_tracker_t or an undefined value if pn_messenger_get has never been called for the given messenger </dd></dl>

</div>
</div>
<a class="anchor" id="gadc93816636d614c8ea2abdeef1b99573"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="a00023.html#acfa9628d87130a64f95ee17c57a7c13b">PN_EXTERN</a> int pn_messenger_put </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="a00052.html#ga0d342bb795d48591ad6b3f867766b8b1">pn_messenger_t</a> *&#160;</td>
          <td class="paramname"><em>messenger</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="a00051.html#gad9259fa9271e8844c8e05a7e8978e3b2">pn_message_t</a> *&#160;</td>
          <td class="paramname"><em>msg</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Puts a message onto the messenger's outgoing queue. </p>
<p>The message may also be sent if transmission would not cause blocking. This call will not block.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">messenger</td><td>a messenger object </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">msg</td><td>a message to put on the messenger's outgoing queue </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>an error code or zero on success </dd></dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="a00020.html">error.h</a> </dd></dl>

</div>
</div>
<a class="anchor" id="ga99c2fa02e546861b1cfe95bd133e2943"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="a00023.html#acfa9628d87130a64f95ee17c57a7c13b">PN_EXTERN</a> int pn_messenger_receiving </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="a00052.html#ga0d342bb795d48591ad6b3f867766b8b1">pn_messenger_t</a> *&#160;</td>
          <td class="paramname"><em>messenger</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Get the capacity of the incoming message queue of a messenger. </p>
<p>Note this count does not include those messages already available on the incoming queue (</p><dl class="section see"><dt>See also</dt><dd><a class="el" href="a00052.html#gaeb207b3f558e04abf7336bc603cc669d" title="Get the number of messages in the incoming message queue of a messenger. ">pn_messenger_incoming()</a>). Rather it returns the number of incoming queue entries available for receiving messages.</dd></dl>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">messenger</td><td>the messenger </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="ga6a766d6dfb249b2f2db8de0fc4a73990"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="a00023.html#acfa9628d87130a64f95ee17c57a7c13b">PN_EXTERN</a> int pn_messenger_recv </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="a00052.html#ga0d342bb795d48591ad6b3f867766b8b1">pn_messenger_t</a> *&#160;</td>
          <td class="paramname"><em>messenger</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>limit</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Retrieve messages into a messenger's incoming queue. </p>
<p>Instructs a messenger to receive up to <code>limit</code> messages into the incoming message queue of a messenger. If <code>limit</code> is -1, the messenger will receive as many messages as it can buffer internally. If the messenger is in blocking mode, this call will block until at least one message is available in the incoming queue.</p>
<p>Each call to pn_messenger_recv replaces the previous receive operation, so pn_messenger_recv(messenger, 0) will cancel any outstanding receive.</p>
<p>After receiving messages onto your incoming queue use <a class="el" href="a00052.html#ga64d4dbf0f6cec27cd57d86728f43dd83" title="Get the next message from the head of a messenger&#39;s incoming queue. ">pn_messenger_get()</a> to access message content.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">messenger</td><td>the messenger </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">limit</td><td>the maximum number of messages to receive or -1 to to receive as many messages as it can buffer internally. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>an error code or zero on success </dd></dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="a00020.html">error.h</a> </dd></dl>

</div>
</div>
<a class="anchor" id="ga2967722a8f354ea3a13c65cdbc2be78c"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="a00023.html#acfa9628d87130a64f95ee17c57a7c13b">PN_EXTERN</a> int pn_messenger_reject </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="a00052.html#ga0d342bb795d48591ad6b3f867766b8b1">pn_messenger_t</a> *&#160;</td>
          <td class="paramname"><em>messenger</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="a00052.html#gab1173cfe4bcaa0a530c8035dc75f42c7">pn_tracker_t</a>&#160;</td>
          <td class="paramname"><em>tracker</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>flags</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Signal unsuccessful processing of message(s). </p>
<p>With no flags this operation will signal the sender that the message indicated by the tracker was rejected. If the PN_CUMULATIVE flag is used this operation will also reject all pending messages prior to the message indicated by the tracker.</p>
<p>Note that when a message is accepted or rejected multiple times, either explicitly, or implicitly through use of the <a class="el" href="a00052.html#ga6c2e8d006ec05b913fa1e6dc510d23b9" title="Indicates that an accept or reject should operate cumulatively. ">PN_CUMULATIVE</a> flag, only the first outcome applies. For example if a sequence of three messages are received: M1, M2, M3, and M2 is accepted, and M3 is cumulatively rejected, M2 will remain accepted and only M1 and M3 will be considered rejected.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">messenger</td><td>a messenger object </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">tracker</td><td>an incoming tracker </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">flags</td><td>0 or PN_CUMULATIVE </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>an error code or zero on success </dd></dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="a00020.html">error.h</a> </dd></dl>

</div>
</div>
<a class="anchor" id="ga1d109dcc2178b777e950d0ae664d5085"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="a00023.html#acfa9628d87130a64f95ee17c57a7c13b">PN_EXTERN</a> int pn_messenger_rewrite </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="a00052.html#ga0d342bb795d48591ad6b3f867766b8b1">pn_messenger_t</a> *&#160;</td>
          <td class="paramname"><em>messenger</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const char *&#160;</td>
          <td class="paramname"><em>pattern</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const char *&#160;</td>
          <td class="paramname"><em>address</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Rewrite message addresses prior to transmission. </p>
<p>This operation is similar to pn_messenger_route, except that the destination of the message is determined before the message address is rewritten.</p>
<p>The outgoing address is only rewritten after routing has been finalized. If a message has an outgoing address of "amqp://0.0.0.0:5678", and a rewriting rule that changes its outgoing address to "foo", it will still arrive at the peer that is listening on "amqp://0.0.0.0:5678", but when it arrives there, the receiver will see its outgoing address as "foo".</p>
<p>The default rewrite rule removes username and password from addresses before they are transmitted.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">messenger</td><td>a messenger object </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">pattern</td><td>a glob pattern to select messages </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">address</td><td>an address indicating outgoing address rewrite </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>an error code or zero on success </dd></dl>

</div>
</div>
<a class="anchor" id="ga58608dc581eba5d56abc89d05377913e"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="a00023.html#acfa9628d87130a64f95ee17c57a7c13b">PN_EXTERN</a> int pn_messenger_route </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="a00052.html#ga0d342bb795d48591ad6b3f867766b8b1">pn_messenger_t</a> *&#160;</td>
          <td class="paramname"><em>messenger</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const char *&#160;</td>
          <td class="paramname"><em>pattern</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const char *&#160;</td>
          <td class="paramname"><em>address</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Adds a routing rule to a Messenger's internal routing table. </p>
<p>The route procedure may be used to influence how a messenger will internally treat a given address or class of addresses. Every call to the route procedure will result in messenger appending a routing rule to its internal routing table.</p>
<p>Whenever a message is presented to a messenger for delivery, it will match the address of this message against the set of routing rules in order. The first rule to match will be triggered, and instead of routing based on the address presented in the message, the messenger will route based on the address supplied in the rule.</p>
<p>The pattern matching syntax supports two types of matches, a '' will match any character except a '/', and a '*' will match any character including a '/'.</p>
<p>A routing address is specified as a normal AMQP address, however it may additionally use substitution variables from the pattern match that triggered the rule.</p>
<p>Any message sent to "foo" will be routed to "amqp://foo.com":</p>
<p>pn_messenger_route("foo", "amqp://foo.com");</p>
<p>Any message sent to "foobar" will be routed to "amqp://foo.com/bar":</p>
<p>pn_messenger_route("foobar", "amqp://foo.com/bar");</p>
<p>Any message sent to bar/&lt;path&gt; will be routed to the corresponding path within the amqp://bar.com domain:</p>
<p>pn_messenger_route("bar/*", "amqp://bar.com/$1");</p>
<p>Route all messages over TLS:</p>
<p>pn_messenger_route("amqp:*", "amqps:$1")</p>
<p>Supply credentials for foo.com:</p>
<p>pn_messenger_route("amqp://foo.com/*", "amqp://user:password@foo.com/$1");</p>
<p>Supply credentials for all domains:</p>
<p>pn_messenger_route("amqp://*", "amqp://user:password@$1");</p>
<p>Route all addresses through a single proxy while preserving the original destination:</p>
<p>pn_messenger_route("amqp://%/*", "amqp://user:password@proxy/$1/$2");</p>
<p>Route any address through a single broker:</p>
<p>pn_messenger_route("*", "amqp://user:password@broker/$1");</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">messenger</td><td>the Messenger </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">pattern</td><td>a glob pattern </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">address</td><td>an address indicating alternative routing</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>an error code or zero on success </dd></dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="a00020.html">error.h</a> </dd></dl>

</div>
</div>
<a class="anchor" id="ga48d37f185faf99c4270b41658e9bb7d8"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="a00023.html#acfa9628d87130a64f95ee17c57a7c13b">PN_EXTERN</a> <a class="el" href="a00054.html#gab7034170bf6367b989281d8ddaa87b09">pn_selectable_t</a>* pn_messenger_selectable </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="a00052.html#ga0d342bb795d48591ad6b3f867766b8b1">pn_messenger_t</a> *&#160;</td>
          <td class="paramname"><em>messenger</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Extract <a class="el" href="a00054.html#gab7034170bf6367b989281d8ddaa87b09">selectables </a> from a passive messenger. </p>
<p>A messenger that is in passive mode (see <a class="el" href="a00052.html#gaf24ba09549f555a0323f7ae0be1978b1" title="Check if a messenger is in passive mode. ">pn_messenger_is_passive()</a>) will never attempt to perform any I/O internally, but instead make its internal file descriptors available for external processing via the <a class="el" href="a00052.html#ga48d37f185faf99c4270b41658e9bb7d8" title="Extract selectables  from a passive messenger. ">pn_messenger_selectable()</a> operation.</p>
<p>An application wishing to perform I/O on behalf of a passive messenger must extract all available selectables by calling this operation until it returns NULL. The <a class="el" href="a00054.html#gab7034170bf6367b989281d8ddaa87b09" title="A selectable object provides an interface that can be used to incorporate proton&#39;s I/O into third par...">pn_selectable_t</a> interface may then be used by the application to perform I/O outside the messenger.</p>
<p>All selectables returned by this operation must be serviced until they reach a terminal state and then freed. See <a class="el" href="a00054.html#ga61382d23348378e41b4a474ca33f5bf7" title="Check if a selectable is in the terminal state. ">pn_selectable_is_terminal()</a> for more details.</p>
<p>By default any given selectable will only ever be returned once by this operation, however if the selectable's registered flag is set to true (see <a class="el" href="a00054.html#ga863a4c0fd0ea5cc83d5227647495d6c2" title="Set the registered flag for a selectable. ">pn_selectable_set_registered()</a>), then the selectable will be returned whenever its interest set may have changed.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">messenger</td><td>a messenger object </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>the next selectable, or NULL if there are none left </dd></dl>

</div>
</div>
<a class="anchor" id="gafcdc9ca1e3d1505c5ebfb26cc95fb2bb"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="a00023.html#acfa9628d87130a64f95ee17c57a7c13b">PN_EXTERN</a> int pn_messenger_send </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="a00052.html#ga0d342bb795d48591ad6b3f867766b8b1">pn_messenger_t</a> *&#160;</td>
          <td class="paramname"><em>messenger</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>n</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Send messages from a messenger's outgoing queue. </p>
<p>If a messenger is in blocking mode (see <a class="el" href="a00052.html#gaf95b3b54f4ee2a97db09e83ea5a0f8c3" title="Check if a messenger is in blocking mode. ">pn_messenger_is_blocking()</a>), this operation will block until N messages have been sent from the outgoing queue. A value of -1 for N means "all messages in the outgoing queue". See below for a full definition of what sent from the outgoing queue means.</p>
<p>Any blocking will end once the messenger's configured timeout (if any) has been reached. When this happens an error code of <a class="el" href="a00020.html#a8bcf4aa6de1a6530713839bcae97d4a2">PN_TIMEOUT</a> is returned.</p>
<p>If the messenger is in non blocking mode, this call will return an error code of <a class="el" href="a00020.html#afbb090366e9dbf9a5bb0735df1e23d33">PN_INPROGRESS</a> if it is unable to send the requested number of messages without blocking.</p>
<p>A message is considered to be sent from the outgoing queue when its status has been fully determined. This does not necessarily mean the message was successfully sent to the final recipient though, for example of the receiver rejects the message, the final status will be <a class="el" href="a00052.html#gga242e4ee54b9c0a416443c7da5f6e045baf109df703952744009b3547f3b8f32bf" title="The message was rejected. ">PN_STATUS_REJECTED</a>. Similarly, if a message is sent to an invalid address, it may be removed from the outgoing queue without ever even being transmitted. In this case the final status will be <a class="el" href="a00052.html#gga242e4ee54b9c0a416443c7da5f6e045ba1239e8ada7eabe2aeab98f2c881cd2ee" title="The message was aborted. ">PN_STATUS_ABORTED</a>.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">messenger</td><td>a messenger object </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">n</td><td>the number of messages to send</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>an error code or zero on success </dd></dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="a00020.html">error.h</a> </dd></dl>

</div>
</div>
<a class="anchor" id="gacd33f1218d6b6baed75462a3c9e31a81"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="a00023.html#acfa9628d87130a64f95ee17c57a7c13b">PN_EXTERN</a> int pn_messenger_set_blocking </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="a00052.html#ga0d342bb795d48591ad6b3f867766b8b1">pn_messenger_t</a> *&#160;</td>
          <td class="paramname"><em>messenger</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>blocking</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Enable or disable blocking behavior for a messenger during calls to <a class="el" href="a00052.html#gafcdc9ca1e3d1505c5ebfb26cc95fb2bb" title="Send messages from a messenger&#39;s outgoing queue. ">pn_messenger_send</a> and <a class="el" href="a00052.html#ga6a766d6dfb249b2f2db8de0fc4a73990" title="Retrieve messages into a messenger&#39;s incoming queue. ">pn_messenger_recv</a>. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">messenger</td><td>a messenger object </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">blocking</td><td>the value of the blocking flag </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>an error code or zero if there is no error </dd></dl>

</div>
</div>
<a class="anchor" id="ga310d7de19eb8943a2818f53d9b45cfc9"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="a00023.html#acfa9628d87130a64f95ee17c57a7c13b">PN_EXTERN</a> int pn_messenger_set_certificate </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="a00052.html#ga0d342bb795d48591ad6b3f867766b8b1">pn_messenger_t</a> *&#160;</td>
          <td class="paramname"><em>messenger</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const char *&#160;</td>
          <td class="paramname"><em>certificate</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Sets the path that will be used to get the certificate that will be used to identify this messenger to its peers. </p>
<p>The validity of the path is not checked by this function.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">messenger</td><td>the messenger </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">certificate</td><td>a path to a certificate file </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>an error code of zero if there is no error </dd></dl>

</div>
</div>
<a class="anchor" id="ga0725c3cac4ae83188a54ed2308fc9e9a"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="a00023.html#acfa9628d87130a64f95ee17c57a7c13b">PN_EXTERN</a> int pn_messenger_set_incoming_window </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="a00052.html#ga0d342bb795d48591ad6b3f867766b8b1">pn_messenger_t</a> *&#160;</td>
          <td class="paramname"><em>messenger</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>window</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Set the size of a messenger's incoming window. </p>
<p>See <a class="el" href="a00052.html#gad8bdfb8f2d2ea1e8a873d048728b488f" title="Get the size of a messenger&#39;s incoming window. ">pn_messenger_get_incoming_window()</a> for details.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">messenger</td><td>a messenger object </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">window</td><td>the number of deliveries to track </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>an error or zero on success </dd></dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="a00020.html">error.h</a> </dd></dl>

</div>
</div>
<a class="anchor" id="ga6e1ccb0c5a46d4f354b1b73ff5363531"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="a00023.html#acfa9628d87130a64f95ee17c57a7c13b">PN_EXTERN</a> int pn_messenger_set_outgoing_window </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="a00052.html#ga0d342bb795d48591ad6b3f867766b8b1">pn_messenger_t</a> *&#160;</td>
          <td class="paramname"><em>messenger</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>window</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Set the size of a messenger's outgoing window. </p>
<p>See <a class="el" href="a00052.html#ga8f889c65a77b807bb249e116649f9cd3" title="Get the size of a messenger&#39;s outgoing window. ">pn_messenger_get_outgoing_window()</a> for details.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">messenger</td><td>a messenger object </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">window</td><td>the number of deliveries to track </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>an error or zero on success </dd></dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="a00020.html">error.h</a> </dd></dl>

</div>
</div>
<a class="anchor" id="ga71ac6697b6fc8a39360dee9989f3a99b"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="a00023.html#acfa9628d87130a64f95ee17c57a7c13b">PN_EXTERN</a> int pn_messenger_set_passive </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="a00052.html#ga0d342bb795d48591ad6b3f867766b8b1">pn_messenger_t</a> *&#160;</td>
          <td class="paramname"><em>messenger</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>passive</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Set the passive mode for a messenger. </p>
<p>See <a class="el" href="a00052.html#gaf24ba09549f555a0323f7ae0be1978b1" title="Check if a messenger is in passive mode. ">pn_messenger_is_passive()</a> for details on passive mode.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">messenger</td><td>a messenger object </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">passive</td><td>true to enable passive mode, false to disable passive mode </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>an error code or zero on success </dd></dl>

</div>
</div>
<a class="anchor" id="ga9b1e530ba6d77b9e1f3a6e1e44cb7cf0"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="a00023.html#acfa9628d87130a64f95ee17c57a7c13b">PN_EXTERN</a> int pn_messenger_set_password </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="a00052.html#ga0d342bb795d48591ad6b3f867766b8b1">pn_messenger_t</a> *&#160;</td>
          <td class="paramname"><em>messenger</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const char *&#160;</td>
          <td class="paramname"><em>password</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Sets the private key password for a messenger. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">messenger</td><td>a messenger object </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">password</td><td>the password for the private key file</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>an error code of zero if there is no error </dd></dl>

</div>
</div>
<a class="anchor" id="gaac399276ec13c5bb2755b55aeddbc3cb"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="a00023.html#acfa9628d87130a64f95ee17c57a7c13b">PN_EXTERN</a> int pn_messenger_set_private_key </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="a00052.html#ga0d342bb795d48591ad6b3f867766b8b1">pn_messenger_t</a> *&#160;</td>
          <td class="paramname"><em>messenger</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const char *&#160;</td>
          <td class="paramname"><em>private_key</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Set path to the private key that was used to sign the certificate. </p>
<p>See <a class="el" href="a00052.html#ga310d7de19eb8943a2818f53d9b45cfc9" title="Sets the path that will be used to get the certificate that will be used to identify this messenger t...">pn_messenger_set_certificate</a></p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">messenger</td><td>a messenger object </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">private_key</td><td>a path to a private key file </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>an error code of zero if there is no error </dd></dl>

</div>
</div>
<a class="anchor" id="ga621e7edf471c5cf32d7251ed0a468877"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="a00023.html#acfa9628d87130a64f95ee17c57a7c13b">PN_EXTERN</a> int pn_messenger_set_timeout </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="a00052.html#ga0d342bb795d48591ad6b3f867766b8b1">pn_messenger_t</a> *&#160;</td>
          <td class="paramname"><em>messenger</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>timeout</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Set the default timeout for a messenger. </p>
<p>Any messenger call that blocks during execution will stop blocking and return control when this timeout is reached, if you have set it to a value greater than zero. The timeout is expressed in milliseconds.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">messenger</td><td>a messenger object </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">timeout</td><td>a new timeout for the messenger, in milliseconds </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>an error code or zero if there is no error </dd></dl>

</div>
</div>
<a class="anchor" id="ga91d3800c61ab27f32c8c0fc513ef085c"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="a00023.html#acfa9628d87130a64f95ee17c57a7c13b">PN_EXTERN</a> int pn_messenger_set_trusted_certificates </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="a00052.html#ga0d342bb795d48591ad6b3f867766b8b1">pn_messenger_t</a> *&#160;</td>
          <td class="paramname"><em>messenger</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const char *&#160;</td>
          <td class="paramname"><em>cert_db</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Sets the trusted certificates database for a messenger. </p>
<p>The messenger will use this database to validate the certificate provided by the peer.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">messenger</td><td>a messenger object </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">cert_db</td><td>a path to the certificates database</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>an error code of zero if there is no error </dd></dl>

</div>
</div>
<a class="anchor" id="ga318b28252ff310f1956bc892ffaffaf3"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="a00023.html#acfa9628d87130a64f95ee17c57a7c13b">PN_EXTERN</a> int pn_messenger_settle </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="a00052.html#ga0d342bb795d48591ad6b3f867766b8b1">pn_messenger_t</a> *&#160;</td>
          <td class="paramname"><em>messenger</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="a00052.html#gab1173cfe4bcaa0a530c8035dc75f42c7">pn_tracker_t</a>&#160;</td>
          <td class="paramname"><em>tracker</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>flags</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Frees a Messenger from tracking the status associated with a given tracker. </p>
<p>Use the PN_CUMULATIVE flag to indicate everything up to (and including) the given tracker.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">messenger</td><td>the Messenger </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">tracker</td><td>identifies a delivery </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">flags</td><td>0 or PN_CUMULATIVE</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>an error code or zero on success </dd></dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="a00020.html">error.h</a> </dd></dl>

</div>
</div>
<a class="anchor" id="gaeb8b0b3a04c4dc4dbf83a66cbb8f54f1"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="a00023.html#acfa9628d87130a64f95ee17c57a7c13b">PN_EXTERN</a> int pn_messenger_start </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="a00052.html#ga0d342bb795d48591ad6b3f867766b8b1">pn_messenger_t</a> *&#160;</td>
          <td class="paramname"><em>messenger</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Currently a no-op placeholder. </p>
<p>For future compatibility, do not send or receive messages before starting the messenger.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">messenger</td><td>the messenger to start </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>an error code or zero on success </dd></dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="a00020.html">error.h</a> </dd></dl>

</div>
</div>
<a class="anchor" id="ga95063950449210b20ffb60bf2ea8f24b"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="a00023.html#acfa9628d87130a64f95ee17c57a7c13b">PN_EXTERN</a> <a class="el" href="a00052.html#ga242e4ee54b9c0a416443c7da5f6e045b">pn_status_t</a> pn_messenger_status </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="a00052.html#ga0d342bb795d48591ad6b3f867766b8b1">pn_messenger_t</a> *&#160;</td>
          <td class="paramname"><em>messenger</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="a00052.html#gab1173cfe4bcaa0a530c8035dc75f42c7">pn_tracker_t</a>&#160;</td>
          <td class="paramname"><em>tracker</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Track the status of a delivery. </p>
<p>Get the current status of the delivery associated with the supplied tracker. This may return PN_STATUS_UNKOWN if the tracker has fallen outside the incoming/outgoing tracking windows of the messenger.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">messenger</td><td>the messenger </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">tracker</td><td>the tracker identifying the delivery </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>a status code for the delivery </dd></dl>

</div>
</div>
<a class="anchor" id="ga40373fb89d70f6c3b7a4b9a0e9c2d3e4"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="a00023.html#acfa9628d87130a64f95ee17c57a7c13b">PN_EXTERN</a> int pn_messenger_stop </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="a00052.html#ga0d342bb795d48591ad6b3f867766b8b1">pn_messenger_t</a> *&#160;</td>
          <td class="paramname"><em>messenger</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Stops a messenger. </p>
<p>Stopping a messenger will perform an orderly shutdown of all underlying connections. This may require some time. If the messenger is in non blocking mode (see <a class="el" href="a00052.html#gaf95b3b54f4ee2a97db09e83ea5a0f8c3" title="Check if a messenger is in blocking mode. ">pn_messenger_is_blocking</a>), this operation will return PN_INPROGRESS if it cannot finish immediately. In that case, you can use <a class="el" href="a00052.html#gaba050f36861e436a18378a8a1ff835e0" title="Returns true if a messenger is in the stopped state. ">pn_messenger_stopped()</a> to determine when the messenger has finished stopping.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">messenger</td><td>the messenger to stop </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>an error code or zero on success </dd></dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="a00020.html">error.h</a> </dd></dl>

</div>
</div>
<a class="anchor" id="gaba050f36861e436a18378a8a1ff835e0"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="a00023.html#acfa9628d87130a64f95ee17c57a7c13b">PN_EXTERN</a> bool pn_messenger_stopped </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="a00052.html#ga0d342bb795d48591ad6b3f867766b8b1">pn_messenger_t</a> *&#160;</td>
          <td class="paramname"><em>messenger</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Returns true if a messenger is in the stopped state. </p>
<p>This function does not block.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">messenger</td><td>the messenger to stop </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="gaf1f1bfe4894d971f0b8d679bcab5cae6"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="a00023.html#acfa9628d87130a64f95ee17c57a7c13b">PN_EXTERN</a> <a class="el" href="a00052.html#gabd73703511b9dae193765e9e57864291">pn_subscription_t</a>* pn_messenger_subscribe </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="a00052.html#ga0d342bb795d48591ad6b3f867766b8b1">pn_messenger_t</a> *&#160;</td>
          <td class="paramname"><em>messenger</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const char *&#160;</td>
          <td class="paramname"><em>source</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Subscribes a messenger to messages from the specified source. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">messenger</td><td>the messenger to subscribe </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">source</td><td></td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>a subscription </dd></dl>

</div>
</div>
<a class="anchor" id="ga088c9d9b1dfd0b32cafa1534019438c2"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="a00023.html#acfa9628d87130a64f95ee17c57a7c13b">PN_EXTERN</a> int pn_messenger_work </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="a00052.html#ga0d342bb795d48591ad6b3f867766b8b1">pn_messenger_t</a> *&#160;</td>
          <td class="paramname"><em>messenger</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>timeout</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Sends or receives any outstanding messages queued for a messenger. </p>
<p>This will block for the indicated timeout.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">messenger</td><td>the Messenger </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">timeout</td><td>the maximum time to block in milliseconds, -1 == forever, 0 == do not block</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>0 if no work to do, &lt; 0 if error, or 1 if work was done. </dd></dl>

</div>
</div>
<a class="anchor" id="ga177587d2aa7a6fee101a111e40765deb"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="a00023.html#acfa9628d87130a64f95ee17c57a7c13b">PN_EXTERN</a> const char* pn_subscription_address </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="a00052.html#gabd73703511b9dae193765e9e57864291">pn_subscription_t</a> *&#160;</td>
          <td class="paramname"><em>sub</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Get the source address of a subscription. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">sub</td><td>a subscription object </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>the subscription's source address </dd></dl>

</div>
</div>
<a class="anchor" id="gae8e9057967d3ca4d81318b147cd3f5ce"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="a00023.html#acfa9628d87130a64f95ee17c57a7c13b">PN_EXTERN</a> void* pn_subscription_get_context </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="a00052.html#gabd73703511b9dae193765e9e57864291">pn_subscription_t</a> *&#160;</td>
          <td class="paramname"><em>sub</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Get a subscription's application context. </p>
<p>See <a class="el" href="a00052.html#ga6ab59170c21b3a53e6f0c9b4a271ebce" title="Set an application context for a subscription. ">pn_subscription_set_context()</a>.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">sub</td><td>a subscription object </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>the subscription's application context </dd></dl>

</div>
</div>
<a class="anchor" id="ga6ab59170c21b3a53e6f0c9b4a271ebce"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="a00023.html#acfa9628d87130a64f95ee17c57a7c13b">PN_EXTERN</a> void pn_subscription_set_context </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="a00052.html#gabd73703511b9dae193765e9e57864291">pn_subscription_t</a> *&#160;</td>
          <td class="paramname"><em>sub</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">void *&#160;</td>
          <td class="paramname"><em>context</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Set an application context for a subscription. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">sub</td><td>a subscription object </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">context</td><td>the application context for the subscription </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Mon Nov 17 2014 10:28:04 for proton by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.8
</small></address>
</body>
</html>