/usr/share/proton-0.14.0/docs/api-py/proton-pysrc.html is in python-qpid-proton-doc 0.14.0-5.1ubuntu1.
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 2061 2062 2063 2064 2065 2066 2067 2068 2069 2070 2071 2072 2073 2074 2075 2076 2077 2078 2079 2080 2081 2082 2083 2084 2085 2086 2087 2088 2089 2090 2091 2092 2093 2094 2095 2096 2097 2098 2099 2100 2101 2102 2103 2104 2105 2106 2107 2108 2109 2110 2111 2112 2113 2114 2115 2116 2117 2118 2119 2120 2121 2122 2123 2124 2125 2126 2127 2128 2129 2130 2131 2132 2133 2134 2135 2136 2137 2138 2139 2140 2141 2142 2143 2144 2145 2146 2147 2148 2149 2150 2151 2152 2153 2154 2155 2156 2157 2158 2159 2160 2161 2162 2163 2164 2165 2166 2167 2168 2169 2170 2171 2172 2173 2174 2175 2176 2177 2178 2179 2180 2181 2182 2183 2184 2185 2186 2187 2188 2189 2190 2191 2192 2193 2194 2195 2196 2197 2198 2199 2200 2201 2202 2203 2204 2205 2206 2207 2208 2209 2210 2211 2212 2213 2214 2215 2216 2217 2218 2219 2220 2221 2222 2223 2224 2225 2226 2227 2228 2229 2230 2231 2232 2233 2234 2235 2236 2237 2238 2239 2240 2241 2242 2243 2244 2245 2246 2247 2248 2249 2250 2251 2252 2253 2254 2255 2256 2257 2258 2259 2260 2261 2262 2263 2264 2265 2266 2267 2268 2269 2270 2271 2272 2273 2274 2275 2276 2277 2278 2279 2280 2281 2282 2283 2284 2285 2286 2287 2288 2289 2290 2291 2292 2293 2294 2295 2296 2297 2298 2299 2300 2301 2302 2303 2304 2305 2306 2307 2308 2309 2310 2311 2312 2313 2314 2315 2316 2317 2318 2319 2320 2321 2322 2323 2324 2325 2326 2327 2328 2329 2330 2331 2332 2333 2334 2335 2336 2337 2338 2339 2340 2341 2342 2343 2344 2345 2346 2347 2348 2349 2350 2351 2352 2353 2354 2355 2356 2357 2358 2359 2360 2361 2362 2363 2364 2365 2366 2367 2368 2369 2370 2371 2372 2373 2374 2375 2376 2377 2378 2379 2380 2381 2382 2383 2384 2385 2386 2387 2388 2389 2390 2391 2392 2393 2394 2395 2396 2397 2398 2399 2400 2401 2402 2403 2404 2405 2406 2407 2408 2409 2410 2411 2412 2413 2414 2415 2416 2417 2418 2419 2420 2421 2422 2423 2424 2425 2426 2427 2428 2429 2430 2431 2432 2433 2434 2435 2436 2437 2438 2439 2440 2441 2442 2443 2444 2445 2446 2447 2448 2449 2450 2451 2452 2453 2454 2455 2456 2457 2458 2459 2460 2461 2462 2463 2464 2465 2466 2467 2468 2469 2470 2471 2472 2473 2474 2475 2476 2477 2478 2479 2480 2481 2482 2483 2484 2485 2486 2487 2488 2489 2490 2491 2492 2493 2494 2495 2496 2497 2498 2499 2500 2501 2502 2503 2504 2505 2506 2507 2508 2509 2510 2511 2512 2513 2514 2515 2516 2517 2518 2519 2520 2521 2522 2523 2524 2525 2526 2527 2528 2529 2530 2531 2532 2533 2534 2535 2536 2537 2538 2539 2540 2541 2542 2543 2544 2545 2546 2547 2548 2549 2550 2551 2552 2553 2554 2555 2556 2557 2558 2559 2560 2561 2562 2563 2564 2565 2566 2567 2568 2569 2570 2571 2572 2573 2574 2575 2576 2577 2578 2579 2580 2581 2582 2583 2584 2585 2586 2587 2588 2589 2590 2591 2592 2593 2594 2595 2596 2597 2598 2599 2600 2601 2602 2603 2604 2605 2606 2607 2608 2609 2610 2611 2612 2613 2614 2615 2616 2617 2618 2619 2620 2621 2622 2623 2624 2625 2626 2627 2628 2629 2630 2631 2632 2633 2634 2635 2636 2637 2638 2639 2640 2641 2642 2643 2644 2645 2646 2647 2648 2649 2650 2651 2652 2653 2654 2655 2656 2657 2658 2659 2660 2661 2662 2663 2664 2665 2666 2667 2668 2669 2670 2671 2672 2673 2674 2675 2676 2677 2678 2679 2680 2681 2682 2683 2684 2685 2686 2687 2688 2689 2690 2691 2692 2693 2694 2695 2696 2697 2698 2699 2700 2701 2702 2703 2704 2705 2706 2707 2708 2709 2710 2711 2712 2713 2714 2715 2716 2717 2718 2719 2720 2721 2722 2723 2724 2725 2726 2727 2728 2729 2730 2731 2732 2733 2734 2735 2736 2737 2738 2739 2740 2741 2742 2743 2744 2745 2746 2747 2748 2749 2750 2751 2752 2753 2754 2755 2756 2757 2758 2759 2760 2761 2762 2763 2764 2765 2766 2767 2768 2769 2770 2771 2772 2773 2774 2775 2776 2777 2778 2779 2780 2781 2782 2783 2784 2785 2786 2787 2788 2789 2790 2791 2792 2793 2794 2795 2796 2797 2798 2799 2800 2801 2802 2803 2804 2805 2806 2807 2808 2809 2810 2811 2812 2813 2814 2815 2816 2817 2818 2819 2820 2821 2822 2823 2824 2825 2826 2827 2828 2829 2830 2831 2832 2833 2834 2835 2836 2837 2838 2839 2840 2841 2842 2843 2844 2845 2846 2847 2848 2849 2850 2851 2852 2853 2854 2855 2856 2857 2858 2859 2860 2861 2862 2863 2864 2865 2866 2867 2868 2869 2870 2871 2872 2873 2874 2875 2876 2877 2878 2879 2880 2881 2882 2883 2884 2885 2886 2887 2888 2889 2890 2891 2892 2893 2894 2895 2896 2897 2898 2899 2900 2901 2902 2903 2904 2905 2906 2907 2908 2909 2910 2911 2912 2913 2914 2915 2916 2917 2918 2919 2920 2921 2922 2923 2924 2925 2926 2927 2928 2929 2930 2931 2932 2933 2934 2935 2936 2937 2938 2939 2940 2941 2942 2943 2944 2945 2946 2947 2948 2949 2950 2951 2952 2953 2954 2955 2956 2957 2958 2959 2960 2961 2962 2963 2964 2965 2966 2967 2968 2969 2970 2971 2972 2973 2974 2975 2976 2977 2978 2979 2980 2981 2982 2983 2984 2985 2986 2987 2988 2989 2990 2991 2992 2993 2994 2995 2996 2997 2998 2999 3000 3001 3002 3003 3004 3005 3006 3007 3008 3009 3010 3011 3012 3013 3014 3015 3016 3017 3018 3019 3020 3021 3022 3023 3024 3025 3026 3027 3028 3029 3030 3031 3032 3033 3034 3035 3036 3037 3038 3039 3040 3041 3042 3043 3044 3045 3046 3047 3048 3049 3050 3051 3052 3053 3054 3055 3056 3057 3058 3059 3060 3061 3062 3063 3064 3065 3066 3067 3068 3069 3070 3071 3072 3073 3074 3075 3076 3077 3078 3079 3080 3081 3082 3083 3084 3085 3086 3087 3088 3089 3090 3091 3092 3093 3094 3095 3096 3097 3098 3099 3100 3101 3102 3103 3104 3105 3106 3107 3108 3109 3110 3111 3112 3113 3114 3115 3116 3117 3118 3119 3120 3121 3122 3123 3124 3125 3126 3127 3128 3129 3130 3131 3132 3133 3134 3135 3136 3137 3138 3139 3140 3141 3142 3143 3144 3145 3146 3147 3148 3149 3150 3151 3152 3153 3154 3155 3156 3157 3158 3159 3160 3161 3162 3163 3164 3165 3166 3167 3168 3169 3170 3171 3172 3173 3174 3175 3176 3177 3178 3179 3180 3181 3182 3183 3184 3185 3186 3187 3188 3189 3190 3191 3192 3193 3194 3195 3196 3197 3198 3199 3200 3201 3202 3203 3204 3205 3206 3207 3208 3209 3210 3211 3212 3213 3214 3215 3216 3217 3218 3219 3220 3221 3222 3223 3224 3225 3226 3227 3228 3229 3230 3231 3232 3233 3234 3235 3236 3237 3238 3239 3240 3241 3242 3243 3244 3245 3246 3247 3248 3249 3250 3251 3252 3253 3254 3255 3256 3257 3258 3259 3260 3261 3262 3263 3264 3265 3266 3267 3268 3269 3270 3271 3272 3273 3274 3275 3276 3277 3278 3279 3280 3281 3282 3283 3284 3285 3286 3287 3288 3289 3290 3291 3292 3293 3294 3295 3296 3297 3298 3299 3300 3301 3302 3303 3304 3305 3306 3307 3308 3309 3310 3311 3312 3313 3314 3315 3316 3317 3318 3319 3320 3321 3322 3323 3324 3325 3326 3327 3328 3329 3330 3331 3332 3333 3334 3335 3336 3337 3338 3339 3340 3341 3342 3343 3344 3345 3346 3347 3348 3349 3350 3351 3352 3353 3354 3355 3356 3357 3358 3359 3360 3361 3362 3363 3364 3365 3366 3367 3368 3369 3370 3371 3372 3373 3374 3375 3376 3377 3378 3379 3380 3381 3382 3383 3384 3385 3386 3387 3388 3389 3390 3391 3392 3393 3394 3395 3396 3397 3398 3399 3400 3401 3402 3403 3404 3405 3406 3407 3408 3409 3410 3411 3412 3413 3414 3415 3416 3417 3418 3419 3420 3421 3422 3423 3424 3425 3426 3427 3428 3429 3430 3431 3432 3433 3434 3435 3436 3437 3438 3439 3440 3441 3442 3443 3444 3445 3446 3447 3448 3449 3450 3451 3452 3453 3454 3455 3456 3457 3458 3459 3460 3461 3462 3463 3464 3465 3466 3467 3468 3469 3470 3471 3472 3473 3474 3475 3476 3477 3478 3479 3480 3481 3482 3483 3484 3485 3486 3487 3488 3489 3490 3491 3492 3493 3494 3495 3496 3497 3498 3499 3500 3501 3502 3503 3504 3505 3506 3507 3508 3509 3510 3511 3512 3513 3514 3515 3516 3517 3518 3519 3520 3521 3522 3523 3524 3525 3526 3527 3528 3529 3530 3531 3532 3533 3534 3535 3536 3537 3538 3539 3540 3541 3542 3543 3544 3545 3546 3547 3548 3549 3550 3551 3552 3553 3554 3555 3556 3557 3558 3559 3560 3561 3562 3563 3564 3565 3566 3567 3568 3569 3570 3571 3572 3573 3574 3575 3576 3577 3578 3579 3580 3581 3582 3583 3584 3585 3586 3587 3588 3589 3590 3591 3592 3593 3594 3595 3596 3597 3598 3599 3600 3601 3602 3603 3604 3605 3606 3607 3608 3609 3610 3611 3612 3613 3614 3615 3616 3617 3618 3619 3620 3621 3622 3623 3624 3625 3626 3627 3628 3629 3630 3631 3632 3633 3634 3635 3636 3637 3638 3639 3640 3641 3642 3643 3644 3645 3646 3647 3648 3649 3650 3651 3652 3653 3654 3655 3656 3657 3658 3659 3660 3661 3662 3663 3664 3665 3666 3667 3668 3669 3670 3671 3672 3673 3674 3675 3676 3677 3678 3679 3680 3681 3682 3683 3684 3685 3686 3687 3688 3689 3690 3691 3692 3693 3694 3695 3696 3697 3698 3699 3700 3701 3702 3703 3704 3705 3706 3707 3708 3709 3710 3711 3712 3713 3714 3715 3716 3717 3718 3719 3720 3721 3722 3723 3724 3725 3726 3727 3728 3729 3730 3731 3732 3733 3734 3735 3736 3737 3738 3739 3740 3741 3742 3743 3744 3745 3746 3747 3748 3749 3750 3751 3752 3753 3754 3755 3756 3757 3758 3759 3760 3761 3762 3763 3764 3765 3766 3767 3768 3769 3770 3771 3772 3773 3774 3775 3776 3777 3778 3779 3780 3781 3782 3783 3784 3785 3786 3787 3788 3789 3790 3791 3792 3793 3794 3795 3796 3797 3798 3799 3800 3801 3802 3803 3804 3805 3806 3807 3808 3809 3810 3811 3812 3813 3814 3815 3816 3817 3818 3819 3820 3821 3822 3823 3824 3825 3826 3827 3828 3829 3830 3831 3832 3833 3834 3835 3836 3837 3838 3839 3840 3841 3842 3843 3844 3845 3846 3847 3848 3849 3850 3851 3852 3853 3854 3855 3856 3857 3858 3859 3860 3861 3862 3863 3864 3865 3866 3867 3868 3869 3870 3871 3872 3873 3874 3875 3876 3877 3878 3879 3880 3881 3882 3883 3884 3885 3886 3887 3888 3889 3890 3891 3892 3893 3894 3895 3896 3897 3898 3899 3900 3901 3902 3903 3904 3905 3906 3907 3908 3909 3910 3911 3912 3913 3914 3915 3916 3917 3918 3919 3920 3921 3922 3923 3924 3925 3926 3927 3928 3929 3930 3931 3932 3933 3934 3935 3936 3937 3938 3939 3940 3941 3942 3943 3944 3945 3946 3947 3948 3949 3950 3951 3952 3953 3954 3955 3956 3957 3958 3959 3960 3961 3962 3963 3964 3965 3966 3967 3968 3969 3970 3971 3972 3973 3974 3975 3976 3977 3978 3979 3980 3981 3982 3983 3984 3985 3986 3987 3988 3989 3990 3991 3992 3993 3994 3995 3996 3997 3998 3999 4000 4001 4002 4003 4004 4005 4006 4007 4008 4009 4010 4011 4012 4013 4014 4015 4016 4017 4018 4019 4020 4021 4022 4023 4024 4025 4026 4027 4028 4029 4030 4031 4032 4033 4034 4035 4036 4037 4038 4039 4040 4041 4042 4043 4044 4045 4046 4047 4048 4049 4050 4051 4052 4053 4054 4055 4056 4057 4058 4059 4060 4061 4062 4063 4064 4065 4066 4067 4068 4069 4070 4071 4072 4073 4074 4075 4076 4077 4078 4079 4080 4081 4082 4083 4084 4085 4086 4087 4088 4089 4090 4091 4092 4093 4094 4095 4096 4097 4098 4099 4100 4101 4102 4103 4104 4105 4106 4107 4108 4109 4110 4111 4112 4113 4114 4115 4116 4117 4118 4119 4120 4121 4122 4123 4124 4125 4126 4127 4128 4129 4130 4131 4132 4133 4134 4135 4136 4137 4138 4139 4140 4141 4142 4143 4144 4145 4146 4147 4148 4149 4150 4151 4152 4153 4154 4155 4156 4157 4158 4159 4160 4161 4162 4163 4164 4165 4166 4167 4168 4169 4170 4171 4172 4173 4174 4175 4176 4177 4178 4179 4180 4181 4182 4183 4184 4185 4186 4187 4188 4189 4190 4191 4192 4193 4194 4195 4196 4197 4198 4199 4200 4201 4202 4203 4204 4205 4206 4207 4208 4209 4210 4211 4212 4213 4214 4215 4216 4217 4218 4219 4220 4221 4222 4223 4224 4225 4226 4227 4228 4229 4230 4231 4232 4233 4234 4235 4236 4237 4238 4239 4240 4241 4242 4243 4244 4245 4246 4247 4248 4249 4250 4251 4252 4253 4254 4255 4256 4257 4258 4259 4260 4261 4262 4263 4264 4265 4266 4267 4268 4269 4270 4271 4272 4273 4274 4275 4276 4277 4278 4279 4280 4281 4282 4283 4284 4285 4286 4287 4288 4289 4290 4291 4292 4293 4294 4295 4296 4297 4298 4299 4300 4301 4302 4303 4304 4305 4306 4307 4308 4309 4310 4311 4312 4313 4314 4315 4316 4317 4318 4319 4320 4321 4322 4323 4324 4325 4326 4327 4328 4329 4330 4331 4332 4333 4334 4335 4336 4337 4338 4339 4340 4341 4342 4343 4344 4345 4346 4347 4348 4349 4350 4351 4352 4353 4354 4355 4356 4357 4358 4359 4360 4361 4362 4363 4364 4365 4366 4367 4368 4369 4370 4371 4372 4373 4374 4375 4376 4377 4378 4379 4380 4381 4382 4383 4384 4385 4386 4387 4388 4389 4390 4391 4392 4393 4394 4395 4396 4397 4398 4399 4400 4401 4402 4403 4404 4405 4406 4407 4408 4409 4410 4411 4412 4413 4414 4415 4416 4417 4418 4419 4420 4421 4422 4423 4424 4425 4426 4427 4428 4429 4430 4431 4432 4433 4434 4435 4436 4437 4438 4439 4440 4441 4442 4443 4444 4445 4446 4447 4448 4449 4450 4451 4452 4453 4454 4455 4456 4457 4458 4459 4460 4461 4462 4463 4464 4465 4466 4467 4468 4469 4470 4471 4472 4473 4474 4475 4476 4477 4478 4479 4480 4481 4482 4483 4484 4485 4486 4487 4488 4489 4490 4491 4492 4493 4494 4495 4496 4497 4498 4499 4500 4501 4502 4503 4504 4505 4506 4507 4508 4509 4510 4511 4512 4513 4514 4515 4516 4517 4518 4519 4520 4521 4522 4523 4524 4525 4526 4527 4528 4529 4530 4531 4532 4533 4534 4535 4536 4537 4538 4539 4540 4541 4542 4543 4544 4545 4546 4547 4548 4549 4550 4551 4552 4553 4554 4555 4556 4557 4558 4559 4560 4561 4562 4563 4564 4565 4566 4567 4568 4569 4570 4571 4572 4573 4574 4575 4576 4577 4578 4579 4580 4581 4582 4583 4584 4585 4586 4587 4588 4589 4590 4591 4592 4593 4594 4595 4596 4597 4598 4599 4600 4601 4602 4603 4604 4605 4606 4607 4608 4609 4610 4611 4612 4613 4614 4615 4616 4617 4618 4619 4620 4621 4622 4623 4624 4625 4626 4627 4628 4629 4630 4631 4632 4633 4634 4635 4636 4637 4638 4639 4640 4641 4642 4643 4644 4645 4646 4647 4648 4649 4650 4651 4652 4653 4654 4655 4656 4657 4658 4659 4660 4661 4662 4663 4664 4665 4666 4667 4668 4669 4670 4671 4672 4673 4674 4675 4676 4677 4678 4679 4680 4681 4682 4683 4684 4685 4686 4687 4688 4689 4690 4691 4692 4693 4694 4695 4696 4697 4698 4699 4700 4701 4702 4703 4704 4705 4706 4707 4708 4709 4710 4711 4712 4713 4714 4715 4716 4717 4718 4719 4720 4721 4722 4723 4724 4725 4726 4727 4728 4729 4730 4731 4732 4733 4734 4735 4736 4737 4738 4739 4740 4741 4742 4743 4744 4745 4746 4747 4748 4749 4750 4751 4752 4753 4754 4755 4756 4757 4758 4759 4760 4761 4762 4763 4764 4765 4766 4767 4768 4769 4770 4771 4772 4773 4774 4775 4776 4777 4778 4779 4780 4781 4782 4783 4784 4785 4786 4787 4788 4789 4790 4791 4792 4793 4794 4795 4796 4797 4798 4799 4800 4801 4802 4803 4804 4805 4806 4807 4808 4809 4810 4811 4812 4813 4814 4815 4816 4817 4818 4819 4820 4821 4822 4823 4824 4825 4826 4827 4828 4829 4830 4831 4832 4833 4834 4835 4836 4837 4838 4839 4840 4841 4842 4843 4844 4845 4846 4847 4848 4849 4850 4851 4852 4853 4854 4855 4856 4857 4858 4859 4860 4861 4862 4863 4864 4865 4866 4867 4868 4869 4870 4871 4872 4873 4874 4875 4876 4877 4878 4879 4880 4881 4882 4883 4884 4885 4886 4887 4888 4889 4890 4891 4892 4893 4894 4895 4896 4897 4898 4899 4900 4901 4902 4903 4904 4905 4906 4907 4908 4909 4910 4911 4912 4913 4914 4915 4916 4917 4918 4919 4920 4921 4922 4923 4924 4925 4926 4927 4928 4929 4930 4931 4932 4933 4934 4935 4936 4937 4938 4939 4940 4941 4942 4943 4944 4945 4946 4947 4948 4949 4950 4951 4952 4953 4954 4955 4956 4957 4958 4959 4960 4961 4962 4963 4964 4965 4966 4967 4968 4969 4970 4971 4972 4973 4974 4975 4976 4977 4978 4979 4980 4981 4982 4983 4984 4985 4986 4987 4988 4989 4990 4991 4992 4993 4994 4995 4996 4997 4998 4999 5000 5001 5002 5003 5004 5005 5006 5007 5008 5009 5010 5011 5012 5013 5014 5015 5016 5017 5018 5019 5020 5021 5022 5023 5024 5025 5026 5027 5028 5029 5030 5031 5032 5033 5034 5035 5036 5037 5038 5039 5040 5041 5042 5043 5044 5045 5046 5047 5048 5049 5050 5051 5052 5053 5054 5055 5056 5057 5058 5059 5060 5061 5062 5063 5064 5065 5066 5067 5068 5069 5070 5071 5072 5073 5074 5075 5076 5077 5078 5079 5080 5081 5082 5083 5084 5085 5086 5087 5088 5089 5090 5091 5092 5093 5094 5095 5096 5097 5098 5099 5100 5101 5102 5103 5104 5105 5106 5107 5108 5109 5110 5111 5112 5113 5114 5115 5116 5117 5118 5119 5120 5121 5122 5123 5124 5125 5126 5127 5128 5129 5130 5131 5132 5133 5134 5135 5136 5137 5138 5139 5140 5141 5142 5143 5144 5145 5146 5147 5148 5149 5150 5151 5152 5153 5154 5155 5156 5157 5158 5159 5160 5161 5162 5163 5164 5165 5166 5167 5168 5169 5170 5171 5172 5173 5174 5175 5176 5177 5178 5179 5180 5181 5182 5183 5184 5185 5186 5187 5188 5189 5190 5191 5192 5193 5194 5195 5196 5197 5198 5199 5200 5201 5202 5203 5204 5205 5206 5207 5208 5209 5210 5211 5212 5213 5214 5215 5216 5217 5218 5219 5220 5221 5222 5223 5224 5225 5226 5227 5228 5229 5230 5231 5232 5233 5234 5235 5236 5237 5238 5239 5240 5241 5242 5243 5244 5245 5246 5247 5248 5249 5250 5251 5252 5253 5254 5255 5256 5257 5258 5259 5260 5261 5262 5263 5264 5265 5266 5267 5268 5269 5270 5271 5272 5273 5274 5275 5276 5277 5278 5279 5280 5281 5282 5283 5284 5285 5286 5287 5288 5289 5290 5291 5292 5293 5294 5295 5296 5297 5298 5299 5300 5301 5302 5303 5304 5305 5306 5307 5308 5309 5310 5311 5312 5313 5314 5315 5316 5317 5318 5319 5320 5321 5322 5323 5324 5325 5326 5327 5328 5329 5330 5331 5332 5333 5334 5335 5336 5337 5338 5339 5340 5341 5342 5343 5344 5345 5346 5347 5348 5349 5350 5351 5352 5353 5354 5355 5356 5357 5358 5359 5360 5361 5362 5363 5364 5365 5366 5367 5368 5369 5370 5371 5372 5373 5374 5375 5376 5377 5378 5379 5380 5381 5382 5383 5384 5385 5386 5387 5388 5389 5390 5391 5392 5393 5394 5395 5396 5397 5398 5399 5400 5401 5402 5403 5404 5405 5406 5407 5408 5409 5410 5411 5412 5413 5414 5415 5416 5417 5418 5419 5420 5421 5422 5423 5424 5425 5426 5427 5428 5429 5430 5431 5432 5433 5434 5435 5436 5437 5438 5439 5440 5441 5442 5443 5444 5445 5446 5447 5448 5449 5450 5451 5452 5453 5454 5455 5456 5457 5458 5459 5460 5461 5462 5463 5464 5465 5466 5467 5468 5469 5470 5471 5472 5473 5474 5475 5476 5477 5478 5479 5480 5481 5482 5483 5484 5485 5486 5487 5488 5489 5490 5491 5492 5493 5494 5495 5496 5497 5498 5499 5500 5501 5502 5503 5504 5505 5506 5507 5508 5509 5510 5511 5512 5513 5514 5515 5516 5517 5518 5519 5520 5521 5522 5523 5524 5525 5526 5527 5528 5529 5530 5531 5532 5533 5534 5535 5536 5537 5538 5539 5540 5541 5542 5543 5544 5545 5546 5547 5548 5549 5550 5551 5552 5553 5554 5555 5556 5557 5558 5559 5560 5561 5562 5563 5564 5565 5566 5567 5568 5569 5570 5571 5572 5573 5574 5575 5576 5577 5578 5579 5580 5581 5582 5583 5584 5585 5586 5587 5588 5589 5590 5591 5592 5593 5594 5595 5596 5597 5598 5599 5600 5601 5602 5603 5604 5605 5606 5607 5608 5609 5610 5611 5612 5613 5614 5615 5616 5617 5618 5619 5620 5621 5622 5623 5624 5625 5626 5627 5628 5629 5630 5631 5632 5633 5634 5635 5636 5637 5638 5639 5640 5641 5642 5643 5644 5645 5646 5647 5648 5649 5650 5651 5652 5653 5654 5655 5656 5657 5658 5659 5660 5661 5662 5663 5664 5665 5666 5667 5668 5669 5670 5671 5672 5673 5674 5675 5676 5677 5678 5679 5680 5681 5682 5683 5684 5685 5686 5687 5688 5689 5690 5691 5692 5693 5694 5695 5696 5697 5698 5699 5700 5701 5702 5703 5704 5705 5706 5707 5708 5709 5710 5711 5712 5713 5714 5715 5716 5717 5718 5719 5720 5721 5722 5723 5724 5725 5726 5727 5728 5729 5730 5731 5732 5733 5734 5735 5736 5737 5738 5739 5740 5741 5742 5743 5744 5745 5746 5747 5748 5749 5750 5751 5752 5753 5754 5755 5756 5757 5758 5759 5760 5761 5762 5763 5764 5765 5766 5767 5768 5769 5770 5771 5772 5773 5774 5775 5776 5777 5778 5779 5780 5781 5782 5783 5784 5785 5786 5787 5788 5789 5790 5791 5792 5793 5794 5795 5796 5797 5798 5799 5800 5801 5802 5803 5804 5805 5806 5807 5808 5809 5810 5811 5812 5813 5814 5815 5816 5817 5818 5819 5820 5821 5822 5823 5824 5825 5826 5827 5828 5829 5830 5831 5832 5833 5834 5835 5836 5837 5838 5839 5840 5841 5842 5843 5844 5845 5846 5847 5848 5849 5850 5851 5852 5853 5854 5855 5856 5857 5858 5859 5860 5861 5862 5863 5864 5865 | <?xml version="1.0" encoding="ascii"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>proton</title>
<link rel="stylesheet" href="epydoc.css" type="text/css" />
<script type="text/javascript" src="epydoc.js"></script>
</head>
<body bgcolor="white" text="black" link="blue" vlink="#204080"
alink="#204080">
<!-- ==================== NAVIGATION BAR ==================== -->
<table class="navbar" border="0" width="100%" cellpadding="0"
bgcolor="#a0c0ff" cellspacing="0">
<tr valign="middle">
<!-- Home link -->
<th bgcolor="#70b0f0" class="navbar-select"
> Home </th>
<!-- Tree link -->
<th> <a
href="module-tree.html">Trees</a> </th>
<!-- Index link -->
<th> <a
href="identifier-index.html">Indices</a> </th>
<!-- Help link -->
<th> <a
href="help.html">Help</a> </th>
<th class="navbar" width="100%"></th>
</tr>
</table>
<table width="100%" cellpadding="0" cellspacing="0">
<tr valign="top">
<td width="100%">
<span class="breadcrumbs">
Package proton
</span>
</td>
<td>
<table cellpadding="0" cellspacing="0">
<!-- hide/show private -->
<tr><td align="right"><span class="options"
>[<a href="frames.html" target="_top">frames</a
>] | <a href="proton-pysrc.html"
target="_top">no frames</a>]</span></td></tr>
</table>
</td>
</tr>
</table>
<h1 class="epydoc">Source Code for <a href="proton-module.html">Package proton</a></h1>
<pre class="py-src">
<a name="L1"></a><tt class="py-lineno"> 1</tt> <tt class="py-line"><tt class="py-comment">#</tt> </tt>
<a name="L2"></a><tt class="py-lineno"> 2</tt> <tt class="py-line"><tt class="py-comment"># Licensed to the Apache Software Foundation (ASF) under one</tt> </tt>
<a name="L3"></a><tt class="py-lineno"> 3</tt> <tt class="py-line"><tt class="py-comment"># or more contributor license agreements. See the NOTICE file</tt> </tt>
<a name="L4"></a><tt class="py-lineno"> 4</tt> <tt class="py-line"><tt class="py-comment"># distributed with this work for additional information</tt> </tt>
<a name="L5"></a><tt class="py-lineno"> 5</tt> <tt class="py-line"><tt class="py-comment"># regarding copyright ownership. The ASF licenses this file</tt> </tt>
<a name="L6"></a><tt class="py-lineno"> 6</tt> <tt class="py-line"><tt class="py-comment"># to you under the Apache License, Version 2.0 (the</tt> </tt>
<a name="L7"></a><tt class="py-lineno"> 7</tt> <tt class="py-line"><tt class="py-comment"># "License"); you may not use this file except in compliance</tt> </tt>
<a name="L8"></a><tt class="py-lineno"> 8</tt> <tt class="py-line"><tt class="py-comment"># with the License. You may obtain a copy of the License at</tt> </tt>
<a name="L9"></a><tt class="py-lineno"> 9</tt> <tt class="py-line"><tt class="py-comment">#</tt> </tt>
<a name="L10"></a><tt class="py-lineno"> 10</tt> <tt class="py-line"><tt class="py-comment"># http://www.apache.org/licenses/LICENSE-2.0</tt> </tt>
<a name="L11"></a><tt class="py-lineno"> 11</tt> <tt class="py-line"><tt class="py-comment">#</tt> </tt>
<a name="L12"></a><tt class="py-lineno"> 12</tt> <tt class="py-line"><tt class="py-comment"># Unless required by applicable law or agreed to in writing,</tt> </tt>
<a name="L13"></a><tt class="py-lineno"> 13</tt> <tt class="py-line"><tt class="py-comment"># software distributed under the License is distributed on an</tt> </tt>
<a name="L14"></a><tt class="py-lineno"> 14</tt> <tt class="py-line"><tt class="py-comment"># "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY</tt> </tt>
<a name="L15"></a><tt class="py-lineno"> 15</tt> <tt class="py-line"><tt class="py-comment"># KIND, either express or implied. See the License for the</tt> </tt>
<a name="L16"></a><tt class="py-lineno"> 16</tt> <tt class="py-line"><tt class="py-comment"># specific language governing permissions and limitations</tt> </tt>
<a name="L17"></a><tt class="py-lineno"> 17</tt> <tt class="py-line"><tt class="py-comment"># under the License.</tt> </tt>
<a name="L18"></a><tt class="py-lineno"> 18</tt> <tt class="py-line"><tt class="py-comment">#</tt> </tt>
<a name="L19"></a><tt class="py-lineno"> 19</tt> <tt class="py-line"> </tt>
<a name="L20"></a><tt class="py-lineno"> 20</tt> <tt class="py-line"><tt class="py-docstring">"""</tt> </tt>
<a name="L21"></a><tt class="py-lineno"> 21</tt> <tt class="py-line"><tt class="py-docstring">The proton module defines a suite of APIs that implement the AMQP 1.0</tt> </tt>
<a name="L22"></a><tt class="py-lineno"> 22</tt> <tt class="py-line"><tt class="py-docstring">protocol.</tt> </tt>
<a name="L23"></a><tt class="py-lineno"> 23</tt> <tt class="py-line"><tt class="py-docstring"></tt> </tt>
<a name="L24"></a><tt class="py-lineno"> 24</tt> <tt class="py-line"><tt class="py-docstring">The proton APIs consist of the following classes:</tt> </tt>
<a name="L25"></a><tt class="py-lineno"> 25</tt> <tt class="py-line"><tt class="py-docstring"></tt> </tt>
<a name="L26"></a><tt class="py-lineno"> 26</tt> <tt class="py-line"><tt class="py-docstring"> - L{Messenger} -- A messaging endpoint.</tt> </tt>
<a name="L27"></a><tt class="py-lineno"> 27</tt> <tt class="py-line"><tt class="py-docstring"> - L{Message} -- A class for creating and/or accessing AMQP message content.</tt> </tt>
<a name="L28"></a><tt class="py-lineno"> 28</tt> <tt class="py-line"><tt class="py-docstring"> - L{Data} -- A class for creating and/or accessing arbitrary AMQP encoded</tt> </tt>
<a name="L29"></a><tt class="py-lineno"> 29</tt> <tt class="py-line"><tt class="py-docstring"> data.</tt> </tt>
<a name="L30"></a><tt class="py-lineno"> 30</tt> <tt class="py-line"><tt class="py-docstring"></tt> </tt>
<a name="L31"></a><tt class="py-lineno"> 31</tt> <tt class="py-line"><tt class="py-docstring">"""</tt> </tt>
<a name="L32"></a><tt class="py-lineno"> 32</tt> <tt class="py-line"><tt class="py-keyword">from</tt> <tt class="py-name">__future__</tt> <tt class="py-keyword">import</tt> <tt class="py-name">absolute_import</tt> </tt>
<a name="L33"></a><tt class="py-lineno"> 33</tt> <tt class="py-line"> </tt>
<a name="L34"></a><tt class="py-lineno"> 34</tt> <tt class="py-line"><tt class="py-keyword">from</tt> <tt class="py-name">cproton</tt> <tt class="py-keyword">import</tt> <tt class="py-op">*</tt> </tt>
<a name="L35"></a><tt class="py-lineno"> 35</tt> <tt class="py-line"><tt class="py-keyword">from</tt> <tt class="py-op">.</tt><tt id="link-0" class="py-name" targets="Module proton.wrapper=proton.wrapper-module.html"><a title="proton.wrapper" class="py-name" href="#" onclick="return doclink('link-0', 'wrapper', 'link-0');">wrapper</a></tt> <tt class="py-keyword">import</tt> <tt id="link-1" class="py-name" targets="Class proton.wrapper.Wrapper=proton.wrapper.Wrapper-class.html"><a title="proton.wrapper.Wrapper" class="py-name" href="#" onclick="return doclink('link-1', 'Wrapper', 'link-1');">Wrapper</a></tt> </tt>
<a name="L36"></a><tt class="py-lineno"> 36</tt> <tt class="py-line"><tt class="py-keyword">from</tt> <tt id="link-2" class="py-name" targets="Package proton=proton-module.html"><a title="proton" class="py-name" href="#" onclick="return doclink('link-2', 'proton', 'link-2');">proton</a></tt> <tt class="py-keyword">import</tt> <tt id="link-3" class="py-name" targets="Module proton._compat=proton._compat-module.html"><a title="proton._compat" class="py-name" href="#" onclick="return doclink('link-3', '_compat', 'link-3');">_compat</a></tt> </tt>
<a name="L37"></a><tt class="py-lineno"> 37</tt> <tt class="py-line"> </tt>
<a name="L38"></a><tt class="py-lineno"> 38</tt> <tt class="py-line"><tt class="py-keyword">import</tt> <tt class="py-name">weakref</tt><tt class="py-op">,</tt> <tt class="py-name">socket</tt><tt class="py-op">,</tt> <tt class="py-name">sys</tt><tt class="py-op">,</tt> <tt class="py-name">threading</tt> </tt>
<a name="L39"></a><tt class="py-lineno"> 39</tt> <tt class="py-line"> </tt>
<a name="L40"></a><tt class="py-lineno"> 40</tt> <tt class="py-line"><tt class="py-keyword">try</tt><tt class="py-op">:</tt> </tt>
<a name="L41"></a><tt class="py-lineno"> 41</tt> <tt class="py-line"> <tt class="py-keyword">import</tt> <tt class="py-name">uuid</tt> </tt>
<a name="generate_uuid"></a><div id="generate_uuid-def"><a name="L42"></a><tt class="py-lineno"> 42</tt> <tt class="py-line"> </tt>
<a name="L43"></a><tt class="py-lineno"> 43</tt> <a class="py-toggle" href="#" id="generate_uuid-toggle" onclick="return toggle('generate_uuid');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton-module.html#generate_uuid">generate_uuid</a><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="generate_uuid-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="generate_uuid-expanded"><a name="L44"></a><tt class="py-lineno"> 44</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt class="py-name">uuid</tt><tt class="py-op">.</tt><tt class="py-name">uuid4</tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
</div><a name="L45"></a><tt class="py-lineno"> 45</tt> <tt class="py-line"> </tt>
<a name="L46"></a><tt class="py-lineno"> 46</tt> <tt class="py-line"><tt class="py-keyword">except</tt> <tt class="py-name">ImportError</tt><tt class="py-op">:</tt> </tt>
<a name="L47"></a><tt class="py-lineno"> 47</tt> <tt class="py-line"> <tt class="py-string">"""</tt> </tt>
<a name="L48"></a><tt class="py-lineno"> 48</tt> <tt class="py-line"><tt class="py-string"> No 'native' UUID support. Provide a very basic UUID type that is a compatible subset of the uuid type provided by more modern python releases.</tt> </tt>
<a name="L49"></a><tt class="py-lineno"> 49</tt> <tt class="py-line"><tt class="py-string"> """</tt> </tt>
<a name="L50"></a><tt class="py-lineno"> 50</tt> <tt class="py-line"> <tt class="py-keyword">import</tt> <tt class="py-name">struct</tt> </tt>
<a name="uuid"></a><div id="uuid-def"><a name="L51"></a><tt class="py-lineno"> 51</tt> <a class="py-toggle" href="#" id="uuid-toggle" onclick="return toggle('uuid');">-</a><tt class="py-line"> <tt class="py-keyword">class</tt> <a class="py-def-name" href="proton.uuid-class.html">uuid</a><tt class="py-op">:</tt> </tt>
</div><div id="uuid-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="uuid-expanded"><a name="uuid.UUID"></a><div id="uuid.UUID-def"><a name="L52"></a><tt class="py-lineno"> 52</tt> <a class="py-toggle" href="#" id="uuid.UUID-toggle" onclick="return toggle('uuid.UUID');">-</a><tt class="py-line"> <tt class="py-keyword">class</tt> <a class="py-def-name" href="proton.uuid.UUID-class.html">UUID</a><tt class="py-op">:</tt> </tt>
</div><div id="uuid.UUID-collapsed" style="display:none;" pad="++++" indent="++++++++++"></div><div id="uuid.UUID-expanded"><a name="uuid.UUID.__init__"></a><div id="uuid.UUID.__init__-def"><a name="L53"></a><tt class="py-lineno"> 53</tt> <a class="py-toggle" href="#" id="uuid.UUID.__init__-toggle" onclick="return toggle('uuid.UUID.__init__');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.uuid.UUID-class.html#__init__">__init__</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">hex</tt><tt class="py-op">=</tt><tt class="py-name">None</tt><tt class="py-op">,</tt> <tt class="py-param">bytes</tt><tt class="py-op">=</tt><tt class="py-name">None</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="uuid.UUID.__init__-collapsed" style="display:none;" pad="++++" indent="++++++++++++++++"></div><div id="uuid.UUID.__init__-expanded"><a name="L54"></a><tt class="py-lineno"> 54</tt> <tt class="py-line"> <tt class="py-keyword">if</tt> <tt class="py-op">[</tt><tt class="py-name">hex</tt><tt class="py-op">,</tt> <tt class="py-name">bytes</tt><tt class="py-op">]</tt><tt class="py-op">.</tt><tt class="py-name">count</tt><tt class="py-op">(</tt><tt class="py-name">None</tt><tt class="py-op">)</tt> <tt class="py-op">!=</tt> <tt class="py-number">1</tt><tt class="py-op">:</tt> </tt>
<a name="L55"></a><tt class="py-lineno"> 55</tt> <tt class="py-line"> <tt class="py-keyword">raise</tt> <tt class="py-name">TypeError</tt><tt class="py-op">(</tt><tt class="py-string">"need one of hex or bytes"</tt><tt class="py-op">)</tt> </tt>
<a name="L56"></a><tt class="py-lineno"> 56</tt> <tt class="py-line"> <tt class="py-keyword">if</tt> <tt class="py-name">bytes</tt> <tt class="py-keyword">is</tt> <tt class="py-keyword">not</tt> <tt class="py-name">None</tt><tt class="py-op">:</tt> </tt>
<a name="L57"></a><tt class="py-lineno"> 57</tt> <tt class="py-line"> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">bytes</tt> <tt class="py-op">=</tt> <tt class="py-name">bytes</tt> </tt>
<a name="L58"></a><tt class="py-lineno"> 58</tt> <tt class="py-line"> <tt class="py-keyword">elif</tt> <tt class="py-name">hex</tt> <tt class="py-keyword">is</tt> <tt class="py-keyword">not</tt> <tt class="py-name">None</tt><tt class="py-op">:</tt> </tt>
<a name="L59"></a><tt class="py-lineno"> 59</tt> <tt class="py-line"> <tt class="py-name">fields</tt><tt class="py-op">=</tt><tt class="py-name">hex</tt><tt class="py-op">.</tt><tt class="py-name">split</tt><tt class="py-op">(</tt><tt class="py-string">"-"</tt><tt class="py-op">)</tt> </tt>
<a name="L60"></a><tt class="py-lineno"> 60</tt> <tt class="py-line"> <tt class="py-name">fields</tt><tt class="py-op">[</tt><tt class="py-number">4</tt><tt class="py-op">:</tt><tt class="py-number">5</tt><tt class="py-op">]</tt> <tt class="py-op">=</tt> <tt class="py-op">[</tt><tt class="py-name">fields</tt><tt class="py-op">[</tt><tt class="py-number">4</tt><tt class="py-op">]</tt><tt class="py-op">[</tt><tt class="py-op">:</tt><tt class="py-number">4</tt><tt class="py-op">]</tt><tt class="py-op">,</tt> <tt class="py-name">fields</tt><tt class="py-op">[</tt><tt class="py-number">4</tt><tt class="py-op">]</tt><tt class="py-op">[</tt><tt class="py-number">4</tt><tt class="py-op">:</tt><tt class="py-op">]</tt><tt class="py-op">]</tt> </tt>
<a name="L61"></a><tt class="py-lineno"> 61</tt> <tt class="py-line"> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">bytes</tt> <tt class="py-op">=</tt> <tt class="py-name">struct</tt><tt class="py-op">.</tt><tt class="py-name">pack</tt><tt class="py-op">(</tt><tt class="py-string">"!LHHHHL"</tt><tt class="py-op">,</tt> <tt class="py-op">*</tt><tt class="py-op">[</tt><tt class="py-name">int</tt><tt class="py-op">(</tt><tt class="py-name">x</tt><tt class="py-op">,</tt><tt class="py-number">16</tt><tt class="py-op">)</tt> <tt class="py-keyword">for</tt> <tt class="py-name">x</tt> <tt class="py-keyword">in</tt> <tt class="py-name">fields</tt><tt class="py-op">]</tt><tt class="py-op">)</tt> </tt>
</div><a name="L62"></a><tt class="py-lineno"> 62</tt> <tt class="py-line"> </tt>
<a name="uuid.UUID.__cmp__"></a><div id="uuid.UUID.__cmp__-def"><a name="L63"></a><tt class="py-lineno"> 63</tt> <a class="py-toggle" href="#" id="uuid.UUID.__cmp__-toggle" onclick="return toggle('uuid.UUID.__cmp__');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.uuid.UUID-class.html#__cmp__">__cmp__</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">other</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="uuid.UUID.__cmp__-collapsed" style="display:none;" pad="++++" indent="++++++++++++++++"></div><div id="uuid.UUID.__cmp__-expanded"><a name="L64"></a><tt class="py-lineno"> 64</tt> <tt class="py-line"> <tt class="py-keyword">if</tt> <tt class="py-name">isinstance</tt><tt class="py-op">(</tt><tt class="py-name">other</tt><tt class="py-op">,</tt> <tt class="py-name">uuid</tt><tt class="py-op">.</tt><tt id="link-4" class="py-name" targets="Variable proton.Data.UUID=proton.Data-class.html#UUID"><a title="proton.Data.UUID" class="py-name" href="#" onclick="return doclink('link-4', 'UUID', 'link-4');">UUID</a></tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
<a name="L65"></a><tt class="py-lineno"> 65</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt class="py-name">cmp</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">bytes</tt><tt class="py-op">,</tt> <tt class="py-name">other</tt><tt class="py-op">.</tt><tt class="py-name">bytes</tt><tt class="py-op">)</tt> </tt>
<a name="L66"></a><tt class="py-lineno"> 66</tt> <tt class="py-line"> <tt class="py-keyword">else</tt><tt class="py-op">:</tt> </tt>
<a name="L67"></a><tt class="py-lineno"> 67</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt class="py-op">-</tt><tt class="py-number">1</tt> </tt>
</div><a name="L68"></a><tt class="py-lineno"> 68</tt> <tt class="py-line"> </tt>
<a name="uuid.UUID.__str__"></a><div id="uuid.UUID.__str__-def"><a name="L69"></a><tt class="py-lineno"> 69</tt> <a class="py-toggle" href="#" id="uuid.UUID.__str__-toggle" onclick="return toggle('uuid.UUID.__str__');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.uuid.UUID-class.html#__str__">__str__</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="uuid.UUID.__str__-collapsed" style="display:none;" pad="++++" indent="++++++++++++++++"></div><div id="uuid.UUID.__str__-expanded"><a name="L70"></a><tt class="py-lineno"> 70</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt class="py-string">"%08x-%04x-%04x-%04x-%04x%08x"</tt> <tt class="py-op">%</tt> <tt class="py-name">struct</tt><tt class="py-op">.</tt><tt class="py-name">unpack</tt><tt class="py-op">(</tt><tt class="py-string">"!LHHHHL"</tt><tt class="py-op">,</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">bytes</tt><tt class="py-op">)</tt> </tt>
</div><a name="L71"></a><tt class="py-lineno"> 71</tt> <tt class="py-line"> </tt>
<a name="uuid.UUID.__repr__"></a><div id="uuid.UUID.__repr__-def"><a name="L72"></a><tt class="py-lineno"> 72</tt> <a class="py-toggle" href="#" id="uuid.UUID.__repr__-toggle" onclick="return toggle('uuid.UUID.__repr__');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.uuid.UUID-class.html#__repr__">__repr__</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="uuid.UUID.__repr__-collapsed" style="display:none;" pad="++++" indent="++++++++++++++++"></div><div id="uuid.UUID.__repr__-expanded"><a name="L73"></a><tt class="py-lineno"> 73</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt class="py-string">"UUID(%r)"</tt> <tt class="py-op">%</tt> <tt class="py-name">str</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">)</tt> </tt>
</div><a name="L74"></a><tt class="py-lineno"> 74</tt> <tt class="py-line"> </tt>
<a name="uuid.UUID.__hash__"></a><div id="uuid.UUID.__hash__-def"><a name="L75"></a><tt class="py-lineno"> 75</tt> <a class="py-toggle" href="#" id="uuid.UUID.__hash__-toggle" onclick="return toggle('uuid.UUID.__hash__');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.uuid.UUID-class.html#__hash__">__hash__</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="uuid.UUID.__hash__-collapsed" style="display:none;" pad="++++" indent="++++++++++++++++"></div><div id="uuid.UUID.__hash__-expanded"><a name="L76"></a><tt class="py-lineno"> 76</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">bytes</tt><tt class="py-op">.</tt><tt id="link-5" class="py-name" targets="Method proton.wrapper.Wrapper.__hash__()=proton.wrapper.Wrapper-class.html#__hash__"><a title="proton.wrapper.Wrapper.__hash__" class="py-name" href="#" onclick="return doclink('link-5', '__hash__', 'link-5');">__hash__</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
</div></div></div><a name="L77"></a><tt class="py-lineno"> 77</tt> <tt class="py-line"> </tt>
<a name="L78"></a><tt class="py-lineno"> 78</tt> <tt class="py-line"> <tt class="py-keyword">import</tt> <tt class="py-name">os</tt><tt class="py-op">,</tt> <tt class="py-name">random</tt><tt class="py-op">,</tt> <tt class="py-name">time</tt> </tt>
<a name="L79"></a><tt class="py-lineno"> 79</tt> <tt class="py-line"> <tt id="link-6" class="py-name" targets="Variable proton.rand=proton-module.html#rand"><a title="proton.rand" class="py-name" href="#" onclick="return doclink('link-6', 'rand', 'link-6');">rand</a></tt> <tt class="py-op">=</tt> <tt class="py-name">random</tt><tt class="py-op">.</tt><tt class="py-name">Random</tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L80"></a><tt class="py-lineno"> 80</tt> <tt class="py-line"> <tt id="link-7" class="py-name"><a title="proton.rand" class="py-name" href="#" onclick="return doclink('link-7', 'rand', 'link-6');">rand</a></tt><tt class="py-op">.</tt><tt class="py-name">seed</tt><tt class="py-op">(</tt><tt class="py-op">(</tt><tt class="py-name">os</tt><tt class="py-op">.</tt><tt class="py-name">getpid</tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">,</tt> <tt class="py-name">time</tt><tt class="py-op">.</tt><tt class="py-name">time</tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">,</tt> <tt class="py-name">socket</tt><tt class="py-op">.</tt><tt class="py-name">gethostname</tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
<a name="random_uuid"></a><div id="random_uuid-def"><a name="L81"></a><tt class="py-lineno"> 81</tt> <a class="py-toggle" href="#" id="random_uuid-toggle" onclick="return toggle('random_uuid');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton-module.html#random_uuid">random_uuid</a><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="random_uuid-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="random_uuid-expanded"><a name="L82"></a><tt class="py-lineno"> 82</tt> <tt class="py-line"> <tt id="link-8" class="py-name" targets="Variable proton.Disposition.data=proton.Disposition-class.html#data"><a title="proton.Disposition.data" class="py-name" href="#" onclick="return doclink('link-8', 'data', 'link-8');">data</a></tt> <tt class="py-op">=</tt> <tt class="py-op">[</tt><tt id="link-9" class="py-name"><a title="proton.rand" class="py-name" href="#" onclick="return doclink('link-9', 'rand', 'link-6');">rand</a></tt><tt class="py-op">.</tt><tt class="py-name">randint</tt><tt class="py-op">(</tt><tt class="py-number">0</tt><tt class="py-op">,</tt> <tt class="py-number">255</tt><tt class="py-op">)</tt> <tt class="py-keyword">for</tt> <tt class="py-name">i</tt> <tt class="py-keyword">in</tt> <tt class="py-name">xrange</tt><tt class="py-op">(</tt><tt class="py-number">16</tt><tt class="py-op">)</tt><tt class="py-op">]</tt> </tt>
<a name="L83"></a><tt class="py-lineno"> 83</tt> <tt class="py-line"> </tt>
<a name="L84"></a><tt class="py-lineno"> 84</tt> <tt class="py-line"> <tt class="py-comment"># From RFC4122, the version bits are set to 0100</tt> </tt>
<a name="L85"></a><tt class="py-lineno"> 85</tt> <tt class="py-line"> <tt id="link-10" class="py-name"><a title="proton.Disposition.data" class="py-name" href="#" onclick="return doclink('link-10', 'data', 'link-8');">data</a></tt><tt class="py-op">[</tt><tt class="py-number">6</tt><tt class="py-op">]</tt> <tt class="py-op">&=</tt> <tt class="py-number">0x0F</tt> </tt>
<a name="L86"></a><tt class="py-lineno"> 86</tt> <tt class="py-line"> <tt id="link-11" class="py-name"><a title="proton.Disposition.data" class="py-name" href="#" onclick="return doclink('link-11', 'data', 'link-8');">data</a></tt><tt class="py-op">[</tt><tt class="py-number">6</tt><tt class="py-op">]</tt> <tt class="py-op">|=</tt> <tt class="py-number">0x40</tt> </tt>
<a name="L87"></a><tt class="py-lineno"> 87</tt> <tt class="py-line"> </tt>
<a name="L88"></a><tt class="py-lineno"> 88</tt> <tt class="py-line"> <tt class="py-comment"># From RFC4122, the top two bits of byte 8 get set to 01</tt> </tt>
<a name="L89"></a><tt class="py-lineno"> 89</tt> <tt class="py-line"> <tt id="link-12" class="py-name"><a title="proton.Disposition.data" class="py-name" href="#" onclick="return doclink('link-12', 'data', 'link-8');">data</a></tt><tt class="py-op">[</tt><tt class="py-number">8</tt><tt class="py-op">]</tt> <tt class="py-op">&=</tt> <tt class="py-number">0x3F</tt> </tt>
<a name="L90"></a><tt class="py-lineno"> 90</tt> <tt class="py-line"> <tt id="link-13" class="py-name"><a title="proton.Disposition.data" class="py-name" href="#" onclick="return doclink('link-13', 'data', 'link-8');">data</a></tt><tt class="py-op">[</tt><tt class="py-number">8</tt><tt class="py-op">]</tt> <tt class="py-op">|=</tt> <tt class="py-number">0x80</tt> </tt>
<a name="L91"></a><tt class="py-lineno"> 91</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt class="py-string">""</tt><tt class="py-op">.</tt><tt class="py-name">join</tt><tt class="py-op">(</tt><tt class="py-name">map</tt><tt class="py-op">(</tt><tt class="py-name">chr</tt><tt class="py-op">,</tt> <tt id="link-14" class="py-name"><a title="proton.Disposition.data" class="py-name" href="#" onclick="return doclink('link-14', 'data', 'link-8');">data</a></tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
</div><a name="L92"></a><tt class="py-lineno"> 92</tt> <tt class="py-line"> </tt>
<a name="uuid4"></a><div id="uuid4-def"><a name="L93"></a><tt class="py-lineno"> 93</tt> <a class="py-toggle" href="#" id="uuid4-toggle" onclick="return toggle('uuid4');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton-module.html#uuid4">uuid4</a><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="uuid4-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="uuid4-expanded"><a name="L94"></a><tt class="py-lineno"> 94</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt class="py-name">uuid</tt><tt class="py-op">.</tt><tt id="link-15" class="py-name"><a title="proton.Data.UUID" class="py-name" href="#" onclick="return doclink('link-15', 'UUID', 'link-4');">UUID</a></tt><tt class="py-op">(</tt><tt class="py-name">bytes</tt><tt class="py-op">=</tt><tt class="py-name">random_uuid</tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
</div><a name="L95"></a><tt class="py-lineno"> 95</tt> <tt class="py-line"> </tt>
<a name="generate_uuid"></a><div id="generate_uuid-def"><a name="L96"></a><tt class="py-lineno"> 96</tt> <a class="py-toggle" href="#" id="generate_uuid-toggle" onclick="return toggle('generate_uuid');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton-module.html#generate_uuid">generate_uuid</a><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="generate_uuid-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="generate_uuid-expanded"><a name="L97"></a><tt class="py-lineno"> 97</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt class="py-name">uuid4</tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
</div><a name="L98"></a><tt class="py-lineno"> 98</tt> <tt class="py-line"> </tt>
<a name="L99"></a><tt class="py-lineno"> 99</tt> <tt class="py-line"><tt class="py-comment">#</tt> </tt>
<a name="L100"></a><tt class="py-lineno"> 100</tt> <tt class="py-line"><tt class="py-comment"># Hacks to provide Python2 <---> Python3 compatibility</tt> </tt>
<a name="L101"></a><tt class="py-lineno"> 101</tt> <tt class="py-line"><tt class="py-comment">#</tt> </tt>
<a name="L102"></a><tt class="py-lineno"> 102</tt> <tt class="py-line"><tt class="py-keyword">try</tt><tt class="py-op">:</tt> </tt>
<a name="L103"></a><tt class="py-lineno"> 103</tt> <tt class="py-line"> <tt class="py-name">bytes</tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L104"></a><tt class="py-lineno"> 104</tt> <tt class="py-line"><tt class="py-keyword">except</tt> <tt class="py-name">NameError</tt><tt class="py-op">:</tt> </tt>
<a name="L105"></a><tt class="py-lineno"> 105</tt> <tt class="py-line"> <tt class="py-name">bytes</tt> <tt class="py-op">=</tt> <tt class="py-name">str</tt> </tt>
<a name="L106"></a><tt class="py-lineno"> 106</tt> <tt class="py-line"><tt class="py-keyword">try</tt><tt class="py-op">:</tt> </tt>
<a name="L107"></a><tt class="py-lineno"> 107</tt> <tt class="py-line"> <tt class="py-name">long</tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L108"></a><tt class="py-lineno"> 108</tt> <tt class="py-line"><tt class="py-keyword">except</tt> <tt class="py-name">NameError</tt><tt class="py-op">:</tt> </tt>
<a name="L109"></a><tt class="py-lineno"> 109</tt> <tt class="py-line"> <tt class="py-name">long</tt> <tt class="py-op">=</tt> <tt class="py-name">int</tt> </tt>
<a name="L110"></a><tt class="py-lineno"> 110</tt> <tt class="py-line"><tt class="py-keyword">try</tt><tt class="py-op">:</tt> </tt>
<a name="L111"></a><tt class="py-lineno"> 111</tt> <tt class="py-line"> <tt class="py-name">unicode</tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L112"></a><tt class="py-lineno"> 112</tt> <tt class="py-line"><tt class="py-keyword">except</tt> <tt class="py-name">NameError</tt><tt class="py-op">:</tt> </tt>
<a name="L113"></a><tt class="py-lineno"> 113</tt> <tt class="py-line"> <tt class="py-name">unicode</tt> <tt class="py-op">=</tt> <tt class="py-name">str</tt> </tt>
<a name="L114"></a><tt class="py-lineno"> 114</tt> <tt class="py-line"> </tt>
<a name="L115"></a><tt class="py-lineno"> 115</tt> <tt class="py-line"> </tt>
<a name="L116"></a><tt class="py-lineno"> 116</tt> <tt class="py-line"><tt id="link-16" class="py-name" targets="Variable proton.VERSION_MAJOR=proton-module.html#VERSION_MAJOR"><a title="proton.VERSION_MAJOR" class="py-name" href="#" onclick="return doclink('link-16', 'VERSION_MAJOR', 'link-16');">VERSION_MAJOR</a></tt> <tt class="py-op">=</tt> <tt class="py-name">PN_VERSION_MAJOR</tt> </tt>
<a name="L117"></a><tt class="py-lineno"> 117</tt> <tt class="py-line"><tt id="link-17" class="py-name" targets="Variable proton.VERSION_MINOR=proton-module.html#VERSION_MINOR"><a title="proton.VERSION_MINOR" class="py-name" href="#" onclick="return doclink('link-17', 'VERSION_MINOR', 'link-17');">VERSION_MINOR</a></tt> <tt class="py-op">=</tt> <tt class="py-name">PN_VERSION_MINOR</tt> </tt>
<a name="L118"></a><tt class="py-lineno"> 118</tt> <tt class="py-line"><tt id="link-18" class="py-name" targets="Variable proton.VERSION_POINT=proton-module.html#VERSION_POINT"><a title="proton.VERSION_POINT" class="py-name" href="#" onclick="return doclink('link-18', 'VERSION_POINT', 'link-18');">VERSION_POINT</a></tt> <tt class="py-op">=</tt> <tt class="py-name">PN_VERSION_POINT</tt> </tt>
<a name="L119"></a><tt class="py-lineno"> 119</tt> <tt class="py-line"><tt id="link-19" class="py-name" targets="Variable proton.VERSION=proton-module.html#VERSION"><a title="proton.VERSION" class="py-name" href="#" onclick="return doclink('link-19', 'VERSION', 'link-19');">VERSION</a></tt> <tt class="py-op">=</tt> <tt class="py-op">(</tt><tt id="link-20" class="py-name"><a title="proton.VERSION_MAJOR" class="py-name" href="#" onclick="return doclink('link-20', 'VERSION_MAJOR', 'link-16');">VERSION_MAJOR</a></tt><tt class="py-op">,</tt> <tt id="link-21" class="py-name"><a title="proton.VERSION_MINOR" class="py-name" href="#" onclick="return doclink('link-21', 'VERSION_MINOR', 'link-17');">VERSION_MINOR</a></tt><tt class="py-op">,</tt> <tt id="link-22" class="py-name"><a title="proton.VERSION_POINT" class="py-name" href="#" onclick="return doclink('link-22', 'VERSION_POINT', 'link-18');">VERSION_POINT</a></tt><tt class="py-op">)</tt> </tt>
<a name="L120"></a><tt class="py-lineno"> 120</tt> <tt class="py-line"><tt id="link-23" class="py-name" targets="Variable proton.API_LANGUAGE=proton-module.html#API_LANGUAGE"><a title="proton.API_LANGUAGE" class="py-name" href="#" onclick="return doclink('link-23', 'API_LANGUAGE', 'link-23');">API_LANGUAGE</a></tt> <tt class="py-op">=</tt> <tt class="py-string">"C"</tt> </tt>
<a name="L121"></a><tt class="py-lineno"> 121</tt> <tt class="py-line"><tt id="link-24" class="py-name" targets="Variable proton.IMPLEMENTATION_LANGUAGE=proton-module.html#IMPLEMENTATION_LANGUAGE"><a title="proton.IMPLEMENTATION_LANGUAGE" class="py-name" href="#" onclick="return doclink('link-24', 'IMPLEMENTATION_LANGUAGE', 'link-24');">IMPLEMENTATION_LANGUAGE</a></tt> <tt class="py-op">=</tt> <tt class="py-string">"C"</tt> </tt>
<a name="Constant"></a><div id="Constant-def"><a name="L122"></a><tt class="py-lineno"> 122</tt> <tt class="py-line"> </tt>
<a name="L123"></a><tt class="py-lineno"> 123</tt> <a class="py-toggle" href="#" id="Constant-toggle" onclick="return toggle('Constant');">-</a><tt class="py-line"><tt class="py-keyword">class</tt> <a class="py-def-name" href="proton.Constant-class.html">Constant</a><tt class="py-op">(</tt><tt class="py-base-class">object</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Constant-collapsed" style="display:none;" pad="++++" indent="++++"></div><div id="Constant-expanded"><a name="L124"></a><tt class="py-lineno"> 124</tt> <tt class="py-line"> </tt>
<a name="Constant.__init__"></a><div id="Constant.__init__-def"><a name="L125"></a><tt class="py-lineno"> 125</tt> <a class="py-toggle" href="#" id="Constant.__init__-toggle" onclick="return toggle('Constant.__init__');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Constant-class.html#__init__">__init__</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">name</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Constant.__init__-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Constant.__init__-expanded"><a name="L126"></a><tt class="py-lineno"> 126</tt> <tt class="py-line"> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-25" class="py-name" targets="Variable proton.Link.name=proton.Link-class.html#name,Variable proton.Messenger.name=proton.Messenger-class.html#name"><a title="proton.Link.name
proton.Messenger.name" class="py-name" href="#" onclick="return doclink('link-25', 'name', 'link-25');">name</a></tt> <tt class="py-op">=</tt> <tt id="link-26" class="py-name"><a title="proton.Link.name
proton.Messenger.name" class="py-name" href="#" onclick="return doclink('link-26', 'name', 'link-25');">name</a></tt> </tt>
</div><a name="L127"></a><tt class="py-lineno"> 127</tt> <tt class="py-line"> </tt>
<a name="Constant.__repr__"></a><div id="Constant.__repr__-def"><a name="L128"></a><tt class="py-lineno"> 128</tt> <a class="py-toggle" href="#" id="Constant.__repr__-toggle" onclick="return toggle('Constant.__repr__');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Constant-class.html#__repr__">__repr__</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Constant.__repr__-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Constant.__repr__-expanded"><a name="L129"></a><tt class="py-lineno"> 129</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-27" class="py-name"><a title="proton.Link.name
proton.Messenger.name" class="py-name" href="#" onclick="return doclink('link-27', 'name', 'link-25');">name</a></tt> </tt>
</div></div><a name="L130"></a><tt class="py-lineno"> 130</tt> <tt class="py-line"> </tt>
<a name="ProtonException"></a><div id="ProtonException-def"><a name="L131"></a><tt class="py-lineno"> 131</tt> <a class="py-toggle" href="#" id="ProtonException-toggle" onclick="return toggle('ProtonException');">-</a><tt class="py-line"><tt class="py-keyword">class</tt> <a class="py-def-name" href="proton.ProtonException-class.html">ProtonException</a><tt class="py-op">(</tt><tt class="py-base-class">Exception</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="ProtonException-collapsed" style="display:none;" pad="++++" indent="++++"></div><div id="ProtonException-expanded"><a name="L132"></a><tt class="py-lineno"> 132</tt> <tt class="py-line"> <tt class="py-docstring">"""</tt> </tt>
<a name="L133"></a><tt class="py-lineno"> 133</tt> <tt class="py-line"><tt class="py-docstring"> The root of the proton exception hierarchy. All proton exception</tt> </tt>
<a name="L134"></a><tt class="py-lineno"> 134</tt> <tt class="py-line"><tt class="py-docstring"> classes derive from this exception.</tt> </tt>
<a name="L135"></a><tt class="py-lineno"> 135</tt> <tt class="py-line"><tt class="py-docstring"> """</tt> </tt>
<a name="L136"></a><tt class="py-lineno"> 136</tt> <tt class="py-line"> <tt class="py-keyword">pass</tt> </tt>
</div><a name="L137"></a><tt class="py-lineno"> 137</tt> <tt class="py-line"> </tt>
<a name="Timeout"></a><div id="Timeout-def"><a name="L138"></a><tt class="py-lineno"> 138</tt> <a class="py-toggle" href="#" id="Timeout-toggle" onclick="return toggle('Timeout');">-</a><tt class="py-line"><tt class="py-keyword">class</tt> <a class="py-def-name" href="proton.Timeout-class.html">Timeout</a><tt class="py-op">(</tt><tt class="py-base-class">ProtonException</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Timeout-collapsed" style="display:none;" pad="++++" indent="++++"></div><div id="Timeout-expanded"><a name="L139"></a><tt class="py-lineno"> 139</tt> <tt class="py-line"> <tt class="py-docstring">"""</tt> </tt>
<a name="L140"></a><tt class="py-lineno"> 140</tt> <tt class="py-line"><tt class="py-docstring"> A timeout exception indicates that a blocking operation has timed</tt> </tt>
<a name="L141"></a><tt class="py-lineno"> 141</tt> <tt class="py-line"><tt class="py-docstring"> out.</tt> </tt>
<a name="L142"></a><tt class="py-lineno"> 142</tt> <tt class="py-line"><tt class="py-docstring"> """</tt> </tt>
<a name="L143"></a><tt class="py-lineno"> 143</tt> <tt class="py-line"> <tt class="py-keyword">pass</tt> </tt>
</div><a name="L144"></a><tt class="py-lineno"> 144</tt> <tt class="py-line"> </tt>
<a name="Interrupt"></a><div id="Interrupt-def"><a name="L145"></a><tt class="py-lineno"> 145</tt> <a class="py-toggle" href="#" id="Interrupt-toggle" onclick="return toggle('Interrupt');">-</a><tt class="py-line"><tt class="py-keyword">class</tt> <a class="py-def-name" href="proton.Interrupt-class.html">Interrupt</a><tt class="py-op">(</tt><tt class="py-base-class">ProtonException</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Interrupt-collapsed" style="display:none;" pad="++++" indent="++++"></div><div id="Interrupt-expanded"><a name="L146"></a><tt class="py-lineno"> 146</tt> <tt class="py-line"> <tt class="py-docstring">"""</tt> </tt>
<a name="L147"></a><tt class="py-lineno"> 147</tt> <tt class="py-line"><tt class="py-docstring"> An interrupt exception indicaes that a blocking operation was interrupted.</tt> </tt>
<a name="L148"></a><tt class="py-lineno"> 148</tt> <tt class="py-line"><tt class="py-docstring"> """</tt> </tt>
<a name="L149"></a><tt class="py-lineno"> 149</tt> <tt class="py-line"> <tt class="py-keyword">pass</tt> </tt>
</div><a name="L150"></a><tt class="py-lineno"> 150</tt> <tt class="py-line"> </tt>
<a name="MessengerException"></a><div id="MessengerException-def"><a name="L151"></a><tt class="py-lineno"> 151</tt> <a class="py-toggle" href="#" id="MessengerException-toggle" onclick="return toggle('MessengerException');">-</a><tt class="py-line"><tt class="py-keyword">class</tt> <a class="py-def-name" href="proton.MessengerException-class.html">MessengerException</a><tt class="py-op">(</tt><tt class="py-base-class">ProtonException</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="MessengerException-collapsed" style="display:none;" pad="++++" indent="++++"></div><div id="MessengerException-expanded"><a name="L152"></a><tt class="py-lineno"> 152</tt> <tt class="py-line"> <tt class="py-docstring">"""</tt> </tt>
<a name="L153"></a><tt class="py-lineno"> 153</tt> <tt class="py-line"><tt class="py-docstring"> The root of the messenger exception hierarchy. All exceptions</tt> </tt>
<a name="L154"></a><tt class="py-lineno"> 154</tt> <tt class="py-line"><tt class="py-docstring"> generated by the messenger class derive from this exception.</tt> </tt>
<a name="L155"></a><tt class="py-lineno"> 155</tt> <tt class="py-line"><tt class="py-docstring"> """</tt> </tt>
<a name="L156"></a><tt class="py-lineno"> 156</tt> <tt class="py-line"> <tt class="py-keyword">pass</tt> </tt>
</div><a name="L157"></a><tt class="py-lineno"> 157</tt> <tt class="py-line"> </tt>
<a name="MessageException"></a><div id="MessageException-def"><a name="L158"></a><tt class="py-lineno"> 158</tt> <a class="py-toggle" href="#" id="MessageException-toggle" onclick="return toggle('MessageException');">-</a><tt class="py-line"><tt class="py-keyword">class</tt> <a class="py-def-name" href="proton.MessageException-class.html">MessageException</a><tt class="py-op">(</tt><tt class="py-base-class">ProtonException</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="MessageException-collapsed" style="display:none;" pad="++++" indent="++++"></div><div id="MessageException-expanded"><a name="L159"></a><tt class="py-lineno"> 159</tt> <tt class="py-line"> <tt class="py-docstring">"""</tt> </tt>
<a name="L160"></a><tt class="py-lineno"> 160</tt> <tt class="py-line"><tt class="py-docstring"> The MessageException class is the root of the message exception</tt> </tt>
<a name="L161"></a><tt class="py-lineno"> 161</tt> <tt class="py-line"><tt class="py-docstring"> hierarhcy. All exceptions generated by the Message class derive from</tt> </tt>
<a name="L162"></a><tt class="py-lineno"> 162</tt> <tt class="py-line"><tt class="py-docstring"> this exception.</tt> </tt>
<a name="L163"></a><tt class="py-lineno"> 163</tt> <tt class="py-line"><tt class="py-docstring"> """</tt> </tt>
<a name="L164"></a><tt class="py-lineno"> 164</tt> <tt class="py-line"> <tt class="py-keyword">pass</tt> </tt>
</div><a name="L165"></a><tt class="py-lineno"> 165</tt> <tt class="py-line"> </tt>
<a name="L166"></a><tt class="py-lineno"> 166</tt> <tt class="py-line"><tt id="link-28" class="py-name" targets="Variable proton.EXCEPTIONS=proton-module.html#EXCEPTIONS"><a title="proton.EXCEPTIONS" class="py-name" href="#" onclick="return doclink('link-28', 'EXCEPTIONS', 'link-28');">EXCEPTIONS</a></tt> <tt class="py-op">=</tt> <tt class="py-op">{</tt> </tt>
<a name="L167"></a><tt class="py-lineno"> 167</tt> <tt class="py-line"> <tt class="py-name">PN_TIMEOUT</tt><tt class="py-op">:</tt> <tt id="link-29" class="py-name" targets="Class proton.Timeout=proton.Timeout-class.html"><a title="proton.Timeout" class="py-name" href="#" onclick="return doclink('link-29', 'Timeout', 'link-29');">Timeout</a></tt><tt class="py-op">,</tt> </tt>
<a name="L168"></a><tt class="py-lineno"> 168</tt> <tt class="py-line"> <tt class="py-name">PN_INTR</tt><tt class="py-op">:</tt> <tt id="link-30" class="py-name" targets="Class proton.Interrupt=proton.Interrupt-class.html"><a title="proton.Interrupt" class="py-name" href="#" onclick="return doclink('link-30', 'Interrupt', 'link-30');">Interrupt</a></tt> </tt>
<a name="L169"></a><tt class="py-lineno"> 169</tt> <tt class="py-line"> <tt class="py-op">}</tt> </tt>
<a name="L170"></a><tt class="py-lineno"> 170</tt> <tt class="py-line"> </tt>
<a name="L171"></a><tt class="py-lineno"> 171</tt> <tt class="py-line"><tt id="link-31" class="py-name" targets="Variable proton.PENDING=proton-module.html#PENDING"><a title="proton.PENDING" class="py-name" href="#" onclick="return doclink('link-31', 'PENDING', 'link-31');">PENDING</a></tt> <tt class="py-op">=</tt> <tt class="py-name">Constant</tt><tt class="py-op">(</tt><tt class="py-string">"PENDING"</tt><tt class="py-op">)</tt> </tt>
<a name="L172"></a><tt class="py-lineno"> 172</tt> <tt class="py-line"><tt id="link-32" class="py-name" targets="Variable proton.ACCEPTED=proton-module.html#ACCEPTED,Variable proton.Delivery.ACCEPTED=proton.Delivery-class.html#ACCEPTED,Variable proton.Disposition.ACCEPTED=proton.Disposition-class.html#ACCEPTED"><a title="proton.ACCEPTED
proton.Delivery.ACCEPTED
proton.Disposition.ACCEPTED" class="py-name" href="#" onclick="return doclink('link-32', 'ACCEPTED', 'link-32');">ACCEPTED</a></tt> <tt class="py-op">=</tt> <tt class="py-name">Constant</tt><tt class="py-op">(</tt><tt class="py-string">"ACCEPTED"</tt><tt class="py-op">)</tt> </tt>
<a name="L173"></a><tt class="py-lineno"> 173</tt> <tt class="py-line"><tt id="link-33" class="py-name" targets="Variable proton.Delivery.REJECTED=proton.Delivery-class.html#REJECTED,Variable proton.Disposition.REJECTED=proton.Disposition-class.html#REJECTED,Variable proton.REJECTED=proton-module.html#REJECTED"><a title="proton.Delivery.REJECTED
proton.Disposition.REJECTED
proton.REJECTED" class="py-name" href="#" onclick="return doclink('link-33', 'REJECTED', 'link-33');">REJECTED</a></tt> <tt class="py-op">=</tt> <tt class="py-name">Constant</tt><tt class="py-op">(</tt><tt class="py-string">"REJECTED"</tt><tt class="py-op">)</tt> </tt>
<a name="L174"></a><tt class="py-lineno"> 174</tt> <tt class="py-line"><tt id="link-34" class="py-name" targets="Variable proton.Delivery.RELEASED=proton.Delivery-class.html#RELEASED,Variable proton.Disposition.RELEASED=proton.Disposition-class.html#RELEASED,Variable proton.RELEASED=proton-module.html#RELEASED"><a title="proton.Delivery.RELEASED
proton.Disposition.RELEASED
proton.RELEASED" class="py-name" href="#" onclick="return doclink('link-34', 'RELEASED', 'link-34');">RELEASED</a></tt> <tt class="py-op">=</tt> <tt class="py-name">Constant</tt><tt class="py-op">(</tt><tt class="py-string">"RELEASED"</tt><tt class="py-op">)</tt> </tt>
<a name="L175"></a><tt class="py-lineno"> 175</tt> <tt class="py-line"><tt id="link-35" class="py-name" targets="Variable proton.Delivery.MODIFIED=proton.Delivery-class.html#MODIFIED,Variable proton.Disposition.MODIFIED=proton.Disposition-class.html#MODIFIED,Variable proton.MODIFIED=proton-module.html#MODIFIED"><a title="proton.Delivery.MODIFIED
proton.Disposition.MODIFIED
proton.MODIFIED" class="py-name" href="#" onclick="return doclink('link-35', 'MODIFIED', 'link-35');">MODIFIED</a></tt> <tt class="py-op">=</tt> <tt class="py-name">Constant</tt><tt class="py-op">(</tt><tt class="py-string">"MODIFIED"</tt><tt class="py-op">)</tt> </tt>
<a name="L176"></a><tt class="py-lineno"> 176</tt> <tt class="py-line"><tt id="link-36" class="py-name" targets="Variable proton.ABORTED=proton-module.html#ABORTED"><a title="proton.ABORTED" class="py-name" href="#" onclick="return doclink('link-36', 'ABORTED', 'link-36');">ABORTED</a></tt> <tt class="py-op">=</tt> <tt class="py-name">Constant</tt><tt class="py-op">(</tt><tt class="py-string">"ABORTED"</tt><tt class="py-op">)</tt> </tt>
<a name="L177"></a><tt class="py-lineno"> 177</tt> <tt class="py-line"><tt id="link-37" class="py-name" targets="Variable proton.SETTLED=proton-module.html#SETTLED"><a title="proton.SETTLED" class="py-name" href="#" onclick="return doclink('link-37', 'SETTLED', 'link-37');">SETTLED</a></tt> <tt class="py-op">=</tt> <tt class="py-name">Constant</tt><tt class="py-op">(</tt><tt class="py-string">"SETTLED"</tt><tt class="py-op">)</tt> </tt>
<a name="L178"></a><tt class="py-lineno"> 178</tt> <tt class="py-line"> </tt>
<a name="L179"></a><tt class="py-lineno"> 179</tt> <tt class="py-line"><tt id="link-38" class="py-name" targets="Variable proton.STATUSES=proton-module.html#STATUSES"><a title="proton.STATUSES" class="py-name" href="#" onclick="return doclink('link-38', 'STATUSES', 'link-38');">STATUSES</a></tt> <tt class="py-op">=</tt> <tt class="py-op">{</tt> </tt>
<a name="L180"></a><tt class="py-lineno"> 180</tt> <tt class="py-line"> <tt class="py-name">PN_STATUS_ABORTED</tt><tt class="py-op">:</tt> <tt id="link-39" class="py-name"><a title="proton.ABORTED" class="py-name" href="#" onclick="return doclink('link-39', 'ABORTED', 'link-36');">ABORTED</a></tt><tt class="py-op">,</tt> </tt>
<a name="L181"></a><tt class="py-lineno"> 181</tt> <tt class="py-line"> <tt class="py-name">PN_STATUS_ACCEPTED</tt><tt class="py-op">:</tt> <tt id="link-40" class="py-name"><a title="proton.ACCEPTED
proton.Delivery.ACCEPTED
proton.Disposition.ACCEPTED" class="py-name" href="#" onclick="return doclink('link-40', 'ACCEPTED', 'link-32');">ACCEPTED</a></tt><tt class="py-op">,</tt> </tt>
<a name="L182"></a><tt class="py-lineno"> 182</tt> <tt class="py-line"> <tt class="py-name">PN_STATUS_REJECTED</tt><tt class="py-op">:</tt> <tt id="link-41" class="py-name"><a title="proton.Delivery.REJECTED
proton.Disposition.REJECTED
proton.REJECTED" class="py-name" href="#" onclick="return doclink('link-41', 'REJECTED', 'link-33');">REJECTED</a></tt><tt class="py-op">,</tt> </tt>
<a name="L183"></a><tt class="py-lineno"> 183</tt> <tt class="py-line"> <tt class="py-name">PN_STATUS_RELEASED</tt><tt class="py-op">:</tt> <tt id="link-42" class="py-name"><a title="proton.Delivery.RELEASED
proton.Disposition.RELEASED
proton.RELEASED" class="py-name" href="#" onclick="return doclink('link-42', 'RELEASED', 'link-34');">RELEASED</a></tt><tt class="py-op">,</tt> </tt>
<a name="L184"></a><tt class="py-lineno"> 184</tt> <tt class="py-line"> <tt class="py-name">PN_STATUS_MODIFIED</tt><tt class="py-op">:</tt> <tt id="link-43" class="py-name"><a title="proton.Delivery.MODIFIED
proton.Disposition.MODIFIED
proton.MODIFIED" class="py-name" href="#" onclick="return doclink('link-43', 'MODIFIED', 'link-35');">MODIFIED</a></tt><tt class="py-op">,</tt> </tt>
<a name="L185"></a><tt class="py-lineno"> 185</tt> <tt class="py-line"> <tt class="py-name">PN_STATUS_PENDING</tt><tt class="py-op">:</tt> <tt id="link-44" class="py-name"><a title="proton.PENDING" class="py-name" href="#" onclick="return doclink('link-44', 'PENDING', 'link-31');">PENDING</a></tt><tt class="py-op">,</tt> </tt>
<a name="L186"></a><tt class="py-lineno"> 186</tt> <tt class="py-line"> <tt class="py-name">PN_STATUS_SETTLED</tt><tt class="py-op">:</tt> <tt id="link-45" class="py-name"><a title="proton.SETTLED" class="py-name" href="#" onclick="return doclink('link-45', 'SETTLED', 'link-37');">SETTLED</a></tt><tt class="py-op">,</tt> </tt>
<a name="L187"></a><tt class="py-lineno"> 187</tt> <tt class="py-line"> <tt class="py-name">PN_STATUS_UNKNOWN</tt><tt class="py-op">:</tt> <tt class="py-name">None</tt> </tt>
<a name="L188"></a><tt class="py-lineno"> 188</tt> <tt class="py-line"> <tt class="py-op">}</tt> </tt>
<a name="L189"></a><tt class="py-lineno"> 189</tt> <tt class="py-line"> </tt>
<a name="L190"></a><tt class="py-lineno"> 190</tt> <tt class="py-line"><tt id="link-46" class="py-name" targets="Variable proton.AUTOMATIC=proton-module.html#AUTOMATIC"><a title="proton.AUTOMATIC" class="py-name" href="#" onclick="return doclink('link-46', 'AUTOMATIC', 'link-46');">AUTOMATIC</a></tt> <tt class="py-op">=</tt> <tt class="py-name">Constant</tt><tt class="py-op">(</tt><tt class="py-string">"AUTOMATIC"</tt><tt class="py-op">)</tt> </tt>
<a name="L191"></a><tt class="py-lineno"> 191</tt> <tt class="py-line"><tt id="link-47" class="py-name" targets="Variable proton.MANUAL=proton-module.html#MANUAL"><a title="proton.MANUAL" class="py-name" href="#" onclick="return doclink('link-47', 'MANUAL', 'link-47');">MANUAL</a></tt> <tt class="py-op">=</tt> <tt class="py-name">Constant</tt><tt class="py-op">(</tt><tt class="py-string">"MANUAL"</tt><tt class="py-op">)</tt> </tt>
<a name="Messenger"></a><div id="Messenger-def"><a name="L192"></a><tt class="py-lineno"> 192</tt> <tt class="py-line"> </tt>
<a name="L193"></a><tt class="py-lineno"> 193</tt> <a class="py-toggle" href="#" id="Messenger-toggle" onclick="return toggle('Messenger');">-</a><tt class="py-line"><tt class="py-keyword">class</tt> <a class="py-def-name" href="proton.Messenger-class.html">Messenger</a><tt class="py-op">(</tt><tt class="py-base-class">object</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Messenger-collapsed" style="display:none;" pad="++++" indent="++++"></div><div id="Messenger-expanded"><a name="L194"></a><tt class="py-lineno"> 194</tt> <tt class="py-line"> <tt class="py-docstring">"""</tt> </tt>
<a name="L195"></a><tt class="py-lineno"> 195</tt> <tt class="py-line"><tt class="py-docstring"> The L{Messenger} class defines a high level interface for sending</tt> </tt>
<a name="L196"></a><tt class="py-lineno"> 196</tt> <tt class="py-line"><tt class="py-docstring"> and receiving L{Messages<Message>}. Every L{Messenger} contains a</tt> </tt>
<a name="L197"></a><tt class="py-lineno"> 197</tt> <tt class="py-line"><tt class="py-docstring"> single logical queue of incoming messages and a single logical queue</tt> </tt>
<a name="L198"></a><tt class="py-lineno"> 198</tt> <tt class="py-line"><tt class="py-docstring"> of outgoing messages. These messages in these queues may be destined</tt> </tt>
<a name="L199"></a><tt class="py-lineno"> 199</tt> <tt class="py-line"><tt class="py-docstring"> for, or originate from, a variety of addresses.</tt> </tt>
<a name="L200"></a><tt class="py-lineno"> 200</tt> <tt class="py-line"><tt class="py-docstring"></tt> </tt>
<a name="L201"></a><tt class="py-lineno"> 201</tt> <tt class="py-line"><tt class="py-docstring"> The messenger interface is single-threaded. All methods</tt> </tt>
<a name="L202"></a><tt class="py-lineno"> 202</tt> <tt class="py-line"><tt class="py-docstring"> except one (L{interrupt}) are intended to be used from within</tt> </tt>
<a name="L203"></a><tt class="py-lineno"> 203</tt> <tt class="py-line"><tt class="py-docstring"> the messenger thread.</tt> </tt>
<a name="L204"></a><tt class="py-lineno"> 204</tt> <tt class="py-line"><tt class="py-docstring"></tt> </tt>
<a name="L205"></a><tt class="py-lineno"> 205</tt> <tt class="py-line"><tt class="py-docstring"></tt> </tt>
<a name="L206"></a><tt class="py-lineno"> 206</tt> <tt class="py-line"><tt class="py-docstring"> Address Syntax</tt> </tt>
<a name="L207"></a><tt class="py-lineno"> 207</tt> <tt class="py-line"><tt class="py-docstring"> ==============</tt> </tt>
<a name="L208"></a><tt class="py-lineno"> 208</tt> <tt class="py-line"><tt class="py-docstring"></tt> </tt>
<a name="L209"></a><tt class="py-lineno"> 209</tt> <tt class="py-line"><tt class="py-docstring"> An address has the following form::</tt> </tt>
<a name="L210"></a><tt class="py-lineno"> 210</tt> <tt class="py-line"><tt class="py-docstring"></tt> </tt>
<a name="L211"></a><tt class="py-lineno"> 211</tt> <tt class="py-line"><tt class="py-docstring"> [ amqp[s]:// ] [user[:password]@] domain [/[name]]</tt> </tt>
<a name="L212"></a><tt class="py-lineno"> 212</tt> <tt class="py-line"><tt class="py-docstring"></tt> </tt>
<a name="L213"></a><tt class="py-lineno"> 213</tt> <tt class="py-line"><tt class="py-docstring"> Where domain can be one of::</tt> </tt>
<a name="L214"></a><tt class="py-lineno"> 214</tt> <tt class="py-line"><tt class="py-docstring"></tt> </tt>
<a name="L215"></a><tt class="py-lineno"> 215</tt> <tt class="py-line"><tt class="py-docstring"> host | host:port | ip | ip:port | name</tt> </tt>
<a name="L216"></a><tt class="py-lineno"> 216</tt> <tt class="py-line"><tt class="py-docstring"></tt> </tt>
<a name="L217"></a><tt class="py-lineno"> 217</tt> <tt class="py-line"><tt class="py-docstring"> The following are valid examples of addresses:</tt> </tt>
<a name="L218"></a><tt class="py-lineno"> 218</tt> <tt class="py-line"><tt class="py-docstring"></tt> </tt>
<a name="L219"></a><tt class="py-lineno"> 219</tt> <tt class="py-line"><tt class="py-docstring"> - example.org</tt> </tt>
<a name="L220"></a><tt class="py-lineno"> 220</tt> <tt class="py-line"><tt class="py-docstring"> - example.org:1234</tt> </tt>
<a name="L221"></a><tt class="py-lineno"> 221</tt> <tt class="py-line"><tt class="py-docstring"> - amqp://example.org</tt> </tt>
<a name="L222"></a><tt class="py-lineno"> 222</tt> <tt class="py-line"><tt class="py-docstring"> - amqps://example.org</tt> </tt>
<a name="L223"></a><tt class="py-lineno"> 223</tt> <tt class="py-line"><tt class="py-docstring"> - example.org/incoming</tt> </tt>
<a name="L224"></a><tt class="py-lineno"> 224</tt> <tt class="py-line"><tt class="py-docstring"> - amqps://example.org/outgoing</tt> </tt>
<a name="L225"></a><tt class="py-lineno"> 225</tt> <tt class="py-line"><tt class="py-docstring"> - amqps://fred:trustno1@example.org</tt> </tt>
<a name="L226"></a><tt class="py-lineno"> 226</tt> <tt class="py-line"><tt class="py-docstring"> - 127.0.0.1:1234</tt> </tt>
<a name="L227"></a><tt class="py-lineno"> 227</tt> <tt class="py-line"><tt class="py-docstring"> - amqps://127.0.0.1:1234</tt> </tt>
<a name="L228"></a><tt class="py-lineno"> 228</tt> <tt class="py-line"><tt class="py-docstring"></tt> </tt>
<a name="L229"></a><tt class="py-lineno"> 229</tt> <tt class="py-line"><tt class="py-docstring"> Sending & Receiving Messages</tt> </tt>
<a name="L230"></a><tt class="py-lineno"> 230</tt> <tt class="py-line"><tt class="py-docstring"> ============================</tt> </tt>
<a name="L231"></a><tt class="py-lineno"> 231</tt> <tt class="py-line"><tt class="py-docstring"></tt> </tt>
<a name="L232"></a><tt class="py-lineno"> 232</tt> <tt class="py-line"><tt class="py-docstring"> The L{Messenger} class works in conjuction with the L{Message} class. The</tt> </tt>
<a name="L233"></a><tt class="py-lineno"> 233</tt> <tt class="py-line"><tt class="py-docstring"> L{Message} class is a mutable holder of message content.</tt> </tt>
<a name="L234"></a><tt class="py-lineno"> 234</tt> <tt class="py-line"><tt class="py-docstring"></tt> </tt>
<a name="L235"></a><tt class="py-lineno"> 235</tt> <tt class="py-line"><tt class="py-docstring"> The L{put} method copies its L{Message} to the outgoing queue, and may</tt> </tt>
<a name="L236"></a><tt class="py-lineno"> 236</tt> <tt class="py-line"><tt class="py-docstring"> send queued messages if it can do so without blocking. The L{send}</tt> </tt>
<a name="L237"></a><tt class="py-lineno"> 237</tt> <tt class="py-line"><tt class="py-docstring"> method blocks until it has sent the requested number of messages,</tt> </tt>
<a name="L238"></a><tt class="py-lineno"> 238</tt> <tt class="py-line"><tt class="py-docstring"> or until a timeout interrupts the attempt.</tt> </tt>
<a name="L239"></a><tt class="py-lineno"> 239</tt> <tt class="py-line"><tt class="py-docstring"></tt> </tt>
<a name="L240"></a><tt class="py-lineno"> 240</tt> <tt class="py-line"><tt class="py-docstring"></tt> </tt>
<a name="L241"></a><tt class="py-lineno"> 241</tt> <tt class="py-line"><tt class="py-docstring"> >>> message = Message()</tt> </tt>
<a name="L242"></a><tt class="py-lineno"> 242</tt> <tt class="py-line"><tt class="py-docstring"> >>> for i in range(3):</tt> </tt>
<a name="L243"></a><tt class="py-lineno"> 243</tt> <tt class="py-line"><tt class="py-docstring"> ... message.address = "amqp://host/queue"</tt> </tt>
<a name="L244"></a><tt class="py-lineno"> 244</tt> <tt class="py-line"><tt class="py-docstring"> ... message.subject = "Hello World %i" % i</tt> </tt>
<a name="L245"></a><tt class="py-lineno"> 245</tt> <tt class="py-line"><tt class="py-docstring"> ... messenger.put(message)</tt> </tt>
<a name="L246"></a><tt class="py-lineno"> 246</tt> <tt class="py-line"><tt class="py-docstring"> >>> messenger.send()</tt> </tt>
<a name="L247"></a><tt class="py-lineno"> 247</tt> <tt class="py-line"><tt class="py-docstring"></tt> </tt>
<a name="L248"></a><tt class="py-lineno"> 248</tt> <tt class="py-line"><tt class="py-docstring"> Similarly, the L{recv} method receives messages into the incoming</tt> </tt>
<a name="L249"></a><tt class="py-lineno"> 249</tt> <tt class="py-line"><tt class="py-docstring"> queue, and may block as it attempts to receive the requested number</tt> </tt>
<a name="L250"></a><tt class="py-lineno"> 250</tt> <tt class="py-line"><tt class="py-docstring"> of messages, or until timeout is reached. It may receive fewer</tt> </tt>
<a name="L251"></a><tt class="py-lineno"> 251</tt> <tt class="py-line"><tt class="py-docstring"> than the requested number. The L{get} method pops the</tt> </tt>
<a name="L252"></a><tt class="py-lineno"> 252</tt> <tt class="py-line"><tt class="py-docstring"> eldest L{Message} off the incoming queue and copies it into the L{Message}</tt> </tt>
<a name="L253"></a><tt class="py-lineno"> 253</tt> <tt class="py-line"><tt class="py-docstring"> object that you supply. It will not block.</tt> </tt>
<a name="L254"></a><tt class="py-lineno"> 254</tt> <tt class="py-line"><tt class="py-docstring"></tt> </tt>
<a name="L255"></a><tt class="py-lineno"> 255</tt> <tt class="py-line"><tt class="py-docstring"></tt> </tt>
<a name="L256"></a><tt class="py-lineno"> 256</tt> <tt class="py-line"><tt class="py-docstring"> >>> message = Message()</tt> </tt>
<a name="L257"></a><tt class="py-lineno"> 257</tt> <tt class="py-line"><tt class="py-docstring"> >>> messenger.recv(10):</tt> </tt>
<a name="L258"></a><tt class="py-lineno"> 258</tt> <tt class="py-line"><tt class="py-docstring"> >>> while messenger.incoming > 0:</tt> </tt>
<a name="L259"></a><tt class="py-lineno"> 259</tt> <tt class="py-line"><tt class="py-docstring"> ... messenger.get(message)</tt> </tt>
<a name="L260"></a><tt class="py-lineno"> 260</tt> <tt class="py-line"><tt class="py-docstring"> ... print message.subject</tt> </tt>
<a name="L261"></a><tt class="py-lineno"> 261</tt> <tt class="py-line"><tt class="py-docstring"> Hello World 0</tt> </tt>
<a name="L262"></a><tt class="py-lineno"> 262</tt> <tt class="py-line"><tt class="py-docstring"> Hello World 1</tt> </tt>
<a name="L263"></a><tt class="py-lineno"> 263</tt> <tt class="py-line"><tt class="py-docstring"> Hello World 2</tt> </tt>
<a name="L264"></a><tt class="py-lineno"> 264</tt> <tt class="py-line"><tt class="py-docstring"></tt> </tt>
<a name="L265"></a><tt class="py-lineno"> 265</tt> <tt class="py-line"><tt class="py-docstring"> The blocking flag allows you to turn off blocking behavior entirely,</tt> </tt>
<a name="L266"></a><tt class="py-lineno"> 266</tt> <tt class="py-line"><tt class="py-docstring"> in which case L{send} and L{recv} will do whatever they can without</tt> </tt>
<a name="L267"></a><tt class="py-lineno"> 267</tt> <tt class="py-line"><tt class="py-docstring"> blocking, and then return. You can then look at the number</tt> </tt>
<a name="L268"></a><tt class="py-lineno"> 268</tt> <tt class="py-line"><tt class="py-docstring"> of incoming and outgoing messages to see how much outstanding work</tt> </tt>
<a name="L269"></a><tt class="py-lineno"> 269</tt> <tt class="py-line"><tt class="py-docstring"> still remains.</tt> </tt>
<a name="L270"></a><tt class="py-lineno"> 270</tt> <tt class="py-line"><tt class="py-docstring"> """</tt> </tt>
<a name="L271"></a><tt class="py-lineno"> 271</tt> <tt class="py-line"> </tt>
<a name="Messenger.__init__"></a><div id="Messenger.__init__-def"><a name="L272"></a><tt class="py-lineno"> 272</tt> <a class="py-toggle" href="#" id="Messenger.__init__-toggle" onclick="return toggle('Messenger.__init__');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Messenger-class.html#__init__">__init__</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">name</tt><tt class="py-op">=</tt><tt class="py-name">None</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Messenger.__init__-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Messenger.__init__-expanded"><a name="L273"></a><tt class="py-lineno"> 273</tt> <tt class="py-line"> <tt class="py-docstring">"""</tt> </tt>
<a name="L274"></a><tt class="py-lineno"> 274</tt> <tt class="py-line"><tt class="py-docstring"> Construct a new L{Messenger} with the given name. The name has</tt> </tt>
<a name="L275"></a><tt class="py-lineno"> 275</tt> <tt class="py-line"><tt class="py-docstring"> global scope. If a NULL name is supplied, a UUID based name will</tt> </tt>
<a name="L276"></a><tt class="py-lineno"> 276</tt> <tt class="py-line"><tt class="py-docstring"> be chosen.</tt> </tt>
<a name="L277"></a><tt class="py-lineno"> 277</tt> <tt class="py-line"><tt class="py-docstring"></tt> </tt>
<a name="L278"></a><tt class="py-lineno"> 278</tt> <tt class="py-line"><tt class="py-docstring"> @type name: string</tt> </tt>
<a name="L279"></a><tt class="py-lineno"> 279</tt> <tt class="py-line"><tt class="py-docstring"> @param name: the name of the messenger or None</tt> </tt>
<a name="L280"></a><tt class="py-lineno"> 280</tt> <tt class="py-line"><tt class="py-docstring"></tt> </tt>
<a name="L281"></a><tt class="py-lineno"> 281</tt> <tt class="py-line"><tt class="py-docstring"> """</tt> </tt>
<a name="L282"></a><tt class="py-lineno"> 282</tt> <tt class="py-line"> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_mng</tt> <tt class="py-op">=</tt> <tt class="py-name">pn_messenger</tt><tt class="py-op">(</tt><tt id="link-48" class="py-name"><a title="proton.Link.name
proton.Messenger.name" class="py-name" href="#" onclick="return doclink('link-48', 'name', 'link-25');">name</a></tt><tt class="py-op">)</tt> </tt>
<a name="L283"></a><tt class="py-lineno"> 283</tt> <tt class="py-line"> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_selectables</tt> <tt class="py-op">=</tt> <tt class="py-op">{</tt><tt class="py-op">}</tt> </tt>
</div><a name="L284"></a><tt class="py-lineno"> 284</tt> <tt class="py-line"> </tt>
<a name="Messenger.__del__"></a><div id="Messenger.__del__-def"><a name="L285"></a><tt class="py-lineno"> 285</tt> <a class="py-toggle" href="#" id="Messenger.__del__-toggle" onclick="return toggle('Messenger.__del__');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Messenger-class.html#__del__">__del__</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Messenger.__del__-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Messenger.__del__-expanded"><a name="L286"></a><tt class="py-lineno"> 286</tt> <tt class="py-line"> <tt class="py-docstring">"""</tt> </tt>
<a name="L287"></a><tt class="py-lineno"> 287</tt> <tt class="py-line"><tt class="py-docstring"> Destroy the L{Messenger}. This will close all connections that</tt> </tt>
<a name="L288"></a><tt class="py-lineno"> 288</tt> <tt class="py-line"><tt class="py-docstring"> are managed by the L{Messenger}. Call the L{stop} method before</tt> </tt>
<a name="L289"></a><tt class="py-lineno"> 289</tt> <tt class="py-line"><tt class="py-docstring"> destroying the L{Messenger}.</tt> </tt>
<a name="L290"></a><tt class="py-lineno"> 290</tt> <tt class="py-line"><tt class="py-docstring"> """</tt> </tt>
<a name="L291"></a><tt class="py-lineno"> 291</tt> <tt class="py-line"> <tt class="py-keyword">if</tt> <tt class="py-name">hasattr</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">,</tt> <tt class="py-string">"_mng"</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
<a name="L292"></a><tt class="py-lineno"> 292</tt> <tt class="py-line"> <tt class="py-name">pn_messenger_free</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_mng</tt><tt class="py-op">)</tt> </tt>
<a name="L293"></a><tt class="py-lineno"> 293</tt> <tt class="py-line"> <tt class="py-keyword">del</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_mng</tt> </tt>
</div><a name="L294"></a><tt class="py-lineno"> 294</tt> <tt class="py-line"> </tt>
<a name="Messenger._check"></a><div id="Messenger._check-def"><a name="L295"></a><tt class="py-lineno"> 295</tt> <a class="py-toggle" href="#" id="Messenger._check-toggle" onclick="return toggle('Messenger._check');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Messenger-class.html#_check">_check</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">err</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Messenger._check-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Messenger._check-expanded"><a name="L296"></a><tt class="py-lineno"> 296</tt> <tt class="py-line"> <tt class="py-keyword">if</tt> <tt class="py-name">err</tt> <tt class="py-op"><</tt> <tt class="py-number">0</tt><tt class="py-op">:</tt> </tt>
<a name="L297"></a><tt class="py-lineno"> 297</tt> <tt class="py-line"> <tt class="py-keyword">if</tt> <tt class="py-op">(</tt><tt class="py-name">err</tt> <tt class="py-op">==</tt> <tt class="py-name">PN_INPROGRESS</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
<a name="L298"></a><tt class="py-lineno"> 298</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> </tt>
<a name="L299"></a><tt class="py-lineno"> 299</tt> <tt class="py-line"> <tt class="py-name">exc</tt> <tt class="py-op">=</tt> <tt id="link-49" class="py-name"><a title="proton.EXCEPTIONS" class="py-name" href="#" onclick="return doclink('link-49', 'EXCEPTIONS', 'link-28');">EXCEPTIONS</a></tt><tt class="py-op">.</tt><tt id="link-50" class="py-name" targets="Method proton.Messenger.get()=proton.Messenger-class.html#get"><a title="proton.Messenger.get" class="py-name" href="#" onclick="return doclink('link-50', 'get', 'link-50');">get</a></tt><tt class="py-op">(</tt><tt class="py-name">err</tt><tt class="py-op">,</tt> <tt id="link-51" class="py-name" targets="Class proton.MessengerException=proton.MessengerException-class.html"><a title="proton.MessengerException" class="py-name" href="#" onclick="return doclink('link-51', 'MessengerException', 'link-51');">MessengerException</a></tt><tt class="py-op">)</tt> </tt>
<a name="L300"></a><tt class="py-lineno"> 300</tt> <tt class="py-line"> <tt class="py-keyword">raise</tt> <tt class="py-name">exc</tt><tt class="py-op">(</tt><tt class="py-string">"[%s]: %s"</tt> <tt class="py-op">%</tt> <tt class="py-op">(</tt><tt class="py-name">err</tt><tt class="py-op">,</tt> <tt class="py-name">pn_error_text</tt><tt class="py-op">(</tt><tt class="py-name">pn_messenger_error</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_mng</tt><tt class="py-op">)</tt><tt class="py-op">)</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
<a name="L301"></a><tt class="py-lineno"> 301</tt> <tt class="py-line"> <tt class="py-keyword">else</tt><tt class="py-op">:</tt> </tt>
<a name="L302"></a><tt class="py-lineno"> 302</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt class="py-name">err</tt> </tt>
</div><a name="L303"></a><tt class="py-lineno"> 303</tt> <tt class="py-line"> </tt>
<a name="L304"></a><tt class="py-lineno"> 304</tt> <tt class="py-line"> <tt class="py-decorator">@</tt><tt class="py-decorator">property</tt> </tt>
<a name="Messenger.name"></a><div id="Messenger.name-def"><a name="L305"></a><tt class="py-lineno"> 305</tt> <a class="py-toggle" href="#" id="Messenger.name-toggle" onclick="return toggle('Messenger.name');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Messenger-class.html#name">name</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Messenger.name-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Messenger.name-expanded"><a name="L306"></a><tt class="py-lineno"> 306</tt> <tt class="py-line"> <tt class="py-docstring">"""</tt> </tt>
<a name="L307"></a><tt class="py-lineno"> 307</tt> <tt class="py-line"><tt class="py-docstring"> The name of the L{Messenger}.</tt> </tt>
<a name="L308"></a><tt class="py-lineno"> 308</tt> <tt class="py-line"><tt class="py-docstring"> """</tt> </tt>
<a name="L309"></a><tt class="py-lineno"> 309</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt class="py-name">pn_messenger_name</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_mng</tt><tt class="py-op">)</tt> </tt>
</div><a name="L310"></a><tt class="py-lineno"> 310</tt> <tt class="py-line"> </tt>
<a name="Messenger._get_certificate"></a><div id="Messenger._get_certificate-def"><a name="L311"></a><tt class="py-lineno"> 311</tt> <a class="py-toggle" href="#" id="Messenger._get_certificate-toggle" onclick="return toggle('Messenger._get_certificate');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Messenger-class.html#_get_certificate">_get_certificate</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Messenger._get_certificate-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Messenger._get_certificate-expanded"><a name="L312"></a><tt class="py-lineno"> 312</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt class="py-name">pn_messenger_get_certificate</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_mng</tt><tt class="py-op">)</tt> </tt>
</div><a name="L313"></a><tt class="py-lineno"> 313</tt> <tt class="py-line"> </tt>
<a name="Messenger._set_certificate"></a><div id="Messenger._set_certificate-def"><a name="L314"></a><tt class="py-lineno"> 314</tt> <a class="py-toggle" href="#" id="Messenger._set_certificate-toggle" onclick="return toggle('Messenger._set_certificate');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Messenger-class.html#_set_certificate">_set_certificate</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">value</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Messenger._set_certificate-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Messenger._set_certificate-expanded"><a name="L315"></a><tt class="py-lineno"> 315</tt> <tt class="py-line"> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_check</tt><tt class="py-op">(</tt><tt class="py-name">pn_messenger_set_certificate</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_mng</tt><tt class="py-op">,</tt> <tt class="py-name">value</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
</div><a name="L316"></a><tt class="py-lineno"> 316</tt> <tt class="py-line"> </tt>
<a name="L317"></a><tt class="py-lineno"> 317</tt> <tt class="py-line"> <tt id="link-52" class="py-name" targets="Variable proton.Messenger.certificate=proton.Messenger-class.html#certificate"><a title="proton.Messenger.certificate" class="py-name" href="#" onclick="return doclink('link-52', 'certificate', 'link-52');">certificate</a></tt> <tt class="py-op">=</tt> <tt class="py-name">property</tt><tt class="py-op">(</tt><tt id="link-53" class="py-name" targets="Method proton.Messenger._get_certificate()=proton.Messenger-class.html#_get_certificate"><a title="proton.Messenger._get_certificate" class="py-name" href="#" onclick="return doclink('link-53', '_get_certificate', 'link-53');">_get_certificate</a></tt><tt class="py-op">,</tt> <tt id="link-54" class="py-name" targets="Method proton.Messenger._set_certificate()=proton.Messenger-class.html#_set_certificate"><a title="proton.Messenger._set_certificate" class="py-name" href="#" onclick="return doclink('link-54', '_set_certificate', 'link-54');">_set_certificate</a></tt><tt class="py-op">,</tt> </tt>
<a name="L318"></a><tt class="py-lineno"> 318</tt> <tt class="py-line"> <tt class="py-name">doc</tt><tt class="py-op">=</tt><tt class="py-string">"""</tt> </tt>
<a name="L319"></a><tt class="py-lineno"> 319</tt> <tt class="py-line"><tt class="py-string">Path to a certificate file for the L{Messenger}. This certificate is</tt> </tt>
<a name="L320"></a><tt class="py-lineno"> 320</tt> <tt class="py-line"><tt class="py-string">used when the L{Messenger} accepts or establishes SSL/TLS connections.</tt> </tt>
<a name="L321"></a><tt class="py-lineno"> 321</tt> <tt class="py-line"><tt class="py-string">This property must be specified for the L{Messenger} to accept</tt> </tt>
<a name="L322"></a><tt class="py-lineno"> 322</tt> <tt class="py-line"><tt class="py-string">incoming SSL/TLS connections and to establish client authenticated</tt> </tt>
<a name="L323"></a><tt class="py-lineno"> 323</tt> <tt class="py-line"><tt class="py-string">outgoing SSL/TLS connection. Non client authenticated outgoing SSL/TLS</tt> </tt>
<a name="L324"></a><tt class="py-lineno"> 324</tt> <tt class="py-line"><tt class="py-string">connections do not require this property.</tt> </tt>
<a name="L325"></a><tt class="py-lineno"> 325</tt> <tt class="py-line"><tt class="py-string">"""</tt><tt class="py-op">)</tt> </tt>
<a name="L326"></a><tt class="py-lineno"> 326</tt> <tt class="py-line"> </tt>
<a name="Messenger._get_private_key"></a><div id="Messenger._get_private_key-def"><a name="L327"></a><tt class="py-lineno"> 327</tt> <a class="py-toggle" href="#" id="Messenger._get_private_key-toggle" onclick="return toggle('Messenger._get_private_key');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Messenger-class.html#_get_private_key">_get_private_key</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Messenger._get_private_key-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Messenger._get_private_key-expanded"><a name="L328"></a><tt class="py-lineno"> 328</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt class="py-name">pn_messenger_get_private_key</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_mng</tt><tt class="py-op">)</tt> </tt>
</div><a name="L329"></a><tt class="py-lineno"> 329</tt> <tt class="py-line"> </tt>
<a name="Messenger._set_private_key"></a><div id="Messenger._set_private_key-def"><a name="L330"></a><tt class="py-lineno"> 330</tt> <a class="py-toggle" href="#" id="Messenger._set_private_key-toggle" onclick="return toggle('Messenger._set_private_key');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Messenger-class.html#_set_private_key">_set_private_key</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">value</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Messenger._set_private_key-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Messenger._set_private_key-expanded"><a name="L331"></a><tt class="py-lineno"> 331</tt> <tt class="py-line"> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_check</tt><tt class="py-op">(</tt><tt class="py-name">pn_messenger_set_private_key</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_mng</tt><tt class="py-op">,</tt> <tt class="py-name">value</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
</div><a name="L332"></a><tt class="py-lineno"> 332</tt> <tt class="py-line"> </tt>
<a name="L333"></a><tt class="py-lineno"> 333</tt> <tt class="py-line"> <tt id="link-55" class="py-name" targets="Variable proton.Messenger.private_key=proton.Messenger-class.html#private_key"><a title="proton.Messenger.private_key" class="py-name" href="#" onclick="return doclink('link-55', 'private_key', 'link-55');">private_key</a></tt> <tt class="py-op">=</tt> <tt class="py-name">property</tt><tt class="py-op">(</tt><tt id="link-56" class="py-name" targets="Method proton.Messenger._get_private_key()=proton.Messenger-class.html#_get_private_key"><a title="proton.Messenger._get_private_key" class="py-name" href="#" onclick="return doclink('link-56', '_get_private_key', 'link-56');">_get_private_key</a></tt><tt class="py-op">,</tt> <tt id="link-57" class="py-name" targets="Method proton.Messenger._set_private_key()=proton.Messenger-class.html#_set_private_key"><a title="proton.Messenger._set_private_key" class="py-name" href="#" onclick="return doclink('link-57', '_set_private_key', 'link-57');">_set_private_key</a></tt><tt class="py-op">,</tt> </tt>
<a name="L334"></a><tt class="py-lineno"> 334</tt> <tt class="py-line"> <tt class="py-name">doc</tt><tt class="py-op">=</tt><tt class="py-string">"""</tt> </tt>
<a name="L335"></a><tt class="py-lineno"> 335</tt> <tt class="py-line"><tt class="py-string">Path to a private key file for the L{Messenger's<Messenger>}</tt> </tt>
<a name="L336"></a><tt class="py-lineno"> 336</tt> <tt class="py-line"><tt class="py-string">certificate. This property must be specified for the L{Messenger} to</tt> </tt>
<a name="L337"></a><tt class="py-lineno"> 337</tt> <tt class="py-line"><tt class="py-string">accept incoming SSL/TLS connections and to establish client</tt> </tt>
<a name="L338"></a><tt class="py-lineno"> 338</tt> <tt class="py-line"><tt class="py-string">authenticated outgoing SSL/TLS connection. Non client authenticated</tt> </tt>
<a name="L339"></a><tt class="py-lineno"> 339</tt> <tt class="py-line"><tt class="py-string">SSL/TLS connections do not require this property.</tt> </tt>
<a name="L340"></a><tt class="py-lineno"> 340</tt> <tt class="py-line"><tt class="py-string">"""</tt><tt class="py-op">)</tt> </tt>
<a name="L341"></a><tt class="py-lineno"> 341</tt> <tt class="py-line"> </tt>
<a name="Messenger._get_password"></a><div id="Messenger._get_password-def"><a name="L342"></a><tt class="py-lineno"> 342</tt> <a class="py-toggle" href="#" id="Messenger._get_password-toggle" onclick="return toggle('Messenger._get_password');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Messenger-class.html#_get_password">_get_password</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Messenger._get_password-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Messenger._get_password-expanded"><a name="L343"></a><tt class="py-lineno"> 343</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt class="py-name">pn_messenger_get_password</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_mng</tt><tt class="py-op">)</tt> </tt>
</div><a name="L344"></a><tt class="py-lineno"> 344</tt> <tt class="py-line"> </tt>
<a name="Messenger._set_password"></a><div id="Messenger._set_password-def"><a name="L345"></a><tt class="py-lineno"> 345</tt> <a class="py-toggle" href="#" id="Messenger._set_password-toggle" onclick="return toggle('Messenger._set_password');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Messenger-class.html#_set_password">_set_password</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">value</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Messenger._set_password-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Messenger._set_password-expanded"><a name="L346"></a><tt class="py-lineno"> 346</tt> <tt class="py-line"> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_check</tt><tt class="py-op">(</tt><tt class="py-name">pn_messenger_set_password</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_mng</tt><tt class="py-op">,</tt> <tt class="py-name">value</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
</div><a name="L347"></a><tt class="py-lineno"> 347</tt> <tt class="py-line"> </tt>
<a name="L348"></a><tt class="py-lineno"> 348</tt> <tt class="py-line"> <tt id="link-58" class="py-name" targets="Variable proton.Connection.password=proton.Connection-class.html#password,Variable proton.Messenger.password=proton.Messenger-class.html#password,Variable proton.Url.password=proton.Url-class.html#password"><a title="proton.Connection.password
proton.Messenger.password
proton.Url.password" class="py-name" href="#" onclick="return doclink('link-58', 'password', 'link-58');">password</a></tt> <tt class="py-op">=</tt> <tt class="py-name">property</tt><tt class="py-op">(</tt><tt id="link-59" class="py-name" targets="Method proton.Connection._get_password()=proton.Connection-class.html#_get_password,Method proton.Messenger._get_password()=proton.Messenger-class.html#_get_password"><a title="proton.Connection._get_password
proton.Messenger._get_password" class="py-name" href="#" onclick="return doclink('link-59', '_get_password', 'link-59');">_get_password</a></tt><tt class="py-op">,</tt> <tt id="link-60" class="py-name" targets="Method proton.Connection._set_password()=proton.Connection-class.html#_set_password,Method proton.Messenger._set_password()=proton.Messenger-class.html#_set_password"><a title="proton.Connection._set_password
proton.Messenger._set_password" class="py-name" href="#" onclick="return doclink('link-60', '_set_password', 'link-60');">_set_password</a></tt><tt class="py-op">,</tt> </tt>
<a name="L349"></a><tt class="py-lineno"> 349</tt> <tt class="py-line"> <tt class="py-name">doc</tt><tt class="py-op">=</tt><tt class="py-string">"""</tt> </tt>
<a name="L350"></a><tt class="py-lineno"> 350</tt> <tt class="py-line"><tt class="py-string">This property contains the password for the L{Messenger.private_key}</tt> </tt>
<a name="L351"></a><tt class="py-lineno"> 351</tt> <tt class="py-line"><tt class="py-string">file, or None if the file is not encrypted.</tt> </tt>
<a name="L352"></a><tt class="py-lineno"> 352</tt> <tt class="py-line"><tt class="py-string">"""</tt><tt class="py-op">)</tt> </tt>
<a name="L353"></a><tt class="py-lineno"> 353</tt> <tt class="py-line"> </tt>
<a name="Messenger._get_trusted_certificates"></a><div id="Messenger._get_trusted_certificates-def"><a name="L354"></a><tt class="py-lineno"> 354</tt> <a class="py-toggle" href="#" id="Messenger._get_trusted_certificates-toggle" onclick="return toggle('Messenger._get_trusted_certificates');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Messenger-class.html#_get_trusted_certificates">_get_trusted_certificates</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Messenger._get_trusted_certificates-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Messenger._get_trusted_certificates-expanded"><a name="L355"></a><tt class="py-lineno"> 355</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt class="py-name">pn_messenger_get_trusted_certificates</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_mng</tt><tt class="py-op">)</tt> </tt>
</div><a name="L356"></a><tt class="py-lineno"> 356</tt> <tt class="py-line"> </tt>
<a name="Messenger._set_trusted_certificates"></a><div id="Messenger._set_trusted_certificates-def"><a name="L357"></a><tt class="py-lineno"> 357</tt> <a class="py-toggle" href="#" id="Messenger._set_trusted_certificates-toggle" onclick="return toggle('Messenger._set_trusted_certificates');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Messenger-class.html#_set_trusted_certificates">_set_trusted_certificates</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">value</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Messenger._set_trusted_certificates-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Messenger._set_trusted_certificates-expanded"><a name="L358"></a><tt class="py-lineno"> 358</tt> <tt class="py-line"> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_check</tt><tt class="py-op">(</tt><tt class="py-name">pn_messenger_set_trusted_certificates</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_mng</tt><tt class="py-op">,</tt> <tt class="py-name">value</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
</div><a name="L359"></a><tt class="py-lineno"> 359</tt> <tt class="py-line"> </tt>
<a name="L360"></a><tt class="py-lineno"> 360</tt> <tt class="py-line"> <tt id="link-61" class="py-name" targets="Variable proton.Messenger.trusted_certificates=proton.Messenger-class.html#trusted_certificates"><a title="proton.Messenger.trusted_certificates" class="py-name" href="#" onclick="return doclink('link-61', 'trusted_certificates', 'link-61');">trusted_certificates</a></tt> <tt class="py-op">=</tt> <tt class="py-name">property</tt><tt class="py-op">(</tt><tt id="link-62" class="py-name" targets="Method proton.Messenger._get_trusted_certificates()=proton.Messenger-class.html#_get_trusted_certificates"><a title="proton.Messenger._get_trusted_certificates" class="py-name" href="#" onclick="return doclink('link-62', '_get_trusted_certificates', 'link-62');">_get_trusted_certificates</a></tt><tt class="py-op">,</tt> </tt>
<a name="L361"></a><tt class="py-lineno"> 361</tt> <tt class="py-line"> <tt id="link-63" class="py-name" targets="Method proton.Messenger._set_trusted_certificates()=proton.Messenger-class.html#_set_trusted_certificates"><a title="proton.Messenger._set_trusted_certificates" class="py-name" href="#" onclick="return doclink('link-63', '_set_trusted_certificates', 'link-63');">_set_trusted_certificates</a></tt><tt class="py-op">,</tt> </tt>
<a name="L362"></a><tt class="py-lineno"> 362</tt> <tt class="py-line"> <tt class="py-name">doc</tt><tt class="py-op">=</tt><tt class="py-string">"""</tt> </tt>
<a name="L363"></a><tt class="py-lineno"> 363</tt> <tt class="py-line"><tt class="py-string">A path to a database of trusted certificates for use in verifying the</tt> </tt>
<a name="L364"></a><tt class="py-lineno"> 364</tt> <tt class="py-line"><tt class="py-string">peer on an SSL/TLS connection. If this property is None, then the peer</tt> </tt>
<a name="L365"></a><tt class="py-lineno"> 365</tt> <tt class="py-line"><tt class="py-string">will not be verified.</tt> </tt>
<a name="L366"></a><tt class="py-lineno"> 366</tt> <tt class="py-line"><tt class="py-string">"""</tt><tt class="py-op">)</tt> </tt>
<a name="L367"></a><tt class="py-lineno"> 367</tt> <tt class="py-line"> </tt>
<a name="Messenger._get_timeout"></a><div id="Messenger._get_timeout-def"><a name="L368"></a><tt class="py-lineno"> 368</tt> <a class="py-toggle" href="#" id="Messenger._get_timeout-toggle" onclick="return toggle('Messenger._get_timeout');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Messenger-class.html#_get_timeout">_get_timeout</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Messenger._get_timeout-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Messenger._get_timeout-expanded"><a name="L369"></a><tt class="py-lineno"> 369</tt> <tt class="py-line"> <tt class="py-name">t</tt> <tt class="py-op">=</tt> <tt class="py-name">pn_messenger_get_timeout</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_mng</tt><tt class="py-op">)</tt> </tt>
<a name="L370"></a><tt class="py-lineno"> 370</tt> <tt class="py-line"> <tt class="py-keyword">if</tt> <tt class="py-name">t</tt> <tt class="py-op">==</tt> <tt class="py-op">-</tt><tt class="py-number">1</tt><tt class="py-op">:</tt> </tt>
<a name="L371"></a><tt class="py-lineno"> 371</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt class="py-name">None</tt> </tt>
<a name="L372"></a><tt class="py-lineno"> 372</tt> <tt class="py-line"> <tt class="py-keyword">else</tt><tt class="py-op">:</tt> </tt>
<a name="L373"></a><tt class="py-lineno"> 373</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt class="py-name">millis2secs</tt><tt class="py-op">(</tt><tt class="py-name">t</tt><tt class="py-op">)</tt> </tt>
</div><a name="L374"></a><tt class="py-lineno"> 374</tt> <tt class="py-line"> </tt>
<a name="Messenger._set_timeout"></a><div id="Messenger._set_timeout-def"><a name="L375"></a><tt class="py-lineno"> 375</tt> <a class="py-toggle" href="#" id="Messenger._set_timeout-toggle" onclick="return toggle('Messenger._set_timeout');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Messenger-class.html#_set_timeout">_set_timeout</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">value</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Messenger._set_timeout-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Messenger._set_timeout-expanded"><a name="L376"></a><tt class="py-lineno"> 376</tt> <tt class="py-line"> <tt class="py-keyword">if</tt> <tt class="py-name">value</tt> <tt class="py-keyword">is</tt> <tt class="py-name">None</tt><tt class="py-op">:</tt> </tt>
<a name="L377"></a><tt class="py-lineno"> 377</tt> <tt class="py-line"> <tt class="py-name">t</tt> <tt class="py-op">=</tt> <tt class="py-op">-</tt><tt class="py-number">1</tt> </tt>
<a name="L378"></a><tt class="py-lineno"> 378</tt> <tt class="py-line"> <tt class="py-keyword">else</tt><tt class="py-op">:</tt> </tt>
<a name="L379"></a><tt class="py-lineno"> 379</tt> <tt class="py-line"> <tt class="py-name">t</tt> <tt class="py-op">=</tt> <tt class="py-name">secs2millis</tt><tt class="py-op">(</tt><tt class="py-name">value</tt><tt class="py-op">)</tt> </tt>
<a name="L380"></a><tt class="py-lineno"> 380</tt> <tt class="py-line"> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_check</tt><tt class="py-op">(</tt><tt class="py-name">pn_messenger_set_timeout</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_mng</tt><tt class="py-op">,</tt> <tt class="py-name">t</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
</div><a name="L381"></a><tt class="py-lineno"> 381</tt> <tt class="py-line"> </tt>
<a name="L382"></a><tt class="py-lineno"> 382</tt> <tt class="py-line"> <tt id="link-64" class="py-name" targets="Variable proton.Messenger.timeout=proton.Messenger-class.html#timeout,Variable proton.Terminus.timeout=proton.Terminus-class.html#timeout,Variable proton.reactor.Reactor.timeout=proton.reactor.Reactor-class.html#timeout"><a title="proton.Messenger.timeout
proton.Terminus.timeout
proton.reactor.Reactor.timeout" class="py-name" href="#" onclick="return doclink('link-64', 'timeout', 'link-64');">timeout</a></tt> <tt class="py-op">=</tt> <tt class="py-name">property</tt><tt class="py-op">(</tt><tt id="link-65" class="py-name" targets="Method proton.Messenger._get_timeout()=proton.Messenger-class.html#_get_timeout,Method proton.Terminus._get_timeout()=proton.Terminus-class.html#_get_timeout,Method proton.reactor.Reactor._get_timeout()=proton.reactor.Reactor-class.html#_get_timeout"><a title="proton.Messenger._get_timeout
proton.Terminus._get_timeout
proton.reactor.Reactor._get_timeout" class="py-name" href="#" onclick="return doclink('link-65', '_get_timeout', 'link-65');">_get_timeout</a></tt><tt class="py-op">,</tt> <tt id="link-66" class="py-name" targets="Method proton.Messenger._set_timeout()=proton.Messenger-class.html#_set_timeout,Method proton.Terminus._set_timeout()=proton.Terminus-class.html#_set_timeout,Method proton.reactor.Reactor._set_timeout()=proton.reactor.Reactor-class.html#_set_timeout"><a title="proton.Messenger._set_timeout
proton.Terminus._set_timeout
proton.reactor.Reactor._set_timeout" class="py-name" href="#" onclick="return doclink('link-66', '_set_timeout', 'link-66');">_set_timeout</a></tt><tt class="py-op">,</tt> </tt>
<a name="L383"></a><tt class="py-lineno"> 383</tt> <tt class="py-line"> <tt class="py-name">doc</tt><tt class="py-op">=</tt><tt class="py-string">"""</tt> </tt>
<a name="L384"></a><tt class="py-lineno"> 384</tt> <tt class="py-line"><tt class="py-string">The timeout property contains the default timeout for blocking</tt> </tt>
<a name="L385"></a><tt class="py-lineno"> 385</tt> <tt class="py-line"><tt class="py-string">operations performed by the L{Messenger}.</tt> </tt>
<a name="L386"></a><tt class="py-lineno"> 386</tt> <tt class="py-line"><tt class="py-string">"""</tt><tt class="py-op">)</tt> </tt>
<a name="L387"></a><tt class="py-lineno"> 387</tt> <tt class="py-line"> </tt>
<a name="Messenger._is_blocking"></a><div id="Messenger._is_blocking-def"><a name="L388"></a><tt class="py-lineno"> 388</tt> <a class="py-toggle" href="#" id="Messenger._is_blocking-toggle" onclick="return toggle('Messenger._is_blocking');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Messenger-class.html#_is_blocking">_is_blocking</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Messenger._is_blocking-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Messenger._is_blocking-expanded"><a name="L389"></a><tt class="py-lineno"> 389</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt class="py-name">pn_messenger_is_blocking</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_mng</tt><tt class="py-op">)</tt> </tt>
</div><a name="L390"></a><tt class="py-lineno"> 390</tt> <tt class="py-line"> </tt>
<a name="Messenger._set_blocking"></a><div id="Messenger._set_blocking-def"><a name="L391"></a><tt class="py-lineno"> 391</tt> <a class="py-toggle" href="#" id="Messenger._set_blocking-toggle" onclick="return toggle('Messenger._set_blocking');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Messenger-class.html#_set_blocking">_set_blocking</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">b</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Messenger._set_blocking-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Messenger._set_blocking-expanded"><a name="L392"></a><tt class="py-lineno"> 392</tt> <tt class="py-line"> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_check</tt><tt class="py-op">(</tt><tt class="py-name">pn_messenger_set_blocking</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_mng</tt><tt class="py-op">,</tt> <tt class="py-name">b</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
</div><a name="L393"></a><tt class="py-lineno"> 393</tt> <tt class="py-line"> </tt>
<a name="L394"></a><tt class="py-lineno"> 394</tt> <tt class="py-line"> <tt id="link-67" class="py-name" targets="Variable proton.Messenger.blocking=proton.Messenger-class.html#blocking"><a title="proton.Messenger.blocking" class="py-name" href="#" onclick="return doclink('link-67', 'blocking', 'link-67');">blocking</a></tt> <tt class="py-op">=</tt> <tt class="py-name">property</tt><tt class="py-op">(</tt><tt id="link-68" class="py-name" targets="Method proton.Messenger._is_blocking()=proton.Messenger-class.html#_is_blocking"><a title="proton.Messenger._is_blocking" class="py-name" href="#" onclick="return doclink('link-68', '_is_blocking', 'link-68');">_is_blocking</a></tt><tt class="py-op">,</tt> <tt id="link-69" class="py-name" targets="Method proton.Messenger._set_blocking()=proton.Messenger-class.html#_set_blocking"><a title="proton.Messenger._set_blocking" class="py-name" href="#" onclick="return doclink('link-69', '_set_blocking', 'link-69');">_set_blocking</a></tt><tt class="py-op">,</tt> </tt>
<a name="L395"></a><tt class="py-lineno"> 395</tt> <tt class="py-line"> <tt class="py-name">doc</tt><tt class="py-op">=</tt><tt class="py-string">"""</tt> </tt>
<a name="L396"></a><tt class="py-lineno"> 396</tt> <tt class="py-line"><tt class="py-string">Enable or disable blocking behavior during L{Message} sending</tt> </tt>
<a name="L397"></a><tt class="py-lineno"> 397</tt> <tt class="py-line"><tt class="py-string">and receiving. This affects every blocking call, with the</tt> </tt>
<a name="L398"></a><tt class="py-lineno"> 398</tt> <tt class="py-line"><tt class="py-string">exception of L{work}. Currently, the affected calls are</tt> </tt>
<a name="L399"></a><tt class="py-lineno"> 399</tt> <tt class="py-line"><tt class="py-string">L{send}, L{recv}, and L{stop}.</tt> </tt>
<a name="L400"></a><tt class="py-lineno"> 400</tt> <tt class="py-line"><tt class="py-string">"""</tt><tt class="py-op">)</tt> </tt>
<a name="L401"></a><tt class="py-lineno"> 401</tt> <tt class="py-line"> </tt>
<a name="Messenger._is_passive"></a><div id="Messenger._is_passive-def"><a name="L402"></a><tt class="py-lineno"> 402</tt> <a class="py-toggle" href="#" id="Messenger._is_passive-toggle" onclick="return toggle('Messenger._is_passive');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Messenger-class.html#_is_passive">_is_passive</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Messenger._is_passive-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Messenger._is_passive-expanded"><a name="L403"></a><tt class="py-lineno"> 403</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt class="py-name">pn_messenger_is_passive</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_mng</tt><tt class="py-op">)</tt> </tt>
</div><a name="L404"></a><tt class="py-lineno"> 404</tt> <tt class="py-line"> </tt>
<a name="Messenger._set_passive"></a><div id="Messenger._set_passive-def"><a name="L405"></a><tt class="py-lineno"> 405</tt> <a class="py-toggle" href="#" id="Messenger._set_passive-toggle" onclick="return toggle('Messenger._set_passive');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Messenger-class.html#_set_passive">_set_passive</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">b</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Messenger._set_passive-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Messenger._set_passive-expanded"><a name="L406"></a><tt class="py-lineno"> 406</tt> <tt class="py-line"> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_check</tt><tt class="py-op">(</tt><tt class="py-name">pn_messenger_set_passive</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_mng</tt><tt class="py-op">,</tt> <tt class="py-name">b</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
</div><a name="L407"></a><tt class="py-lineno"> 407</tt> <tt class="py-line"> </tt>
<a name="L408"></a><tt class="py-lineno"> 408</tt> <tt class="py-line"> <tt id="link-70" class="py-name" targets="Variable proton.Messenger.passive=proton.Messenger-class.html#passive"><a title="proton.Messenger.passive" class="py-name" href="#" onclick="return doclink('link-70', 'passive', 'link-70');">passive</a></tt> <tt class="py-op">=</tt> <tt class="py-name">property</tt><tt class="py-op">(</tt><tt id="link-71" class="py-name" targets="Method proton.Messenger._is_passive()=proton.Messenger-class.html#_is_passive"><a title="proton.Messenger._is_passive" class="py-name" href="#" onclick="return doclink('link-71', '_is_passive', 'link-71');">_is_passive</a></tt><tt class="py-op">,</tt> <tt id="link-72" class="py-name" targets="Method proton.Messenger._set_passive()=proton.Messenger-class.html#_set_passive"><a title="proton.Messenger._set_passive" class="py-name" href="#" onclick="return doclink('link-72', '_set_passive', 'link-72');">_set_passive</a></tt><tt class="py-op">,</tt> </tt>
<a name="L409"></a><tt class="py-lineno"> 409</tt> <tt class="py-line"> <tt class="py-name">doc</tt><tt class="py-op">=</tt><tt class="py-string">"""</tt> </tt>
<a name="L410"></a><tt class="py-lineno"> 410</tt> <tt class="py-line"><tt class="py-string">When passive is set to true, Messenger will not attempt to perform I/O</tt> </tt>
<a name="L411"></a><tt class="py-lineno"> 411</tt> <tt class="py-line"><tt class="py-string">internally. In this mode it is necessary to use the selectables API to</tt> </tt>
<a name="L412"></a><tt class="py-lineno"> 412</tt> <tt class="py-line"><tt class="py-string">drive any I/O needed to perform requested actions. In this mode</tt> </tt>
<a name="L413"></a><tt class="py-lineno"> 413</tt> <tt class="py-line"><tt class="py-string">Messenger will never block.</tt> </tt>
<a name="L414"></a><tt class="py-lineno"> 414</tt> <tt class="py-line"><tt class="py-string">"""</tt><tt class="py-op">)</tt> </tt>
<a name="L415"></a><tt class="py-lineno"> 415</tt> <tt class="py-line"> </tt>
<a name="Messenger._get_incoming_window"></a><div id="Messenger._get_incoming_window-def"><a name="L416"></a><tt class="py-lineno"> 416</tt> <a class="py-toggle" href="#" id="Messenger._get_incoming_window-toggle" onclick="return toggle('Messenger._get_incoming_window');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Messenger-class.html#_get_incoming_window">_get_incoming_window</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Messenger._get_incoming_window-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Messenger._get_incoming_window-expanded"><a name="L417"></a><tt class="py-lineno"> 417</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt class="py-name">pn_messenger_get_incoming_window</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_mng</tt><tt class="py-op">)</tt> </tt>
</div><a name="L418"></a><tt class="py-lineno"> 418</tt> <tt class="py-line"> </tt>
<a name="Messenger._set_incoming_window"></a><div id="Messenger._set_incoming_window-def"><a name="L419"></a><tt class="py-lineno"> 419</tt> <a class="py-toggle" href="#" id="Messenger._set_incoming_window-toggle" onclick="return toggle('Messenger._set_incoming_window');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Messenger-class.html#_set_incoming_window">_set_incoming_window</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">window</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Messenger._set_incoming_window-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Messenger._set_incoming_window-expanded"><a name="L420"></a><tt class="py-lineno"> 420</tt> <tt class="py-line"> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_check</tt><tt class="py-op">(</tt><tt class="py-name">pn_messenger_set_incoming_window</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_mng</tt><tt class="py-op">,</tt> <tt class="py-name">window</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
</div><a name="L421"></a><tt class="py-lineno"> 421</tt> <tt class="py-line"> </tt>
<a name="L422"></a><tt class="py-lineno"> 422</tt> <tt class="py-line"> <tt id="link-73" class="py-name" targets="Variable proton.Messenger.incoming_window=proton.Messenger-class.html#incoming_window"><a title="proton.Messenger.incoming_window" class="py-name" href="#" onclick="return doclink('link-73', 'incoming_window', 'link-73');">incoming_window</a></tt> <tt class="py-op">=</tt> <tt class="py-name">property</tt><tt class="py-op">(</tt><tt id="link-74" class="py-name" targets="Method proton.Messenger._get_incoming_window()=proton.Messenger-class.html#_get_incoming_window"><a title="proton.Messenger._get_incoming_window" class="py-name" href="#" onclick="return doclink('link-74', '_get_incoming_window', 'link-74');">_get_incoming_window</a></tt><tt class="py-op">,</tt> <tt id="link-75" class="py-name" targets="Method proton.Messenger._set_incoming_window()=proton.Messenger-class.html#_set_incoming_window"><a title="proton.Messenger._set_incoming_window" class="py-name" href="#" onclick="return doclink('link-75', '_set_incoming_window', 'link-75');">_set_incoming_window</a></tt><tt class="py-op">,</tt> </tt>
<a name="L423"></a><tt class="py-lineno"> 423</tt> <tt class="py-line"> <tt class="py-name">doc</tt><tt class="py-op">=</tt><tt class="py-string">"""</tt> </tt>
<a name="L424"></a><tt class="py-lineno"> 424</tt> <tt class="py-line"><tt class="py-string">The incoming tracking window for the messenger. The messenger will</tt> </tt>
<a name="L425"></a><tt class="py-lineno"> 425</tt> <tt class="py-line"><tt class="py-string">track the remote status of this many incoming deliveries after they</tt> </tt>
<a name="L426"></a><tt class="py-lineno"> 426</tt> <tt class="py-line"><tt class="py-string">have been accepted or rejected. Defaults to zero.</tt> </tt>
<a name="L427"></a><tt class="py-lineno"> 427</tt> <tt class="py-line"><tt class="py-string"></tt> </tt>
<a name="L428"></a><tt class="py-lineno"> 428</tt> <tt class="py-line"><tt class="py-string">L{Messages<Message>} enter this window only when you take them into your application</tt> </tt>
<a name="L429"></a><tt class="py-lineno"> 429</tt> <tt class="py-line"><tt class="py-string">using L{get}. If your incoming window size is I{n}, and you get I{n}+1 L{messages<Message>}</tt> </tt>
<a name="L430"></a><tt class="py-lineno"> 430</tt> <tt class="py-line"><tt class="py-string">without explicitly accepting or rejecting the oldest message, then the</tt> </tt>
<a name="L431"></a><tt class="py-lineno"> 431</tt> <tt class="py-line"><tt class="py-string">message that passes beyond the edge of the incoming window will be assigned</tt> </tt>
<a name="L432"></a><tt class="py-lineno"> 432</tt> <tt class="py-line"><tt class="py-string">the default disposition of its link.</tt> </tt>
<a name="L433"></a><tt class="py-lineno"> 433</tt> <tt class="py-line"><tt class="py-string">"""</tt><tt class="py-op">)</tt> </tt>
<a name="L434"></a><tt class="py-lineno"> 434</tt> <tt class="py-line"> </tt>
<a name="Messenger._get_outgoing_window"></a><div id="Messenger._get_outgoing_window-def"><a name="L435"></a><tt class="py-lineno"> 435</tt> <a class="py-toggle" href="#" id="Messenger._get_outgoing_window-toggle" onclick="return toggle('Messenger._get_outgoing_window');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Messenger-class.html#_get_outgoing_window">_get_outgoing_window</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Messenger._get_outgoing_window-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Messenger._get_outgoing_window-expanded"><a name="L436"></a><tt class="py-lineno"> 436</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt class="py-name">pn_messenger_get_outgoing_window</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_mng</tt><tt class="py-op">)</tt> </tt>
</div><a name="L437"></a><tt class="py-lineno"> 437</tt> <tt class="py-line"> </tt>
<a name="Messenger._set_outgoing_window"></a><div id="Messenger._set_outgoing_window-def"><a name="L438"></a><tt class="py-lineno"> 438</tt> <a class="py-toggle" href="#" id="Messenger._set_outgoing_window-toggle" onclick="return toggle('Messenger._set_outgoing_window');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Messenger-class.html#_set_outgoing_window">_set_outgoing_window</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">window</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Messenger._set_outgoing_window-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Messenger._set_outgoing_window-expanded"><a name="L439"></a><tt class="py-lineno"> 439</tt> <tt class="py-line"> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_check</tt><tt class="py-op">(</tt><tt class="py-name">pn_messenger_set_outgoing_window</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_mng</tt><tt class="py-op">,</tt> <tt class="py-name">window</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
</div><a name="L440"></a><tt class="py-lineno"> 440</tt> <tt class="py-line"> </tt>
<a name="L441"></a><tt class="py-lineno"> 441</tt> <tt class="py-line"> <tt id="link-76" class="py-name" targets="Variable proton.Messenger.outgoing_window=proton.Messenger-class.html#outgoing_window,Variable proton.Session.outgoing_window=proton.Session-class.html#outgoing_window"><a title="proton.Messenger.outgoing_window
proton.Session.outgoing_window" class="py-name" href="#" onclick="return doclink('link-76', 'outgoing_window', 'link-76');">outgoing_window</a></tt> <tt class="py-op">=</tt> <tt class="py-name">property</tt><tt class="py-op">(</tt><tt id="link-77" class="py-name" targets="Method proton.Messenger._get_outgoing_window()=proton.Messenger-class.html#_get_outgoing_window,Method proton.Session._get_outgoing_window()=proton.Session-class.html#_get_outgoing_window"><a title="proton.Messenger._get_outgoing_window
proton.Session._get_outgoing_window" class="py-name" href="#" onclick="return doclink('link-77', '_get_outgoing_window', 'link-77');">_get_outgoing_window</a></tt><tt class="py-op">,</tt> <tt id="link-78" class="py-name" targets="Method proton.Messenger._set_outgoing_window()=proton.Messenger-class.html#_set_outgoing_window,Method proton.Session._set_outgoing_window()=proton.Session-class.html#_set_outgoing_window"><a title="proton.Messenger._set_outgoing_window
proton.Session._set_outgoing_window" class="py-name" href="#" onclick="return doclink('link-78', '_set_outgoing_window', 'link-78');">_set_outgoing_window</a></tt><tt class="py-op">,</tt> </tt>
<a name="L442"></a><tt class="py-lineno"> 442</tt> <tt class="py-line"> <tt class="py-name">doc</tt><tt class="py-op">=</tt><tt class="py-string">"""</tt> </tt>
<a name="L443"></a><tt class="py-lineno"> 443</tt> <tt class="py-line"><tt class="py-string">The outgoing tracking window for the messenger. The messenger will</tt> </tt>
<a name="L444"></a><tt class="py-lineno"> 444</tt> <tt class="py-line"><tt class="py-string">track the remote status of this many outgoing deliveries after calling</tt> </tt>
<a name="L445"></a><tt class="py-lineno"> 445</tt> <tt class="py-line"><tt class="py-string">send. Defaults to zero.</tt> </tt>
<a name="L446"></a><tt class="py-lineno"> 446</tt> <tt class="py-line"><tt class="py-string"></tt> </tt>
<a name="L447"></a><tt class="py-lineno"> 447</tt> <tt class="py-line"><tt class="py-string">A L{Message} enters this window when you call the put() method with the</tt> </tt>
<a name="L448"></a><tt class="py-lineno"> 448</tt> <tt class="py-line"><tt class="py-string">message. If your outgoing window size is I{n}, and you call L{put} I{n}+1</tt> </tt>
<a name="L449"></a><tt class="py-lineno"> 449</tt> <tt class="py-line"><tt class="py-string">times, status information will no longer be available for the</tt> </tt>
<a name="L450"></a><tt class="py-lineno"> 450</tt> <tt class="py-line"><tt class="py-string">first message.</tt> </tt>
<a name="L451"></a><tt class="py-lineno"> 451</tt> <tt class="py-line"><tt class="py-string">"""</tt><tt class="py-op">)</tt> </tt>
<a name="L452"></a><tt class="py-lineno"> 452</tt> <tt class="py-line"> </tt>
<a name="Messenger.start"></a><div id="Messenger.start-def"><a name="L453"></a><tt class="py-lineno"> 453</tt> <a class="py-toggle" href="#" id="Messenger.start-toggle" onclick="return toggle('Messenger.start');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Messenger-class.html#start">start</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Messenger.start-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Messenger.start-expanded"><a name="L454"></a><tt class="py-lineno"> 454</tt> <tt class="py-line"> <tt class="py-docstring">"""</tt> </tt>
<a name="L455"></a><tt class="py-lineno"> 455</tt> <tt class="py-line"><tt class="py-docstring"> Currently a no-op placeholder.</tt> </tt>
<a name="L456"></a><tt class="py-lineno"> 456</tt> <tt class="py-line"><tt class="py-docstring"> For future compatibility, do not L{send} or L{recv} messages</tt> </tt>
<a name="L457"></a><tt class="py-lineno"> 457</tt> <tt class="py-line"><tt class="py-docstring"> before starting the L{Messenger}.</tt> </tt>
<a name="L458"></a><tt class="py-lineno"> 458</tt> <tt class="py-line"><tt class="py-docstring"> """</tt> </tt>
<a name="L459"></a><tt class="py-lineno"> 459</tt> <tt class="py-line"> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_check</tt><tt class="py-op">(</tt><tt class="py-name">pn_messenger_start</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_mng</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
</div><a name="L460"></a><tt class="py-lineno"> 460</tt> <tt class="py-line"> </tt>
<a name="Messenger.stop"></a><div id="Messenger.stop-def"><a name="L461"></a><tt class="py-lineno"> 461</tt> <a class="py-toggle" href="#" id="Messenger.stop-toggle" onclick="return toggle('Messenger.stop');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Messenger-class.html#stop">stop</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Messenger.stop-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Messenger.stop-expanded"><a name="L462"></a><tt class="py-lineno"> 462</tt> <tt class="py-line"> <tt class="py-docstring">"""</tt> </tt>
<a name="L463"></a><tt class="py-lineno"> 463</tt> <tt class="py-line"><tt class="py-docstring"> Transitions the L{Messenger} to an inactive state. An inactive</tt> </tt>
<a name="L464"></a><tt class="py-lineno"> 464</tt> <tt class="py-line"><tt class="py-docstring"> L{Messenger} will not send or receive messages from its internal</tt> </tt>
<a name="L465"></a><tt class="py-lineno"> 465</tt> <tt class="py-line"><tt class="py-docstring"> queues. A L{Messenger} should be stopped before being discarded to</tt> </tt>
<a name="L466"></a><tt class="py-lineno"> 466</tt> <tt class="py-line"><tt class="py-docstring"> ensure a clean shutdown handshake occurs on any internally managed</tt> </tt>
<a name="L467"></a><tt class="py-lineno"> 467</tt> <tt class="py-line"><tt class="py-docstring"> connections.</tt> </tt>
<a name="L468"></a><tt class="py-lineno"> 468</tt> <tt class="py-line"><tt class="py-docstring"> """</tt> </tt>
<a name="L469"></a><tt class="py-lineno"> 469</tt> <tt class="py-line"> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_check</tt><tt class="py-op">(</tt><tt class="py-name">pn_messenger_stop</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_mng</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
</div><a name="L470"></a><tt class="py-lineno"> 470</tt> <tt class="py-line"> </tt>
<a name="L471"></a><tt class="py-lineno"> 471</tt> <tt class="py-line"> <tt class="py-decorator">@</tt><tt class="py-decorator">property</tt> </tt>
<a name="Messenger.stopped"></a><div id="Messenger.stopped-def"><a name="L472"></a><tt class="py-lineno"> 472</tt> <a class="py-toggle" href="#" id="Messenger.stopped-toggle" onclick="return toggle('Messenger.stopped');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Messenger-class.html#stopped">stopped</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Messenger.stopped-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Messenger.stopped-expanded"><a name="L473"></a><tt class="py-lineno"> 473</tt> <tt class="py-line"> <tt class="py-docstring">"""</tt> </tt>
<a name="L474"></a><tt class="py-lineno"> 474</tt> <tt class="py-line"><tt class="py-docstring"> Returns true iff a L{Messenger} is in the stopped state.</tt> </tt>
<a name="L475"></a><tt class="py-lineno"> 475</tt> <tt class="py-line"><tt class="py-docstring"> This function does not block.</tt> </tt>
<a name="L476"></a><tt class="py-lineno"> 476</tt> <tt class="py-line"><tt class="py-docstring"> """</tt> </tt>
<a name="L477"></a><tt class="py-lineno"> 477</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt class="py-name">pn_messenger_stopped</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_mng</tt><tt class="py-op">)</tt> </tt>
</div><a name="L478"></a><tt class="py-lineno"> 478</tt> <tt class="py-line"> </tt>
<a name="Messenger.subscribe"></a><div id="Messenger.subscribe-def"><a name="L479"></a><tt class="py-lineno"> 479</tt> <a class="py-toggle" href="#" id="Messenger.subscribe-toggle" onclick="return toggle('Messenger.subscribe');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Messenger-class.html#subscribe">subscribe</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">source</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Messenger.subscribe-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Messenger.subscribe-expanded"><a name="L480"></a><tt class="py-lineno"> 480</tt> <tt class="py-line"> <tt class="py-docstring">"""</tt> </tt>
<a name="L481"></a><tt class="py-lineno"> 481</tt> <tt class="py-line"><tt class="py-docstring"> Subscribes the L{Messenger} to messages originating from the</tt> </tt>
<a name="L482"></a><tt class="py-lineno"> 482</tt> <tt class="py-line"><tt class="py-docstring"> specified source. The source is an address as specified in the</tt> </tt>
<a name="L483"></a><tt class="py-lineno"> 483</tt> <tt class="py-line"><tt class="py-docstring"> L{Messenger} introduction with the following addition. If the</tt> </tt>
<a name="L484"></a><tt class="py-lineno"> 484</tt> <tt class="py-line"><tt class="py-docstring"> domain portion of the address begins with the '~' character, the</tt> </tt>
<a name="L485"></a><tt class="py-lineno"> 485</tt> <tt class="py-line"><tt class="py-docstring"> L{Messenger} will interpret the domain as host/port, bind to it,</tt> </tt>
<a name="L486"></a><tt class="py-lineno"> 486</tt> <tt class="py-line"><tt class="py-docstring"> and listen for incoming messages. For example "~0.0.0.0",</tt> </tt>
<a name="L487"></a><tt class="py-lineno"> 487</tt> <tt class="py-line"><tt class="py-docstring"> "amqp://~0.0.0.0", and "amqps://~0.0.0.0" will all bind to any</tt> </tt>
<a name="L488"></a><tt class="py-lineno"> 488</tt> <tt class="py-line"><tt class="py-docstring"> local interface and listen for incoming messages with the last</tt> </tt>
<a name="L489"></a><tt class="py-lineno"> 489</tt> <tt class="py-line"><tt class="py-docstring"> variant only permitting incoming SSL connections.</tt> </tt>
<a name="L490"></a><tt class="py-lineno"> 490</tt> <tt class="py-line"><tt class="py-docstring"></tt> </tt>
<a name="L491"></a><tt class="py-lineno"> 491</tt> <tt class="py-line"><tt class="py-docstring"> @type source: string</tt> </tt>
<a name="L492"></a><tt class="py-lineno"> 492</tt> <tt class="py-line"><tt class="py-docstring"> @param source: the source of messages to subscribe to</tt> </tt>
<a name="L493"></a><tt class="py-lineno"> 493</tt> <tt class="py-line"><tt class="py-docstring"> """</tt> </tt>
<a name="L494"></a><tt class="py-lineno"> 494</tt> <tt class="py-line"> <tt class="py-name">sub_impl</tt> <tt class="py-op">=</tt> <tt class="py-name">pn_messenger_subscribe</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_mng</tt><tt class="py-op">,</tt> <tt id="link-79" class="py-name" targets="Variable proton.Link.source=proton.Link-class.html#source"><a title="proton.Link.source" class="py-name" href="#" onclick="return doclink('link-79', 'source', 'link-79');">source</a></tt><tt class="py-op">)</tt> </tt>
<a name="L495"></a><tt class="py-lineno"> 495</tt> <tt class="py-line"> <tt class="py-keyword">if</tt> <tt class="py-keyword">not</tt> <tt class="py-name">sub_impl</tt><tt class="py-op">:</tt> </tt>
<a name="L496"></a><tt class="py-lineno"> 496</tt> <tt class="py-line"> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_check</tt><tt class="py-op">(</tt><tt class="py-name">pn_error_code</tt><tt class="py-op">(</tt><tt class="py-name">pn_messenger_error</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_mng</tt><tt class="py-op">)</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
<a name="L497"></a><tt class="py-lineno"> 497</tt> <tt class="py-line"> <tt class="py-keyword">raise</tt> <tt id="link-80" class="py-name"><a title="proton.MessengerException" class="py-name" href="#" onclick="return doclink('link-80', 'MessengerException', 'link-51');">MessengerException</a></tt><tt class="py-op">(</tt><tt class="py-string">"Cannot subscribe to %s"</tt><tt class="py-op">%</tt><tt id="link-81" class="py-name"><a title="proton.Link.source" class="py-name" href="#" onclick="return doclink('link-81', 'source', 'link-79');">source</a></tt><tt class="py-op">)</tt> </tt>
<a name="L498"></a><tt class="py-lineno"> 498</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt class="py-name">Subscription</tt><tt class="py-op">(</tt><tt class="py-name">sub_impl</tt><tt class="py-op">)</tt> </tt>
</div><a name="L499"></a><tt class="py-lineno"> 499</tt> <tt class="py-line"> </tt>
<a name="Messenger.put"></a><div id="Messenger.put-def"><a name="L500"></a><tt class="py-lineno"> 500</tt> <a class="py-toggle" href="#" id="Messenger.put-toggle" onclick="return toggle('Messenger.put');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Messenger-class.html#put">put</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">message</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Messenger.put-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Messenger.put-expanded"><a name="L501"></a><tt class="py-lineno"> 501</tt> <tt class="py-line"> <tt class="py-docstring">"""</tt> </tt>
<a name="L502"></a><tt class="py-lineno"> 502</tt> <tt class="py-line"><tt class="py-docstring"> Places the content contained in the message onto the outgoing</tt> </tt>
<a name="L503"></a><tt class="py-lineno"> 503</tt> <tt class="py-line"><tt class="py-docstring"> queue of the L{Messenger}. This method will never block, however</tt> </tt>
<a name="L504"></a><tt class="py-lineno"> 504</tt> <tt class="py-line"><tt class="py-docstring"> it will send any unblocked L{Messages<Message>} in the outgoing</tt> </tt>
<a name="L505"></a><tt class="py-lineno"> 505</tt> <tt class="py-line"><tt class="py-docstring"> queue immediately and leave any blocked L{Messages<Message>}</tt> </tt>
<a name="L506"></a><tt class="py-lineno"> 506</tt> <tt class="py-line"><tt class="py-docstring"> remaining in the outgoing queue. The L{send} call may be used to</tt> </tt>
<a name="L507"></a><tt class="py-lineno"> 507</tt> <tt class="py-line"><tt class="py-docstring"> block until the outgoing queue is empty. The L{outgoing} property</tt> </tt>
<a name="L508"></a><tt class="py-lineno"> 508</tt> <tt class="py-line"><tt class="py-docstring"> may be used to check the depth of the outgoing queue.</tt> </tt>
<a name="L509"></a><tt class="py-lineno"> 509</tt> <tt class="py-line"><tt class="py-docstring"></tt> </tt>
<a name="L510"></a><tt class="py-lineno"> 510</tt> <tt class="py-line"><tt class="py-docstring"> When the content in a given L{Message} object is copied to the outgoing</tt> </tt>
<a name="L511"></a><tt class="py-lineno"> 511</tt> <tt class="py-line"><tt class="py-docstring"> message queue, you may then modify or discard the L{Message} object</tt> </tt>
<a name="L512"></a><tt class="py-lineno"> 512</tt> <tt class="py-line"><tt class="py-docstring"> without having any impact on the content in the outgoing queue.</tt> </tt>
<a name="L513"></a><tt class="py-lineno"> 513</tt> <tt class="py-line"><tt class="py-docstring"></tt> </tt>
<a name="L514"></a><tt class="py-lineno"> 514</tt> <tt class="py-line"><tt class="py-docstring"> This method returns an outgoing tracker for the L{Message}. The tracker</tt> </tt>
<a name="L515"></a><tt class="py-lineno"> 515</tt> <tt class="py-line"><tt class="py-docstring"> can be used to determine the delivery status of the L{Message}.</tt> </tt>
<a name="L516"></a><tt class="py-lineno"> 516</tt> <tt class="py-line"><tt class="py-docstring"></tt> </tt>
<a name="L517"></a><tt class="py-lineno"> 517</tt> <tt class="py-line"><tt class="py-docstring"> @type message: Message</tt> </tt>
<a name="L518"></a><tt class="py-lineno"> 518</tt> <tt class="py-line"><tt class="py-docstring"> @param message: the message to place in the outgoing queue</tt> </tt>
<a name="L519"></a><tt class="py-lineno"> 519</tt> <tt class="py-line"><tt class="py-docstring"> @return: a tracker</tt> </tt>
<a name="L520"></a><tt class="py-lineno"> 520</tt> <tt class="py-line"><tt class="py-docstring"> """</tt> </tt>
<a name="L521"></a><tt class="py-lineno"> 521</tt> <tt class="py-line"> <tt class="py-name">message</tt><tt class="py-op">.</tt><tt class="py-name">_pre_encode</tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L522"></a><tt class="py-lineno"> 522</tt> <tt class="py-line"> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_check</tt><tt class="py-op">(</tt><tt class="py-name">pn_messenger_put</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_mng</tt><tt class="py-op">,</tt> <tt class="py-name">message</tt><tt class="py-op">.</tt><tt class="py-name">_msg</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
<a name="L523"></a><tt class="py-lineno"> 523</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt class="py-name">pn_messenger_outgoing_tracker</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_mng</tt><tt class="py-op">)</tt> </tt>
</div><a name="L524"></a><tt class="py-lineno"> 524</tt> <tt class="py-line"> </tt>
<a name="Messenger.status"></a><div id="Messenger.status-def"><a name="L525"></a><tt class="py-lineno"> 525</tt> <a class="py-toggle" href="#" id="Messenger.status-toggle" onclick="return toggle('Messenger.status');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Messenger-class.html#status">status</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">tracker</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Messenger.status-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Messenger.status-expanded"><a name="L526"></a><tt class="py-lineno"> 526</tt> <tt class="py-line"> <tt class="py-docstring">"""</tt> </tt>
<a name="L527"></a><tt class="py-lineno"> 527</tt> <tt class="py-line"><tt class="py-docstring"> Gets the last known remote state of the delivery associated with</tt> </tt>
<a name="L528"></a><tt class="py-lineno"> 528</tt> <tt class="py-line"><tt class="py-docstring"> the given tracker.</tt> </tt>
<a name="L529"></a><tt class="py-lineno"> 529</tt> <tt class="py-line"><tt class="py-docstring"></tt> </tt>
<a name="L530"></a><tt class="py-lineno"> 530</tt> <tt class="py-line"><tt class="py-docstring"> @type tracker: tracker</tt> </tt>
<a name="L531"></a><tt class="py-lineno"> 531</tt> <tt class="py-line"><tt class="py-docstring"> @param tracker: the tracker whose status is to be retrieved</tt> </tt>
<a name="L532"></a><tt class="py-lineno"> 532</tt> <tt class="py-line"><tt class="py-docstring"></tt> </tt>
<a name="L533"></a><tt class="py-lineno"> 533</tt> <tt class="py-line"><tt class="py-docstring"> @return: one of None, PENDING, REJECTED, MODIFIED, or ACCEPTED</tt> </tt>
<a name="L534"></a><tt class="py-lineno"> 534</tt> <tt class="py-line"><tt class="py-docstring"> """</tt> </tt>
<a name="L535"></a><tt class="py-lineno"> 535</tt> <tt class="py-line"> <tt class="py-name">disp</tt> <tt class="py-op">=</tt> <tt class="py-name">pn_messenger_status</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_mng</tt><tt class="py-op">,</tt> <tt class="py-name">tracker</tt><tt class="py-op">)</tt><tt class="py-op">;</tt> </tt>
<a name="L536"></a><tt class="py-lineno"> 536</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt id="link-82" class="py-name"><a title="proton.STATUSES" class="py-name" href="#" onclick="return doclink('link-82', 'STATUSES', 'link-38');">STATUSES</a></tt><tt class="py-op">.</tt><tt id="link-83" class="py-name"><a title="proton.Messenger.get" class="py-name" href="#" onclick="return doclink('link-83', 'get', 'link-50');">get</a></tt><tt class="py-op">(</tt><tt class="py-name">disp</tt><tt class="py-op">,</tt> <tt class="py-name">disp</tt><tt class="py-op">)</tt> </tt>
</div><a name="L537"></a><tt class="py-lineno"> 537</tt> <tt class="py-line"> </tt>
<a name="Messenger.buffered"></a><div id="Messenger.buffered-def"><a name="L538"></a><tt class="py-lineno"> 538</tt> <a class="py-toggle" href="#" id="Messenger.buffered-toggle" onclick="return toggle('Messenger.buffered');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Messenger-class.html#buffered">buffered</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">tracker</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Messenger.buffered-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Messenger.buffered-expanded"><a name="L539"></a><tt class="py-lineno"> 539</tt> <tt class="py-line"> <tt class="py-docstring">"""</tt> </tt>
<a name="L540"></a><tt class="py-lineno"> 540</tt> <tt class="py-line"><tt class="py-docstring"> Checks if the delivery associated with the given tracker is still</tt> </tt>
<a name="L541"></a><tt class="py-lineno"> 541</tt> <tt class="py-line"><tt class="py-docstring"> waiting to be sent.</tt> </tt>
<a name="L542"></a><tt class="py-lineno"> 542</tt> <tt class="py-line"><tt class="py-docstring"></tt> </tt>
<a name="L543"></a><tt class="py-lineno"> 543</tt> <tt class="py-line"><tt class="py-docstring"> @type tracker: tracker</tt> </tt>
<a name="L544"></a><tt class="py-lineno"> 544</tt> <tt class="py-line"><tt class="py-docstring"> @param tracker: the tracker whose status is to be retrieved</tt> </tt>
<a name="L545"></a><tt class="py-lineno"> 545</tt> <tt class="py-line"><tt class="py-docstring"></tt> </tt>
<a name="L546"></a><tt class="py-lineno"> 546</tt> <tt class="py-line"><tt class="py-docstring"> @return: true if delivery is still buffered</tt> </tt>
<a name="L547"></a><tt class="py-lineno"> 547</tt> <tt class="py-line"><tt class="py-docstring"> """</tt> </tt>
<a name="L548"></a><tt class="py-lineno"> 548</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt class="py-name">pn_messenger_buffered</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_mng</tt><tt class="py-op">,</tt> <tt class="py-name">tracker</tt><tt class="py-op">)</tt><tt class="py-op">;</tt> </tt>
</div><a name="L549"></a><tt class="py-lineno"> 549</tt> <tt class="py-line"> </tt>
<a name="Messenger.settle"></a><div id="Messenger.settle-def"><a name="L550"></a><tt class="py-lineno"> 550</tt> <a class="py-toggle" href="#" id="Messenger.settle-toggle" onclick="return toggle('Messenger.settle');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Messenger-class.html#settle">settle</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">tracker</tt><tt class="py-op">=</tt><tt class="py-name">None</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Messenger.settle-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Messenger.settle-expanded"><a name="L551"></a><tt class="py-lineno"> 551</tt> <tt class="py-line"> <tt class="py-docstring">"""</tt> </tt>
<a name="L552"></a><tt class="py-lineno"> 552</tt> <tt class="py-line"><tt class="py-docstring"> Frees a L{Messenger} from tracking the status associated with a given</tt> </tt>
<a name="L553"></a><tt class="py-lineno"> 553</tt> <tt class="py-line"><tt class="py-docstring"> tracker. If you don't supply a tracker, all outgoing L{messages<Message>} up</tt> </tt>
<a name="L554"></a><tt class="py-lineno"> 554</tt> <tt class="py-line"><tt class="py-docstring"> to the most recent will be settled.</tt> </tt>
<a name="L555"></a><tt class="py-lineno"> 555</tt> <tt class="py-line"><tt class="py-docstring"> """</tt> </tt>
<a name="L556"></a><tt class="py-lineno"> 556</tt> <tt class="py-line"> <tt class="py-keyword">if</tt> <tt class="py-name">tracker</tt> <tt class="py-keyword">is</tt> <tt class="py-name">None</tt><tt class="py-op">:</tt> </tt>
<a name="L557"></a><tt class="py-lineno"> 557</tt> <tt class="py-line"> <tt class="py-name">tracker</tt> <tt class="py-op">=</tt> <tt class="py-name">pn_messenger_outgoing_tracker</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_mng</tt><tt class="py-op">)</tt> </tt>
<a name="L558"></a><tt class="py-lineno"> 558</tt> <tt class="py-line"> <tt class="py-name">flags</tt> <tt class="py-op">=</tt> <tt class="py-name">PN_CUMULATIVE</tt> </tt>
<a name="L559"></a><tt class="py-lineno"> 559</tt> <tt class="py-line"> <tt class="py-keyword">else</tt><tt class="py-op">:</tt> </tt>
<a name="L560"></a><tt class="py-lineno"> 560</tt> <tt class="py-line"> <tt class="py-name">flags</tt> <tt class="py-op">=</tt> <tt class="py-number">0</tt> </tt>
<a name="L561"></a><tt class="py-lineno"> 561</tt> <tt class="py-line"> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_check</tt><tt class="py-op">(</tt><tt class="py-name">pn_messenger_settle</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_mng</tt><tt class="py-op">,</tt> <tt class="py-name">tracker</tt><tt class="py-op">,</tt> <tt class="py-name">flags</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
</div><a name="L562"></a><tt class="py-lineno"> 562</tt> <tt class="py-line"> </tt>
<a name="Messenger.send"></a><div id="Messenger.send-def"><a name="L563"></a><tt class="py-lineno"> 563</tt> <a class="py-toggle" href="#" id="Messenger.send-toggle" onclick="return toggle('Messenger.send');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Messenger-class.html#send">send</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">n</tt><tt class="py-op">=</tt><tt class="py-op">-</tt><tt class="py-number">1</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Messenger.send-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Messenger.send-expanded"><a name="L564"></a><tt class="py-lineno"> 564</tt> <tt class="py-line"> <tt class="py-docstring">"""</tt> </tt>
<a name="L565"></a><tt class="py-lineno"> 565</tt> <tt class="py-line"><tt class="py-docstring"> This call will block until the indicated number of L{messages<Message>}</tt> </tt>
<a name="L566"></a><tt class="py-lineno"> 566</tt> <tt class="py-line"><tt class="py-docstring"> have been sent, or until the operation times out. If n is -1 this call will</tt> </tt>
<a name="L567"></a><tt class="py-lineno"> 567</tt> <tt class="py-line"><tt class="py-docstring"> block until all outgoing L{messages<Message>} have been sent. If n is 0 then</tt> </tt>
<a name="L568"></a><tt class="py-lineno"> 568</tt> <tt class="py-line"><tt class="py-docstring"> this call will send whatever it can without blocking.</tt> </tt>
<a name="L569"></a><tt class="py-lineno"> 569</tt> <tt class="py-line"><tt class="py-docstring"> """</tt> </tt>
<a name="L570"></a><tt class="py-lineno"> 570</tt> <tt class="py-line"> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_check</tt><tt class="py-op">(</tt><tt class="py-name">pn_messenger_send</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_mng</tt><tt class="py-op">,</tt> <tt class="py-name">n</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
</div><a name="L571"></a><tt class="py-lineno"> 571</tt> <tt class="py-line"> </tt>
<a name="Messenger.recv"></a><div id="Messenger.recv-def"><a name="L572"></a><tt class="py-lineno"> 572</tt> <a class="py-toggle" href="#" id="Messenger.recv-toggle" onclick="return toggle('Messenger.recv');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Messenger-class.html#recv">recv</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">n</tt><tt class="py-op">=</tt><tt class="py-name">None</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Messenger.recv-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Messenger.recv-expanded"><a name="L573"></a><tt class="py-lineno"> 573</tt> <tt class="py-line"> <tt class="py-docstring">"""</tt> </tt>
<a name="L574"></a><tt class="py-lineno"> 574</tt> <tt class="py-line"><tt class="py-docstring"> Receives up to I{n} L{messages<Message>} into the incoming queue. If no value</tt> </tt>
<a name="L575"></a><tt class="py-lineno"> 575</tt> <tt class="py-line"><tt class="py-docstring"> for I{n} is supplied, this call will receive as many L{messages<Message>} as it</tt> </tt>
<a name="L576"></a><tt class="py-lineno"> 576</tt> <tt class="py-line"><tt class="py-docstring"> can buffer internally. If the L{Messenger} is in blocking mode, this</tt> </tt>
<a name="L577"></a><tt class="py-lineno"> 577</tt> <tt class="py-line"><tt class="py-docstring"> call will block until at least one L{Message} is available in the</tt> </tt>
<a name="L578"></a><tt class="py-lineno"> 578</tt> <tt class="py-line"><tt class="py-docstring"> incoming queue.</tt> </tt>
<a name="L579"></a><tt class="py-lineno"> 579</tt> <tt class="py-line"><tt class="py-docstring"> """</tt> </tt>
<a name="L580"></a><tt class="py-lineno"> 580</tt> <tt class="py-line"> <tt class="py-keyword">if</tt> <tt class="py-name">n</tt> <tt class="py-keyword">is</tt> <tt class="py-name">None</tt><tt class="py-op">:</tt> </tt>
<a name="L581"></a><tt class="py-lineno"> 581</tt> <tt class="py-line"> <tt class="py-name">n</tt> <tt class="py-op">=</tt> <tt class="py-op">-</tt><tt class="py-number">1</tt> </tt>
<a name="L582"></a><tt class="py-lineno"> 582</tt> <tt class="py-line"> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_check</tt><tt class="py-op">(</tt><tt class="py-name">pn_messenger_recv</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_mng</tt><tt class="py-op">,</tt> <tt class="py-name">n</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
</div><a name="L583"></a><tt class="py-lineno"> 583</tt> <tt class="py-line"> </tt>
<a name="Messenger.work"></a><div id="Messenger.work-def"><a name="L584"></a><tt class="py-lineno"> 584</tt> <a class="py-toggle" href="#" id="Messenger.work-toggle" onclick="return toggle('Messenger.work');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Messenger-class.html#work">work</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">timeout</tt><tt class="py-op">=</tt><tt class="py-name">None</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Messenger.work-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Messenger.work-expanded"><a name="L585"></a><tt class="py-lineno"> 585</tt> <tt class="py-line"> <tt class="py-docstring">"""</tt> </tt>
<a name="L586"></a><tt class="py-lineno"> 586</tt> <tt class="py-line"><tt class="py-docstring"> Sends or receives any outstanding L{messages<Message>} queued for a L{Messenger}.</tt> </tt>
<a name="L587"></a><tt class="py-lineno"> 587</tt> <tt class="py-line"><tt class="py-docstring"> This will block for the indicated timeout.</tt> </tt>
<a name="L588"></a><tt class="py-lineno"> 588</tt> <tt class="py-line"><tt class="py-docstring"> This method may also do I/O work other than sending and receiving</tt> </tt>
<a name="L589"></a><tt class="py-lineno"> 589</tt> <tt class="py-line"><tt class="py-docstring"> L{messages<Message>}. For example, closing connections after messenger.L{stop}()</tt> </tt>
<a name="L590"></a><tt class="py-lineno"> 590</tt> <tt class="py-line"><tt class="py-docstring"> has been called.</tt> </tt>
<a name="L591"></a><tt class="py-lineno"> 591</tt> <tt class="py-line"><tt class="py-docstring"> """</tt> </tt>
<a name="L592"></a><tt class="py-lineno"> 592</tt> <tt class="py-line"> <tt class="py-keyword">if</tt> <tt id="link-84" class="py-name"><a title="proton.Messenger.timeout
proton.Terminus.timeout
proton.reactor.Reactor.timeout" class="py-name" href="#" onclick="return doclink('link-84', 'timeout', 'link-64');">timeout</a></tt> <tt class="py-keyword">is</tt> <tt class="py-name">None</tt><tt class="py-op">:</tt> </tt>
<a name="L593"></a><tt class="py-lineno"> 593</tt> <tt class="py-line"> <tt class="py-name">t</tt> <tt class="py-op">=</tt> <tt class="py-op">-</tt><tt class="py-number">1</tt> </tt>
<a name="L594"></a><tt class="py-lineno"> 594</tt> <tt class="py-line"> <tt class="py-keyword">else</tt><tt class="py-op">:</tt> </tt>
<a name="L595"></a><tt class="py-lineno"> 595</tt> <tt class="py-line"> <tt class="py-name">t</tt> <tt class="py-op">=</tt> <tt class="py-name">secs2millis</tt><tt class="py-op">(</tt><tt id="link-85" class="py-name"><a title="proton.Messenger.timeout
proton.Terminus.timeout
proton.reactor.Reactor.timeout" class="py-name" href="#" onclick="return doclink('link-85', 'timeout', 'link-64');">timeout</a></tt><tt class="py-op">)</tt> </tt>
<a name="L596"></a><tt class="py-lineno"> 596</tt> <tt class="py-line"> <tt class="py-name">err</tt> <tt class="py-op">=</tt> <tt class="py-name">pn_messenger_work</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_mng</tt><tt class="py-op">,</tt> <tt class="py-name">t</tt><tt class="py-op">)</tt> </tt>
<a name="L597"></a><tt class="py-lineno"> 597</tt> <tt class="py-line"> <tt class="py-keyword">if</tt> <tt class="py-op">(</tt><tt class="py-name">err</tt> <tt class="py-op">==</tt> <tt class="py-name">PN_TIMEOUT</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
<a name="L598"></a><tt class="py-lineno"> 598</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt class="py-name">False</tt> </tt>
<a name="L599"></a><tt class="py-lineno"> 599</tt> <tt class="py-line"> <tt class="py-keyword">else</tt><tt class="py-op">:</tt> </tt>
<a name="L600"></a><tt class="py-lineno"> 600</tt> <tt class="py-line"> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_check</tt><tt class="py-op">(</tt><tt class="py-name">err</tt><tt class="py-op">)</tt> </tt>
<a name="L601"></a><tt class="py-lineno"> 601</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt class="py-name">True</tt> </tt>
</div><a name="L602"></a><tt class="py-lineno"> 602</tt> <tt class="py-line"> </tt>
<a name="L603"></a><tt class="py-lineno"> 603</tt> <tt class="py-line"> <tt class="py-decorator">@</tt><tt class="py-decorator">property</tt> </tt>
<a name="Messenger.receiving"></a><div id="Messenger.receiving-def"><a name="L604"></a><tt class="py-lineno"> 604</tt> <a class="py-toggle" href="#" id="Messenger.receiving-toggle" onclick="return toggle('Messenger.receiving');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Messenger-class.html#receiving">receiving</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Messenger.receiving-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Messenger.receiving-expanded"><a name="L605"></a><tt class="py-lineno"> 605</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt class="py-name">pn_messenger_receiving</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_mng</tt><tt class="py-op">)</tt> </tt>
</div><a name="L606"></a><tt class="py-lineno"> 606</tt> <tt class="py-line"> </tt>
<a name="Messenger.interrupt"></a><div id="Messenger.interrupt-def"><a name="L607"></a><tt class="py-lineno"> 607</tt> <a class="py-toggle" href="#" id="Messenger.interrupt-toggle" onclick="return toggle('Messenger.interrupt');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Messenger-class.html#interrupt">interrupt</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Messenger.interrupt-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Messenger.interrupt-expanded"><a name="L608"></a><tt class="py-lineno"> 608</tt> <tt class="py-line"> <tt class="py-docstring">"""</tt> </tt>
<a name="L609"></a><tt class="py-lineno"> 609</tt> <tt class="py-line"><tt class="py-docstring"> The L{Messenger} interface is single-threaded.</tt> </tt>
<a name="L610"></a><tt class="py-lineno"> 610</tt> <tt class="py-line"><tt class="py-docstring"> This is the only L{Messenger} function intended to be called</tt> </tt>
<a name="L611"></a><tt class="py-lineno"> 611</tt> <tt class="py-line"><tt class="py-docstring"> from outside of the L{Messenger} thread.</tt> </tt>
<a name="L612"></a><tt class="py-lineno"> 612</tt> <tt class="py-line"><tt class="py-docstring"> Call this from a non-messenger thread to interrupt</tt> </tt>
<a name="L613"></a><tt class="py-lineno"> 613</tt> <tt class="py-line"><tt class="py-docstring"> a L{Messenger} that is blocking.</tt> </tt>
<a name="L614"></a><tt class="py-lineno"> 614</tt> <tt class="py-line"><tt class="py-docstring"> This will cause any in-progress blocking call to throw</tt> </tt>
<a name="L615"></a><tt class="py-lineno"> 615</tt> <tt class="py-line"><tt class="py-docstring"> the L{Interrupt} exception. If there is no currently blocking</tt> </tt>
<a name="L616"></a><tt class="py-lineno"> 616</tt> <tt class="py-line"><tt class="py-docstring"> call, then the next blocking call will be affected, even if it</tt> </tt>
<a name="L617"></a><tt class="py-lineno"> 617</tt> <tt class="py-line"><tt class="py-docstring"> is within the same thread that interrupt was called from.</tt> </tt>
<a name="L618"></a><tt class="py-lineno"> 618</tt> <tt class="py-line"><tt class="py-docstring"> """</tt> </tt>
<a name="L619"></a><tt class="py-lineno"> 619</tt> <tt class="py-line"> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_check</tt><tt class="py-op">(</tt><tt class="py-name">pn_messenger_interrupt</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_mng</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
</div><a name="L620"></a><tt class="py-lineno"> 620</tt> <tt class="py-line"> </tt>
<a name="Messenger.get"></a><div id="Messenger.get-def"><a name="L621"></a><tt class="py-lineno"> 621</tt> <a class="py-toggle" href="#" id="Messenger.get-toggle" onclick="return toggle('Messenger.get');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Messenger-class.html#get">get</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">message</tt><tt class="py-op">=</tt><tt class="py-name">None</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Messenger.get-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Messenger.get-expanded"><a name="L622"></a><tt class="py-lineno"> 622</tt> <tt class="py-line"> <tt class="py-docstring">"""</tt> </tt>
<a name="L623"></a><tt class="py-lineno"> 623</tt> <tt class="py-line"><tt class="py-docstring"> Moves the message from the head of the incoming message queue into</tt> </tt>
<a name="L624"></a><tt class="py-lineno"> 624</tt> <tt class="py-line"><tt class="py-docstring"> the supplied message object. Any content in the message will be</tt> </tt>
<a name="L625"></a><tt class="py-lineno"> 625</tt> <tt class="py-line"><tt class="py-docstring"> overwritten.</tt> </tt>
<a name="L626"></a><tt class="py-lineno"> 626</tt> <tt class="py-line"><tt class="py-docstring"></tt> </tt>
<a name="L627"></a><tt class="py-lineno"> 627</tt> <tt class="py-line"><tt class="py-docstring"> A tracker for the incoming L{Message} is returned. The tracker can</tt> </tt>
<a name="L628"></a><tt class="py-lineno"> 628</tt> <tt class="py-line"><tt class="py-docstring"> later be used to communicate your acceptance or rejection of the</tt> </tt>
<a name="L629"></a><tt class="py-lineno"> 629</tt> <tt class="py-line"><tt class="py-docstring"> L{Message}.</tt> </tt>
<a name="L630"></a><tt class="py-lineno"> 630</tt> <tt class="py-line"><tt class="py-docstring"></tt> </tt>
<a name="L631"></a><tt class="py-lineno"> 631</tt> <tt class="py-line"><tt class="py-docstring"> If None is passed in for the L{Message} object, the L{Message}</tt> </tt>
<a name="L632"></a><tt class="py-lineno"> 632</tt> <tt class="py-line"><tt class="py-docstring"> popped from the head of the queue is discarded.</tt> </tt>
<a name="L633"></a><tt class="py-lineno"> 633</tt> <tt class="py-line"><tt class="py-docstring"></tt> </tt>
<a name="L634"></a><tt class="py-lineno"> 634</tt> <tt class="py-line"><tt class="py-docstring"> @type message: Message</tt> </tt>
<a name="L635"></a><tt class="py-lineno"> 635</tt> <tt class="py-line"><tt class="py-docstring"> @param message: the destination message object</tt> </tt>
<a name="L636"></a><tt class="py-lineno"> 636</tt> <tt class="py-line"><tt class="py-docstring"> @return: a tracker</tt> </tt>
<a name="L637"></a><tt class="py-lineno"> 637</tt> <tt class="py-line"><tt class="py-docstring"> """</tt> </tt>
<a name="L638"></a><tt class="py-lineno"> 638</tt> <tt class="py-line"> <tt class="py-keyword">if</tt> <tt class="py-name">message</tt> <tt class="py-keyword">is</tt> <tt class="py-name">None</tt><tt class="py-op">:</tt> </tt>
<a name="L639"></a><tt class="py-lineno"> 639</tt> <tt class="py-line"> <tt class="py-name">impl</tt> <tt class="py-op">=</tt> <tt class="py-name">None</tt> </tt>
<a name="L640"></a><tt class="py-lineno"> 640</tt> <tt class="py-line"> <tt class="py-keyword">else</tt><tt class="py-op">:</tt> </tt>
<a name="L641"></a><tt class="py-lineno"> 641</tt> <tt class="py-line"> <tt class="py-name">impl</tt> <tt class="py-op">=</tt> <tt class="py-name">message</tt><tt class="py-op">.</tt><tt class="py-name">_msg</tt> </tt>
<a name="L642"></a><tt class="py-lineno"> 642</tt> <tt class="py-line"> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_check</tt><tt class="py-op">(</tt><tt class="py-name">pn_messenger_get</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_mng</tt><tt class="py-op">,</tt> <tt class="py-name">impl</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
<a name="L643"></a><tt class="py-lineno"> 643</tt> <tt class="py-line"> <tt class="py-keyword">if</tt> <tt class="py-name">message</tt> <tt class="py-keyword">is</tt> <tt class="py-keyword">not</tt> <tt class="py-name">None</tt><tt class="py-op">:</tt> </tt>
<a name="L644"></a><tt class="py-lineno"> 644</tt> <tt class="py-line"> <tt class="py-name">message</tt><tt class="py-op">.</tt><tt class="py-name">_post_decode</tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L645"></a><tt class="py-lineno"> 645</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt class="py-name">pn_messenger_incoming_tracker</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_mng</tt><tt class="py-op">)</tt> </tt>
</div><a name="L646"></a><tt class="py-lineno"> 646</tt> <tt class="py-line"> </tt>
<a name="Messenger.accept"></a><div id="Messenger.accept-def"><a name="L647"></a><tt class="py-lineno"> 647</tt> <a class="py-toggle" href="#" id="Messenger.accept-toggle" onclick="return toggle('Messenger.accept');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Messenger-class.html#accept">accept</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">tracker</tt><tt class="py-op">=</tt><tt class="py-name">None</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Messenger.accept-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Messenger.accept-expanded"><a name="L648"></a><tt class="py-lineno"> 648</tt> <tt class="py-line"> <tt class="py-docstring">"""</tt> </tt>
<a name="L649"></a><tt class="py-lineno"> 649</tt> <tt class="py-line"><tt class="py-docstring"> Signal the sender that you have acted on the L{Message}</tt> </tt>
<a name="L650"></a><tt class="py-lineno"> 650</tt> <tt class="py-line"><tt class="py-docstring"> pointed to by the tracker. If no tracker is supplied,</tt> </tt>
<a name="L651"></a><tt class="py-lineno"> 651</tt> <tt class="py-line"><tt class="py-docstring"> then all messages that have been returned by the L{get}</tt> </tt>
<a name="L652"></a><tt class="py-lineno"> 652</tt> <tt class="py-line"><tt class="py-docstring"> method are accepted, except those that have already been</tt> </tt>
<a name="L653"></a><tt class="py-lineno"> 653</tt> <tt class="py-line"><tt class="py-docstring"> auto-settled by passing beyond your incoming window size.</tt> </tt>
<a name="L654"></a><tt class="py-lineno"> 654</tt> <tt class="py-line"><tt class="py-docstring"></tt> </tt>
<a name="L655"></a><tt class="py-lineno"> 655</tt> <tt class="py-line"><tt class="py-docstring"> @type tracker: tracker</tt> </tt>
<a name="L656"></a><tt class="py-lineno"> 656</tt> <tt class="py-line"><tt class="py-docstring"> @param tracker: a tracker as returned by get</tt> </tt>
<a name="L657"></a><tt class="py-lineno"> 657</tt> <tt class="py-line"><tt class="py-docstring"> """</tt> </tt>
<a name="L658"></a><tt class="py-lineno"> 658</tt> <tt class="py-line"> <tt class="py-keyword">if</tt> <tt class="py-name">tracker</tt> <tt class="py-keyword">is</tt> <tt class="py-name">None</tt><tt class="py-op">:</tt> </tt>
<a name="L659"></a><tt class="py-lineno"> 659</tt> <tt class="py-line"> <tt class="py-name">tracker</tt> <tt class="py-op">=</tt> <tt class="py-name">pn_messenger_incoming_tracker</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_mng</tt><tt class="py-op">)</tt> </tt>
<a name="L660"></a><tt class="py-lineno"> 660</tt> <tt class="py-line"> <tt class="py-name">flags</tt> <tt class="py-op">=</tt> <tt class="py-name">PN_CUMULATIVE</tt> </tt>
<a name="L661"></a><tt class="py-lineno"> 661</tt> <tt class="py-line"> <tt class="py-keyword">else</tt><tt class="py-op">:</tt> </tt>
<a name="L662"></a><tt class="py-lineno"> 662</tt> <tt class="py-line"> <tt class="py-name">flags</tt> <tt class="py-op">=</tt> <tt class="py-number">0</tt> </tt>
<a name="L663"></a><tt class="py-lineno"> 663</tt> <tt class="py-line"> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_check</tt><tt class="py-op">(</tt><tt class="py-name">pn_messenger_accept</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_mng</tt><tt class="py-op">,</tt> <tt class="py-name">tracker</tt><tt class="py-op">,</tt> <tt class="py-name">flags</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
</div><a name="L664"></a><tt class="py-lineno"> 664</tt> <tt class="py-line"> </tt>
<a name="Messenger.reject"></a><div id="Messenger.reject-def"><a name="L665"></a><tt class="py-lineno"> 665</tt> <a class="py-toggle" href="#" id="Messenger.reject-toggle" onclick="return toggle('Messenger.reject');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Messenger-class.html#reject">reject</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">tracker</tt><tt class="py-op">=</tt><tt class="py-name">None</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Messenger.reject-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Messenger.reject-expanded"><a name="L666"></a><tt class="py-lineno"> 666</tt> <tt class="py-line"> <tt class="py-docstring">"""</tt> </tt>
<a name="L667"></a><tt class="py-lineno"> 667</tt> <tt class="py-line"><tt class="py-docstring"> Rejects the L{Message} indicated by the tracker. If no tracker</tt> </tt>
<a name="L668"></a><tt class="py-lineno"> 668</tt> <tt class="py-line"><tt class="py-docstring"> is supplied, all messages that have been returned by the L{get}</tt> </tt>
<a name="L669"></a><tt class="py-lineno"> 669</tt> <tt class="py-line"><tt class="py-docstring"> method are rejected, except those that have already been auto-settled</tt> </tt>
<a name="L670"></a><tt class="py-lineno"> 670</tt> <tt class="py-line"><tt class="py-docstring"> by passing beyond your outgoing window size.</tt> </tt>
<a name="L671"></a><tt class="py-lineno"> 671</tt> <tt class="py-line"><tt class="py-docstring"></tt> </tt>
<a name="L672"></a><tt class="py-lineno"> 672</tt> <tt class="py-line"><tt class="py-docstring"> @type tracker: tracker</tt> </tt>
<a name="L673"></a><tt class="py-lineno"> 673</tt> <tt class="py-line"><tt class="py-docstring"> @param tracker: a tracker as returned by get</tt> </tt>
<a name="L674"></a><tt class="py-lineno"> 674</tt> <tt class="py-line"><tt class="py-docstring"> """</tt> </tt>
<a name="L675"></a><tt class="py-lineno"> 675</tt> <tt class="py-line"> <tt class="py-keyword">if</tt> <tt class="py-name">tracker</tt> <tt class="py-keyword">is</tt> <tt class="py-name">None</tt><tt class="py-op">:</tt> </tt>
<a name="L676"></a><tt class="py-lineno"> 676</tt> <tt class="py-line"> <tt class="py-name">tracker</tt> <tt class="py-op">=</tt> <tt class="py-name">pn_messenger_incoming_tracker</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_mng</tt><tt class="py-op">)</tt> </tt>
<a name="L677"></a><tt class="py-lineno"> 677</tt> <tt class="py-line"> <tt class="py-name">flags</tt> <tt class="py-op">=</tt> <tt class="py-name">PN_CUMULATIVE</tt> </tt>
<a name="L678"></a><tt class="py-lineno"> 678</tt> <tt class="py-line"> <tt class="py-keyword">else</tt><tt class="py-op">:</tt> </tt>
<a name="L679"></a><tt class="py-lineno"> 679</tt> <tt class="py-line"> <tt class="py-name">flags</tt> <tt class="py-op">=</tt> <tt class="py-number">0</tt> </tt>
<a name="L680"></a><tt class="py-lineno"> 680</tt> <tt class="py-line"> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_check</tt><tt class="py-op">(</tt><tt class="py-name">pn_messenger_reject</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_mng</tt><tt class="py-op">,</tt> <tt class="py-name">tracker</tt><tt class="py-op">,</tt> <tt class="py-name">flags</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
</div><a name="L681"></a><tt class="py-lineno"> 681</tt> <tt class="py-line"> </tt>
<a name="L682"></a><tt class="py-lineno"> 682</tt> <tt class="py-line"> <tt class="py-decorator">@</tt><tt class="py-decorator">property</tt> </tt>
<a name="Messenger.outgoing"></a><div id="Messenger.outgoing-def"><a name="L683"></a><tt class="py-lineno"> 683</tt> <a class="py-toggle" href="#" id="Messenger.outgoing-toggle" onclick="return toggle('Messenger.outgoing');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Messenger-class.html#outgoing">outgoing</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Messenger.outgoing-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Messenger.outgoing-expanded"><a name="L684"></a><tt class="py-lineno"> 684</tt> <tt class="py-line"> <tt class="py-docstring">"""</tt> </tt>
<a name="L685"></a><tt class="py-lineno"> 685</tt> <tt class="py-line"><tt class="py-docstring"> The outgoing queue depth.</tt> </tt>
<a name="L686"></a><tt class="py-lineno"> 686</tt> <tt class="py-line"><tt class="py-docstring"> """</tt> </tt>
<a name="L687"></a><tt class="py-lineno"> 687</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt class="py-name">pn_messenger_outgoing</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_mng</tt><tt class="py-op">)</tt> </tt>
</div><a name="L688"></a><tt class="py-lineno"> 688</tt> <tt class="py-line"> </tt>
<a name="L689"></a><tt class="py-lineno"> 689</tt> <tt class="py-line"> <tt class="py-decorator">@</tt><tt class="py-decorator">property</tt> </tt>
<a name="Messenger.incoming"></a><div id="Messenger.incoming-def"><a name="L690"></a><tt class="py-lineno"> 690</tt> <a class="py-toggle" href="#" id="Messenger.incoming-toggle" onclick="return toggle('Messenger.incoming');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Messenger-class.html#incoming">incoming</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Messenger.incoming-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Messenger.incoming-expanded"><a name="L691"></a><tt class="py-lineno"> 691</tt> <tt class="py-line"> <tt class="py-docstring">"""</tt> </tt>
<a name="L692"></a><tt class="py-lineno"> 692</tt> <tt class="py-line"><tt class="py-docstring"> The incoming queue depth.</tt> </tt>
<a name="L693"></a><tt class="py-lineno"> 693</tt> <tt class="py-line"><tt class="py-docstring"> """</tt> </tt>
<a name="L694"></a><tt class="py-lineno"> 694</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt class="py-name">pn_messenger_incoming</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_mng</tt><tt class="py-op">)</tt> </tt>
</div><a name="L695"></a><tt class="py-lineno"> 695</tt> <tt class="py-line"> </tt>
<a name="Messenger.route"></a><div id="Messenger.route-def"><a name="L696"></a><tt class="py-lineno"> 696</tt> <a class="py-toggle" href="#" id="Messenger.route-toggle" onclick="return toggle('Messenger.route');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Messenger-class.html#route">route</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">pattern</tt><tt class="py-op">,</tt> <tt class="py-param">address</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Messenger.route-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Messenger.route-expanded"><a name="L697"></a><tt class="py-lineno"> 697</tt> <tt class="py-line"> <tt class="py-docstring">"""</tt> </tt>
<a name="L698"></a><tt class="py-lineno"> 698</tt> <tt class="py-line"><tt class="py-docstring"> Adds a routing rule to a L{Messenger's<Messenger>} internal routing table.</tt> </tt>
<a name="L699"></a><tt class="py-lineno"> 699</tt> <tt class="py-line"><tt class="py-docstring"></tt> </tt>
<a name="L700"></a><tt class="py-lineno"> 700</tt> <tt class="py-line"><tt class="py-docstring"> The route procedure may be used to influence how a L{Messenger} will</tt> </tt>
<a name="L701"></a><tt class="py-lineno"> 701</tt> <tt class="py-line"><tt class="py-docstring"> internally treat a given address or class of addresses. Every call</tt> </tt>
<a name="L702"></a><tt class="py-lineno"> 702</tt> <tt class="py-line"><tt class="py-docstring"> to the route procedure will result in L{Messenger} appending a routing</tt> </tt>
<a name="L703"></a><tt class="py-lineno"> 703</tt> <tt class="py-line"><tt class="py-docstring"> rule to its internal routing table.</tt> </tt>
<a name="L704"></a><tt class="py-lineno"> 704</tt> <tt class="py-line"><tt class="py-docstring"></tt> </tt>
<a name="L705"></a><tt class="py-lineno"> 705</tt> <tt class="py-line"><tt class="py-docstring"> Whenever a L{Message} is presented to a L{Messenger} for delivery, it</tt> </tt>
<a name="L706"></a><tt class="py-lineno"> 706</tt> <tt class="py-line"><tt class="py-docstring"> will match the address of this message against the set of routing</tt> </tt>
<a name="L707"></a><tt class="py-lineno"> 707</tt> <tt class="py-line"><tt class="py-docstring"> rules in order. The first rule to match will be triggered, and</tt> </tt>
<a name="L708"></a><tt class="py-lineno"> 708</tt> <tt class="py-line"><tt class="py-docstring"> instead of routing based on the address presented in the message,</tt> </tt>
<a name="L709"></a><tt class="py-lineno"> 709</tt> <tt class="py-line"><tt class="py-docstring"> the L{Messenger} will route based on the address supplied in the rule.</tt> </tt>
<a name="L710"></a><tt class="py-lineno"> 710</tt> <tt class="py-line"><tt class="py-docstring"></tt> </tt>
<a name="L711"></a><tt class="py-lineno"> 711</tt> <tt class="py-line"><tt class="py-docstring"> The pattern matching syntax supports two types of matches, a '%'</tt> </tt>
<a name="L712"></a><tt class="py-lineno"> 712</tt> <tt class="py-line"><tt class="py-docstring"> will match any character except a '/', and a '*' will match any</tt> </tt>
<a name="L713"></a><tt class="py-lineno"> 713</tt> <tt class="py-line"><tt class="py-docstring"> character including a '/'.</tt> </tt>
<a name="L714"></a><tt class="py-lineno"> 714</tt> <tt class="py-line"><tt class="py-docstring"></tt> </tt>
<a name="L715"></a><tt class="py-lineno"> 715</tt> <tt class="py-line"><tt class="py-docstring"> A routing address is specified as a normal AMQP address, however it</tt> </tt>
<a name="L716"></a><tt class="py-lineno"> 716</tt> <tt class="py-line"><tt class="py-docstring"> may additionally use substitution variables from the pattern match</tt> </tt>
<a name="L717"></a><tt class="py-lineno"> 717</tt> <tt class="py-line"><tt class="py-docstring"> that triggered the rule.</tt> </tt>
<a name="L718"></a><tt class="py-lineno"> 718</tt> <tt class="py-line"><tt class="py-docstring"></tt> </tt>
<a name="L719"></a><tt class="py-lineno"> 719</tt> <tt class="py-line"><tt class="py-docstring"> Any message sent to "foo" will be routed to "amqp://foo.com":</tt> </tt>
<a name="L720"></a><tt class="py-lineno"> 720</tt> <tt class="py-line"><tt class="py-docstring"></tt> </tt>
<a name="L721"></a><tt class="py-lineno"> 721</tt> <tt class="py-line"><tt class="py-docstring"> >>> messenger.route("foo", "amqp://foo.com");</tt> </tt>
<a name="L722"></a><tt class="py-lineno"> 722</tt> <tt class="py-line"><tt class="py-docstring"></tt> </tt>
<a name="L723"></a><tt class="py-lineno"> 723</tt> <tt class="py-line"><tt class="py-docstring"> Any message sent to "foobar" will be routed to</tt> </tt>
<a name="L724"></a><tt class="py-lineno"> 724</tt> <tt class="py-line"><tt class="py-docstring"> "amqp://foo.com/bar":</tt> </tt>
<a name="L725"></a><tt class="py-lineno"> 725</tt> <tt class="py-line"><tt class="py-docstring"></tt> </tt>
<a name="L726"></a><tt class="py-lineno"> 726</tt> <tt class="py-line"><tt class="py-docstring"> >>> messenger.route("foobar", "amqp://foo.com/bar");</tt> </tt>
<a name="L727"></a><tt class="py-lineno"> 727</tt> <tt class="py-line"><tt class="py-docstring"></tt> </tt>
<a name="L728"></a><tt class="py-lineno"> 728</tt> <tt class="py-line"><tt class="py-docstring"> Any message sent to bar/<path> will be routed to the corresponding</tt> </tt>
<a name="L729"></a><tt class="py-lineno"> 729</tt> <tt class="py-line"><tt class="py-docstring"> path within the amqp://bar.com domain:</tt> </tt>
<a name="L730"></a><tt class="py-lineno"> 730</tt> <tt class="py-line"><tt class="py-docstring"></tt> </tt>
<a name="L731"></a><tt class="py-lineno"> 731</tt> <tt class="py-line"><tt class="py-docstring"> >>> messenger.route("bar/*", "amqp://bar.com/$1");</tt> </tt>
<a name="L732"></a><tt class="py-lineno"> 732</tt> <tt class="py-line"><tt class="py-docstring"></tt> </tt>
<a name="L733"></a><tt class="py-lineno"> 733</tt> <tt class="py-line"><tt class="py-docstring"> Route all L{messages<Message>} over TLS:</tt> </tt>
<a name="L734"></a><tt class="py-lineno"> 734</tt> <tt class="py-line"><tt class="py-docstring"></tt> </tt>
<a name="L735"></a><tt class="py-lineno"> 735</tt> <tt class="py-line"><tt class="py-docstring"> >>> messenger.route("amqp:*", "amqps:$1")</tt> </tt>
<a name="L736"></a><tt class="py-lineno"> 736</tt> <tt class="py-line"><tt class="py-docstring"></tt> </tt>
<a name="L737"></a><tt class="py-lineno"> 737</tt> <tt class="py-line"><tt class="py-docstring"> Supply credentials for foo.com:</tt> </tt>
<a name="L738"></a><tt class="py-lineno"> 738</tt> <tt class="py-line"><tt class="py-docstring"></tt> </tt>
<a name="L739"></a><tt class="py-lineno"> 739</tt> <tt class="py-line"><tt class="py-docstring"> >>> messenger.route("amqp://foo.com/*", "amqp://user:password@foo.com/$1");</tt> </tt>
<a name="L740"></a><tt class="py-lineno"> 740</tt> <tt class="py-line"><tt class="py-docstring"></tt> </tt>
<a name="L741"></a><tt class="py-lineno"> 741</tt> <tt class="py-line"><tt class="py-docstring"> Supply credentials for all domains:</tt> </tt>
<a name="L742"></a><tt class="py-lineno"> 742</tt> <tt class="py-line"><tt class="py-docstring"></tt> </tt>
<a name="L743"></a><tt class="py-lineno"> 743</tt> <tt class="py-line"><tt class="py-docstring"> >>> messenger.route("amqp://*", "amqp://user:password@$1");</tt> </tt>
<a name="L744"></a><tt class="py-lineno"> 744</tt> <tt class="py-line"><tt class="py-docstring"></tt> </tt>
<a name="L745"></a><tt class="py-lineno"> 745</tt> <tt class="py-line"><tt class="py-docstring"> Route all addresses through a single proxy while preserving the</tt> </tt>
<a name="L746"></a><tt class="py-lineno"> 746</tt> <tt class="py-line"><tt class="py-docstring"> original destination:</tt> </tt>
<a name="L747"></a><tt class="py-lineno"> 747</tt> <tt class="py-line"><tt class="py-docstring"></tt> </tt>
<a name="L748"></a><tt class="py-lineno"> 748</tt> <tt class="py-line"><tt class="py-docstring"> >>> messenger.route("amqp://%/*", "amqp://user:password@proxy/$1/$2");</tt> </tt>
<a name="L749"></a><tt class="py-lineno"> 749</tt> <tt class="py-line"><tt class="py-docstring"></tt> </tt>
<a name="L750"></a><tt class="py-lineno"> 750</tt> <tt class="py-line"><tt class="py-docstring"> Route any address through a single broker:</tt> </tt>
<a name="L751"></a><tt class="py-lineno"> 751</tt> <tt class="py-line"><tt class="py-docstring"></tt> </tt>
<a name="L752"></a><tt class="py-lineno"> 752</tt> <tt class="py-line"><tt class="py-docstring"> >>> messenger.route("*", "amqp://user:password@broker/$1");</tt> </tt>
<a name="L753"></a><tt class="py-lineno"> 753</tt> <tt class="py-line"><tt class="py-docstring"> """</tt> </tt>
<a name="L754"></a><tt class="py-lineno"> 754</tt> <tt class="py-line"> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_check</tt><tt class="py-op">(</tt><tt class="py-name">pn_messenger_route</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_mng</tt><tt class="py-op">,</tt> <tt class="py-name">unicode2utf8</tt><tt class="py-op">(</tt><tt class="py-name">pattern</tt><tt class="py-op">)</tt><tt class="py-op">,</tt> <tt class="py-name">unicode2utf8</tt><tt class="py-op">(</tt><tt id="link-86" class="py-name" targets="Variable proton.Message.address=proton.Message-class.html#address,Variable proton.Terminus.address=proton.Terminus-class.html#address"><a title="proton.Message.address
proton.Terminus.address" class="py-name" href="#" onclick="return doclink('link-86', 'address', 'link-86');">address</a></tt><tt class="py-op">)</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
</div><a name="L755"></a><tt class="py-lineno"> 755</tt> <tt class="py-line"> </tt>
<a name="Messenger.rewrite"></a><div id="Messenger.rewrite-def"><a name="L756"></a><tt class="py-lineno"> 756</tt> <a class="py-toggle" href="#" id="Messenger.rewrite-toggle" onclick="return toggle('Messenger.rewrite');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Messenger-class.html#rewrite">rewrite</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">pattern</tt><tt class="py-op">,</tt> <tt class="py-param">address</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Messenger.rewrite-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Messenger.rewrite-expanded"><a name="L757"></a><tt class="py-lineno"> 757</tt> <tt class="py-line"> <tt class="py-docstring">"""</tt> </tt>
<a name="L758"></a><tt class="py-lineno"> 758</tt> <tt class="py-line"><tt class="py-docstring"> Similar to route(), except that the destination of</tt> </tt>
<a name="L759"></a><tt class="py-lineno"> 759</tt> <tt class="py-line"><tt class="py-docstring"> the L{Message} is determined before the message address is rewritten.</tt> </tt>
<a name="L760"></a><tt class="py-lineno"> 760</tt> <tt class="py-line"><tt class="py-docstring"></tt> </tt>
<a name="L761"></a><tt class="py-lineno"> 761</tt> <tt class="py-line"><tt class="py-docstring"> The outgoing address is only rewritten after routing has been</tt> </tt>
<a name="L762"></a><tt class="py-lineno"> 762</tt> <tt class="py-line"><tt class="py-docstring"> finalized. If a message has an outgoing address of</tt> </tt>
<a name="L763"></a><tt class="py-lineno"> 763</tt> <tt class="py-line"><tt class="py-docstring"> "amqp://0.0.0.0:5678", and a rewriting rule that changes its</tt> </tt>
<a name="L764"></a><tt class="py-lineno"> 764</tt> <tt class="py-line"><tt class="py-docstring"> outgoing address to "foo", it will still arrive at the peer that</tt> </tt>
<a name="L765"></a><tt class="py-lineno"> 765</tt> <tt class="py-line"><tt class="py-docstring"> is listening on "amqp://0.0.0.0:5678", but when it arrives there,</tt> </tt>
<a name="L766"></a><tt class="py-lineno"> 766</tt> <tt class="py-line"><tt class="py-docstring"> the receiver will see its outgoing address as "foo".</tt> </tt>
<a name="L767"></a><tt class="py-lineno"> 767</tt> <tt class="py-line"><tt class="py-docstring"></tt> </tt>
<a name="L768"></a><tt class="py-lineno"> 768</tt> <tt class="py-line"><tt class="py-docstring"> The default rewrite rule removes username and password from addresses</tt> </tt>
<a name="L769"></a><tt class="py-lineno"> 769</tt> <tt class="py-line"><tt class="py-docstring"> before they are transmitted.</tt> </tt>
<a name="L770"></a><tt class="py-lineno"> 770</tt> <tt class="py-line"><tt class="py-docstring"> """</tt> </tt>
<a name="L771"></a><tt class="py-lineno"> 771</tt> <tt class="py-line"> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_check</tt><tt class="py-op">(</tt><tt class="py-name">pn_messenger_rewrite</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_mng</tt><tt class="py-op">,</tt> <tt class="py-name">unicode2utf8</tt><tt class="py-op">(</tt><tt class="py-name">pattern</tt><tt class="py-op">)</tt><tt class="py-op">,</tt> <tt class="py-name">unicode2utf8</tt><tt class="py-op">(</tt><tt id="link-87" class="py-name"><a title="proton.Message.address
proton.Terminus.address" class="py-name" href="#" onclick="return doclink('link-87', 'address', 'link-86');">address</a></tt><tt class="py-op">)</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
</div><a name="L772"></a><tt class="py-lineno"> 772</tt> <tt class="py-line"> </tt>
<a name="Messenger.selectable"></a><div id="Messenger.selectable-def"><a name="L773"></a><tt class="py-lineno"> 773</tt> <a class="py-toggle" href="#" id="Messenger.selectable-toggle" onclick="return toggle('Messenger.selectable');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Messenger-class.html#selectable">selectable</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Messenger.selectable-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Messenger.selectable-expanded"><a name="L774"></a><tt class="py-lineno"> 774</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt class="py-name">Selectable</tt><tt class="py-op">.</tt><tt id="link-88" class="py-name" targets="Static Method proton.Connection.wrap()=proton.Connection-class.html#wrap,Static Method proton.Delivery.wrap()=proton.Delivery-class.html#wrap,Static Method proton.Event.wrap()=proton.Event-class.html#wrap,Static Method proton.Link.wrap()=proton.Link-class.html#wrap,Static Method proton.Session.wrap()=proton.Session-class.html#wrap,Static Method proton.Transport.wrap()=proton.Transport-class.html#wrap,Static Method proton.reactor.Reactor.wrap()=proton.reactor.Reactor-class.html#wrap,Static Method proton.reactor.Task.wrap()=proton.reactor.Task-class.html#wrap"><a title="proton.Connection.wrap
proton.Delivery.wrap
proton.Event.wrap
proton.Link.wrap
proton.Session.wrap
proton.Transport.wrap
proton.reactor.Reactor.wrap
proton.reactor.Task.wrap" class="py-name" href="#" onclick="return doclink('link-88', 'wrap', 'link-88');">wrap</a></tt><tt class="py-op">(</tt><tt class="py-name">pn_messenger_selectable</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_mng</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
</div><a name="L775"></a><tt class="py-lineno"> 775</tt> <tt class="py-line"> </tt>
<a name="L776"></a><tt class="py-lineno"> 776</tt> <tt class="py-line"> <tt class="py-decorator">@</tt><tt class="py-decorator">property</tt> </tt>
<a name="Messenger.deadline"></a><div id="Messenger.deadline-def"><a name="L777"></a><tt class="py-lineno"> 777</tt> <a class="py-toggle" href="#" id="Messenger.deadline-toggle" onclick="return toggle('Messenger.deadline');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Messenger-class.html#deadline">deadline</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Messenger.deadline-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Messenger.deadline-expanded"><a name="L778"></a><tt class="py-lineno"> 778</tt> <tt class="py-line"> <tt class="py-name">tstamp</tt> <tt class="py-op">=</tt> <tt class="py-name">pn_messenger_deadline</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_mng</tt><tt class="py-op">)</tt> </tt>
<a name="L779"></a><tt class="py-lineno"> 779</tt> <tt class="py-line"> <tt class="py-keyword">if</tt> <tt class="py-name">tstamp</tt><tt class="py-op">:</tt> </tt>
<a name="L780"></a><tt class="py-lineno"> 780</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt class="py-name">millis2secs</tt><tt class="py-op">(</tt><tt class="py-name">tstamp</tt><tt class="py-op">)</tt> </tt>
<a name="L781"></a><tt class="py-lineno"> 781</tt> <tt class="py-line"> <tt class="py-keyword">else</tt><tt class="py-op">:</tt> </tt>
<a name="L782"></a><tt class="py-lineno"> 782</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt class="py-name">None</tt> </tt>
</div></div><a name="L783"></a><tt class="py-lineno"> 783</tt> <tt class="py-line"> </tt>
<a name="Message"></a><div id="Message-def"><a name="L784"></a><tt class="py-lineno"> 784</tt> <a class="py-toggle" href="#" id="Message-toggle" onclick="return toggle('Message');">-</a><tt class="py-line"><tt class="py-keyword">class</tt> <a class="py-def-name" href="proton.Message-class.html">Message</a><tt class="py-op">(</tt><tt class="py-base-class">object</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Message-collapsed" style="display:none;" pad="++++" indent="++++"></div><div id="Message-expanded"><a name="L785"></a><tt class="py-lineno"> 785</tt> <tt class="py-line"> <tt class="py-docstring">"""The L{Message} class is a mutable holder of message content.</tt> </tt>
<a name="L786"></a><tt class="py-lineno"> 786</tt> <tt class="py-line"><tt class="py-docstring"></tt> </tt>
<a name="L787"></a><tt class="py-lineno"> 787</tt> <tt class="py-line"><tt class="py-docstring"> @ivar instructions: delivery instructions for the message</tt> </tt>
<a name="L788"></a><tt class="py-lineno"> 788</tt> <tt class="py-line"><tt class="py-docstring"> @type instructions: dict</tt> </tt>
<a name="L789"></a><tt class="py-lineno"> 789</tt> <tt class="py-line"><tt class="py-docstring"> @ivar annotations: infrastructure defined message annotations</tt> </tt>
<a name="L790"></a><tt class="py-lineno"> 790</tt> <tt class="py-line"><tt class="py-docstring"> @type annotations: dict</tt> </tt>
<a name="L791"></a><tt class="py-lineno"> 791</tt> <tt class="py-line"><tt class="py-docstring"> @ivar properties: application defined message properties</tt> </tt>
<a name="L792"></a><tt class="py-lineno"> 792</tt> <tt class="py-line"><tt class="py-docstring"> @type properties: dict</tt> </tt>
<a name="L793"></a><tt class="py-lineno"> 793</tt> <tt class="py-line"><tt class="py-docstring"> @ivar body: message body</tt> </tt>
<a name="L794"></a><tt class="py-lineno"> 794</tt> <tt class="py-line"><tt class="py-docstring"> @type body: bytes | unicode | dict | list | int | long | float | UUID</tt> </tt>
<a name="L795"></a><tt class="py-lineno"> 795</tt> <tt class="py-line"><tt class="py-docstring"> """</tt> </tt>
<a name="L796"></a><tt class="py-lineno"> 796</tt> <tt class="py-line"> </tt>
<a name="L797"></a><tt class="py-lineno"> 797</tt> <tt class="py-line"> <tt id="link-89" class="py-name" targets="Variable proton.Message.DEFAULT_PRIORITY=proton.Message-class.html#DEFAULT_PRIORITY"><a title="proton.Message.DEFAULT_PRIORITY" class="py-name" href="#" onclick="return doclink('link-89', 'DEFAULT_PRIORITY', 'link-89');">DEFAULT_PRIORITY</a></tt> <tt class="py-op">=</tt> <tt class="py-name">PN_DEFAULT_PRIORITY</tt> </tt>
<a name="L798"></a><tt class="py-lineno"> 798</tt> <tt class="py-line"> </tt>
<a name="Message.__init__"></a><div id="Message.__init__-def"><a name="L799"></a><tt class="py-lineno"> 799</tt> <a class="py-toggle" href="#" id="Message.__init__-toggle" onclick="return toggle('Message.__init__');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Message-class.html#__init__">__init__</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">body</tt><tt class="py-op">=</tt><tt class="py-name">None</tt><tt class="py-op">,</tt> <tt class="py-op">**</tt><tt class="py-param">kwargs</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Message.__init__-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Message.__init__-expanded"><a name="L800"></a><tt class="py-lineno"> 800</tt> <tt class="py-line"> <tt class="py-docstring">"""</tt> </tt>
<a name="L801"></a><tt class="py-lineno"> 801</tt> <tt class="py-line"><tt class="py-docstring"> @param kwargs: Message property name/value pairs to initialise the Message</tt> </tt>
<a name="L802"></a><tt class="py-lineno"> 802</tt> <tt class="py-line"><tt class="py-docstring"> """</tt> </tt>
<a name="L803"></a><tt class="py-lineno"> 803</tt> <tt class="py-line"> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_msg</tt> <tt class="py-op">=</tt> <tt class="py-name">pn_message</tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L804"></a><tt class="py-lineno"> 804</tt> <tt class="py-line"> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_id</tt> <tt class="py-op">=</tt> <tt id="link-90" class="py-name" targets="Class proton.Data=proton.Data-class.html"><a title="proton.Data" class="py-name" href="#" onclick="return doclink('link-90', 'Data', 'link-90');">Data</a></tt><tt class="py-op">(</tt><tt class="py-name">pn_message_id</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_msg</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
<a name="L805"></a><tt class="py-lineno"> 805</tt> <tt class="py-line"> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_correlation_id</tt> <tt class="py-op">=</tt> <tt id="link-91" class="py-name"><a title="proton.Data" class="py-name" href="#" onclick="return doclink('link-91', 'Data', 'link-90');">Data</a></tt><tt class="py-op">(</tt><tt class="py-name">pn_message_correlation_id</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_msg</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
<a name="L806"></a><tt class="py-lineno"> 806</tt> <tt class="py-line"> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">instructions</tt> <tt class="py-op">=</tt> <tt class="py-name">None</tt> </tt>
<a name="L807"></a><tt class="py-lineno"> 807</tt> <tt class="py-line"> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-92" class="py-name" targets="Variable proton.Disposition.annotations=proton.Disposition-class.html#annotations"><a title="proton.Disposition.annotations" class="py-name" href="#" onclick="return doclink('link-92', 'annotations', 'link-92');">annotations</a></tt> <tt class="py-op">=</tt> <tt class="py-name">None</tt> </tt>
<a name="L808"></a><tt class="py-lineno"> 808</tt> <tt class="py-line"> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-93" class="py-name" targets="Variable proton.Terminus.properties=proton.Terminus-class.html#properties"><a title="proton.Terminus.properties" class="py-name" href="#" onclick="return doclink('link-93', 'properties', 'link-93');">properties</a></tt> <tt class="py-op">=</tt> <tt class="py-name">None</tt> </tt>
<a name="L809"></a><tt class="py-lineno"> 809</tt> <tt class="py-line"> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">body</tt> <tt class="py-op">=</tt> <tt class="py-name">body</tt> </tt>
<a name="L810"></a><tt class="py-lineno"> 810</tt> <tt class="py-line"> <tt class="py-keyword">for</tt> <tt class="py-name">k</tt><tt class="py-op">,</tt><tt class="py-name">v</tt> <tt class="py-keyword">in</tt> <tt id="link-94" class="py-name"><a title="proton._compat" class="py-name" href="#" onclick="return doclink('link-94', '_compat', 'link-3');">_compat</a></tt><tt class="py-op">.</tt><tt id="link-95" class="py-name" targets="Function proton._compat.iteritems()=proton._compat-module.html#iteritems"><a title="proton._compat.iteritems" class="py-name" href="#" onclick="return doclink('link-95', 'iteritems', 'link-95');">iteritems</a></tt><tt class="py-op">(</tt><tt class="py-name">kwargs</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
<a name="L811"></a><tt class="py-lineno"> 811</tt> <tt class="py-line"> <tt class="py-name">getattr</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">,</tt> <tt class="py-name">k</tt><tt class="py-op">)</tt> <tt class="py-comment"># Raise exception if it's not a valid attribute.</tt> </tt>
<a name="L812"></a><tt class="py-lineno"> 812</tt> <tt class="py-line"> <tt class="py-name">setattr</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">,</tt> <tt class="py-name">k</tt><tt class="py-op">,</tt> <tt class="py-name">v</tt><tt class="py-op">)</tt> </tt>
</div><a name="L813"></a><tt class="py-lineno"> 813</tt> <tt class="py-line"> </tt>
<a name="Message.__del__"></a><div id="Message.__del__-def"><a name="L814"></a><tt class="py-lineno"> 814</tt> <a class="py-toggle" href="#" id="Message.__del__-toggle" onclick="return toggle('Message.__del__');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Message-class.html#__del__">__del__</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Message.__del__-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Message.__del__-expanded"><a name="L815"></a><tt class="py-lineno"> 815</tt> <tt class="py-line"> <tt class="py-keyword">if</tt> <tt class="py-name">hasattr</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">,</tt> <tt class="py-string">"_msg"</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
<a name="L816"></a><tt class="py-lineno"> 816</tt> <tt class="py-line"> <tt class="py-name">pn_message_free</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_msg</tt><tt class="py-op">)</tt> </tt>
<a name="L817"></a><tt class="py-lineno"> 817</tt> <tt class="py-line"> <tt class="py-keyword">del</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_msg</tt> </tt>
</div><a name="L818"></a><tt class="py-lineno"> 818</tt> <tt class="py-line"> </tt>
<a name="Message._check"></a><div id="Message._check-def"><a name="L819"></a><tt class="py-lineno"> 819</tt> <a class="py-toggle" href="#" id="Message._check-toggle" onclick="return toggle('Message._check');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Message-class.html#_check">_check</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">err</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Message._check-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Message._check-expanded"><a name="L820"></a><tt class="py-lineno"> 820</tt> <tt class="py-line"> <tt class="py-keyword">if</tt> <tt class="py-name">err</tt> <tt class="py-op"><</tt> <tt class="py-number">0</tt><tt class="py-op">:</tt> </tt>
<a name="L821"></a><tt class="py-lineno"> 821</tt> <tt class="py-line"> <tt class="py-name">exc</tt> <tt class="py-op">=</tt> <tt id="link-96" class="py-name"><a title="proton.EXCEPTIONS" class="py-name" href="#" onclick="return doclink('link-96', 'EXCEPTIONS', 'link-28');">EXCEPTIONS</a></tt><tt class="py-op">.</tt><tt id="link-97" class="py-name"><a title="proton.Messenger.get" class="py-name" href="#" onclick="return doclink('link-97', 'get', 'link-50');">get</a></tt><tt class="py-op">(</tt><tt class="py-name">err</tt><tt class="py-op">,</tt> <tt id="link-98" class="py-name" targets="Class proton.MessageException=proton.MessageException-class.html"><a title="proton.MessageException" class="py-name" href="#" onclick="return doclink('link-98', 'MessageException', 'link-98');">MessageException</a></tt><tt class="py-op">)</tt> </tt>
<a name="L822"></a><tt class="py-lineno"> 822</tt> <tt class="py-line"> <tt class="py-keyword">raise</tt> <tt class="py-name">exc</tt><tt class="py-op">(</tt><tt class="py-string">"[%s]: %s"</tt> <tt class="py-op">%</tt> <tt class="py-op">(</tt><tt class="py-name">err</tt><tt class="py-op">,</tt> <tt class="py-name">pn_error_text</tt><tt class="py-op">(</tt><tt class="py-name">pn_message_error</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_msg</tt><tt class="py-op">)</tt><tt class="py-op">)</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
<a name="L823"></a><tt class="py-lineno"> 823</tt> <tt class="py-line"> <tt class="py-keyword">else</tt><tt class="py-op">:</tt> </tt>
<a name="L824"></a><tt class="py-lineno"> 824</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt class="py-name">err</tt> </tt>
</div><a name="L825"></a><tt class="py-lineno"> 825</tt> <tt class="py-line"> </tt>
<a name="Message._pre_encode"></a><div id="Message._pre_encode-def"><a name="L826"></a><tt class="py-lineno"> 826</tt> <a class="py-toggle" href="#" id="Message._pre_encode-toggle" onclick="return toggle('Message._pre_encode');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Message-class.html#_pre_encode">_pre_encode</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Message._pre_encode-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Message._pre_encode-expanded"><a name="L827"></a><tt class="py-lineno"> 827</tt> <tt class="py-line"> <tt class="py-name">inst</tt> <tt class="py-op">=</tt> <tt id="link-99" class="py-name"><a title="proton.Data" class="py-name" href="#" onclick="return doclink('link-99', 'Data', 'link-90');">Data</a></tt><tt class="py-op">(</tt><tt class="py-name">pn_message_instructions</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_msg</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
<a name="L828"></a><tt class="py-lineno"> 828</tt> <tt class="py-line"> <tt class="py-name">ann</tt> <tt class="py-op">=</tt> <tt id="link-100" class="py-name"><a title="proton.Data" class="py-name" href="#" onclick="return doclink('link-100', 'Data', 'link-90');">Data</a></tt><tt class="py-op">(</tt><tt class="py-name">pn_message_annotations</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_msg</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
<a name="L829"></a><tt class="py-lineno"> 829</tt> <tt class="py-line"> <tt class="py-name">props</tt> <tt class="py-op">=</tt> <tt id="link-101" class="py-name"><a title="proton.Data" class="py-name" href="#" onclick="return doclink('link-101', 'Data', 'link-90');">Data</a></tt><tt class="py-op">(</tt><tt class="py-name">pn_message_properties</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_msg</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
<a name="L830"></a><tt class="py-lineno"> 830</tt> <tt class="py-line"> <tt class="py-name">body</tt> <tt class="py-op">=</tt> <tt id="link-102" class="py-name"><a title="proton.Data" class="py-name" href="#" onclick="return doclink('link-102', 'Data', 'link-90');">Data</a></tt><tt class="py-op">(</tt><tt class="py-name">pn_message_body</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_msg</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
<a name="L831"></a><tt class="py-lineno"> 831</tt> <tt class="py-line"> </tt>
<a name="L832"></a><tt class="py-lineno"> 832</tt> <tt class="py-line"> <tt class="py-name">inst</tt><tt class="py-op">.</tt><tt id="link-103" class="py-name" targets="Method proton.Data.clear()=proton.Data-class.html#clear,Method proton.Message.clear()=proton.Message-class.html#clear"><a title="proton.Data.clear
proton.Message.clear" class="py-name" href="#" onclick="return doclink('link-103', 'clear', 'link-103');">clear</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L833"></a><tt class="py-lineno"> 833</tt> <tt class="py-line"> <tt class="py-keyword">if</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">instructions</tt> <tt class="py-keyword">is</tt> <tt class="py-keyword">not</tt> <tt class="py-name">None</tt><tt class="py-op">:</tt> </tt>
<a name="L834"></a><tt class="py-lineno"> 834</tt> <tt class="py-line"> <tt class="py-name">inst</tt><tt class="py-op">.</tt><tt id="link-104" class="py-name" targets="Method proton.Data.put_object()=proton.Data-class.html#put_object"><a title="proton.Data.put_object" class="py-name" href="#" onclick="return doclink('link-104', 'put_object', 'link-104');">put_object</a></tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">instructions</tt><tt class="py-op">)</tt> </tt>
<a name="L835"></a><tt class="py-lineno"> 835</tt> <tt class="py-line"> <tt class="py-name">ann</tt><tt class="py-op">.</tt><tt id="link-105" class="py-name"><a title="proton.Data.clear
proton.Message.clear" class="py-name" href="#" onclick="return doclink('link-105', 'clear', 'link-103');">clear</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L836"></a><tt class="py-lineno"> 836</tt> <tt class="py-line"> <tt class="py-keyword">if</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-106" class="py-name"><a title="proton.Disposition.annotations" class="py-name" href="#" onclick="return doclink('link-106', 'annotations', 'link-92');">annotations</a></tt> <tt class="py-keyword">is</tt> <tt class="py-keyword">not</tt> <tt class="py-name">None</tt><tt class="py-op">:</tt> </tt>
<a name="L837"></a><tt class="py-lineno"> 837</tt> <tt class="py-line"> <tt class="py-name">ann</tt><tt class="py-op">.</tt><tt id="link-107" class="py-name"><a title="proton.Data.put_object" class="py-name" href="#" onclick="return doclink('link-107', 'put_object', 'link-104');">put_object</a></tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-108" class="py-name"><a title="proton.Disposition.annotations" class="py-name" href="#" onclick="return doclink('link-108', 'annotations', 'link-92');">annotations</a></tt><tt class="py-op">)</tt> </tt>
<a name="L838"></a><tt class="py-lineno"> 838</tt> <tt class="py-line"> <tt class="py-name">props</tt><tt class="py-op">.</tt><tt id="link-109" class="py-name"><a title="proton.Data.clear
proton.Message.clear" class="py-name" href="#" onclick="return doclink('link-109', 'clear', 'link-103');">clear</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L839"></a><tt class="py-lineno"> 839</tt> <tt class="py-line"> <tt class="py-keyword">if</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-110" class="py-name"><a title="proton.Terminus.properties" class="py-name" href="#" onclick="return doclink('link-110', 'properties', 'link-93');">properties</a></tt> <tt class="py-keyword">is</tt> <tt class="py-keyword">not</tt> <tt class="py-name">None</tt><tt class="py-op">:</tt> </tt>
<a name="L840"></a><tt class="py-lineno"> 840</tt> <tt class="py-line"> <tt class="py-name">props</tt><tt class="py-op">.</tt><tt id="link-111" class="py-name"><a title="proton.Data.put_object" class="py-name" href="#" onclick="return doclink('link-111', 'put_object', 'link-104');">put_object</a></tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-112" class="py-name"><a title="proton.Terminus.properties" class="py-name" href="#" onclick="return doclink('link-112', 'properties', 'link-93');">properties</a></tt><tt class="py-op">)</tt> </tt>
<a name="L841"></a><tt class="py-lineno"> 841</tt> <tt class="py-line"> <tt class="py-name">body</tt><tt class="py-op">.</tt><tt id="link-113" class="py-name"><a title="proton.Data.clear
proton.Message.clear" class="py-name" href="#" onclick="return doclink('link-113', 'clear', 'link-103');">clear</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L842"></a><tt class="py-lineno"> 842</tt> <tt class="py-line"> <tt class="py-keyword">if</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">body</tt> <tt class="py-keyword">is</tt> <tt class="py-keyword">not</tt> <tt class="py-name">None</tt><tt class="py-op">:</tt> </tt>
<a name="L843"></a><tt class="py-lineno"> 843</tt> <tt class="py-line"> <tt class="py-name">body</tt><tt class="py-op">.</tt><tt id="link-114" class="py-name"><a title="proton.Data.put_object" class="py-name" href="#" onclick="return doclink('link-114', 'put_object', 'link-104');">put_object</a></tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">body</tt><tt class="py-op">)</tt> </tt>
</div><a name="L844"></a><tt class="py-lineno"> 844</tt> <tt class="py-line"> </tt>
<a name="Message._post_decode"></a><div id="Message._post_decode-def"><a name="L845"></a><tt class="py-lineno"> 845</tt> <a class="py-toggle" href="#" id="Message._post_decode-toggle" onclick="return toggle('Message._post_decode');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Message-class.html#_post_decode">_post_decode</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Message._post_decode-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Message._post_decode-expanded"><a name="L846"></a><tt class="py-lineno"> 846</tt> <tt class="py-line"> <tt class="py-name">inst</tt> <tt class="py-op">=</tt> <tt id="link-115" class="py-name"><a title="proton.Data" class="py-name" href="#" onclick="return doclink('link-115', 'Data', 'link-90');">Data</a></tt><tt class="py-op">(</tt><tt class="py-name">pn_message_instructions</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_msg</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
<a name="L847"></a><tt class="py-lineno"> 847</tt> <tt class="py-line"> <tt class="py-name">ann</tt> <tt class="py-op">=</tt> <tt id="link-116" class="py-name"><a title="proton.Data" class="py-name" href="#" onclick="return doclink('link-116', 'Data', 'link-90');">Data</a></tt><tt class="py-op">(</tt><tt class="py-name">pn_message_annotations</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_msg</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
<a name="L848"></a><tt class="py-lineno"> 848</tt> <tt class="py-line"> <tt class="py-name">props</tt> <tt class="py-op">=</tt> <tt id="link-117" class="py-name"><a title="proton.Data" class="py-name" href="#" onclick="return doclink('link-117', 'Data', 'link-90');">Data</a></tt><tt class="py-op">(</tt><tt class="py-name">pn_message_properties</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_msg</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
<a name="L849"></a><tt class="py-lineno"> 849</tt> <tt class="py-line"> <tt class="py-name">body</tt> <tt class="py-op">=</tt> <tt id="link-118" class="py-name"><a title="proton.Data" class="py-name" href="#" onclick="return doclink('link-118', 'Data', 'link-90');">Data</a></tt><tt class="py-op">(</tt><tt class="py-name">pn_message_body</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_msg</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
<a name="L850"></a><tt class="py-lineno"> 850</tt> <tt class="py-line"> </tt>
<a name="L851"></a><tt class="py-lineno"> 851</tt> <tt class="py-line"> <tt class="py-keyword">if</tt> <tt class="py-name">inst</tt><tt class="py-op">.</tt><tt id="link-119" class="py-name" targets="Method proton.Data.next()=proton.Data-class.html#next,Method proton.Link.next()=proton.Link-class.html#next,Method proton.Session.next()=proton.Session-class.html#next,Method proton.reactor.Backoff.next()=proton.reactor.Backoff-class.html#next,Method proton.reactor.Urls.next()=proton.reactor.Urls-class.html#next,Method proton.utils.AtomicCount.next()=proton.utils.AtomicCount-class.html#next"><a title="proton.Data.next
proton.Link.next
proton.Session.next
proton.reactor.Backoff.next
proton.reactor.Urls.next
proton.utils.AtomicCount.next" class="py-name" href="#" onclick="return doclink('link-119', 'next', 'link-119');">next</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
<a name="L852"></a><tt class="py-lineno"> 852</tt> <tt class="py-line"> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">instructions</tt> <tt class="py-op">=</tt> <tt class="py-name">inst</tt><tt class="py-op">.</tt><tt id="link-120" class="py-name" targets="Method proton.Data.get_object()=proton.Data-class.html#get_object"><a title="proton.Data.get_object" class="py-name" href="#" onclick="return doclink('link-120', 'get_object', 'link-120');">get_object</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L853"></a><tt class="py-lineno"> 853</tt> <tt class="py-line"> <tt class="py-keyword">else</tt><tt class="py-op">:</tt> </tt>
<a name="L854"></a><tt class="py-lineno"> 854</tt> <tt class="py-line"> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">instructions</tt> <tt class="py-op">=</tt> <tt class="py-name">None</tt> </tt>
<a name="L855"></a><tt class="py-lineno"> 855</tt> <tt class="py-line"> <tt class="py-keyword">if</tt> <tt class="py-name">ann</tt><tt class="py-op">.</tt><tt id="link-121" class="py-name"><a title="proton.Data.next
proton.Link.next
proton.Session.next
proton.reactor.Backoff.next
proton.reactor.Urls.next
proton.utils.AtomicCount.next" class="py-name" href="#" onclick="return doclink('link-121', 'next', 'link-119');">next</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
<a name="L856"></a><tt class="py-lineno"> 856</tt> <tt class="py-line"> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-122" class="py-name"><a title="proton.Disposition.annotations" class="py-name" href="#" onclick="return doclink('link-122', 'annotations', 'link-92');">annotations</a></tt> <tt class="py-op">=</tt> <tt class="py-name">ann</tt><tt class="py-op">.</tt><tt id="link-123" class="py-name"><a title="proton.Data.get_object" class="py-name" href="#" onclick="return doclink('link-123', 'get_object', 'link-120');">get_object</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L857"></a><tt class="py-lineno"> 857</tt> <tt class="py-line"> <tt class="py-keyword">else</tt><tt class="py-op">:</tt> </tt>
<a name="L858"></a><tt class="py-lineno"> 858</tt> <tt class="py-line"> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-124" class="py-name"><a title="proton.Disposition.annotations" class="py-name" href="#" onclick="return doclink('link-124', 'annotations', 'link-92');">annotations</a></tt> <tt class="py-op">=</tt> <tt class="py-name">None</tt> </tt>
<a name="L859"></a><tt class="py-lineno"> 859</tt> <tt class="py-line"> <tt class="py-keyword">if</tt> <tt class="py-name">props</tt><tt class="py-op">.</tt><tt id="link-125" class="py-name"><a title="proton.Data.next
proton.Link.next
proton.Session.next
proton.reactor.Backoff.next
proton.reactor.Urls.next
proton.utils.AtomicCount.next" class="py-name" href="#" onclick="return doclink('link-125', 'next', 'link-119');">next</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
<a name="L860"></a><tt class="py-lineno"> 860</tt> <tt class="py-line"> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-126" class="py-name"><a title="proton.Terminus.properties" class="py-name" href="#" onclick="return doclink('link-126', 'properties', 'link-93');">properties</a></tt> <tt class="py-op">=</tt> <tt class="py-name">props</tt><tt class="py-op">.</tt><tt id="link-127" class="py-name"><a title="proton.Data.get_object" class="py-name" href="#" onclick="return doclink('link-127', 'get_object', 'link-120');">get_object</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L861"></a><tt class="py-lineno"> 861</tt> <tt class="py-line"> <tt class="py-keyword">else</tt><tt class="py-op">:</tt> </tt>
<a name="L862"></a><tt class="py-lineno"> 862</tt> <tt class="py-line"> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-128" class="py-name"><a title="proton.Terminus.properties" class="py-name" href="#" onclick="return doclink('link-128', 'properties', 'link-93');">properties</a></tt> <tt class="py-op">=</tt> <tt class="py-name">None</tt> </tt>
<a name="L863"></a><tt class="py-lineno"> 863</tt> <tt class="py-line"> <tt class="py-keyword">if</tt> <tt class="py-name">body</tt><tt class="py-op">.</tt><tt id="link-129" class="py-name"><a title="proton.Data.next
proton.Link.next
proton.Session.next
proton.reactor.Backoff.next
proton.reactor.Urls.next
proton.utils.AtomicCount.next" class="py-name" href="#" onclick="return doclink('link-129', 'next', 'link-119');">next</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
<a name="L864"></a><tt class="py-lineno"> 864</tt> <tt class="py-line"> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">body</tt> <tt class="py-op">=</tt> <tt class="py-name">body</tt><tt class="py-op">.</tt><tt id="link-130" class="py-name"><a title="proton.Data.get_object" class="py-name" href="#" onclick="return doclink('link-130', 'get_object', 'link-120');">get_object</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L865"></a><tt class="py-lineno"> 865</tt> <tt class="py-line"> <tt class="py-keyword">else</tt><tt class="py-op">:</tt> </tt>
<a name="L866"></a><tt class="py-lineno"> 866</tt> <tt class="py-line"> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">body</tt> <tt class="py-op">=</tt> <tt class="py-name">None</tt> </tt>
</div><a name="L867"></a><tt class="py-lineno"> 867</tt> <tt class="py-line"> </tt>
<a name="Message.clear"></a><div id="Message.clear-def"><a name="L868"></a><tt class="py-lineno"> 868</tt> <a class="py-toggle" href="#" id="Message.clear-toggle" onclick="return toggle('Message.clear');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Message-class.html#clear">clear</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Message.clear-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Message.clear-expanded"><a name="L869"></a><tt class="py-lineno"> 869</tt> <tt class="py-line"> <tt class="py-docstring">"""</tt> </tt>
<a name="L870"></a><tt class="py-lineno"> 870</tt> <tt class="py-line"><tt class="py-docstring"> Clears the contents of the L{Message}. All fields will be reset to</tt> </tt>
<a name="L871"></a><tt class="py-lineno"> 871</tt> <tt class="py-line"><tt class="py-docstring"> their default values.</tt> </tt>
<a name="L872"></a><tt class="py-lineno"> 872</tt> <tt class="py-line"><tt class="py-docstring"> """</tt> </tt>
<a name="L873"></a><tt class="py-lineno"> 873</tt> <tt class="py-line"> <tt class="py-name">pn_message_clear</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_msg</tt><tt class="py-op">)</tt> </tt>
<a name="L874"></a><tt class="py-lineno"> 874</tt> <tt class="py-line"> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">instructions</tt> <tt class="py-op">=</tt> <tt class="py-name">None</tt> </tt>
<a name="L875"></a><tt class="py-lineno"> 875</tt> <tt class="py-line"> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-131" class="py-name"><a title="proton.Disposition.annotations" class="py-name" href="#" onclick="return doclink('link-131', 'annotations', 'link-92');">annotations</a></tt> <tt class="py-op">=</tt> <tt class="py-name">None</tt> </tt>
<a name="L876"></a><tt class="py-lineno"> 876</tt> <tt class="py-line"> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-132" class="py-name"><a title="proton.Terminus.properties" class="py-name" href="#" onclick="return doclink('link-132', 'properties', 'link-93');">properties</a></tt> <tt class="py-op">=</tt> <tt class="py-name">None</tt> </tt>
<a name="L877"></a><tt class="py-lineno"> 877</tt> <tt class="py-line"> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">body</tt> <tt class="py-op">=</tt> <tt class="py-name">None</tt> </tt>
</div><a name="L878"></a><tt class="py-lineno"> 878</tt> <tt class="py-line"> </tt>
<a name="Message._is_inferred"></a><div id="Message._is_inferred-def"><a name="L879"></a><tt class="py-lineno"> 879</tt> <a class="py-toggle" href="#" id="Message._is_inferred-toggle" onclick="return toggle('Message._is_inferred');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Message-class.html#_is_inferred">_is_inferred</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Message._is_inferred-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Message._is_inferred-expanded"><a name="L880"></a><tt class="py-lineno"> 880</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt class="py-name">pn_message_is_inferred</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_msg</tt><tt class="py-op">)</tt> </tt>
</div><a name="L881"></a><tt class="py-lineno"> 881</tt> <tt class="py-line"> </tt>
<a name="Message._set_inferred"></a><div id="Message._set_inferred-def"><a name="L882"></a><tt class="py-lineno"> 882</tt> <a class="py-toggle" href="#" id="Message._set_inferred-toggle" onclick="return toggle('Message._set_inferred');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Message-class.html#_set_inferred">_set_inferred</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">value</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Message._set_inferred-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Message._set_inferred-expanded"><a name="L883"></a><tt class="py-lineno"> 883</tt> <tt class="py-line"> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_check</tt><tt class="py-op">(</tt><tt class="py-name">pn_message_set_inferred</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_msg</tt><tt class="py-op">,</tt> <tt class="py-name">bool</tt><tt class="py-op">(</tt><tt class="py-name">value</tt><tt class="py-op">)</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
</div><a name="L884"></a><tt class="py-lineno"> 884</tt> <tt class="py-line"> </tt>
<a name="L885"></a><tt class="py-lineno"> 885</tt> <tt class="py-line"> <tt id="link-133" class="py-name" targets="Variable proton.Message.inferred=proton.Message-class.html#inferred"><a title="proton.Message.inferred" class="py-name" href="#" onclick="return doclink('link-133', 'inferred', 'link-133');">inferred</a></tt> <tt class="py-op">=</tt> <tt class="py-name">property</tt><tt class="py-op">(</tt><tt id="link-134" class="py-name" targets="Method proton.Message._is_inferred()=proton.Message-class.html#_is_inferred"><a title="proton.Message._is_inferred" class="py-name" href="#" onclick="return doclink('link-134', '_is_inferred', 'link-134');">_is_inferred</a></tt><tt class="py-op">,</tt> <tt id="link-135" class="py-name" targets="Method proton.Message._set_inferred()=proton.Message-class.html#_set_inferred"><a title="proton.Message._set_inferred" class="py-name" href="#" onclick="return doclink('link-135', '_set_inferred', 'link-135');">_set_inferred</a></tt><tt class="py-op">,</tt> <tt class="py-name">doc</tt><tt class="py-op">=</tt><tt class="py-string">"""</tt> </tt>
<a name="L886"></a><tt class="py-lineno"> 886</tt> <tt class="py-line"><tt class="py-string">The inferred flag for a message indicates how the message content</tt> </tt>
<a name="L887"></a><tt class="py-lineno"> 887</tt> <tt class="py-line"><tt class="py-string">is encoded into AMQP sections. If inferred is true then binary and</tt> </tt>
<a name="L888"></a><tt class="py-lineno"> 888</tt> <tt class="py-line"><tt class="py-string">list values in the body of the message will be encoded as AMQP DATA</tt> </tt>
<a name="L889"></a><tt class="py-lineno"> 889</tt> <tt class="py-line"><tt class="py-string">and AMQP SEQUENCE sections, respectively. If inferred is false,</tt> </tt>
<a name="L890"></a><tt class="py-lineno"> 890</tt> <tt class="py-line"><tt class="py-string">then all values in the body of the message will be encoded as AMQP</tt> </tt>
<a name="L891"></a><tt class="py-lineno"> 891</tt> <tt class="py-line"><tt class="py-string">VALUE sections regardless of their type.</tt> </tt>
<a name="L892"></a><tt class="py-lineno"> 892</tt> <tt class="py-line"><tt class="py-string">"""</tt><tt class="py-op">)</tt> </tt>
<a name="L893"></a><tt class="py-lineno"> 893</tt> <tt class="py-line"> </tt>
<a name="Message._is_durable"></a><div id="Message._is_durable-def"><a name="L894"></a><tt class="py-lineno"> 894</tt> <a class="py-toggle" href="#" id="Message._is_durable-toggle" onclick="return toggle('Message._is_durable');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Message-class.html#_is_durable">_is_durable</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Message._is_durable-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Message._is_durable-expanded"><a name="L895"></a><tt class="py-lineno"> 895</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt class="py-name">pn_message_is_durable</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_msg</tt><tt class="py-op">)</tt> </tt>
</div><a name="L896"></a><tt class="py-lineno"> 896</tt> <tt class="py-line"> </tt>
<a name="Message._set_durable"></a><div id="Message._set_durable-def"><a name="L897"></a><tt class="py-lineno"> 897</tt> <a class="py-toggle" href="#" id="Message._set_durable-toggle" onclick="return toggle('Message._set_durable');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Message-class.html#_set_durable">_set_durable</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">value</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Message._set_durable-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Message._set_durable-expanded"><a name="L898"></a><tt class="py-lineno"> 898</tt> <tt class="py-line"> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_check</tt><tt class="py-op">(</tt><tt class="py-name">pn_message_set_durable</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_msg</tt><tt class="py-op">,</tt> <tt class="py-name">bool</tt><tt class="py-op">(</tt><tt class="py-name">value</tt><tt class="py-op">)</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
</div><a name="L899"></a><tt class="py-lineno"> 899</tt> <tt class="py-line"> </tt>
<a name="L900"></a><tt class="py-lineno"> 900</tt> <tt class="py-line"> <tt id="link-136" class="py-name" targets="Variable proton.Message.durable=proton.Message-class.html#durable"><a title="proton.Message.durable" class="py-name" href="#" onclick="return doclink('link-136', 'durable', 'link-136');">durable</a></tt> <tt class="py-op">=</tt> <tt class="py-name">property</tt><tt class="py-op">(</tt><tt id="link-137" class="py-name" targets="Method proton.Message._is_durable()=proton.Message-class.html#_is_durable"><a title="proton.Message._is_durable" class="py-name" href="#" onclick="return doclink('link-137', '_is_durable', 'link-137');">_is_durable</a></tt><tt class="py-op">,</tt> <tt id="link-138" class="py-name" targets="Method proton.Message._set_durable()=proton.Message-class.html#_set_durable"><a title="proton.Message._set_durable" class="py-name" href="#" onclick="return doclink('link-138', '_set_durable', 'link-138');">_set_durable</a></tt><tt class="py-op">,</tt> </tt>
<a name="L901"></a><tt class="py-lineno"> 901</tt> <tt class="py-line"> <tt class="py-name">doc</tt><tt class="py-op">=</tt><tt class="py-string">"""</tt> </tt>
<a name="L902"></a><tt class="py-lineno"> 902</tt> <tt class="py-line"><tt class="py-string">The durable property indicates that the message should be held durably</tt> </tt>
<a name="L903"></a><tt class="py-lineno"> 903</tt> <tt class="py-line"><tt class="py-string">by any intermediaries taking responsibility for the message.</tt> </tt>
<a name="L904"></a><tt class="py-lineno"> 904</tt> <tt class="py-line"><tt class="py-string">"""</tt><tt class="py-op">)</tt> </tt>
<a name="L905"></a><tt class="py-lineno"> 905</tt> <tt class="py-line"> </tt>
<a name="Message._get_priority"></a><div id="Message._get_priority-def"><a name="L906"></a><tt class="py-lineno"> 906</tt> <a class="py-toggle" href="#" id="Message._get_priority-toggle" onclick="return toggle('Message._get_priority');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Message-class.html#_get_priority">_get_priority</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Message._get_priority-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Message._get_priority-expanded"><a name="L907"></a><tt class="py-lineno"> 907</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt class="py-name">pn_message_get_priority</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_msg</tt><tt class="py-op">)</tt> </tt>
</div><a name="L908"></a><tt class="py-lineno"> 908</tt> <tt class="py-line"> </tt>
<a name="Message._set_priority"></a><div id="Message._set_priority-def"><a name="L909"></a><tt class="py-lineno"> 909</tt> <a class="py-toggle" href="#" id="Message._set_priority-toggle" onclick="return toggle('Message._set_priority');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Message-class.html#_set_priority">_set_priority</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">value</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Message._set_priority-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Message._set_priority-expanded"><a name="L910"></a><tt class="py-lineno"> 910</tt> <tt class="py-line"> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_check</tt><tt class="py-op">(</tt><tt class="py-name">pn_message_set_priority</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_msg</tt><tt class="py-op">,</tt> <tt class="py-name">value</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
</div><a name="L911"></a><tt class="py-lineno"> 911</tt> <tt class="py-line"> </tt>
<a name="L912"></a><tt class="py-lineno"> 912</tt> <tt class="py-line"> <tt id="link-139" class="py-name" targets="Variable proton.Message.priority=proton.Message-class.html#priority"><a title="proton.Message.priority" class="py-name" href="#" onclick="return doclink('link-139', 'priority', 'link-139');">priority</a></tt> <tt class="py-op">=</tt> <tt class="py-name">property</tt><tt class="py-op">(</tt><tt id="link-140" class="py-name" targets="Method proton.Message._get_priority()=proton.Message-class.html#_get_priority"><a title="proton.Message._get_priority" class="py-name" href="#" onclick="return doclink('link-140', '_get_priority', 'link-140');">_get_priority</a></tt><tt class="py-op">,</tt> <tt id="link-141" class="py-name" targets="Method proton.Message._set_priority()=proton.Message-class.html#_set_priority"><a title="proton.Message._set_priority" class="py-name" href="#" onclick="return doclink('link-141', '_set_priority', 'link-141');">_set_priority</a></tt><tt class="py-op">,</tt> </tt>
<a name="L913"></a><tt class="py-lineno"> 913</tt> <tt class="py-line"> <tt class="py-name">doc</tt><tt class="py-op">=</tt><tt class="py-string">"""</tt> </tt>
<a name="L914"></a><tt class="py-lineno"> 914</tt> <tt class="py-line"><tt class="py-string">The priority of the message.</tt> </tt>
<a name="L915"></a><tt class="py-lineno"> 915</tt> <tt class="py-line"><tt class="py-string">"""</tt><tt class="py-op">)</tt> </tt>
<a name="L916"></a><tt class="py-lineno"> 916</tt> <tt class="py-line"> </tt>
<a name="Message._get_ttl"></a><div id="Message._get_ttl-def"><a name="L917"></a><tt class="py-lineno"> 917</tt> <a class="py-toggle" href="#" id="Message._get_ttl-toggle" onclick="return toggle('Message._get_ttl');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Message-class.html#_get_ttl">_get_ttl</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Message._get_ttl-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Message._get_ttl-expanded"><a name="L918"></a><tt class="py-lineno"> 918</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt class="py-name">millis2secs</tt><tt class="py-op">(</tt><tt class="py-name">pn_message_get_ttl</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_msg</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
</div><a name="L919"></a><tt class="py-lineno"> 919</tt> <tt class="py-line"> </tt>
<a name="Message._set_ttl"></a><div id="Message._set_ttl-def"><a name="L920"></a><tt class="py-lineno"> 920</tt> <a class="py-toggle" href="#" id="Message._set_ttl-toggle" onclick="return toggle('Message._set_ttl');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Message-class.html#_set_ttl">_set_ttl</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">value</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Message._set_ttl-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Message._set_ttl-expanded"><a name="L921"></a><tt class="py-lineno"> 921</tt> <tt class="py-line"> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_check</tt><tt class="py-op">(</tt><tt class="py-name">pn_message_set_ttl</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_msg</tt><tt class="py-op">,</tt> <tt class="py-name">secs2millis</tt><tt class="py-op">(</tt><tt class="py-name">value</tt><tt class="py-op">)</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
</div><a name="L922"></a><tt class="py-lineno"> 922</tt> <tt class="py-line"> </tt>
<a name="L923"></a><tt class="py-lineno"> 923</tt> <tt class="py-line"> <tt id="link-142" class="py-name" targets="Variable proton.Message.ttl=proton.Message-class.html#ttl"><a title="proton.Message.ttl" class="py-name" href="#" onclick="return doclink('link-142', 'ttl', 'link-142');">ttl</a></tt> <tt class="py-op">=</tt> <tt class="py-name">property</tt><tt class="py-op">(</tt><tt id="link-143" class="py-name" targets="Method proton.Message._get_ttl()=proton.Message-class.html#_get_ttl"><a title="proton.Message._get_ttl" class="py-name" href="#" onclick="return doclink('link-143', '_get_ttl', 'link-143');">_get_ttl</a></tt><tt class="py-op">,</tt> <tt id="link-144" class="py-name" targets="Method proton.Message._set_ttl()=proton.Message-class.html#_set_ttl"><a title="proton.Message._set_ttl" class="py-name" href="#" onclick="return doclink('link-144', '_set_ttl', 'link-144');">_set_ttl</a></tt><tt class="py-op">,</tt> </tt>
<a name="L924"></a><tt class="py-lineno"> 924</tt> <tt class="py-line"> <tt class="py-name">doc</tt><tt class="py-op">=</tt><tt class="py-string">"""</tt> </tt>
<a name="L925"></a><tt class="py-lineno"> 925</tt> <tt class="py-line"><tt class="py-string">The time to live of the message measured in seconds. Expired messages</tt> </tt>
<a name="L926"></a><tt class="py-lineno"> 926</tt> <tt class="py-line"><tt class="py-string">may be dropped.</tt> </tt>
<a name="L927"></a><tt class="py-lineno"> 927</tt> <tt class="py-line"><tt class="py-string">"""</tt><tt class="py-op">)</tt> </tt>
<a name="L928"></a><tt class="py-lineno"> 928</tt> <tt class="py-line"> </tt>
<a name="Message._is_first_acquirer"></a><div id="Message._is_first_acquirer-def"><a name="L929"></a><tt class="py-lineno"> 929</tt> <a class="py-toggle" href="#" id="Message._is_first_acquirer-toggle" onclick="return toggle('Message._is_first_acquirer');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Message-class.html#_is_first_acquirer">_is_first_acquirer</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Message._is_first_acquirer-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Message._is_first_acquirer-expanded"><a name="L930"></a><tt class="py-lineno"> 930</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt class="py-name">pn_message_is_first_acquirer</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_msg</tt><tt class="py-op">)</tt> </tt>
</div><a name="L931"></a><tt class="py-lineno"> 931</tt> <tt class="py-line"> </tt>
<a name="Message._set_first_acquirer"></a><div id="Message._set_first_acquirer-def"><a name="L932"></a><tt class="py-lineno"> 932</tt> <a class="py-toggle" href="#" id="Message._set_first_acquirer-toggle" onclick="return toggle('Message._set_first_acquirer');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Message-class.html#_set_first_acquirer">_set_first_acquirer</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">value</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Message._set_first_acquirer-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Message._set_first_acquirer-expanded"><a name="L933"></a><tt class="py-lineno"> 933</tt> <tt class="py-line"> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_check</tt><tt class="py-op">(</tt><tt class="py-name">pn_message_set_first_acquirer</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_msg</tt><tt class="py-op">,</tt> <tt class="py-name">bool</tt><tt class="py-op">(</tt><tt class="py-name">value</tt><tt class="py-op">)</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
</div><a name="L934"></a><tt class="py-lineno"> 934</tt> <tt class="py-line"> </tt>
<a name="L935"></a><tt class="py-lineno"> 935</tt> <tt class="py-line"> <tt id="link-145" class="py-name" targets="Variable proton.Message.first_acquirer=proton.Message-class.html#first_acquirer"><a title="proton.Message.first_acquirer" class="py-name" href="#" onclick="return doclink('link-145', 'first_acquirer', 'link-145');">first_acquirer</a></tt> <tt class="py-op">=</tt> <tt class="py-name">property</tt><tt class="py-op">(</tt><tt id="link-146" class="py-name" targets="Method proton.Message._is_first_acquirer()=proton.Message-class.html#_is_first_acquirer"><a title="proton.Message._is_first_acquirer" class="py-name" href="#" onclick="return doclink('link-146', '_is_first_acquirer', 'link-146');">_is_first_acquirer</a></tt><tt class="py-op">,</tt> <tt id="link-147" class="py-name" targets="Method proton.Message._set_first_acquirer()=proton.Message-class.html#_set_first_acquirer"><a title="proton.Message._set_first_acquirer" class="py-name" href="#" onclick="return doclink('link-147', '_set_first_acquirer', 'link-147');">_set_first_acquirer</a></tt><tt class="py-op">,</tt> </tt>
<a name="L936"></a><tt class="py-lineno"> 936</tt> <tt class="py-line"> <tt class="py-name">doc</tt><tt class="py-op">=</tt><tt class="py-string">"""</tt> </tt>
<a name="L937"></a><tt class="py-lineno"> 937</tt> <tt class="py-line"><tt class="py-string">True iff the recipient is the first to acquire the message.</tt> </tt>
<a name="L938"></a><tt class="py-lineno"> 938</tt> <tt class="py-line"><tt class="py-string">"""</tt><tt class="py-op">)</tt> </tt>
<a name="L939"></a><tt class="py-lineno"> 939</tt> <tt class="py-line"> </tt>
<a name="Message._get_delivery_count"></a><div id="Message._get_delivery_count-def"><a name="L940"></a><tt class="py-lineno"> 940</tt> <a class="py-toggle" href="#" id="Message._get_delivery_count-toggle" onclick="return toggle('Message._get_delivery_count');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Message-class.html#_get_delivery_count">_get_delivery_count</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Message._get_delivery_count-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Message._get_delivery_count-expanded"><a name="L941"></a><tt class="py-lineno"> 941</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt class="py-name">pn_message_get_delivery_count</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_msg</tt><tt class="py-op">)</tt> </tt>
</div><a name="L942"></a><tt class="py-lineno"> 942</tt> <tt class="py-line"> </tt>
<a name="Message._set_delivery_count"></a><div id="Message._set_delivery_count-def"><a name="L943"></a><tt class="py-lineno"> 943</tt> <a class="py-toggle" href="#" id="Message._set_delivery_count-toggle" onclick="return toggle('Message._set_delivery_count');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Message-class.html#_set_delivery_count">_set_delivery_count</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">value</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Message._set_delivery_count-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Message._set_delivery_count-expanded"><a name="L944"></a><tt class="py-lineno"> 944</tt> <tt class="py-line"> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_check</tt><tt class="py-op">(</tt><tt class="py-name">pn_message_set_delivery_count</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_msg</tt><tt class="py-op">,</tt> <tt class="py-name">value</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
</div><a name="L945"></a><tt class="py-lineno"> 945</tt> <tt class="py-line"> </tt>
<a name="L946"></a><tt class="py-lineno"> 946</tt> <tt class="py-line"> <tt id="link-148" class="py-name" targets="Variable proton.Message.delivery_count=proton.Message-class.html#delivery_count"><a title="proton.Message.delivery_count" class="py-name" href="#" onclick="return doclink('link-148', 'delivery_count', 'link-148');">delivery_count</a></tt> <tt class="py-op">=</tt> <tt class="py-name">property</tt><tt class="py-op">(</tt><tt id="link-149" class="py-name" targets="Method proton.Message._get_delivery_count()=proton.Message-class.html#_get_delivery_count"><a title="proton.Message._get_delivery_count" class="py-name" href="#" onclick="return doclink('link-149', '_get_delivery_count', 'link-149');">_get_delivery_count</a></tt><tt class="py-op">,</tt> <tt id="link-150" class="py-name" targets="Method proton.Message._set_delivery_count()=proton.Message-class.html#_set_delivery_count"><a title="proton.Message._set_delivery_count" class="py-name" href="#" onclick="return doclink('link-150', '_set_delivery_count', 'link-150');">_set_delivery_count</a></tt><tt class="py-op">,</tt> </tt>
<a name="L947"></a><tt class="py-lineno"> 947</tt> <tt class="py-line"> <tt class="py-name">doc</tt><tt class="py-op">=</tt><tt class="py-string">"""</tt> </tt>
<a name="L948"></a><tt class="py-lineno"> 948</tt> <tt class="py-line"><tt class="py-string">The number of delivery attempts made for this message.</tt> </tt>
<a name="L949"></a><tt class="py-lineno"> 949</tt> <tt class="py-line"><tt class="py-string">"""</tt><tt class="py-op">)</tt> </tt>
<a name="L950"></a><tt class="py-lineno"> 950</tt> <tt class="py-line"> </tt>
<a name="L951"></a><tt class="py-lineno"> 951</tt> <tt class="py-line"> </tt>
<a name="Message._get_id"></a><div id="Message._get_id-def"><a name="L952"></a><tt class="py-lineno"> 952</tt> <a class="py-toggle" href="#" id="Message._get_id-toggle" onclick="return toggle('Message._get_id');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Message-class.html#_get_id">_get_id</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Message._get_id-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Message._get_id-expanded"><a name="L953"></a><tt class="py-lineno"> 953</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_id</tt><tt class="py-op">.</tt><tt id="link-151" class="py-name"><a title="proton.Data.get_object" class="py-name" href="#" onclick="return doclink('link-151', 'get_object', 'link-120');">get_object</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
</div><a name="Message._set_id"></a><div id="Message._set_id-def"><a name="L954"></a><tt class="py-lineno"> 954</tt> <a class="py-toggle" href="#" id="Message._set_id-toggle" onclick="return toggle('Message._set_id');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Message-class.html#_set_id">_set_id</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">value</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Message._set_id-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Message._set_id-expanded"><a name="L955"></a><tt class="py-lineno"> 955</tt> <tt class="py-line"> <tt class="py-keyword">if</tt> <tt id="link-152" class="py-name" targets="Method proton.Data.type()=proton.Data-class.html#type,Variable proton.Disposition.type=proton.Disposition-class.html#type,Variable proton.Terminus.type=proton.Terminus-class.html#type"><a title="proton.Data.type
proton.Disposition.type
proton.Terminus.type" class="py-name" href="#" onclick="return doclink('link-152', 'type', 'link-152');">type</a></tt><tt class="py-op">(</tt><tt class="py-name">value</tt><tt class="py-op">)</tt> <tt class="py-keyword">in</tt> <tt id="link-153" class="py-name"><a title="proton._compat" class="py-name" href="#" onclick="return doclink('link-153', '_compat', 'link-3');">_compat</a></tt><tt class="py-op">.</tt><tt id="link-154" class="py-name" targets="Variable proton._compat.INT_TYPES=proton._compat-module.html#INT_TYPES"><a title="proton._compat.INT_TYPES" class="py-name" href="#" onclick="return doclink('link-154', 'INT_TYPES', 'link-154');">INT_TYPES</a></tt><tt class="py-op">:</tt> </tt>
<a name="L956"></a><tt class="py-lineno"> 956</tt> <tt class="py-line"> <tt class="py-name">value</tt> <tt class="py-op">=</tt> <tt id="link-155" class="py-name" targets="Class proton.ulong=proton.ulong-class.html"><a title="proton.ulong" class="py-name" href="#" onclick="return doclink('link-155', 'ulong', 'link-155');">ulong</a></tt><tt class="py-op">(</tt><tt class="py-name">value</tt><tt class="py-op">)</tt> </tt>
<a name="L957"></a><tt class="py-lineno"> 957</tt> <tt class="py-line"> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_id</tt><tt class="py-op">.</tt><tt id="link-156" class="py-name" targets="Method proton.Data.rewind()=proton.Data-class.html#rewind"><a title="proton.Data.rewind" class="py-name" href="#" onclick="return doclink('link-156', 'rewind', 'link-156');">rewind</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L958"></a><tt class="py-lineno"> 958</tt> <tt class="py-line"> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_id</tt><tt class="py-op">.</tt><tt id="link-157" class="py-name"><a title="proton.Data.put_object" class="py-name" href="#" onclick="return doclink('link-157', 'put_object', 'link-104');">put_object</a></tt><tt class="py-op">(</tt><tt class="py-name">value</tt><tt class="py-op">)</tt> </tt>
</div><a name="L959"></a><tt class="py-lineno"> 959</tt> <tt class="py-line"> <tt id="link-158" class="py-name" targets="Variable proton.Message.id=proton.Message-class.html#id"><a title="proton.Message.id" class="py-name" href="#" onclick="return doclink('link-158', 'id', 'link-158');">id</a></tt> <tt class="py-op">=</tt> <tt class="py-name">property</tt><tt class="py-op">(</tt><tt id="link-159" class="py-name" targets="Method proton.Message._get_id()=proton.Message-class.html#_get_id"><a title="proton.Message._get_id" class="py-name" href="#" onclick="return doclink('link-159', '_get_id', 'link-159');">_get_id</a></tt><tt class="py-op">,</tt> <tt id="link-160" class="py-name" targets="Method proton.Message._set_id()=proton.Message-class.html#_set_id"><a title="proton.Message._set_id" class="py-name" href="#" onclick="return doclink('link-160', '_set_id', 'link-160');">_set_id</a></tt><tt class="py-op">,</tt> </tt>
<a name="L960"></a><tt class="py-lineno"> 960</tt> <tt class="py-line"> <tt class="py-name">doc</tt><tt class="py-op">=</tt><tt class="py-string">"""</tt> </tt>
<a name="L961"></a><tt class="py-lineno"> 961</tt> <tt class="py-line"><tt class="py-string">The id of the message.</tt> </tt>
<a name="L962"></a><tt class="py-lineno"> 962</tt> <tt class="py-line"><tt class="py-string">"""</tt><tt class="py-op">)</tt> </tt>
<a name="L963"></a><tt class="py-lineno"> 963</tt> <tt class="py-line"> </tt>
<a name="Message._get_user_id"></a><div id="Message._get_user_id-def"><a name="L964"></a><tt class="py-lineno"> 964</tt> <a class="py-toggle" href="#" id="Message._get_user_id-toggle" onclick="return toggle('Message._get_user_id');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Message-class.html#_get_user_id">_get_user_id</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Message._get_user_id-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Message._get_user_id-expanded"><a name="L965"></a><tt class="py-lineno"> 965</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt class="py-name">pn_message_get_user_id</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_msg</tt><tt class="py-op">)</tt> </tt>
</div><a name="L966"></a><tt class="py-lineno"> 966</tt> <tt class="py-line"> </tt>
<a name="Message._set_user_id"></a><div id="Message._set_user_id-def"><a name="L967"></a><tt class="py-lineno"> 967</tt> <a class="py-toggle" href="#" id="Message._set_user_id-toggle" onclick="return toggle('Message._set_user_id');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Message-class.html#_set_user_id">_set_user_id</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">value</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Message._set_user_id-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Message._set_user_id-expanded"><a name="L968"></a><tt class="py-lineno"> 968</tt> <tt class="py-line"> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_check</tt><tt class="py-op">(</tt><tt class="py-name">pn_message_set_user_id</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_msg</tt><tt class="py-op">,</tt> <tt class="py-name">value</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
</div><a name="L969"></a><tt class="py-lineno"> 969</tt> <tt class="py-line"> </tt>
<a name="L970"></a><tt class="py-lineno"> 970</tt> <tt class="py-line"> <tt id="link-161" class="py-name" targets="Variable proton.Message.user_id=proton.Message-class.html#user_id"><a title="proton.Message.user_id" class="py-name" href="#" onclick="return doclink('link-161', 'user_id', 'link-161');">user_id</a></tt> <tt class="py-op">=</tt> <tt class="py-name">property</tt><tt class="py-op">(</tt><tt id="link-162" class="py-name" targets="Method proton.Message._get_user_id()=proton.Message-class.html#_get_user_id"><a title="proton.Message._get_user_id" class="py-name" href="#" onclick="return doclink('link-162', '_get_user_id', 'link-162');">_get_user_id</a></tt><tt class="py-op">,</tt> <tt id="link-163" class="py-name" targets="Method proton.Message._set_user_id()=proton.Message-class.html#_set_user_id"><a title="proton.Message._set_user_id" class="py-name" href="#" onclick="return doclink('link-163', '_set_user_id', 'link-163');">_set_user_id</a></tt><tt class="py-op">,</tt> </tt>
<a name="L971"></a><tt class="py-lineno"> 971</tt> <tt class="py-line"> <tt class="py-name">doc</tt><tt class="py-op">=</tt><tt class="py-string">"""</tt> </tt>
<a name="L972"></a><tt class="py-lineno"> 972</tt> <tt class="py-line"><tt class="py-string">The user id of the message creator.</tt> </tt>
<a name="L973"></a><tt class="py-lineno"> 973</tt> <tt class="py-line"><tt class="py-string">"""</tt><tt class="py-op">)</tt> </tt>
<a name="L974"></a><tt class="py-lineno"> 974</tt> <tt class="py-line"> </tt>
<a name="Message._get_address"></a><div id="Message._get_address-def"><a name="L975"></a><tt class="py-lineno"> 975</tt> <a class="py-toggle" href="#" id="Message._get_address-toggle" onclick="return toggle('Message._get_address');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Message-class.html#_get_address">_get_address</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Message._get_address-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Message._get_address-expanded"><a name="L976"></a><tt class="py-lineno"> 976</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt class="py-name">utf82unicode</tt><tt class="py-op">(</tt><tt class="py-name">pn_message_get_address</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_msg</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
</div><a name="L977"></a><tt class="py-lineno"> 977</tt> <tt class="py-line"> </tt>
<a name="Message._set_address"></a><div id="Message._set_address-def"><a name="L978"></a><tt class="py-lineno"> 978</tt> <a class="py-toggle" href="#" id="Message._set_address-toggle" onclick="return toggle('Message._set_address');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Message-class.html#_set_address">_set_address</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">value</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Message._set_address-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Message._set_address-expanded"><a name="L979"></a><tt class="py-lineno"> 979</tt> <tt class="py-line"> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_check</tt><tt class="py-op">(</tt><tt class="py-name">pn_message_set_address</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_msg</tt><tt class="py-op">,</tt> <tt class="py-name">unicode2utf8</tt><tt class="py-op">(</tt><tt class="py-name">value</tt><tt class="py-op">)</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
</div><a name="L980"></a><tt class="py-lineno"> 980</tt> <tt class="py-line"> </tt>
<a name="L981"></a><tt class="py-lineno"> 981</tt> <tt class="py-line"> <tt id="link-164" class="py-name"><a title="proton.Message.address
proton.Terminus.address" class="py-name" href="#" onclick="return doclink('link-164', 'address', 'link-86');">address</a></tt> <tt class="py-op">=</tt> <tt class="py-name">property</tt><tt class="py-op">(</tt><tt id="link-165" class="py-name" targets="Method proton.Message._get_address()=proton.Message-class.html#_get_address,Method proton.Terminus._get_address()=proton.Terminus-class.html#_get_address"><a title="proton.Message._get_address
proton.Terminus._get_address" class="py-name" href="#" onclick="return doclink('link-165', '_get_address', 'link-165');">_get_address</a></tt><tt class="py-op">,</tt> <tt id="link-166" class="py-name" targets="Method proton.Message._set_address()=proton.Message-class.html#_set_address,Method proton.Terminus._set_address()=proton.Terminus-class.html#_set_address"><a title="proton.Message._set_address
proton.Terminus._set_address" class="py-name" href="#" onclick="return doclink('link-166', '_set_address', 'link-166');">_set_address</a></tt><tt class="py-op">,</tt> </tt>
<a name="L982"></a><tt class="py-lineno"> 982</tt> <tt class="py-line"> <tt class="py-name">doc</tt><tt class="py-op">=</tt><tt class="py-string">"""</tt> </tt>
<a name="L983"></a><tt class="py-lineno"> 983</tt> <tt class="py-line"><tt class="py-string">The address of the message.</tt> </tt>
<a name="L984"></a><tt class="py-lineno"> 984</tt> <tt class="py-line"><tt class="py-string">"""</tt><tt class="py-op">)</tt> </tt>
<a name="L985"></a><tt class="py-lineno"> 985</tt> <tt class="py-line"> </tt>
<a name="Message._get_subject"></a><div id="Message._get_subject-def"><a name="L986"></a><tt class="py-lineno"> 986</tt> <a class="py-toggle" href="#" id="Message._get_subject-toggle" onclick="return toggle('Message._get_subject');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Message-class.html#_get_subject">_get_subject</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Message._get_subject-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Message._get_subject-expanded"><a name="L987"></a><tt class="py-lineno"> 987</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt class="py-name">utf82unicode</tt><tt class="py-op">(</tt><tt class="py-name">pn_message_get_subject</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_msg</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
</div><a name="L988"></a><tt class="py-lineno"> 988</tt> <tt class="py-line"> </tt>
<a name="Message._set_subject"></a><div id="Message._set_subject-def"><a name="L989"></a><tt class="py-lineno"> 989</tt> <a class="py-toggle" href="#" id="Message._set_subject-toggle" onclick="return toggle('Message._set_subject');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Message-class.html#_set_subject">_set_subject</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">value</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Message._set_subject-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Message._set_subject-expanded"><a name="L990"></a><tt class="py-lineno"> 990</tt> <tt class="py-line"> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_check</tt><tt class="py-op">(</tt><tt class="py-name">pn_message_set_subject</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_msg</tt><tt class="py-op">,</tt> <tt class="py-name">unicode2utf8</tt><tt class="py-op">(</tt><tt class="py-name">value</tt><tt class="py-op">)</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
</div><a name="L991"></a><tt class="py-lineno"> 991</tt> <tt class="py-line"> </tt>
<a name="L992"></a><tt class="py-lineno"> 992</tt> <tt class="py-line"> <tt id="link-167" class="py-name" targets="Variable proton.Message.subject=proton.Message-class.html#subject"><a title="proton.Message.subject" class="py-name" href="#" onclick="return doclink('link-167', 'subject', 'link-167');">subject</a></tt> <tt class="py-op">=</tt> <tt class="py-name">property</tt><tt class="py-op">(</tt><tt id="link-168" class="py-name" targets="Method proton.Message._get_subject()=proton.Message-class.html#_get_subject"><a title="proton.Message._get_subject" class="py-name" href="#" onclick="return doclink('link-168', '_get_subject', 'link-168');">_get_subject</a></tt><tt class="py-op">,</tt> <tt id="link-169" class="py-name" targets="Method proton.Message._set_subject()=proton.Message-class.html#_set_subject"><a title="proton.Message._set_subject" class="py-name" href="#" onclick="return doclink('link-169', '_set_subject', 'link-169');">_set_subject</a></tt><tt class="py-op">,</tt> </tt>
<a name="L993"></a><tt class="py-lineno"> 993</tt> <tt class="py-line"> <tt class="py-name">doc</tt><tt class="py-op">=</tt><tt class="py-string">"""</tt> </tt>
<a name="L994"></a><tt class="py-lineno"> 994</tt> <tt class="py-line"><tt class="py-string">The subject of the message.</tt> </tt>
<a name="L995"></a><tt class="py-lineno"> 995</tt> <tt class="py-line"><tt class="py-string">"""</tt><tt class="py-op">)</tt> </tt>
<a name="L996"></a><tt class="py-lineno"> 996</tt> <tt class="py-line"> </tt>
<a name="Message._get_reply_to"></a><div id="Message._get_reply_to-def"><a name="L997"></a><tt class="py-lineno"> 997</tt> <a class="py-toggle" href="#" id="Message._get_reply_to-toggle" onclick="return toggle('Message._get_reply_to');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Message-class.html#_get_reply_to">_get_reply_to</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Message._get_reply_to-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Message._get_reply_to-expanded"><a name="L998"></a><tt class="py-lineno"> 998</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt class="py-name">utf82unicode</tt><tt class="py-op">(</tt><tt class="py-name">pn_message_get_reply_to</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_msg</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
</div><a name="L999"></a><tt class="py-lineno"> 999</tt> <tt class="py-line"> </tt>
<a name="Message._set_reply_to"></a><div id="Message._set_reply_to-def"><a name="L1000"></a><tt class="py-lineno">1000</tt> <a class="py-toggle" href="#" id="Message._set_reply_to-toggle" onclick="return toggle('Message._set_reply_to');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Message-class.html#_set_reply_to">_set_reply_to</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">value</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Message._set_reply_to-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Message._set_reply_to-expanded"><a name="L1001"></a><tt class="py-lineno">1001</tt> <tt class="py-line"> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_check</tt><tt class="py-op">(</tt><tt class="py-name">pn_message_set_reply_to</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_msg</tt><tt class="py-op">,</tt> <tt class="py-name">unicode2utf8</tt><tt class="py-op">(</tt><tt class="py-name">value</tt><tt class="py-op">)</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
</div><a name="L1002"></a><tt class="py-lineno">1002</tt> <tt class="py-line"> </tt>
<a name="L1003"></a><tt class="py-lineno">1003</tt> <tt class="py-line"> <tt id="link-170" class="py-name" targets="Variable proton.Message.reply_to=proton.Message-class.html#reply_to,Variable proton.utils.SyncRequestResponse.reply_to=proton.utils.SyncRequestResponse-class.html#reply_to"><a title="proton.Message.reply_to
proton.utils.SyncRequestResponse.reply_to" class="py-name" href="#" onclick="return doclink('link-170', 'reply_to', 'link-170');">reply_to</a></tt> <tt class="py-op">=</tt> <tt class="py-name">property</tt><tt class="py-op">(</tt><tt id="link-171" class="py-name" targets="Method proton.Message._get_reply_to()=proton.Message-class.html#_get_reply_to"><a title="proton.Message._get_reply_to" class="py-name" href="#" onclick="return doclink('link-171', '_get_reply_to', 'link-171');">_get_reply_to</a></tt><tt class="py-op">,</tt> <tt id="link-172" class="py-name" targets="Method proton.Message._set_reply_to()=proton.Message-class.html#_set_reply_to"><a title="proton.Message._set_reply_to" class="py-name" href="#" onclick="return doclink('link-172', '_set_reply_to', 'link-172');">_set_reply_to</a></tt><tt class="py-op">,</tt> </tt>
<a name="L1004"></a><tt class="py-lineno">1004</tt> <tt class="py-line"> <tt class="py-name">doc</tt><tt class="py-op">=</tt><tt class="py-string">"""</tt> </tt>
<a name="L1005"></a><tt class="py-lineno">1005</tt> <tt class="py-line"><tt class="py-string">The reply-to address for the message.</tt> </tt>
<a name="L1006"></a><tt class="py-lineno">1006</tt> <tt class="py-line"><tt class="py-string">"""</tt><tt class="py-op">)</tt> </tt>
<a name="L1007"></a><tt class="py-lineno">1007</tt> <tt class="py-line"> </tt>
<a name="Message._get_correlation_id"></a><div id="Message._get_correlation_id-def"><a name="L1008"></a><tt class="py-lineno">1008</tt> <a class="py-toggle" href="#" id="Message._get_correlation_id-toggle" onclick="return toggle('Message._get_correlation_id');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Message-class.html#_get_correlation_id">_get_correlation_id</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Message._get_correlation_id-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Message._get_correlation_id-expanded"><a name="L1009"></a><tt class="py-lineno">1009</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_correlation_id</tt><tt class="py-op">.</tt><tt id="link-173" class="py-name"><a title="proton.Data.get_object" class="py-name" href="#" onclick="return doclink('link-173', 'get_object', 'link-120');">get_object</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
</div><a name="Message._set_correlation_id"></a><div id="Message._set_correlation_id-def"><a name="L1010"></a><tt class="py-lineno">1010</tt> <a class="py-toggle" href="#" id="Message._set_correlation_id-toggle" onclick="return toggle('Message._set_correlation_id');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Message-class.html#_set_correlation_id">_set_correlation_id</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">value</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Message._set_correlation_id-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Message._set_correlation_id-expanded"><a name="L1011"></a><tt class="py-lineno">1011</tt> <tt class="py-line"> <tt class="py-keyword">if</tt> <tt id="link-174" class="py-name"><a title="proton.Data.type
proton.Disposition.type
proton.Terminus.type" class="py-name" href="#" onclick="return doclink('link-174', 'type', 'link-152');">type</a></tt><tt class="py-op">(</tt><tt class="py-name">value</tt><tt class="py-op">)</tt> <tt class="py-keyword">in</tt> <tt id="link-175" class="py-name"><a title="proton._compat" class="py-name" href="#" onclick="return doclink('link-175', '_compat', 'link-3');">_compat</a></tt><tt class="py-op">.</tt><tt id="link-176" class="py-name"><a title="proton._compat.INT_TYPES" class="py-name" href="#" onclick="return doclink('link-176', 'INT_TYPES', 'link-154');">INT_TYPES</a></tt><tt class="py-op">:</tt> </tt>
<a name="L1012"></a><tt class="py-lineno">1012</tt> <tt class="py-line"> <tt class="py-name">value</tt> <tt class="py-op">=</tt> <tt id="link-177" class="py-name"><a title="proton.ulong" class="py-name" href="#" onclick="return doclink('link-177', 'ulong', 'link-155');">ulong</a></tt><tt class="py-op">(</tt><tt class="py-name">value</tt><tt class="py-op">)</tt> </tt>
<a name="L1013"></a><tt class="py-lineno">1013</tt> <tt class="py-line"> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_correlation_id</tt><tt class="py-op">.</tt><tt id="link-178" class="py-name"><a title="proton.Data.rewind" class="py-name" href="#" onclick="return doclink('link-178', 'rewind', 'link-156');">rewind</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L1014"></a><tt class="py-lineno">1014</tt> <tt class="py-line"> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_correlation_id</tt><tt class="py-op">.</tt><tt id="link-179" class="py-name"><a title="proton.Data.put_object" class="py-name" href="#" onclick="return doclink('link-179', 'put_object', 'link-104');">put_object</a></tt><tt class="py-op">(</tt><tt class="py-name">value</tt><tt class="py-op">)</tt> </tt>
</div><a name="L1015"></a><tt class="py-lineno">1015</tt> <tt class="py-line"> </tt>
<a name="L1016"></a><tt class="py-lineno">1016</tt> <tt class="py-line"> <tt id="link-180" class="py-name" targets="Variable proton.Message.correlation_id=proton.Message-class.html#correlation_id,Variable proton.utils.SyncRequestResponse.correlation_id=proton.utils.SyncRequestResponse-class.html#correlation_id"><a title="proton.Message.correlation_id
proton.utils.SyncRequestResponse.correlation_id" class="py-name" href="#" onclick="return doclink('link-180', 'correlation_id', 'link-180');">correlation_id</a></tt> <tt class="py-op">=</tt> <tt class="py-name">property</tt><tt class="py-op">(</tt><tt id="link-181" class="py-name" targets="Method proton.Message._get_correlation_id()=proton.Message-class.html#_get_correlation_id"><a title="proton.Message._get_correlation_id" class="py-name" href="#" onclick="return doclink('link-181', '_get_correlation_id', 'link-181');">_get_correlation_id</a></tt><tt class="py-op">,</tt> <tt id="link-182" class="py-name" targets="Method proton.Message._set_correlation_id()=proton.Message-class.html#_set_correlation_id"><a title="proton.Message._set_correlation_id" class="py-name" href="#" onclick="return doclink('link-182', '_set_correlation_id', 'link-182');">_set_correlation_id</a></tt><tt class="py-op">,</tt> </tt>
<a name="L1017"></a><tt class="py-lineno">1017</tt> <tt class="py-line"> <tt class="py-name">doc</tt><tt class="py-op">=</tt><tt class="py-string">"""</tt> </tt>
<a name="L1018"></a><tt class="py-lineno">1018</tt> <tt class="py-line"><tt class="py-string">The correlation-id for the message.</tt> </tt>
<a name="L1019"></a><tt class="py-lineno">1019</tt> <tt class="py-line"><tt class="py-string">"""</tt><tt class="py-op">)</tt> </tt>
<a name="L1020"></a><tt class="py-lineno">1020</tt> <tt class="py-line"> </tt>
<a name="Message._get_content_type"></a><div id="Message._get_content_type-def"><a name="L1021"></a><tt class="py-lineno">1021</tt> <a class="py-toggle" href="#" id="Message._get_content_type-toggle" onclick="return toggle('Message._get_content_type');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Message-class.html#_get_content_type">_get_content_type</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Message._get_content_type-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Message._get_content_type-expanded"><a name="L1022"></a><tt class="py-lineno">1022</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt id="link-183" class="py-name" targets="Class proton.symbol=proton.symbol-class.html"><a title="proton.symbol" class="py-name" href="#" onclick="return doclink('link-183', 'symbol', 'link-183');">symbol</a></tt><tt class="py-op">(</tt><tt class="py-name">utf82unicode</tt><tt class="py-op">(</tt><tt class="py-name">pn_message_get_content_type</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_msg</tt><tt class="py-op">)</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
</div><a name="L1023"></a><tt class="py-lineno">1023</tt> <tt class="py-line"> </tt>
<a name="Message._set_content_type"></a><div id="Message._set_content_type-def"><a name="L1024"></a><tt class="py-lineno">1024</tt> <a class="py-toggle" href="#" id="Message._set_content_type-toggle" onclick="return toggle('Message._set_content_type');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Message-class.html#_set_content_type">_set_content_type</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">value</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Message._set_content_type-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Message._set_content_type-expanded"><a name="L1025"></a><tt class="py-lineno">1025</tt> <tt class="py-line"> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_check</tt><tt class="py-op">(</tt><tt class="py-name">pn_message_set_content_type</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_msg</tt><tt class="py-op">,</tt> <tt class="py-name">unicode2utf8</tt><tt class="py-op">(</tt><tt class="py-name">value</tt><tt class="py-op">)</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
</div><a name="L1026"></a><tt class="py-lineno">1026</tt> <tt class="py-line"> </tt>
<a name="L1027"></a><tt class="py-lineno">1027</tt> <tt class="py-line"> <tt id="link-184" class="py-name" targets="Variable proton.Message.content_type=proton.Message-class.html#content_type"><a title="proton.Message.content_type" class="py-name" href="#" onclick="return doclink('link-184', 'content_type', 'link-184');">content_type</a></tt> <tt class="py-op">=</tt> <tt class="py-name">property</tt><tt class="py-op">(</tt><tt id="link-185" class="py-name" targets="Method proton.Message._get_content_type()=proton.Message-class.html#_get_content_type"><a title="proton.Message._get_content_type" class="py-name" href="#" onclick="return doclink('link-185', '_get_content_type', 'link-185');">_get_content_type</a></tt><tt class="py-op">,</tt> <tt id="link-186" class="py-name" targets="Method proton.Message._set_content_type()=proton.Message-class.html#_set_content_type"><a title="proton.Message._set_content_type" class="py-name" href="#" onclick="return doclink('link-186', '_set_content_type', 'link-186');">_set_content_type</a></tt><tt class="py-op">,</tt> </tt>
<a name="L1028"></a><tt class="py-lineno">1028</tt> <tt class="py-line"> <tt class="py-name">doc</tt><tt class="py-op">=</tt><tt class="py-string">"""</tt> </tt>
<a name="L1029"></a><tt class="py-lineno">1029</tt> <tt class="py-line"><tt class="py-string">The content-type of the message.</tt> </tt>
<a name="L1030"></a><tt class="py-lineno">1030</tt> <tt class="py-line"><tt class="py-string">"""</tt><tt class="py-op">)</tt> </tt>
<a name="L1031"></a><tt class="py-lineno">1031</tt> <tt class="py-line"> </tt>
<a name="Message._get_content_encoding"></a><div id="Message._get_content_encoding-def"><a name="L1032"></a><tt class="py-lineno">1032</tt> <a class="py-toggle" href="#" id="Message._get_content_encoding-toggle" onclick="return toggle('Message._get_content_encoding');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Message-class.html#_get_content_encoding">_get_content_encoding</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Message._get_content_encoding-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Message._get_content_encoding-expanded"><a name="L1033"></a><tt class="py-lineno">1033</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt id="link-187" class="py-name"><a title="proton.symbol" class="py-name" href="#" onclick="return doclink('link-187', 'symbol', 'link-183');">symbol</a></tt><tt class="py-op">(</tt><tt class="py-name">utf82unicode</tt><tt class="py-op">(</tt><tt class="py-name">pn_message_get_content_encoding</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_msg</tt><tt class="py-op">)</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
</div><a name="L1034"></a><tt class="py-lineno">1034</tt> <tt class="py-line"> </tt>
<a name="Message._set_content_encoding"></a><div id="Message._set_content_encoding-def"><a name="L1035"></a><tt class="py-lineno">1035</tt> <a class="py-toggle" href="#" id="Message._set_content_encoding-toggle" onclick="return toggle('Message._set_content_encoding');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Message-class.html#_set_content_encoding">_set_content_encoding</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">value</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Message._set_content_encoding-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Message._set_content_encoding-expanded"><a name="L1036"></a><tt class="py-lineno">1036</tt> <tt class="py-line"> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_check</tt><tt class="py-op">(</tt><tt class="py-name">pn_message_set_content_encoding</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_msg</tt><tt class="py-op">,</tt> <tt class="py-name">unicode2utf8</tt><tt class="py-op">(</tt><tt class="py-name">value</tt><tt class="py-op">)</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
</div><a name="L1037"></a><tt class="py-lineno">1037</tt> <tt class="py-line"> </tt>
<a name="L1038"></a><tt class="py-lineno">1038</tt> <tt class="py-line"> <tt id="link-188" class="py-name" targets="Variable proton.Message.content_encoding=proton.Message-class.html#content_encoding"><a title="proton.Message.content_encoding" class="py-name" href="#" onclick="return doclink('link-188', 'content_encoding', 'link-188');">content_encoding</a></tt> <tt class="py-op">=</tt> <tt class="py-name">property</tt><tt class="py-op">(</tt><tt id="link-189" class="py-name" targets="Method proton.Message._get_content_encoding()=proton.Message-class.html#_get_content_encoding"><a title="proton.Message._get_content_encoding" class="py-name" href="#" onclick="return doclink('link-189', '_get_content_encoding', 'link-189');">_get_content_encoding</a></tt><tt class="py-op">,</tt> <tt id="link-190" class="py-name" targets="Method proton.Message._set_content_encoding()=proton.Message-class.html#_set_content_encoding"><a title="proton.Message._set_content_encoding" class="py-name" href="#" onclick="return doclink('link-190', '_set_content_encoding', 'link-190');">_set_content_encoding</a></tt><tt class="py-op">,</tt> </tt>
<a name="L1039"></a><tt class="py-lineno">1039</tt> <tt class="py-line"> <tt class="py-name">doc</tt><tt class="py-op">=</tt><tt class="py-string">"""</tt> </tt>
<a name="L1040"></a><tt class="py-lineno">1040</tt> <tt class="py-line"><tt class="py-string">The content-encoding of the message.</tt> </tt>
<a name="L1041"></a><tt class="py-lineno">1041</tt> <tt class="py-line"><tt class="py-string">"""</tt><tt class="py-op">)</tt> </tt>
<a name="L1042"></a><tt class="py-lineno">1042</tt> <tt class="py-line"> </tt>
<a name="Message._get_expiry_time"></a><div id="Message._get_expiry_time-def"><a name="L1043"></a><tt class="py-lineno">1043</tt> <a class="py-toggle" href="#" id="Message._get_expiry_time-toggle" onclick="return toggle('Message._get_expiry_time');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Message-class.html#_get_expiry_time">_get_expiry_time</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Message._get_expiry_time-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Message._get_expiry_time-expanded"><a name="L1044"></a><tt class="py-lineno">1044</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt class="py-name">millis2secs</tt><tt class="py-op">(</tt><tt class="py-name">pn_message_get_expiry_time</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_msg</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
</div><a name="L1045"></a><tt class="py-lineno">1045</tt> <tt class="py-line"> </tt>
<a name="Message._set_expiry_time"></a><div id="Message._set_expiry_time-def"><a name="L1046"></a><tt class="py-lineno">1046</tt> <a class="py-toggle" href="#" id="Message._set_expiry_time-toggle" onclick="return toggle('Message._set_expiry_time');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Message-class.html#_set_expiry_time">_set_expiry_time</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">value</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Message._set_expiry_time-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Message._set_expiry_time-expanded"><a name="L1047"></a><tt class="py-lineno">1047</tt> <tt class="py-line"> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_check</tt><tt class="py-op">(</tt><tt class="py-name">pn_message_set_expiry_time</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_msg</tt><tt class="py-op">,</tt> <tt class="py-name">secs2millis</tt><tt class="py-op">(</tt><tt class="py-name">value</tt><tt class="py-op">)</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
</div><a name="L1048"></a><tt class="py-lineno">1048</tt> <tt class="py-line"> </tt>
<a name="L1049"></a><tt class="py-lineno">1049</tt> <tt class="py-line"> <tt id="link-191" class="py-name" targets="Variable proton.Message.expiry_time=proton.Message-class.html#expiry_time"><a title="proton.Message.expiry_time" class="py-name" href="#" onclick="return doclink('link-191', 'expiry_time', 'link-191');">expiry_time</a></tt> <tt class="py-op">=</tt> <tt class="py-name">property</tt><tt class="py-op">(</tt><tt id="link-192" class="py-name" targets="Method proton.Message._get_expiry_time()=proton.Message-class.html#_get_expiry_time"><a title="proton.Message._get_expiry_time" class="py-name" href="#" onclick="return doclink('link-192', '_get_expiry_time', 'link-192');">_get_expiry_time</a></tt><tt class="py-op">,</tt> <tt id="link-193" class="py-name" targets="Method proton.Message._set_expiry_time()=proton.Message-class.html#_set_expiry_time"><a title="proton.Message._set_expiry_time" class="py-name" href="#" onclick="return doclink('link-193', '_set_expiry_time', 'link-193');">_set_expiry_time</a></tt><tt class="py-op">,</tt> </tt>
<a name="L1050"></a><tt class="py-lineno">1050</tt> <tt class="py-line"> <tt class="py-name">doc</tt><tt class="py-op">=</tt><tt class="py-string">"""</tt> </tt>
<a name="L1051"></a><tt class="py-lineno">1051</tt> <tt class="py-line"><tt class="py-string">The expiry time of the message.</tt> </tt>
<a name="L1052"></a><tt class="py-lineno">1052</tt> <tt class="py-line"><tt class="py-string">"""</tt><tt class="py-op">)</tt> </tt>
<a name="L1053"></a><tt class="py-lineno">1053</tt> <tt class="py-line"> </tt>
<a name="Message._get_creation_time"></a><div id="Message._get_creation_time-def"><a name="L1054"></a><tt class="py-lineno">1054</tt> <a class="py-toggle" href="#" id="Message._get_creation_time-toggle" onclick="return toggle('Message._get_creation_time');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Message-class.html#_get_creation_time">_get_creation_time</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Message._get_creation_time-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Message._get_creation_time-expanded"><a name="L1055"></a><tt class="py-lineno">1055</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt class="py-name">millis2secs</tt><tt class="py-op">(</tt><tt class="py-name">pn_message_get_creation_time</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_msg</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
</div><a name="L1056"></a><tt class="py-lineno">1056</tt> <tt class="py-line"> </tt>
<a name="Message._set_creation_time"></a><div id="Message._set_creation_time-def"><a name="L1057"></a><tt class="py-lineno">1057</tt> <a class="py-toggle" href="#" id="Message._set_creation_time-toggle" onclick="return toggle('Message._set_creation_time');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Message-class.html#_set_creation_time">_set_creation_time</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">value</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Message._set_creation_time-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Message._set_creation_time-expanded"><a name="L1058"></a><tt class="py-lineno">1058</tt> <tt class="py-line"> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_check</tt><tt class="py-op">(</tt><tt class="py-name">pn_message_set_creation_time</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_msg</tt><tt class="py-op">,</tt> <tt class="py-name">secs2millis</tt><tt class="py-op">(</tt><tt class="py-name">value</tt><tt class="py-op">)</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
</div><a name="L1059"></a><tt class="py-lineno">1059</tt> <tt class="py-line"> </tt>
<a name="L1060"></a><tt class="py-lineno">1060</tt> <tt class="py-line"> <tt id="link-194" class="py-name" targets="Variable proton.Message.creation_time=proton.Message-class.html#creation_time"><a title="proton.Message.creation_time" class="py-name" href="#" onclick="return doclink('link-194', 'creation_time', 'link-194');">creation_time</a></tt> <tt class="py-op">=</tt> <tt class="py-name">property</tt><tt class="py-op">(</tt><tt id="link-195" class="py-name" targets="Method proton.Message._get_creation_time()=proton.Message-class.html#_get_creation_time"><a title="proton.Message._get_creation_time" class="py-name" href="#" onclick="return doclink('link-195', '_get_creation_time', 'link-195');">_get_creation_time</a></tt><tt class="py-op">,</tt> <tt id="link-196" class="py-name" targets="Method proton.Message._set_creation_time()=proton.Message-class.html#_set_creation_time"><a title="proton.Message._set_creation_time" class="py-name" href="#" onclick="return doclink('link-196', '_set_creation_time', 'link-196');">_set_creation_time</a></tt><tt class="py-op">,</tt> </tt>
<a name="L1061"></a><tt class="py-lineno">1061</tt> <tt class="py-line"> <tt class="py-name">doc</tt><tt class="py-op">=</tt><tt class="py-string">"""</tt> </tt>
<a name="L1062"></a><tt class="py-lineno">1062</tt> <tt class="py-line"><tt class="py-string">The creation time of the message.</tt> </tt>
<a name="L1063"></a><tt class="py-lineno">1063</tt> <tt class="py-line"><tt class="py-string">"""</tt><tt class="py-op">)</tt> </tt>
<a name="L1064"></a><tt class="py-lineno">1064</tt> <tt class="py-line"> </tt>
<a name="Message._get_group_id"></a><div id="Message._get_group_id-def"><a name="L1065"></a><tt class="py-lineno">1065</tt> <a class="py-toggle" href="#" id="Message._get_group_id-toggle" onclick="return toggle('Message._get_group_id');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Message-class.html#_get_group_id">_get_group_id</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Message._get_group_id-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Message._get_group_id-expanded"><a name="L1066"></a><tt class="py-lineno">1066</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt class="py-name">utf82unicode</tt><tt class="py-op">(</tt><tt class="py-name">pn_message_get_group_id</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_msg</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
</div><a name="L1067"></a><tt class="py-lineno">1067</tt> <tt class="py-line"> </tt>
<a name="Message._set_group_id"></a><div id="Message._set_group_id-def"><a name="L1068"></a><tt class="py-lineno">1068</tt> <a class="py-toggle" href="#" id="Message._set_group_id-toggle" onclick="return toggle('Message._set_group_id');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Message-class.html#_set_group_id">_set_group_id</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">value</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Message._set_group_id-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Message._set_group_id-expanded"><a name="L1069"></a><tt class="py-lineno">1069</tt> <tt class="py-line"> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_check</tt><tt class="py-op">(</tt><tt class="py-name">pn_message_set_group_id</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_msg</tt><tt class="py-op">,</tt> <tt class="py-name">unicode2utf8</tt><tt class="py-op">(</tt><tt class="py-name">value</tt><tt class="py-op">)</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
</div><a name="L1070"></a><tt class="py-lineno">1070</tt> <tt class="py-line"> </tt>
<a name="L1071"></a><tt class="py-lineno">1071</tt> <tt class="py-line"> <tt id="link-197" class="py-name" targets="Variable proton.Message.group_id=proton.Message-class.html#group_id"><a title="proton.Message.group_id" class="py-name" href="#" onclick="return doclink('link-197', 'group_id', 'link-197');">group_id</a></tt> <tt class="py-op">=</tt> <tt class="py-name">property</tt><tt class="py-op">(</tt><tt id="link-198" class="py-name" targets="Method proton.Message._get_group_id()=proton.Message-class.html#_get_group_id"><a title="proton.Message._get_group_id" class="py-name" href="#" onclick="return doclink('link-198', '_get_group_id', 'link-198');">_get_group_id</a></tt><tt class="py-op">,</tt> <tt id="link-199" class="py-name" targets="Method proton.Message._set_group_id()=proton.Message-class.html#_set_group_id"><a title="proton.Message._set_group_id" class="py-name" href="#" onclick="return doclink('link-199', '_set_group_id', 'link-199');">_set_group_id</a></tt><tt class="py-op">,</tt> </tt>
<a name="L1072"></a><tt class="py-lineno">1072</tt> <tt class="py-line"> <tt class="py-name">doc</tt><tt class="py-op">=</tt><tt class="py-string">"""</tt> </tt>
<a name="L1073"></a><tt class="py-lineno">1073</tt> <tt class="py-line"><tt class="py-string">The group id of the message.</tt> </tt>
<a name="L1074"></a><tt class="py-lineno">1074</tt> <tt class="py-line"><tt class="py-string">"""</tt><tt class="py-op">)</tt> </tt>
<a name="L1075"></a><tt class="py-lineno">1075</tt> <tt class="py-line"> </tt>
<a name="Message._get_group_sequence"></a><div id="Message._get_group_sequence-def"><a name="L1076"></a><tt class="py-lineno">1076</tt> <a class="py-toggle" href="#" id="Message._get_group_sequence-toggle" onclick="return toggle('Message._get_group_sequence');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Message-class.html#_get_group_sequence">_get_group_sequence</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Message._get_group_sequence-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Message._get_group_sequence-expanded"><a name="L1077"></a><tt class="py-lineno">1077</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt class="py-name">pn_message_get_group_sequence</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_msg</tt><tt class="py-op">)</tt> </tt>
</div><a name="L1078"></a><tt class="py-lineno">1078</tt> <tt class="py-line"> </tt>
<a name="Message._set_group_sequence"></a><div id="Message._set_group_sequence-def"><a name="L1079"></a><tt class="py-lineno">1079</tt> <a class="py-toggle" href="#" id="Message._set_group_sequence-toggle" onclick="return toggle('Message._set_group_sequence');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Message-class.html#_set_group_sequence">_set_group_sequence</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">value</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Message._set_group_sequence-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Message._set_group_sequence-expanded"><a name="L1080"></a><tt class="py-lineno">1080</tt> <tt class="py-line"> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_check</tt><tt class="py-op">(</tt><tt class="py-name">pn_message_set_group_sequence</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_msg</tt><tt class="py-op">,</tt> <tt class="py-name">value</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
</div><a name="L1081"></a><tt class="py-lineno">1081</tt> <tt class="py-line"> </tt>
<a name="L1082"></a><tt class="py-lineno">1082</tt> <tt class="py-line"> <tt id="link-200" class="py-name" targets="Variable proton.Message.group_sequence=proton.Message-class.html#group_sequence"><a title="proton.Message.group_sequence" class="py-name" href="#" onclick="return doclink('link-200', 'group_sequence', 'link-200');">group_sequence</a></tt> <tt class="py-op">=</tt> <tt class="py-name">property</tt><tt class="py-op">(</tt><tt id="link-201" class="py-name" targets="Method proton.Message._get_group_sequence()=proton.Message-class.html#_get_group_sequence"><a title="proton.Message._get_group_sequence" class="py-name" href="#" onclick="return doclink('link-201', '_get_group_sequence', 'link-201');">_get_group_sequence</a></tt><tt class="py-op">,</tt> <tt id="link-202" class="py-name" targets="Method proton.Message._set_group_sequence()=proton.Message-class.html#_set_group_sequence"><a title="proton.Message._set_group_sequence" class="py-name" href="#" onclick="return doclink('link-202', '_set_group_sequence', 'link-202');">_set_group_sequence</a></tt><tt class="py-op">,</tt> </tt>
<a name="L1083"></a><tt class="py-lineno">1083</tt> <tt class="py-line"> <tt class="py-name">doc</tt><tt class="py-op">=</tt><tt class="py-string">"""</tt> </tt>
<a name="L1084"></a><tt class="py-lineno">1084</tt> <tt class="py-line"><tt class="py-string">The sequence of the message within its group.</tt> </tt>
<a name="L1085"></a><tt class="py-lineno">1085</tt> <tt class="py-line"><tt class="py-string">"""</tt><tt class="py-op">)</tt> </tt>
<a name="L1086"></a><tt class="py-lineno">1086</tt> <tt class="py-line"> </tt>
<a name="Message._get_reply_to_group_id"></a><div id="Message._get_reply_to_group_id-def"><a name="L1087"></a><tt class="py-lineno">1087</tt> <a class="py-toggle" href="#" id="Message._get_reply_to_group_id-toggle" onclick="return toggle('Message._get_reply_to_group_id');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Message-class.html#_get_reply_to_group_id">_get_reply_to_group_id</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Message._get_reply_to_group_id-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Message._get_reply_to_group_id-expanded"><a name="L1088"></a><tt class="py-lineno">1088</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt class="py-name">utf82unicode</tt><tt class="py-op">(</tt><tt class="py-name">pn_message_get_reply_to_group_id</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_msg</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
</div><a name="L1089"></a><tt class="py-lineno">1089</tt> <tt class="py-line"> </tt>
<a name="Message._set_reply_to_group_id"></a><div id="Message._set_reply_to_group_id-def"><a name="L1090"></a><tt class="py-lineno">1090</tt> <a class="py-toggle" href="#" id="Message._set_reply_to_group_id-toggle" onclick="return toggle('Message._set_reply_to_group_id');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Message-class.html#_set_reply_to_group_id">_set_reply_to_group_id</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">value</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Message._set_reply_to_group_id-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Message._set_reply_to_group_id-expanded"><a name="L1091"></a><tt class="py-lineno">1091</tt> <tt class="py-line"> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_check</tt><tt class="py-op">(</tt><tt class="py-name">pn_message_set_reply_to_group_id</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_msg</tt><tt class="py-op">,</tt> <tt class="py-name">unicode2utf8</tt><tt class="py-op">(</tt><tt class="py-name">value</tt><tt class="py-op">)</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
</div><a name="L1092"></a><tt class="py-lineno">1092</tt> <tt class="py-line"> </tt>
<a name="L1093"></a><tt class="py-lineno">1093</tt> <tt class="py-line"> <tt id="link-203" class="py-name" targets="Variable proton.Message.reply_to_group_id=proton.Message-class.html#reply_to_group_id"><a title="proton.Message.reply_to_group_id" class="py-name" href="#" onclick="return doclink('link-203', 'reply_to_group_id', 'link-203');">reply_to_group_id</a></tt> <tt class="py-op">=</tt> <tt class="py-name">property</tt><tt class="py-op">(</tt><tt id="link-204" class="py-name" targets="Method proton.Message._get_reply_to_group_id()=proton.Message-class.html#_get_reply_to_group_id"><a title="proton.Message._get_reply_to_group_id" class="py-name" href="#" onclick="return doclink('link-204', '_get_reply_to_group_id', 'link-204');">_get_reply_to_group_id</a></tt><tt class="py-op">,</tt> <tt id="link-205" class="py-name" targets="Method proton.Message._set_reply_to_group_id()=proton.Message-class.html#_set_reply_to_group_id"><a title="proton.Message._set_reply_to_group_id" class="py-name" href="#" onclick="return doclink('link-205', '_set_reply_to_group_id', 'link-205');">_set_reply_to_group_id</a></tt><tt class="py-op">,</tt> </tt>
<a name="L1094"></a><tt class="py-lineno">1094</tt> <tt class="py-line"> <tt class="py-name">doc</tt><tt class="py-op">=</tt><tt class="py-string">"""</tt> </tt>
<a name="L1095"></a><tt class="py-lineno">1095</tt> <tt class="py-line"><tt class="py-string">The group-id for any replies.</tt> </tt>
<a name="L1096"></a><tt class="py-lineno">1096</tt> <tt class="py-line"><tt class="py-string">"""</tt><tt class="py-op">)</tt> </tt>
<a name="L1097"></a><tt class="py-lineno">1097</tt> <tt class="py-line"> </tt>
<a name="Message.encode"></a><div id="Message.encode-def"><a name="L1098"></a><tt class="py-lineno">1098</tt> <a class="py-toggle" href="#" id="Message.encode-toggle" onclick="return toggle('Message.encode');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Message-class.html#encode">encode</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Message.encode-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Message.encode-expanded"><a name="L1099"></a><tt class="py-lineno">1099</tt> <tt class="py-line"> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_pre_encode</tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L1100"></a><tt class="py-lineno">1100</tt> <tt class="py-line"> <tt class="py-name">sz</tt> <tt class="py-op">=</tt> <tt class="py-number">16</tt> </tt>
<a name="L1101"></a><tt class="py-lineno">1101</tt> <tt class="py-line"> <tt class="py-keyword">while</tt> <tt class="py-name">True</tt><tt class="py-op">:</tt> </tt>
<a name="L1102"></a><tt class="py-lineno">1102</tt> <tt class="py-line"> <tt class="py-name">err</tt><tt class="py-op">,</tt> <tt id="link-206" class="py-name"><a title="proton.Disposition.data" class="py-name" href="#" onclick="return doclink('link-206', 'data', 'link-8');">data</a></tt> <tt class="py-op">=</tt> <tt class="py-name">pn_message_encode</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_msg</tt><tt class="py-op">,</tt> <tt class="py-name">sz</tt><tt class="py-op">)</tt> </tt>
<a name="L1103"></a><tt class="py-lineno">1103</tt> <tt class="py-line"> <tt class="py-keyword">if</tt> <tt class="py-name">err</tt> <tt class="py-op">==</tt> <tt class="py-name">PN_OVERFLOW</tt><tt class="py-op">:</tt> </tt>
<a name="L1104"></a><tt class="py-lineno">1104</tt> <tt class="py-line"> <tt class="py-name">sz</tt> <tt class="py-op">*=</tt> <tt class="py-number">2</tt> </tt>
<a name="L1105"></a><tt class="py-lineno">1105</tt> <tt class="py-line"> <tt class="py-keyword">continue</tt> </tt>
<a name="L1106"></a><tt class="py-lineno">1106</tt> <tt class="py-line"> <tt class="py-keyword">else</tt><tt class="py-op">:</tt> </tt>
<a name="L1107"></a><tt class="py-lineno">1107</tt> <tt class="py-line"> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_check</tt><tt class="py-op">(</tt><tt class="py-name">err</tt><tt class="py-op">)</tt> </tt>
<a name="L1108"></a><tt class="py-lineno">1108</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt id="link-207" class="py-name"><a title="proton.Disposition.data" class="py-name" href="#" onclick="return doclink('link-207', 'data', 'link-8');">data</a></tt> </tt>
</div><a name="L1109"></a><tt class="py-lineno">1109</tt> <tt class="py-line"> </tt>
<a name="Message.decode"></a><div id="Message.decode-def"><a name="L1110"></a><tt class="py-lineno">1110</tt> <a class="py-toggle" href="#" id="Message.decode-toggle" onclick="return toggle('Message.decode');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Message-class.html#decode">decode</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">data</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Message.decode-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Message.decode-expanded"><a name="L1111"></a><tt class="py-lineno">1111</tt> <tt class="py-line"> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_check</tt><tt class="py-op">(</tt><tt class="py-name">pn_message_decode</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_msg</tt><tt class="py-op">,</tt> <tt id="link-208" class="py-name"><a title="proton.Disposition.data" class="py-name" href="#" onclick="return doclink('link-208', 'data', 'link-8');">data</a></tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
<a name="L1112"></a><tt class="py-lineno">1112</tt> <tt class="py-line"> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_post_decode</tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
</div><a name="L1113"></a><tt class="py-lineno">1113</tt> <tt class="py-line"> </tt>
<a name="Message.send"></a><div id="Message.send-def"><a name="L1114"></a><tt class="py-lineno">1114</tt> <a class="py-toggle" href="#" id="Message.send-toggle" onclick="return toggle('Message.send');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Message-class.html#send">send</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">sender</tt><tt class="py-op">,</tt> <tt class="py-param">tag</tt><tt class="py-op">=</tt><tt class="py-name">None</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Message.send-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Message.send-expanded"><a name="L1115"></a><tt class="py-lineno">1115</tt> <tt class="py-line"> <tt class="py-name">dlv</tt> <tt class="py-op">=</tt> <tt id="link-209" class="py-name" targets="Variable proton.Event.sender=proton.Event-class.html#sender,Method proton.Session.sender()=proton.Session-class.html#sender"><a title="proton.Event.sender
proton.Session.sender" class="py-name" href="#" onclick="return doclink('link-209', 'sender', 'link-209');">sender</a></tt><tt class="py-op">.</tt><tt id="link-210" class="py-name" targets="Variable proton.Event.delivery=proton.Event-class.html#delivery,Method proton.Link.delivery()=proton.Link-class.html#delivery"><a title="proton.Event.delivery
proton.Link.delivery" class="py-name" href="#" onclick="return doclink('link-210', 'delivery', 'link-210');">delivery</a></tt><tt class="py-op">(</tt><tt id="link-211" class="py-name" targets="Variable proton.Delivery.tag=proton.Delivery-class.html#tag"><a title="proton.Delivery.tag" class="py-name" href="#" onclick="return doclink('link-211', 'tag', 'link-211');">tag</a></tt> <tt class="py-keyword">or</tt> <tt id="link-212" class="py-name"><a title="proton.Event.sender
proton.Session.sender" class="py-name" href="#" onclick="return doclink('link-212', 'sender', 'link-209');">sender</a></tt><tt class="py-op">.</tt><tt id="link-213" class="py-name" targets="Method proton.Sender.delivery_tag()=proton.Sender-class.html#delivery_tag"><a title="proton.Sender.delivery_tag" class="py-name" href="#" onclick="return doclink('link-213', 'delivery_tag', 'link-213');">delivery_tag</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
<a name="L1116"></a><tt class="py-lineno">1116</tt> <tt class="py-line"> <tt class="py-name">encoded</tt> <tt class="py-op">=</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-214" class="py-name" targets="Method proton.Data.encode()=proton.Data-class.html#encode,Method proton.Message.encode()=proton.Message-class.html#encode"><a title="proton.Data.encode
proton.Message.encode" class="py-name" href="#" onclick="return doclink('link-214', 'encode', 'link-214');">encode</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L1117"></a><tt class="py-lineno">1117</tt> <tt class="py-line"> <tt id="link-215" class="py-name"><a title="proton.Event.sender
proton.Session.sender" class="py-name" href="#" onclick="return doclink('link-215', 'sender', 'link-209');">sender</a></tt><tt class="py-op">.</tt><tt id="link-216" class="py-name" targets="Method proton.Sender.stream()=proton.Sender-class.html#stream"><a title="proton.Sender.stream" class="py-name" href="#" onclick="return doclink('link-216', 'stream', 'link-216');">stream</a></tt><tt class="py-op">(</tt><tt class="py-name">encoded</tt><tt class="py-op">)</tt> </tt>
<a name="L1118"></a><tt class="py-lineno">1118</tt> <tt class="py-line"> <tt id="link-217" class="py-name"><a title="proton.Event.sender
proton.Session.sender" class="py-name" href="#" onclick="return doclink('link-217', 'sender', 'link-209');">sender</a></tt><tt class="py-op">.</tt><tt id="link-218" class="py-name" targets="Method proton.Link.advance()=proton.Link-class.html#advance"><a title="proton.Link.advance" class="py-name" href="#" onclick="return doclink('link-218', 'advance', 'link-218');">advance</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L1119"></a><tt class="py-lineno">1119</tt> <tt class="py-line"> <tt class="py-keyword">if</tt> <tt id="link-219" class="py-name"><a title="proton.Event.sender
proton.Session.sender" class="py-name" href="#" onclick="return doclink('link-219', 'sender', 'link-209');">sender</a></tt><tt class="py-op">.</tt><tt id="link-220" class="py-name" targets="Variable proton.Link.snd_settle_mode=proton.Link-class.html#snd_settle_mode"><a title="proton.Link.snd_settle_mode" class="py-name" href="#" onclick="return doclink('link-220', 'snd_settle_mode', 'link-220');">snd_settle_mode</a></tt> <tt class="py-op">==</tt> <tt id="link-221" class="py-name" targets="Class proton.Link=proton.Link-class.html"><a title="proton.Link" class="py-name" href="#" onclick="return doclink('link-221', 'Link', 'link-221');">Link</a></tt><tt class="py-op">.</tt><tt id="link-222" class="py-name" targets="Variable proton.Link.SND_SETTLED=proton.Link-class.html#SND_SETTLED"><a title="proton.Link.SND_SETTLED" class="py-name" href="#" onclick="return doclink('link-222', 'SND_SETTLED', 'link-222');">SND_SETTLED</a></tt><tt class="py-op">:</tt> </tt>
<a name="L1120"></a><tt class="py-lineno">1120</tt> <tt class="py-line"> <tt class="py-name">dlv</tt><tt class="py-op">.</tt><tt id="link-223" class="py-name" targets="Method proton.Delivery.settle()=proton.Delivery-class.html#settle,Method proton.Messenger.settle()=proton.Messenger-class.html#settle,Method proton.handlers.Acking.settle()=proton.handlers.Acking-class.html#settle,Method proton.utils.BlockingReceiver.settle()=proton.utils.BlockingReceiver-class.html#settle,Method proton.utils.Fetcher.settle()=proton.utils.Fetcher-class.html#settle"><a title="proton.Delivery.settle
proton.Messenger.settle
proton.handlers.Acking.settle
proton.utils.BlockingReceiver.settle
proton.utils.Fetcher.settle" class="py-name" href="#" onclick="return doclink('link-223', 'settle', 'link-223');">settle</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L1121"></a><tt class="py-lineno">1121</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt class="py-name">dlv</tt> </tt>
</div><a name="L1122"></a><tt class="py-lineno">1122</tt> <tt class="py-line"> </tt>
<a name="Message.recv"></a><div id="Message.recv-def"><a name="L1123"></a><tt class="py-lineno">1123</tt> <a class="py-toggle" href="#" id="Message.recv-toggle" onclick="return toggle('Message.recv');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Message-class.html#recv">recv</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">link</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Message.recv-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Message.recv-expanded"><a name="L1124"></a><tt class="py-lineno">1124</tt> <tt class="py-line"> <tt class="py-docstring">"""</tt> </tt>
<a name="L1125"></a><tt class="py-lineno">1125</tt> <tt class="py-line"><tt class="py-docstring"> Receives and decodes the message content for the current delivery</tt> </tt>
<a name="L1126"></a><tt class="py-lineno">1126</tt> <tt class="py-line"><tt class="py-docstring"> from the link. Upon success it will return the current delivery</tt> </tt>
<a name="L1127"></a><tt class="py-lineno">1127</tt> <tt class="py-line"><tt class="py-docstring"> for the link. If there is no current delivery, or if the current</tt> </tt>
<a name="L1128"></a><tt class="py-lineno">1128</tt> <tt class="py-line"><tt class="py-docstring"> delivery is incomplete, or if the link is not a receiver, it will</tt> </tt>
<a name="L1129"></a><tt class="py-lineno">1129</tt> <tt class="py-line"><tt class="py-docstring"> return None.</tt> </tt>
<a name="L1130"></a><tt class="py-lineno">1130</tt> <tt class="py-line"><tt class="py-docstring"></tt> </tt>
<a name="L1131"></a><tt class="py-lineno">1131</tt> <tt class="py-line"><tt class="py-docstring"> @type link: Link</tt> </tt>
<a name="L1132"></a><tt class="py-lineno">1132</tt> <tt class="py-line"><tt class="py-docstring"> @param link: the link to receive a message from</tt> </tt>
<a name="L1133"></a><tt class="py-lineno">1133</tt> <tt class="py-line"><tt class="py-docstring"> @return the delivery associated with the decoded message (or None)</tt> </tt>
<a name="L1134"></a><tt class="py-lineno">1134</tt> <tt class="py-line"><tt class="py-docstring"></tt> </tt>
<a name="L1135"></a><tt class="py-lineno">1135</tt> <tt class="py-line"><tt class="py-docstring"> """</tt> </tt>
<a name="L1136"></a><tt class="py-lineno">1136</tt> <tt class="py-line"> <tt class="py-keyword">if</tt> <tt id="link-224" class="py-name" targets="Variable proton.Delivery.link=proton.Delivery-class.html#link,Variable proton.Event.link=proton.Event-class.html#link"><a title="proton.Delivery.link
proton.Event.link" class="py-name" href="#" onclick="return doclink('link-224', 'link', 'link-224');">link</a></tt><tt class="py-op">.</tt><tt id="link-225" class="py-name" targets="Variable proton.Link.is_sender=proton.Link-class.html#is_sender"><a title="proton.Link.is_sender" class="py-name" href="#" onclick="return doclink('link-225', 'is_sender', 'link-225');">is_sender</a></tt><tt class="py-op">:</tt> <tt class="py-keyword">return</tt> <tt class="py-name">None</tt> </tt>
<a name="L1137"></a><tt class="py-lineno">1137</tt> <tt class="py-line"> <tt class="py-name">dlv</tt> <tt class="py-op">=</tt> <tt id="link-226" class="py-name"><a title="proton.Delivery.link
proton.Event.link" class="py-name" href="#" onclick="return doclink('link-226', 'link', 'link-224');">link</a></tt><tt class="py-op">.</tt><tt id="link-227" class="py-name" targets="Variable proton.Link.current=proton.Link-class.html#current"><a title="proton.Link.current" class="py-name" href="#" onclick="return doclink('link-227', 'current', 'link-227');">current</a></tt> </tt>
<a name="L1138"></a><tt class="py-lineno">1138</tt> <tt class="py-line"> <tt class="py-keyword">if</tt> <tt class="py-keyword">not</tt> <tt class="py-name">dlv</tt> <tt class="py-keyword">or</tt> <tt class="py-name">dlv</tt><tt class="py-op">.</tt><tt id="link-228" class="py-name" targets="Variable proton.Delivery.partial=proton.Delivery-class.html#partial"><a title="proton.Delivery.partial" class="py-name" href="#" onclick="return doclink('link-228', 'partial', 'link-228');">partial</a></tt><tt class="py-op">:</tt> <tt class="py-keyword">return</tt> <tt class="py-name">None</tt> </tt>
<a name="L1139"></a><tt class="py-lineno">1139</tt> <tt class="py-line"> <tt class="py-name">dlv</tt><tt class="py-op">.</tt><tt class="py-name">encoded</tt> <tt class="py-op">=</tt> <tt id="link-229" class="py-name"><a title="proton.Delivery.link
proton.Event.link" class="py-name" href="#" onclick="return doclink('link-229', 'link', 'link-224');">link</a></tt><tt class="py-op">.</tt><tt id="link-230" class="py-name" targets="Method proton.Message.recv()=proton.Message-class.html#recv,Method proton.Messenger.recv()=proton.Messenger-class.html#recv,Method proton.Receiver.recv()=proton.Receiver-class.html#recv"><a title="proton.Message.recv
proton.Messenger.recv
proton.Receiver.recv" class="py-name" href="#" onclick="return doclink('link-230', 'recv', 'link-230');">recv</a></tt><tt class="py-op">(</tt><tt class="py-name">dlv</tt><tt class="py-op">.</tt><tt id="link-231" class="py-name" targets="Variable proton.Delivery.pending=proton.Delivery-class.html#pending,Method proton.Transport.pending()=proton.Transport-class.html#pending"><a title="proton.Delivery.pending
proton.Transport.pending" class="py-name" href="#" onclick="return doclink('link-231', 'pending', 'link-231');">pending</a></tt><tt class="py-op">)</tt> </tt>
<a name="L1140"></a><tt class="py-lineno">1140</tt> <tt class="py-line"> <tt id="link-232" class="py-name"><a title="proton.Delivery.link
proton.Event.link" class="py-name" href="#" onclick="return doclink('link-232', 'link', 'link-224');">link</a></tt><tt class="py-op">.</tt><tt id="link-233" class="py-name"><a title="proton.Link.advance" class="py-name" href="#" onclick="return doclink('link-233', 'advance', 'link-218');">advance</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L1141"></a><tt class="py-lineno">1141</tt> <tt class="py-line"> <tt class="py-comment"># the sender has already forgotten about the delivery, so we might</tt> </tt>
<a name="L1142"></a><tt class="py-lineno">1142</tt> <tt class="py-line"> <tt class="py-comment"># as well too</tt> </tt>
<a name="L1143"></a><tt class="py-lineno">1143</tt> <tt class="py-line"> <tt class="py-keyword">if</tt> <tt id="link-234" class="py-name"><a title="proton.Delivery.link
proton.Event.link" class="py-name" href="#" onclick="return doclink('link-234', 'link', 'link-224');">link</a></tt><tt class="py-op">.</tt><tt id="link-235" class="py-name" targets="Variable proton.Link.remote_snd_settle_mode=proton.Link-class.html#remote_snd_settle_mode"><a title="proton.Link.remote_snd_settle_mode" class="py-name" href="#" onclick="return doclink('link-235', 'remote_snd_settle_mode', 'link-235');">remote_snd_settle_mode</a></tt> <tt class="py-op">==</tt> <tt id="link-236" class="py-name"><a title="proton.Link" class="py-name" href="#" onclick="return doclink('link-236', 'Link', 'link-221');">Link</a></tt><tt class="py-op">.</tt><tt id="link-237" class="py-name"><a title="proton.Link.SND_SETTLED" class="py-name" href="#" onclick="return doclink('link-237', 'SND_SETTLED', 'link-222');">SND_SETTLED</a></tt><tt class="py-op">:</tt> </tt>
<a name="L1144"></a><tt class="py-lineno">1144</tt> <tt class="py-line"> <tt class="py-name">dlv</tt><tt class="py-op">.</tt><tt id="link-238" class="py-name"><a title="proton.Delivery.settle
proton.Messenger.settle
proton.handlers.Acking.settle
proton.utils.BlockingReceiver.settle
proton.utils.Fetcher.settle" class="py-name" href="#" onclick="return doclink('link-238', 'settle', 'link-223');">settle</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L1145"></a><tt class="py-lineno">1145</tt> <tt class="py-line"> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-239" class="py-name" targets="Method proton.Data.decode()=proton.Data-class.html#decode,Method proton.Message.decode()=proton.Message-class.html#decode"><a title="proton.Data.decode
proton.Message.decode" class="py-name" href="#" onclick="return doclink('link-239', 'decode', 'link-239');">decode</a></tt><tt class="py-op">(</tt><tt class="py-name">dlv</tt><tt class="py-op">.</tt><tt class="py-name">encoded</tt><tt class="py-op">)</tt> </tt>
<a name="L1146"></a><tt class="py-lineno">1146</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt class="py-name">dlv</tt> </tt>
</div><a name="L1147"></a><tt class="py-lineno">1147</tt> <tt class="py-line"> </tt>
<a name="Message.__repr2__"></a><div id="Message.__repr2__-def"><a name="L1148"></a><tt class="py-lineno">1148</tt> <a class="py-toggle" href="#" id="Message.__repr2__-toggle" onclick="return toggle('Message.__repr2__');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Message-class.html#__repr2__">__repr2__</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Message.__repr2__-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Message.__repr2__-expanded"><a name="L1149"></a><tt class="py-lineno">1149</tt> <tt class="py-line"> <tt class="py-name">props</tt> <tt class="py-op">=</tt> <tt class="py-op">[</tt><tt class="py-op">]</tt> </tt>
<a name="L1150"></a><tt class="py-lineno">1150</tt> <tt class="py-line"> <tt class="py-keyword">for</tt> <tt class="py-name">attr</tt> <tt class="py-keyword">in</tt> <tt class="py-op">(</tt><tt class="py-string">"inferred"</tt><tt class="py-op">,</tt> <tt class="py-string">"address"</tt><tt class="py-op">,</tt> <tt class="py-string">"reply_to"</tt><tt class="py-op">,</tt> <tt class="py-string">"durable"</tt><tt class="py-op">,</tt> <tt class="py-string">"ttl"</tt><tt class="py-op">,</tt> </tt>
<a name="L1151"></a><tt class="py-lineno">1151</tt> <tt class="py-line"> <tt class="py-string">"priority"</tt><tt class="py-op">,</tt> <tt class="py-string">"first_acquirer"</tt><tt class="py-op">,</tt> <tt class="py-string">"delivery_count"</tt><tt class="py-op">,</tt> <tt class="py-string">"id"</tt><tt class="py-op">,</tt> </tt>
<a name="L1152"></a><tt class="py-lineno">1152</tt> <tt class="py-line"> <tt class="py-string">"correlation_id"</tt><tt class="py-op">,</tt> <tt class="py-string">"user_id"</tt><tt class="py-op">,</tt> <tt class="py-string">"group_id"</tt><tt class="py-op">,</tt> <tt class="py-string">"group_sequence"</tt><tt class="py-op">,</tt> </tt>
<a name="L1153"></a><tt class="py-lineno">1153</tt> <tt class="py-line"> <tt class="py-string">"reply_to_group_id"</tt><tt class="py-op">,</tt> <tt class="py-string">"instructions"</tt><tt class="py-op">,</tt> <tt class="py-string">"annotations"</tt><tt class="py-op">,</tt> </tt>
<a name="L1154"></a><tt class="py-lineno">1154</tt> <tt class="py-line"> <tt class="py-string">"properties"</tt><tt class="py-op">,</tt> <tt class="py-string">"body"</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
<a name="L1155"></a><tt class="py-lineno">1155</tt> <tt class="py-line"> <tt class="py-name">value</tt> <tt class="py-op">=</tt> <tt class="py-name">getattr</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">,</tt> <tt class="py-name">attr</tt><tt class="py-op">)</tt> </tt>
<a name="L1156"></a><tt class="py-lineno">1156</tt> <tt class="py-line"> <tt class="py-keyword">if</tt> <tt class="py-name">value</tt><tt class="py-op">:</tt> <tt class="py-name">props</tt><tt class="py-op">.</tt><tt class="py-name">append</tt><tt class="py-op">(</tt><tt class="py-string">"%s=%r"</tt> <tt class="py-op">%</tt> <tt class="py-op">(</tt><tt class="py-name">attr</tt><tt class="py-op">,</tt> <tt class="py-name">value</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
<a name="L1157"></a><tt class="py-lineno">1157</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt class="py-string">"Message(%s)"</tt> <tt class="py-op">%</tt> <tt class="py-string">", "</tt><tt class="py-op">.</tt><tt class="py-name">join</tt><tt class="py-op">(</tt><tt class="py-name">props</tt><tt class="py-op">)</tt> </tt>
</div><a name="L1158"></a><tt class="py-lineno">1158</tt> <tt class="py-line"> </tt>
<a name="Message.__repr__"></a><div id="Message.__repr__-def"><a name="L1159"></a><tt class="py-lineno">1159</tt> <a class="py-toggle" href="#" id="Message.__repr__-toggle" onclick="return toggle('Message.__repr__');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Message-class.html#__repr__">__repr__</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Message.__repr__-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Message.__repr__-expanded"><a name="L1160"></a><tt class="py-lineno">1160</tt> <tt class="py-line"> <tt class="py-name">tmp</tt> <tt class="py-op">=</tt> <tt class="py-name">pn_string</tt><tt class="py-op">(</tt><tt class="py-name">None</tt><tt class="py-op">)</tt> </tt>
<a name="L1161"></a><tt class="py-lineno">1161</tt> <tt class="py-line"> <tt class="py-name">err</tt> <tt class="py-op">=</tt> <tt class="py-name">pn_inspect</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_msg</tt><tt class="py-op">,</tt> <tt class="py-name">tmp</tt><tt class="py-op">)</tt> </tt>
<a name="L1162"></a><tt class="py-lineno">1162</tt> <tt class="py-line"> <tt class="py-name">result</tt> <tt class="py-op">=</tt> <tt class="py-name">pn_string_get</tt><tt class="py-op">(</tt><tt class="py-name">tmp</tt><tt class="py-op">)</tt> </tt>
<a name="L1163"></a><tt class="py-lineno">1163</tt> <tt class="py-line"> <tt class="py-name">pn_free</tt><tt class="py-op">(</tt><tt class="py-name">tmp</tt><tt class="py-op">)</tt> </tt>
<a name="L1164"></a><tt class="py-lineno">1164</tt> <tt class="py-line"> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_check</tt><tt class="py-op">(</tt><tt class="py-name">err</tt><tt class="py-op">)</tt> </tt>
<a name="L1165"></a><tt class="py-lineno">1165</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt class="py-name">result</tt> </tt>
</div></div><a name="L1166"></a><tt class="py-lineno">1166</tt> <tt class="py-line"> </tt>
<a name="Subscription"></a><div id="Subscription-def"><a name="L1167"></a><tt class="py-lineno">1167</tt> <a class="py-toggle" href="#" id="Subscription-toggle" onclick="return toggle('Subscription');">-</a><tt class="py-line"><tt class="py-keyword">class</tt> <a class="py-def-name" href="proton.Subscription-class.html">Subscription</a><tt class="py-op">(</tt><tt class="py-base-class">object</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Subscription-collapsed" style="display:none;" pad="++++" indent="++++"></div><div id="Subscription-expanded"><a name="L1168"></a><tt class="py-lineno">1168</tt> <tt class="py-line"> </tt>
<a name="Subscription.__init__"></a><div id="Subscription.__init__-def"><a name="L1169"></a><tt class="py-lineno">1169</tt> <a class="py-toggle" href="#" id="Subscription.__init__-toggle" onclick="return toggle('Subscription.__init__');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Subscription-class.html#__init__">__init__</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">impl</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Subscription.__init__-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Subscription.__init__-expanded"><a name="L1170"></a><tt class="py-lineno">1170</tt> <tt class="py-line"> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_impl</tt> <tt class="py-op">=</tt> <tt class="py-name">impl</tt> </tt>
</div><a name="L1171"></a><tt class="py-lineno">1171</tt> <tt class="py-line"> </tt>
<a name="L1172"></a><tt class="py-lineno">1172</tt> <tt class="py-line"> <tt class="py-decorator">@</tt><tt class="py-decorator">property</tt> </tt>
<a name="Subscription.address"></a><div id="Subscription.address-def"><a name="L1173"></a><tt class="py-lineno">1173</tt> <a class="py-toggle" href="#" id="Subscription.address-toggle" onclick="return toggle('Subscription.address');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Subscription-class.html#address">address</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Subscription.address-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Subscription.address-expanded"><a name="L1174"></a><tt class="py-lineno">1174</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt class="py-name">pn_subscription_address</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_impl</tt><tt class="py-op">)</tt> </tt>
</div></div><a name="L1175"></a><tt class="py-lineno">1175</tt> <tt class="py-line"> </tt>
<a name="L1176"></a><tt class="py-lineno">1176</tt> <tt class="py-line"><tt id="link-240" class="py-name" targets="Variable proton._DEFAULT=proton-module.html#_DEFAULT"><a title="proton._DEFAULT" class="py-name" href="#" onclick="return doclink('link-240', '_DEFAULT', 'link-240');">_DEFAULT</a></tt> <tt class="py-op">=</tt> <tt class="py-name">object</tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="Selectable"></a><div id="Selectable-def"><a name="L1177"></a><tt class="py-lineno">1177</tt> <tt class="py-line"> </tt>
<a name="L1178"></a><tt class="py-lineno">1178</tt> <a class="py-toggle" href="#" id="Selectable-toggle" onclick="return toggle('Selectable');">-</a><tt class="py-line"><tt class="py-keyword">class</tt> <a class="py-def-name" href="proton.Selectable-class.html">Selectable</a><tt class="py-op">(</tt><tt class="py-base-class">Wrapper</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Selectable-collapsed" style="display:none;" pad="++++" indent="++++"></div><div id="Selectable-expanded"><a name="L1179"></a><tt class="py-lineno">1179</tt> <tt class="py-line"> </tt>
<a name="L1180"></a><tt class="py-lineno">1180</tt> <tt class="py-line"> <tt class="py-decorator">@</tt><tt class="py-decorator">staticmethod</tt> </tt>
<a name="Selectable.wrap"></a><div id="Selectable.wrap-def"><a name="L1181"></a><tt class="py-lineno">1181</tt> <a class="py-toggle" href="#" id="Selectable.wrap-toggle" onclick="return toggle('Selectable.wrap');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Selectable-class.html#wrap">wrap</a><tt class="py-op">(</tt><tt class="py-param">impl</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Selectable.wrap-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Selectable.wrap-expanded"><a name="L1182"></a><tt class="py-lineno">1182</tt> <tt class="py-line"> <tt class="py-keyword">if</tt> <tt class="py-name">impl</tt> <tt class="py-keyword">is</tt> <tt class="py-name">None</tt><tt class="py-op">:</tt> </tt>
<a name="L1183"></a><tt class="py-lineno">1183</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt class="py-name">None</tt> </tt>
<a name="L1184"></a><tt class="py-lineno">1184</tt> <tt class="py-line"> <tt class="py-keyword">else</tt><tt class="py-op">:</tt> </tt>
<a name="L1185"></a><tt class="py-lineno">1185</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt class="py-name">Selectable</tt><tt class="py-op">(</tt><tt class="py-name">impl</tt><tt class="py-op">)</tt> </tt>
</div><a name="L1186"></a><tt class="py-lineno">1186</tt> <tt class="py-line"> </tt>
<a name="Selectable.__init__"></a><div id="Selectable.__init__-def"><a name="L1187"></a><tt class="py-lineno">1187</tt> <a class="py-toggle" href="#" id="Selectable.__init__-toggle" onclick="return toggle('Selectable.__init__');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Selectable-class.html#__init__">__init__</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">impl</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Selectable.__init__-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Selectable.__init__-expanded"><a name="L1188"></a><tt class="py-lineno">1188</tt> <tt class="py-line"> <tt id="link-241" class="py-name"><a title="proton.wrapper.Wrapper" class="py-name" href="#" onclick="return doclink('link-241', 'Wrapper', 'link-1');">Wrapper</a></tt><tt class="py-op">.</tt><tt id="link-242" class="py-name" targets="Method proton.Array.__init__()=proton.Array-class.html#__init__,Method proton.Collector.__init__()=proton.Collector-class.html#__init__,Method proton.Condition.__init__()=proton.Condition-class.html#__init__,Method proton.Connection.__init__()=proton.Connection-class.html#__init__,Method proton.Data.__init__()=proton.Data-class.html#__init__,Method proton.Delivery.__init__()=proton.Delivery-class.html#__init__,Method proton.Described.__init__()=proton.Described-class.html#__init__,Method proton.Disposition.__init__()=proton.Disposition-class.html#__init__,Method proton.Event.__init__()=proton.Event-class.html#__init__,Method proton.EventType.__init__()=proton.EventType-class.html#__init__,Method proton.Link.__init__()=proton.Link-class.html#__init__,Method proton.Message.__init__()=proton.Message-class.html#__init__,Method proton.Messenger.__init__()=proton.Messenger-class.html#__init__,Method proton.SASL.__init__()=proton.SASL-class.html#__init__,Method proton.SSLDomain.__init__()=proton.SSLDomain-class.html#__init__,Method proton.SSLSessionDetails.__init__()=proton.SSLSessionDetails-class.html#__init__,Method proton.Session.__init__()=proton.Session-class.html#__init__,Method proton.Terminus.__init__()=proton.Terminus-class.html#__init__,Method proton.Transport.__init__()=proton.Transport-class.html#__init__,Method proton.Url.PartDescriptor.__init__()=proton.Url.PartDescriptor-class.html#__init__,Method proton.Url.__init__()=proton.Url-class.html#__init__,Method proton.handlers.CFlowController.__init__()=proton.handlers.CFlowController-class.html#__init__,Method proton.handlers.CHandshaker.__init__()=proton.handlers.CHandshaker-class.html#__init__,Method proton.handlers.EndpointStateHandler.__init__()=proton.handlers.EndpointStateHandler-class.html#__init__,Method proton.handlers.IOHandler.__init__()=proton.handlers.IOHandler-class.html#__init__,Method proton.handlers.IncomingMessageHandler.__init__()=proton.handlers.IncomingMessageHandler-class.html#__init__,Method proton.handlers.MessagingHandler.__init__()=proton.handlers.MessagingHandler-class.html#__init__,Method proton.handlers.OutgoingMessageHandler.__init__()=proton.handlers.OutgoingMessageHandler-class.html#__init__,Method proton.handlers.PythonIO.__init__()=proton.handlers.PythonIO-class.html#__init__,Method proton.handlers.TransactionalClientHandler.__init__()=proton.handlers.TransactionalClientHandler-class.html#__init__,Method proton.reactor.Acceptor.__init__()=proton.reactor.Acceptor-class.html#__init__,Method proton.reactor.ApplicationEvent.__init__()=proton.reactor.ApplicationEvent-class.html#__init__,Method proton.reactor.Backoff.__init__()=proton.reactor.Backoff-class.html#__init__,Method proton.reactor.Connector.__init__()=proton.reactor.Connector-class.html#__init__,Method proton.reactor.Container.__init__()=proton.reactor.Container-class.html#__init__,Method proton.reactor.DynamicNodeProperties.__init__()=proton.reactor.DynamicNodeProperties-class.html#__init__,Method proton.reactor.EventInjector.__init__()=proton.reactor.EventInjector-class.html#__init__,Method proton.reactor.Filter.__init__()=proton.reactor.Filter-class.html#__init__,Method proton.reactor.GlobalOverrides.__init__()=proton.reactor.GlobalOverrides-class.html#__init__,Method proton.reactor.Reactor.__init__()=proton.reactor.Reactor-class.html#__init__,Method proton.reactor.SSLConfig.__init__()=proton.reactor.SSLConfig-class.html#__init__,Method proton.reactor.Selector.__init__()=proton.reactor.Selector-class.html#__init__,Method proton.reactor.SessionPerConnection.__init__()=proton.reactor.SessionPerConnection-class.html#__init__,Method proton.reactor.Task.__init__()=proton.reactor.Task-class.html#__init__,Method proton.reactor.Transaction.__init__()=proton.reactor.Transaction-class.html#__init__,Method proton.reactor.Urls.__init__()=proton.reactor.Urls-class.html#__init__,Method proton.utils.AtomicCount.__init__()=proton.utils.AtomicCount-class.html#__init__,Method proton.utils.BlockingConnection.__init__()=proton.utils.BlockingConnection-class.html#__init__,Method proton.utils.BlockingLink.__init__()=proton.utils.BlockingLink-class.html#__init__,Method proton.utils.BlockingReceiver.__init__()=proton.utils.BlockingReceiver-class.html#__init__,Method proton.utils.BlockingSender.__init__()=proton.utils.BlockingSender-class.html#__init__,Method proton.utils.ConnectionClosed.__init__()=proton.utils.ConnectionClosed-class.html#__init__,Method proton.utils.Fetcher.__init__()=proton.utils.Fetcher-class.html#__init__,Method proton.utils.LinkDetached.__init__()=proton.utils.LinkDetached-class.html#__init__,Method proton.utils.SendException.__init__()=proton.utils.SendException-class.html#__init__,Method proton.utils.SyncRequestResponse.__init__()=proton.utils.SyncRequestResponse-class.html#__init__,Method proton.wrapper.Wrapper.__init__()=proton.wrapper.Wrapper-class.html#__init__"><a title="proton.Array.__init__
proton.Collector.__init__
proton.Condition.__init__
proton.Connection.__init__
proton.Data.__init__
proton.Delivery.__init__
proton.Described.__init__
proton.Disposition.__init__
proton.Event.__init__
proton.EventType.__init__
proton.Link.__init__
proton.Message.__init__
proton.Messenger.__init__
proton.SASL.__init__
proton.SSLDomain.__init__
proton.SSLSessionDetails.__init__
proton.Session.__init__
proton.Terminus.__init__
proton.Transport.__init__
proton.Url.PartDescriptor.__init__
proton.Url.__init__
proton.handlers.CFlowController.__init__
proton.handlers.CHandshaker.__init__
proton.handlers.EndpointStateHandler.__init__
proton.handlers.IOHandler.__init__
proton.handlers.IncomingMessageHandler.__init__
proton.handlers.MessagingHandler.__init__
proton.handlers.OutgoingMessageHandler.__init__
proton.handlers.PythonIO.__init__
proton.handlers.TransactionalClientHandler.__init__
proton.reactor.Acceptor.__init__
proton.reactor.ApplicationEvent.__init__
proton.reactor.Backoff.__init__
proton.reactor.Connector.__init__
proton.reactor.Container.__init__
proton.reactor.DynamicNodeProperties.__init__
proton.reactor.EventInjector.__init__
proton.reactor.Filter.__init__
proton.reactor.GlobalOverrides.__init__
proton.reactor.Reactor.__init__
proton.reactor.SSLConfig.__init__
proton.reactor.Selector.__init__
proton.reactor.SessionPerConnection.__init__
proton.reactor.Task.__init__
proton.reactor.Transaction.__init__
proton.reactor.Urls.__init__
proton.utils.AtomicCount.__init__
proton.utils.BlockingConnection.__init__
proton.utils.BlockingLink.__init__
proton.utils.BlockingReceiver.__init__
proton.utils.BlockingSender.__init__
proton.utils.ConnectionClosed.__init__
proton.utils.Fetcher.__init__
proton.utils.LinkDetached.__init__
proton.utils.SendException.__init__
proton.utils.SyncRequestResponse.__init__
proton.wrapper.Wrapper.__init__" class="py-name" href="#" onclick="return doclink('link-242', '__init__', 'link-242');">__init__</a></tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">,</tt> <tt class="py-name">impl</tt><tt class="py-op">,</tt> <tt class="py-name">pn_selectable_attachments</tt><tt class="py-op">)</tt> </tt>
</div><a name="L1189"></a><tt class="py-lineno">1189</tt> <tt class="py-line"> </tt>
<a name="Selectable._init"></a><div id="Selectable._init-def"><a name="L1190"></a><tt class="py-lineno">1190</tt> <a class="py-toggle" href="#" id="Selectable._init-toggle" onclick="return toggle('Selectable._init');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Selectable-class.html#_init">_init</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Selectable._init-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Selectable._init-expanded"><a name="L1191"></a><tt class="py-lineno">1191</tt> <tt class="py-line"> <tt class="py-keyword">pass</tt> </tt>
</div><a name="L1192"></a><tt class="py-lineno">1192</tt> <tt class="py-line"> </tt>
<a name="Selectable.fileno"></a><div id="Selectable.fileno-def"><a name="L1193"></a><tt class="py-lineno">1193</tt> <a class="py-toggle" href="#" id="Selectable.fileno-toggle" onclick="return toggle('Selectable.fileno');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Selectable-class.html#fileno">fileno</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">fd</tt> <tt class="py-op">=</tt> <tt id="link-243" class="py-name"><a title="proton._DEFAULT" class="py-name" href="#" onclick="return doclink('link-243', '_DEFAULT', 'link-240');">_DEFAULT</a></tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Selectable.fileno-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Selectable.fileno-expanded"><a name="L1194"></a><tt class="py-lineno">1194</tt> <tt class="py-line"> <tt class="py-keyword">if</tt> <tt class="py-name">fd</tt> <tt class="py-keyword">is</tt> <tt id="link-244" class="py-name"><a title="proton._DEFAULT" class="py-name" href="#" onclick="return doclink('link-244', '_DEFAULT', 'link-240');">_DEFAULT</a></tt><tt class="py-op">:</tt> </tt>
<a name="L1195"></a><tt class="py-lineno">1195</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt class="py-name">pn_selectable_get_fd</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_impl</tt><tt class="py-op">)</tt> </tt>
<a name="L1196"></a><tt class="py-lineno">1196</tt> <tt class="py-line"> <tt class="py-keyword">elif</tt> <tt class="py-name">fd</tt> <tt class="py-keyword">is</tt> <tt class="py-name">None</tt><tt class="py-op">:</tt> </tt>
<a name="L1197"></a><tt class="py-lineno">1197</tt> <tt class="py-line"> <tt class="py-name">pn_selectable_set_fd</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_impl</tt><tt class="py-op">,</tt> <tt class="py-name">PN_INVALID_SOCKET</tt><tt class="py-op">)</tt> </tt>
<a name="L1198"></a><tt class="py-lineno">1198</tt> <tt class="py-line"> <tt class="py-keyword">else</tt><tt class="py-op">:</tt> </tt>
<a name="L1199"></a><tt class="py-lineno">1199</tt> <tt class="py-line"> <tt class="py-name">pn_selectable_set_fd</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_impl</tt><tt class="py-op">,</tt> <tt class="py-name">fd</tt><tt class="py-op">)</tt> </tt>
</div><a name="L1200"></a><tt class="py-lineno">1200</tt> <tt class="py-line"> </tt>
<a name="Selectable._is_reading"></a><div id="Selectable._is_reading-def"><a name="L1201"></a><tt class="py-lineno">1201</tt> <a class="py-toggle" href="#" id="Selectable._is_reading-toggle" onclick="return toggle('Selectable._is_reading');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Selectable-class.html#_is_reading">_is_reading</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Selectable._is_reading-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Selectable._is_reading-expanded"><a name="L1202"></a><tt class="py-lineno">1202</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt class="py-name">pn_selectable_is_reading</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_impl</tt><tt class="py-op">)</tt> </tt>
</div><a name="L1203"></a><tt class="py-lineno">1203</tt> <tt class="py-line"> </tt>
<a name="Selectable._set_reading"></a><div id="Selectable._set_reading-def"><a name="L1204"></a><tt class="py-lineno">1204</tt> <a class="py-toggle" href="#" id="Selectable._set_reading-toggle" onclick="return toggle('Selectable._set_reading');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Selectable-class.html#_set_reading">_set_reading</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">val</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Selectable._set_reading-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Selectable._set_reading-expanded"><a name="L1205"></a><tt class="py-lineno">1205</tt> <tt class="py-line"> <tt class="py-name">pn_selectable_set_reading</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_impl</tt><tt class="py-op">,</tt> <tt class="py-name">bool</tt><tt class="py-op">(</tt><tt class="py-name">val</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
</div><a name="L1206"></a><tt class="py-lineno">1206</tt> <tt class="py-line"> </tt>
<a name="L1207"></a><tt class="py-lineno">1207</tt> <tt class="py-line"> <tt class="py-name">reading</tt> <tt class="py-op">=</tt> <tt class="py-name">property</tt><tt class="py-op">(</tt><tt class="py-name">_is_reading</tt><tt class="py-op">,</tt> <tt class="py-name">_set_reading</tt><tt class="py-op">)</tt> </tt>
<a name="L1208"></a><tt class="py-lineno">1208</tt> <tt class="py-line"> </tt>
<a name="Selectable._is_writing"></a><div id="Selectable._is_writing-def"><a name="L1209"></a><tt class="py-lineno">1209</tt> <a class="py-toggle" href="#" id="Selectable._is_writing-toggle" onclick="return toggle('Selectable._is_writing');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Selectable-class.html#_is_writing">_is_writing</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Selectable._is_writing-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Selectable._is_writing-expanded"><a name="L1210"></a><tt class="py-lineno">1210</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt class="py-name">pn_selectable_is_writing</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_impl</tt><tt class="py-op">)</tt> </tt>
</div><a name="L1211"></a><tt class="py-lineno">1211</tt> <tt class="py-line"> </tt>
<a name="Selectable._set_writing"></a><div id="Selectable._set_writing-def"><a name="L1212"></a><tt class="py-lineno">1212</tt> <a class="py-toggle" href="#" id="Selectable._set_writing-toggle" onclick="return toggle('Selectable._set_writing');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Selectable-class.html#_set_writing">_set_writing</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">val</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Selectable._set_writing-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Selectable._set_writing-expanded"><a name="L1213"></a><tt class="py-lineno">1213</tt> <tt class="py-line"> <tt class="py-name">pn_selectable_set_writing</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_impl</tt><tt class="py-op">,</tt> <tt class="py-name">bool</tt><tt class="py-op">(</tt><tt class="py-name">val</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
</div><a name="L1214"></a><tt class="py-lineno">1214</tt> <tt class="py-line"> </tt>
<a name="L1215"></a><tt class="py-lineno">1215</tt> <tt class="py-line"> <tt class="py-name">writing</tt> <tt class="py-op">=</tt> <tt class="py-name">property</tt><tt class="py-op">(</tt><tt class="py-name">_is_writing</tt><tt class="py-op">,</tt> <tt class="py-name">_set_writing</tt><tt class="py-op">)</tt> </tt>
<a name="L1216"></a><tt class="py-lineno">1216</tt> <tt class="py-line"> </tt>
<a name="Selectable._get_deadline"></a><div id="Selectable._get_deadline-def"><a name="L1217"></a><tt class="py-lineno">1217</tt> <a class="py-toggle" href="#" id="Selectable._get_deadline-toggle" onclick="return toggle('Selectable._get_deadline');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Selectable-class.html#_get_deadline">_get_deadline</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Selectable._get_deadline-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Selectable._get_deadline-expanded"><a name="L1218"></a><tt class="py-lineno">1218</tt> <tt class="py-line"> <tt class="py-name">tstamp</tt> <tt class="py-op">=</tt> <tt class="py-name">pn_selectable_get_deadline</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_impl</tt><tt class="py-op">)</tt> </tt>
<a name="L1219"></a><tt class="py-lineno">1219</tt> <tt class="py-line"> <tt class="py-keyword">if</tt> <tt class="py-name">tstamp</tt><tt class="py-op">:</tt> </tt>
<a name="L1220"></a><tt class="py-lineno">1220</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt class="py-name">millis2secs</tt><tt class="py-op">(</tt><tt class="py-name">tstamp</tt><tt class="py-op">)</tt> </tt>
<a name="L1221"></a><tt class="py-lineno">1221</tt> <tt class="py-line"> <tt class="py-keyword">else</tt><tt class="py-op">:</tt> </tt>
<a name="L1222"></a><tt class="py-lineno">1222</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt class="py-name">None</tt> </tt>
</div><a name="L1223"></a><tt class="py-lineno">1223</tt> <tt class="py-line"> </tt>
<a name="Selectable._set_deadline"></a><div id="Selectable._set_deadline-def"><a name="L1224"></a><tt class="py-lineno">1224</tt> <a class="py-toggle" href="#" id="Selectable._set_deadline-toggle" onclick="return toggle('Selectable._set_deadline');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Selectable-class.html#_set_deadline">_set_deadline</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">deadline</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Selectable._set_deadline-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Selectable._set_deadline-expanded"><a name="L1225"></a><tt class="py-lineno">1225</tt> <tt class="py-line"> <tt class="py-name">pn_selectable_set_deadline</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_impl</tt><tt class="py-op">,</tt> <tt class="py-name">secs2millis</tt><tt class="py-op">(</tt><tt id="link-245" class="py-name" targets="Variable proton.Messenger.deadline=proton.Messenger-class.html#deadline"><a title="proton.Messenger.deadline" class="py-name" href="#" onclick="return doclink('link-245', 'deadline', 'link-245');">deadline</a></tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
</div><a name="L1226"></a><tt class="py-lineno">1226</tt> <tt class="py-line"> </tt>
<a name="L1227"></a><tt class="py-lineno">1227</tt> <tt class="py-line"> <tt id="link-246" class="py-name"><a title="proton.Messenger.deadline" class="py-name" href="#" onclick="return doclink('link-246', 'deadline', 'link-245');">deadline</a></tt> <tt class="py-op">=</tt> <tt class="py-name">property</tt><tt class="py-op">(</tt><tt class="py-name">_get_deadline</tt><tt class="py-op">,</tt> <tt class="py-name">_set_deadline</tt><tt class="py-op">)</tt> </tt>
<a name="L1228"></a><tt class="py-lineno">1228</tt> <tt class="py-line"> </tt>
<a name="Selectable.readable"></a><div id="Selectable.readable-def"><a name="L1229"></a><tt class="py-lineno">1229</tt> <a class="py-toggle" href="#" id="Selectable.readable-toggle" onclick="return toggle('Selectable.readable');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Selectable-class.html#readable">readable</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Selectable.readable-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Selectable.readable-expanded"><a name="L1230"></a><tt class="py-lineno">1230</tt> <tt class="py-line"> <tt class="py-name">pn_selectable_readable</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_impl</tt><tt class="py-op">)</tt> </tt>
</div><a name="L1231"></a><tt class="py-lineno">1231</tt> <tt class="py-line"> </tt>
<a name="Selectable.writable"></a><div id="Selectable.writable-def"><a name="L1232"></a><tt class="py-lineno">1232</tt> <a class="py-toggle" href="#" id="Selectable.writable-toggle" onclick="return toggle('Selectable.writable');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Selectable-class.html#writable">writable</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Selectable.writable-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Selectable.writable-expanded"><a name="L1233"></a><tt class="py-lineno">1233</tt> <tt class="py-line"> <tt class="py-name">pn_selectable_writable</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_impl</tt><tt class="py-op">)</tt> </tt>
</div><a name="L1234"></a><tt class="py-lineno">1234</tt> <tt class="py-line"> </tt>
<a name="Selectable.expired"></a><div id="Selectable.expired-def"><a name="L1235"></a><tt class="py-lineno">1235</tt> <a class="py-toggle" href="#" id="Selectable.expired-toggle" onclick="return toggle('Selectable.expired');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Selectable-class.html#expired">expired</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Selectable.expired-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Selectable.expired-expanded"><a name="L1236"></a><tt class="py-lineno">1236</tt> <tt class="py-line"> <tt class="py-name">pn_selectable_expired</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_impl</tt><tt class="py-op">)</tt> </tt>
</div><a name="L1237"></a><tt class="py-lineno">1237</tt> <tt class="py-line"> </tt>
<a name="Selectable._is_registered"></a><div id="Selectable._is_registered-def"><a name="L1238"></a><tt class="py-lineno">1238</tt> <a class="py-toggle" href="#" id="Selectable._is_registered-toggle" onclick="return toggle('Selectable._is_registered');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Selectable-class.html#_is_registered">_is_registered</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Selectable._is_registered-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Selectable._is_registered-expanded"><a name="L1239"></a><tt class="py-lineno">1239</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt class="py-name">pn_selectable_is_registered</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_impl</tt><tt class="py-op">)</tt> </tt>
</div><a name="L1240"></a><tt class="py-lineno">1240</tt> <tt class="py-line"> </tt>
<a name="Selectable._set_registered"></a><div id="Selectable._set_registered-def"><a name="L1241"></a><tt class="py-lineno">1241</tt> <a class="py-toggle" href="#" id="Selectable._set_registered-toggle" onclick="return toggle('Selectable._set_registered');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Selectable-class.html#_set_registered">_set_registered</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">registered</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Selectable._set_registered-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Selectable._set_registered-expanded"><a name="L1242"></a><tt class="py-lineno">1242</tt> <tt class="py-line"> <tt class="py-name">pn_selectable_set_registered</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_impl</tt><tt class="py-op">,</tt> <tt class="py-name">registered</tt><tt class="py-op">)</tt> </tt>
</div><a name="L1243"></a><tt class="py-lineno">1243</tt> <tt class="py-line"> </tt>
<a name="L1244"></a><tt class="py-lineno">1244</tt> <tt class="py-line"> <tt class="py-name">registered</tt> <tt class="py-op">=</tt> <tt class="py-name">property</tt><tt class="py-op">(</tt><tt class="py-name">_is_registered</tt><tt class="py-op">,</tt> <tt class="py-name">_set_registered</tt><tt class="py-op">,</tt> </tt>
<a name="L1245"></a><tt class="py-lineno">1245</tt> <tt class="py-line"> <tt class="py-name">doc</tt><tt class="py-op">=</tt><tt class="py-string">"""</tt> </tt>
<a name="L1246"></a><tt class="py-lineno">1246</tt> <tt class="py-line"><tt class="py-string">The registered property may be get/set by an I/O polling system to</tt> </tt>
<a name="L1247"></a><tt class="py-lineno">1247</tt> <tt class="py-line"><tt class="py-string">indicate whether the fd has been registered or not.</tt> </tt>
<a name="L1248"></a><tt class="py-lineno">1248</tt> <tt class="py-line"><tt class="py-string">"""</tt><tt class="py-op">)</tt> </tt>
<a name="L1249"></a><tt class="py-lineno">1249</tt> <tt class="py-line"> </tt>
<a name="L1250"></a><tt class="py-lineno">1250</tt> <tt class="py-line"> <tt class="py-decorator">@</tt><tt class="py-decorator">property</tt> </tt>
<a name="Selectable.is_terminal"></a><div id="Selectable.is_terminal-def"><a name="L1251"></a><tt class="py-lineno">1251</tt> <a class="py-toggle" href="#" id="Selectable.is_terminal-toggle" onclick="return toggle('Selectable.is_terminal');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Selectable-class.html#is_terminal">is_terminal</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Selectable.is_terminal-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Selectable.is_terminal-expanded"><a name="L1252"></a><tt class="py-lineno">1252</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt class="py-name">pn_selectable_is_terminal</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_impl</tt><tt class="py-op">)</tt> </tt>
</div><a name="L1253"></a><tt class="py-lineno">1253</tt> <tt class="py-line"> </tt>
<a name="Selectable.terminate"></a><div id="Selectable.terminate-def"><a name="L1254"></a><tt class="py-lineno">1254</tt> <a class="py-toggle" href="#" id="Selectable.terminate-toggle" onclick="return toggle('Selectable.terminate');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Selectable-class.html#terminate">terminate</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Selectable.terminate-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Selectable.terminate-expanded"><a name="L1255"></a><tt class="py-lineno">1255</tt> <tt class="py-line"> <tt class="py-name">pn_selectable_terminate</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_impl</tt><tt class="py-op">)</tt> </tt>
</div><a name="L1256"></a><tt class="py-lineno">1256</tt> <tt class="py-line"> </tt>
<a name="Selectable.release"></a><div id="Selectable.release-def"><a name="L1257"></a><tt class="py-lineno">1257</tt> <a class="py-toggle" href="#" id="Selectable.release-toggle" onclick="return toggle('Selectable.release');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Selectable-class.html#release">release</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Selectable.release-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Selectable.release-expanded"><a name="L1258"></a><tt class="py-lineno">1258</tt> <tt class="py-line"> <tt class="py-name">pn_selectable_release</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_impl</tt><tt class="py-op">)</tt> </tt>
</div></div><a name="L1259"></a><tt class="py-lineno">1259</tt> <tt class="py-line"> </tt>
<a name="DataException"></a><div id="DataException-def"><a name="L1260"></a><tt class="py-lineno">1260</tt> <a class="py-toggle" href="#" id="DataException-toggle" onclick="return toggle('DataException');">-</a><tt class="py-line"><tt class="py-keyword">class</tt> <a class="py-def-name" href="proton.DataException-class.html">DataException</a><tt class="py-op">(</tt><tt class="py-base-class">ProtonException</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="DataException-collapsed" style="display:none;" pad="++++" indent="++++"></div><div id="DataException-expanded"><a name="L1261"></a><tt class="py-lineno">1261</tt> <tt class="py-line"> <tt class="py-docstring">"""</tt> </tt>
<a name="L1262"></a><tt class="py-lineno">1262</tt> <tt class="py-line"><tt class="py-docstring"> The DataException class is the root of the Data exception hierarchy.</tt> </tt>
<a name="L1263"></a><tt class="py-lineno">1263</tt> <tt class="py-line"><tt class="py-docstring"> All exceptions raised by the Data class extend this exception.</tt> </tt>
<a name="L1264"></a><tt class="py-lineno">1264</tt> <tt class="py-line"><tt class="py-docstring"> """</tt> </tt>
<a name="L1265"></a><tt class="py-lineno">1265</tt> <tt class="py-line"> <tt class="py-keyword">pass</tt> </tt>
</div><a name="L1266"></a><tt class="py-lineno">1266</tt> <tt class="py-line"> </tt>
<a name="UnmappedType"></a><div id="UnmappedType-def"><a name="L1267"></a><tt class="py-lineno">1267</tt> <a class="py-toggle" href="#" id="UnmappedType-toggle" onclick="return toggle('UnmappedType');">-</a><tt class="py-line"><tt class="py-keyword">class</tt> <a class="py-def-name" href="proton.UnmappedType-class.html">UnmappedType</a><tt class="py-op">:</tt> </tt>
</div><div id="UnmappedType-collapsed" style="display:none;" pad="++++" indent="++++"></div><div id="UnmappedType-expanded"><a name="L1268"></a><tt class="py-lineno">1268</tt> <tt class="py-line"> </tt>
<a name="UnmappedType.__init__"></a><div id="UnmappedType.__init__-def"><a name="L1269"></a><tt class="py-lineno">1269</tt> <a class="py-toggle" href="#" id="UnmappedType.__init__-toggle" onclick="return toggle('UnmappedType.__init__');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.UnmappedType-class.html#__init__">__init__</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">msg</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="UnmappedType.__init__-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="UnmappedType.__init__-expanded"><a name="L1270"></a><tt class="py-lineno">1270</tt> <tt class="py-line"> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">msg</tt> <tt class="py-op">=</tt> <tt class="py-name">msg</tt> </tt>
</div><a name="L1271"></a><tt class="py-lineno">1271</tt> <tt class="py-line"> </tt>
<a name="UnmappedType.__repr__"></a><div id="UnmappedType.__repr__-def"><a name="L1272"></a><tt class="py-lineno">1272</tt> <a class="py-toggle" href="#" id="UnmappedType.__repr__-toggle" onclick="return toggle('UnmappedType.__repr__');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.UnmappedType-class.html#__repr__">__repr__</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="UnmappedType.__repr__-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="UnmappedType.__repr__-expanded"><a name="L1273"></a><tt class="py-lineno">1273</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt class="py-string">"UnmappedType(%s)"</tt> <tt class="py-op">%</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">msg</tt> </tt>
</div></div><a name="L1274"></a><tt class="py-lineno">1274</tt> <tt class="py-line"> </tt>
<a name="ulong"></a><div id="ulong-def"><a name="L1275"></a><tt class="py-lineno">1275</tt> <a class="py-toggle" href="#" id="ulong-toggle" onclick="return toggle('ulong');">-</a><tt class="py-line"><tt class="py-keyword">class</tt> <a class="py-def-name" href="proton.ulong-class.html">ulong</a><tt class="py-op">(</tt><tt class="py-base-class">long</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="ulong-collapsed" style="display:none;" pad="++++" indent="++++"></div><div id="ulong-expanded"><a name="L1276"></a><tt class="py-lineno">1276</tt> <tt class="py-line"> </tt>
<a name="ulong.__repr__"></a><div id="ulong.__repr__-def"><a name="L1277"></a><tt class="py-lineno">1277</tt> <a class="py-toggle" href="#" id="ulong.__repr__-toggle" onclick="return toggle('ulong.__repr__');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.ulong-class.html#__repr__">__repr__</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="ulong.__repr__-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="ulong.__repr__-expanded"><a name="L1278"></a><tt class="py-lineno">1278</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt class="py-string">"ulong(%s)"</tt> <tt class="py-op">%</tt> <tt class="py-name">long</tt><tt class="py-op">.</tt><tt id="link-247" class="py-name" targets="Method proton.Array.__repr__()=proton.Array-class.html#__repr__,Method proton.Condition.__repr__()=proton.Condition-class.html#__repr__,Method proton.Described.__repr__()=proton.Described-class.html#__repr__,Method proton.Event.__repr__()=proton.Event-class.html#__repr__,Method proton.EventType.__repr__()=proton.EventType-class.html#__repr__,Method proton.Message.__repr__()=proton.Message-class.html#__repr__,Method proton.Url.__repr__()=proton.Url-class.html#__repr__,Method proton.byte.__repr__()=proton.byte-class.html#__repr__,Method proton.char.__repr__()=proton.char-class.html#__repr__,Method proton.decimal128.__repr__()=proton.decimal128-class.html#__repr__,Method proton.decimal32.__repr__()=proton.decimal32-class.html#__repr__,Method proton.decimal64.__repr__()=proton.decimal64-class.html#__repr__,Method proton.float32.__repr__()=proton.float32-class.html#__repr__,Method proton.int32.__repr__()=proton.int32-class.html#__repr__,Method proton.reactor.ApplicationEvent.__repr__()=proton.reactor.ApplicationEvent-class.html#__repr__,Method proton.short.__repr__()=proton.short-class.html#__repr__,Method proton.symbol.__repr__()=proton.symbol-class.html#__repr__,Method proton.timestamp.__repr__()=proton.timestamp-class.html#__repr__,Method proton.ubyte.__repr__()=proton.ubyte-class.html#__repr__,Method proton.uint.__repr__()=proton.uint-class.html#__repr__,Method proton.ulong.__repr__()=proton.ulong-class.html#__repr__,Method proton.ushort.__repr__()=proton.ushort-class.html#__repr__,Method proton.wrapper.Wrapper.__repr__()=proton.wrapper.Wrapper-class.html#__repr__"><a title="proton.Array.__repr__
proton.Condition.__repr__
proton.Described.__repr__
proton.Event.__repr__
proton.EventType.__repr__
proton.Message.__repr__
proton.Url.__repr__
proton.byte.__repr__
proton.char.__repr__
proton.decimal128.__repr__
proton.decimal32.__repr__
proton.decimal64.__repr__
proton.float32.__repr__
proton.int32.__repr__
proton.reactor.ApplicationEvent.__repr__
proton.short.__repr__
proton.symbol.__repr__
proton.timestamp.__repr__
proton.ubyte.__repr__
proton.uint.__repr__
proton.ulong.__repr__
proton.ushort.__repr__
proton.wrapper.Wrapper.__repr__" class="py-name" href="#" onclick="return doclink('link-247', '__repr__', 'link-247');">__repr__</a></tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">)</tt> </tt>
</div></div><a name="L1279"></a><tt class="py-lineno">1279</tt> <tt class="py-line"> </tt>
<a name="timestamp"></a><div id="timestamp-def"><a name="L1280"></a><tt class="py-lineno">1280</tt> <a class="py-toggle" href="#" id="timestamp-toggle" onclick="return toggle('timestamp');">-</a><tt class="py-line"><tt class="py-keyword">class</tt> <a class="py-def-name" href="proton.timestamp-class.html">timestamp</a><tt class="py-op">(</tt><tt class="py-base-class">long</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="timestamp-collapsed" style="display:none;" pad="++++" indent="++++"></div><div id="timestamp-expanded"><a name="L1281"></a><tt class="py-lineno">1281</tt> <tt class="py-line"> </tt>
<a name="timestamp.__repr__"></a><div id="timestamp.__repr__-def"><a name="L1282"></a><tt class="py-lineno">1282</tt> <a class="py-toggle" href="#" id="timestamp.__repr__-toggle" onclick="return toggle('timestamp.__repr__');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.timestamp-class.html#__repr__">__repr__</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="timestamp.__repr__-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="timestamp.__repr__-expanded"><a name="L1283"></a><tt class="py-lineno">1283</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt class="py-string">"timestamp(%s)"</tt> <tt class="py-op">%</tt> <tt class="py-name">long</tt><tt class="py-op">.</tt><tt id="link-248" class="py-name"><a title="proton.Array.__repr__
proton.Condition.__repr__
proton.Described.__repr__
proton.Event.__repr__
proton.EventType.__repr__
proton.Message.__repr__
proton.Url.__repr__
proton.byte.__repr__
proton.char.__repr__
proton.decimal128.__repr__
proton.decimal32.__repr__
proton.decimal64.__repr__
proton.float32.__repr__
proton.int32.__repr__
proton.reactor.ApplicationEvent.__repr__
proton.short.__repr__
proton.symbol.__repr__
proton.timestamp.__repr__
proton.ubyte.__repr__
proton.uint.__repr__
proton.ulong.__repr__
proton.ushort.__repr__
proton.wrapper.Wrapper.__repr__" class="py-name" href="#" onclick="return doclink('link-248', '__repr__', 'link-247');">__repr__</a></tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">)</tt> </tt>
</div></div><a name="L1284"></a><tt class="py-lineno">1284</tt> <tt class="py-line"> </tt>
<a name="symbol"></a><div id="symbol-def"><a name="L1285"></a><tt class="py-lineno">1285</tt> <a class="py-toggle" href="#" id="symbol-toggle" onclick="return toggle('symbol');">-</a><tt class="py-line"><tt class="py-keyword">class</tt> <a class="py-def-name" href="proton.symbol-class.html">symbol</a><tt class="py-op">(</tt><tt class="py-base-class">unicode</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="symbol-collapsed" style="display:none;" pad="++++" indent="++++"></div><div id="symbol-expanded"><a name="L1286"></a><tt class="py-lineno">1286</tt> <tt class="py-line"> </tt>
<a name="symbol.__repr__"></a><div id="symbol.__repr__-def"><a name="L1287"></a><tt class="py-lineno">1287</tt> <a class="py-toggle" href="#" id="symbol.__repr__-toggle" onclick="return toggle('symbol.__repr__');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.symbol-class.html#__repr__">__repr__</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="symbol.__repr__-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="symbol.__repr__-expanded"><a name="L1288"></a><tt class="py-lineno">1288</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt class="py-string">"symbol(%s)"</tt> <tt class="py-op">%</tt> <tt class="py-name">unicode</tt><tt class="py-op">.</tt><tt id="link-249" class="py-name"><a title="proton.Array.__repr__
proton.Condition.__repr__
proton.Described.__repr__
proton.Event.__repr__
proton.EventType.__repr__
proton.Message.__repr__
proton.Url.__repr__
proton.byte.__repr__
proton.char.__repr__
proton.decimal128.__repr__
proton.decimal32.__repr__
proton.decimal64.__repr__
proton.float32.__repr__
proton.int32.__repr__
proton.reactor.ApplicationEvent.__repr__
proton.short.__repr__
proton.symbol.__repr__
proton.timestamp.__repr__
proton.ubyte.__repr__
proton.uint.__repr__
proton.ulong.__repr__
proton.ushort.__repr__
proton.wrapper.Wrapper.__repr__" class="py-name" href="#" onclick="return doclink('link-249', '__repr__', 'link-247');">__repr__</a></tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">)</tt> </tt>
</div></div><a name="L1289"></a><tt class="py-lineno">1289</tt> <tt class="py-line"> </tt>
<a name="char"></a><div id="char-def"><a name="L1290"></a><tt class="py-lineno">1290</tt> <a class="py-toggle" href="#" id="char-toggle" onclick="return toggle('char');">-</a><tt class="py-line"><tt class="py-keyword">class</tt> <a class="py-def-name" href="proton.char-class.html">char</a><tt class="py-op">(</tt><tt class="py-base-class">unicode</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="char-collapsed" style="display:none;" pad="++++" indent="++++"></div><div id="char-expanded"><a name="L1291"></a><tt class="py-lineno">1291</tt> <tt class="py-line"> </tt>
<a name="char.__repr__"></a><div id="char.__repr__-def"><a name="L1292"></a><tt class="py-lineno">1292</tt> <a class="py-toggle" href="#" id="char.__repr__-toggle" onclick="return toggle('char.__repr__');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.char-class.html#__repr__">__repr__</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="char.__repr__-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="char.__repr__-expanded"><a name="L1293"></a><tt class="py-lineno">1293</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt class="py-string">"char(%s)"</tt> <tt class="py-op">%</tt> <tt class="py-name">unicode</tt><tt class="py-op">.</tt><tt id="link-250" class="py-name"><a title="proton.Array.__repr__
proton.Condition.__repr__
proton.Described.__repr__
proton.Event.__repr__
proton.EventType.__repr__
proton.Message.__repr__
proton.Url.__repr__
proton.byte.__repr__
proton.char.__repr__
proton.decimal128.__repr__
proton.decimal32.__repr__
proton.decimal64.__repr__
proton.float32.__repr__
proton.int32.__repr__
proton.reactor.ApplicationEvent.__repr__
proton.short.__repr__
proton.symbol.__repr__
proton.timestamp.__repr__
proton.ubyte.__repr__
proton.uint.__repr__
proton.ulong.__repr__
proton.ushort.__repr__
proton.wrapper.Wrapper.__repr__" class="py-name" href="#" onclick="return doclink('link-250', '__repr__', 'link-247');">__repr__</a></tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">)</tt> </tt>
</div></div><a name="L1294"></a><tt class="py-lineno">1294</tt> <tt class="py-line"> </tt>
<a name="byte"></a><div id="byte-def"><a name="L1295"></a><tt class="py-lineno">1295</tt> <a class="py-toggle" href="#" id="byte-toggle" onclick="return toggle('byte');">-</a><tt class="py-line"><tt class="py-keyword">class</tt> <a class="py-def-name" href="proton.byte-class.html">byte</a><tt class="py-op">(</tt><tt class="py-base-class">int</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="byte-collapsed" style="display:none;" pad="++++" indent="++++"></div><div id="byte-expanded"><a name="L1296"></a><tt class="py-lineno">1296</tt> <tt class="py-line"> </tt>
<a name="byte.__repr__"></a><div id="byte.__repr__-def"><a name="L1297"></a><tt class="py-lineno">1297</tt> <a class="py-toggle" href="#" id="byte.__repr__-toggle" onclick="return toggle('byte.__repr__');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.byte-class.html#__repr__">__repr__</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="byte.__repr__-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="byte.__repr__-expanded"><a name="L1298"></a><tt class="py-lineno">1298</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt class="py-string">"byte(%s)"</tt> <tt class="py-op">%</tt> <tt class="py-name">int</tt><tt class="py-op">.</tt><tt id="link-251" class="py-name"><a title="proton.Array.__repr__
proton.Condition.__repr__
proton.Described.__repr__
proton.Event.__repr__
proton.EventType.__repr__
proton.Message.__repr__
proton.Url.__repr__
proton.byte.__repr__
proton.char.__repr__
proton.decimal128.__repr__
proton.decimal32.__repr__
proton.decimal64.__repr__
proton.float32.__repr__
proton.int32.__repr__
proton.reactor.ApplicationEvent.__repr__
proton.short.__repr__
proton.symbol.__repr__
proton.timestamp.__repr__
proton.ubyte.__repr__
proton.uint.__repr__
proton.ulong.__repr__
proton.ushort.__repr__
proton.wrapper.Wrapper.__repr__" class="py-name" href="#" onclick="return doclink('link-251', '__repr__', 'link-247');">__repr__</a></tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">)</tt> </tt>
</div></div><a name="L1299"></a><tt class="py-lineno">1299</tt> <tt class="py-line"> </tt>
<a name="short"></a><div id="short-def"><a name="L1300"></a><tt class="py-lineno">1300</tt> <a class="py-toggle" href="#" id="short-toggle" onclick="return toggle('short');">-</a><tt class="py-line"><tt class="py-keyword">class</tt> <a class="py-def-name" href="proton.short-class.html">short</a><tt class="py-op">(</tt><tt class="py-base-class">int</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="short-collapsed" style="display:none;" pad="++++" indent="++++"></div><div id="short-expanded"><a name="L1301"></a><tt class="py-lineno">1301</tt> <tt class="py-line"> </tt>
<a name="short.__repr__"></a><div id="short.__repr__-def"><a name="L1302"></a><tt class="py-lineno">1302</tt> <a class="py-toggle" href="#" id="short.__repr__-toggle" onclick="return toggle('short.__repr__');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.short-class.html#__repr__">__repr__</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="short.__repr__-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="short.__repr__-expanded"><a name="L1303"></a><tt class="py-lineno">1303</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt class="py-string">"short(%s)"</tt> <tt class="py-op">%</tt> <tt class="py-name">int</tt><tt class="py-op">.</tt><tt id="link-252" class="py-name"><a title="proton.Array.__repr__
proton.Condition.__repr__
proton.Described.__repr__
proton.Event.__repr__
proton.EventType.__repr__
proton.Message.__repr__
proton.Url.__repr__
proton.byte.__repr__
proton.char.__repr__
proton.decimal128.__repr__
proton.decimal32.__repr__
proton.decimal64.__repr__
proton.float32.__repr__
proton.int32.__repr__
proton.reactor.ApplicationEvent.__repr__
proton.short.__repr__
proton.symbol.__repr__
proton.timestamp.__repr__
proton.ubyte.__repr__
proton.uint.__repr__
proton.ulong.__repr__
proton.ushort.__repr__
proton.wrapper.Wrapper.__repr__" class="py-name" href="#" onclick="return doclink('link-252', '__repr__', 'link-247');">__repr__</a></tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">)</tt> </tt>
</div></div><a name="L1304"></a><tt class="py-lineno">1304</tt> <tt class="py-line"> </tt>
<a name="int32"></a><div id="int32-def"><a name="L1305"></a><tt class="py-lineno">1305</tt> <a class="py-toggle" href="#" id="int32-toggle" onclick="return toggle('int32');">-</a><tt class="py-line"><tt class="py-keyword">class</tt> <a class="py-def-name" href="proton.int32-class.html">int32</a><tt class="py-op">(</tt><tt class="py-base-class">int</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="int32-collapsed" style="display:none;" pad="++++" indent="++++"></div><div id="int32-expanded"><a name="L1306"></a><tt class="py-lineno">1306</tt> <tt class="py-line"> </tt>
<a name="int32.__repr__"></a><div id="int32.__repr__-def"><a name="L1307"></a><tt class="py-lineno">1307</tt> <a class="py-toggle" href="#" id="int32.__repr__-toggle" onclick="return toggle('int32.__repr__');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.int32-class.html#__repr__">__repr__</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="int32.__repr__-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="int32.__repr__-expanded"><a name="L1308"></a><tt class="py-lineno">1308</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt class="py-string">"int32(%s)"</tt> <tt class="py-op">%</tt> <tt class="py-name">int</tt><tt class="py-op">.</tt><tt id="link-253" class="py-name"><a title="proton.Array.__repr__
proton.Condition.__repr__
proton.Described.__repr__
proton.Event.__repr__
proton.EventType.__repr__
proton.Message.__repr__
proton.Url.__repr__
proton.byte.__repr__
proton.char.__repr__
proton.decimal128.__repr__
proton.decimal32.__repr__
proton.decimal64.__repr__
proton.float32.__repr__
proton.int32.__repr__
proton.reactor.ApplicationEvent.__repr__
proton.short.__repr__
proton.symbol.__repr__
proton.timestamp.__repr__
proton.ubyte.__repr__
proton.uint.__repr__
proton.ulong.__repr__
proton.ushort.__repr__
proton.wrapper.Wrapper.__repr__" class="py-name" href="#" onclick="return doclink('link-253', '__repr__', 'link-247');">__repr__</a></tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">)</tt> </tt>
</div></div><a name="L1309"></a><tt class="py-lineno">1309</tt> <tt class="py-line"> </tt>
<a name="ubyte"></a><div id="ubyte-def"><a name="L1310"></a><tt class="py-lineno">1310</tt> <a class="py-toggle" href="#" id="ubyte-toggle" onclick="return toggle('ubyte');">-</a><tt class="py-line"><tt class="py-keyword">class</tt> <a class="py-def-name" href="proton.ubyte-class.html">ubyte</a><tt class="py-op">(</tt><tt class="py-base-class">int</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="ubyte-collapsed" style="display:none;" pad="++++" indent="++++"></div><div id="ubyte-expanded"><a name="L1311"></a><tt class="py-lineno">1311</tt> <tt class="py-line"> </tt>
<a name="ubyte.__repr__"></a><div id="ubyte.__repr__-def"><a name="L1312"></a><tt class="py-lineno">1312</tt> <a class="py-toggle" href="#" id="ubyte.__repr__-toggle" onclick="return toggle('ubyte.__repr__');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.ubyte-class.html#__repr__">__repr__</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="ubyte.__repr__-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="ubyte.__repr__-expanded"><a name="L1313"></a><tt class="py-lineno">1313</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt class="py-string">"ubyte(%s)"</tt> <tt class="py-op">%</tt> <tt class="py-name">int</tt><tt class="py-op">.</tt><tt id="link-254" class="py-name"><a title="proton.Array.__repr__
proton.Condition.__repr__
proton.Described.__repr__
proton.Event.__repr__
proton.EventType.__repr__
proton.Message.__repr__
proton.Url.__repr__
proton.byte.__repr__
proton.char.__repr__
proton.decimal128.__repr__
proton.decimal32.__repr__
proton.decimal64.__repr__
proton.float32.__repr__
proton.int32.__repr__
proton.reactor.ApplicationEvent.__repr__
proton.short.__repr__
proton.symbol.__repr__
proton.timestamp.__repr__
proton.ubyte.__repr__
proton.uint.__repr__
proton.ulong.__repr__
proton.ushort.__repr__
proton.wrapper.Wrapper.__repr__" class="py-name" href="#" onclick="return doclink('link-254', '__repr__', 'link-247');">__repr__</a></tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">)</tt> </tt>
</div></div><a name="L1314"></a><tt class="py-lineno">1314</tt> <tt class="py-line"> </tt>
<a name="ushort"></a><div id="ushort-def"><a name="L1315"></a><tt class="py-lineno">1315</tt> <a class="py-toggle" href="#" id="ushort-toggle" onclick="return toggle('ushort');">-</a><tt class="py-line"><tt class="py-keyword">class</tt> <a class="py-def-name" href="proton.ushort-class.html">ushort</a><tt class="py-op">(</tt><tt class="py-base-class">int</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="ushort-collapsed" style="display:none;" pad="++++" indent="++++"></div><div id="ushort-expanded"><a name="L1316"></a><tt class="py-lineno">1316</tt> <tt class="py-line"> </tt>
<a name="ushort.__repr__"></a><div id="ushort.__repr__-def"><a name="L1317"></a><tt class="py-lineno">1317</tt> <a class="py-toggle" href="#" id="ushort.__repr__-toggle" onclick="return toggle('ushort.__repr__');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.ushort-class.html#__repr__">__repr__</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="ushort.__repr__-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="ushort.__repr__-expanded"><a name="L1318"></a><tt class="py-lineno">1318</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt class="py-string">"ushort(%s)"</tt> <tt class="py-op">%</tt> <tt class="py-name">int</tt><tt class="py-op">.</tt><tt id="link-255" class="py-name"><a title="proton.Array.__repr__
proton.Condition.__repr__
proton.Described.__repr__
proton.Event.__repr__
proton.EventType.__repr__
proton.Message.__repr__
proton.Url.__repr__
proton.byte.__repr__
proton.char.__repr__
proton.decimal128.__repr__
proton.decimal32.__repr__
proton.decimal64.__repr__
proton.float32.__repr__
proton.int32.__repr__
proton.reactor.ApplicationEvent.__repr__
proton.short.__repr__
proton.symbol.__repr__
proton.timestamp.__repr__
proton.ubyte.__repr__
proton.uint.__repr__
proton.ulong.__repr__
proton.ushort.__repr__
proton.wrapper.Wrapper.__repr__" class="py-name" href="#" onclick="return doclink('link-255', '__repr__', 'link-247');">__repr__</a></tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">)</tt> </tt>
</div></div><a name="L1319"></a><tt class="py-lineno">1319</tt> <tt class="py-line"> </tt>
<a name="uint"></a><div id="uint-def"><a name="L1320"></a><tt class="py-lineno">1320</tt> <a class="py-toggle" href="#" id="uint-toggle" onclick="return toggle('uint');">-</a><tt class="py-line"><tt class="py-keyword">class</tt> <a class="py-def-name" href="proton.uint-class.html">uint</a><tt class="py-op">(</tt><tt class="py-base-class">long</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="uint-collapsed" style="display:none;" pad="++++" indent="++++"></div><div id="uint-expanded"><a name="L1321"></a><tt class="py-lineno">1321</tt> <tt class="py-line"> </tt>
<a name="uint.__repr__"></a><div id="uint.__repr__-def"><a name="L1322"></a><tt class="py-lineno">1322</tt> <a class="py-toggle" href="#" id="uint.__repr__-toggle" onclick="return toggle('uint.__repr__');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.uint-class.html#__repr__">__repr__</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="uint.__repr__-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="uint.__repr__-expanded"><a name="L1323"></a><tt class="py-lineno">1323</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt class="py-string">"uint(%s)"</tt> <tt class="py-op">%</tt> <tt class="py-name">long</tt><tt class="py-op">.</tt><tt id="link-256" class="py-name"><a title="proton.Array.__repr__
proton.Condition.__repr__
proton.Described.__repr__
proton.Event.__repr__
proton.EventType.__repr__
proton.Message.__repr__
proton.Url.__repr__
proton.byte.__repr__
proton.char.__repr__
proton.decimal128.__repr__
proton.decimal32.__repr__
proton.decimal64.__repr__
proton.float32.__repr__
proton.int32.__repr__
proton.reactor.ApplicationEvent.__repr__
proton.short.__repr__
proton.symbol.__repr__
proton.timestamp.__repr__
proton.ubyte.__repr__
proton.uint.__repr__
proton.ulong.__repr__
proton.ushort.__repr__
proton.wrapper.Wrapper.__repr__" class="py-name" href="#" onclick="return doclink('link-256', '__repr__', 'link-247');">__repr__</a></tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">)</tt> </tt>
</div></div><a name="L1324"></a><tt class="py-lineno">1324</tt> <tt class="py-line"> </tt>
<a name="float32"></a><div id="float32-def"><a name="L1325"></a><tt class="py-lineno">1325</tt> <a class="py-toggle" href="#" id="float32-toggle" onclick="return toggle('float32');">-</a><tt class="py-line"><tt class="py-keyword">class</tt> <a class="py-def-name" href="proton.float32-class.html">float32</a><tt class="py-op">(</tt><tt class="py-base-class">float</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="float32-collapsed" style="display:none;" pad="++++" indent="++++"></div><div id="float32-expanded"><a name="L1326"></a><tt class="py-lineno">1326</tt> <tt class="py-line"> </tt>
<a name="float32.__repr__"></a><div id="float32.__repr__-def"><a name="L1327"></a><tt class="py-lineno">1327</tt> <a class="py-toggle" href="#" id="float32.__repr__-toggle" onclick="return toggle('float32.__repr__');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.float32-class.html#__repr__">__repr__</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="float32.__repr__-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="float32.__repr__-expanded"><a name="L1328"></a><tt class="py-lineno">1328</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt class="py-string">"float32(%s)"</tt> <tt class="py-op">%</tt> <tt class="py-name">float</tt><tt class="py-op">.</tt><tt id="link-257" class="py-name"><a title="proton.Array.__repr__
proton.Condition.__repr__
proton.Described.__repr__
proton.Event.__repr__
proton.EventType.__repr__
proton.Message.__repr__
proton.Url.__repr__
proton.byte.__repr__
proton.char.__repr__
proton.decimal128.__repr__
proton.decimal32.__repr__
proton.decimal64.__repr__
proton.float32.__repr__
proton.int32.__repr__
proton.reactor.ApplicationEvent.__repr__
proton.short.__repr__
proton.symbol.__repr__
proton.timestamp.__repr__
proton.ubyte.__repr__
proton.uint.__repr__
proton.ulong.__repr__
proton.ushort.__repr__
proton.wrapper.Wrapper.__repr__" class="py-name" href="#" onclick="return doclink('link-257', '__repr__', 'link-247');">__repr__</a></tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">)</tt> </tt>
</div></div><a name="L1329"></a><tt class="py-lineno">1329</tt> <tt class="py-line"> </tt>
<a name="decimal32"></a><div id="decimal32-def"><a name="L1330"></a><tt class="py-lineno">1330</tt> <a class="py-toggle" href="#" id="decimal32-toggle" onclick="return toggle('decimal32');">-</a><tt class="py-line"><tt class="py-keyword">class</tt> <a class="py-def-name" href="proton.decimal32-class.html">decimal32</a><tt class="py-op">(</tt><tt class="py-base-class">int</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="decimal32-collapsed" style="display:none;" pad="++++" indent="++++"></div><div id="decimal32-expanded"><a name="L1331"></a><tt class="py-lineno">1331</tt> <tt class="py-line"> </tt>
<a name="decimal32.__repr__"></a><div id="decimal32.__repr__-def"><a name="L1332"></a><tt class="py-lineno">1332</tt> <a class="py-toggle" href="#" id="decimal32.__repr__-toggle" onclick="return toggle('decimal32.__repr__');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.decimal32-class.html#__repr__">__repr__</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="decimal32.__repr__-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="decimal32.__repr__-expanded"><a name="L1333"></a><tt class="py-lineno">1333</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt class="py-string">"decimal32(%s)"</tt> <tt class="py-op">%</tt> <tt class="py-name">int</tt><tt class="py-op">.</tt><tt id="link-258" class="py-name"><a title="proton.Array.__repr__
proton.Condition.__repr__
proton.Described.__repr__
proton.Event.__repr__
proton.EventType.__repr__
proton.Message.__repr__
proton.Url.__repr__
proton.byte.__repr__
proton.char.__repr__
proton.decimal128.__repr__
proton.decimal32.__repr__
proton.decimal64.__repr__
proton.float32.__repr__
proton.int32.__repr__
proton.reactor.ApplicationEvent.__repr__
proton.short.__repr__
proton.symbol.__repr__
proton.timestamp.__repr__
proton.ubyte.__repr__
proton.uint.__repr__
proton.ulong.__repr__
proton.ushort.__repr__
proton.wrapper.Wrapper.__repr__" class="py-name" href="#" onclick="return doclink('link-258', '__repr__', 'link-247');">__repr__</a></tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">)</tt> </tt>
</div></div><a name="L1334"></a><tt class="py-lineno">1334</tt> <tt class="py-line"> </tt>
<a name="decimal64"></a><div id="decimal64-def"><a name="L1335"></a><tt class="py-lineno">1335</tt> <a class="py-toggle" href="#" id="decimal64-toggle" onclick="return toggle('decimal64');">-</a><tt class="py-line"><tt class="py-keyword">class</tt> <a class="py-def-name" href="proton.decimal64-class.html">decimal64</a><tt class="py-op">(</tt><tt class="py-base-class">long</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="decimal64-collapsed" style="display:none;" pad="++++" indent="++++"></div><div id="decimal64-expanded"><a name="L1336"></a><tt class="py-lineno">1336</tt> <tt class="py-line"> </tt>
<a name="decimal64.__repr__"></a><div id="decimal64.__repr__-def"><a name="L1337"></a><tt class="py-lineno">1337</tt> <a class="py-toggle" href="#" id="decimal64.__repr__-toggle" onclick="return toggle('decimal64.__repr__');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.decimal64-class.html#__repr__">__repr__</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="decimal64.__repr__-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="decimal64.__repr__-expanded"><a name="L1338"></a><tt class="py-lineno">1338</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt class="py-string">"decimal64(%s)"</tt> <tt class="py-op">%</tt> <tt class="py-name">long</tt><tt class="py-op">.</tt><tt id="link-259" class="py-name"><a title="proton.Array.__repr__
proton.Condition.__repr__
proton.Described.__repr__
proton.Event.__repr__
proton.EventType.__repr__
proton.Message.__repr__
proton.Url.__repr__
proton.byte.__repr__
proton.char.__repr__
proton.decimal128.__repr__
proton.decimal32.__repr__
proton.decimal64.__repr__
proton.float32.__repr__
proton.int32.__repr__
proton.reactor.ApplicationEvent.__repr__
proton.short.__repr__
proton.symbol.__repr__
proton.timestamp.__repr__
proton.ubyte.__repr__
proton.uint.__repr__
proton.ulong.__repr__
proton.ushort.__repr__
proton.wrapper.Wrapper.__repr__" class="py-name" href="#" onclick="return doclink('link-259', '__repr__', 'link-247');">__repr__</a></tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">)</tt> </tt>
</div></div><a name="L1339"></a><tt class="py-lineno">1339</tt> <tt class="py-line"> </tt>
<a name="decimal128"></a><div id="decimal128-def"><a name="L1340"></a><tt class="py-lineno">1340</tt> <a class="py-toggle" href="#" id="decimal128-toggle" onclick="return toggle('decimal128');">-</a><tt class="py-line"><tt class="py-keyword">class</tt> <a class="py-def-name" href="proton.decimal128-class.html">decimal128</a><tt class="py-op">(</tt><tt class="py-base-class">bytes</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="decimal128-collapsed" style="display:none;" pad="++++" indent="++++"></div><div id="decimal128-expanded"><a name="L1341"></a><tt class="py-lineno">1341</tt> <tt class="py-line"> </tt>
<a name="decimal128.__repr__"></a><div id="decimal128.__repr__-def"><a name="L1342"></a><tt class="py-lineno">1342</tt> <a class="py-toggle" href="#" id="decimal128.__repr__-toggle" onclick="return toggle('decimal128.__repr__');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.decimal128-class.html#__repr__">__repr__</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="decimal128.__repr__-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="decimal128.__repr__-expanded"><a name="L1343"></a><tt class="py-lineno">1343</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt class="py-string">"decimal128(%s)"</tt> <tt class="py-op">%</tt> <tt class="py-name">bytes</tt><tt class="py-op">.</tt><tt id="link-260" class="py-name"><a title="proton.Array.__repr__
proton.Condition.__repr__
proton.Described.__repr__
proton.Event.__repr__
proton.EventType.__repr__
proton.Message.__repr__
proton.Url.__repr__
proton.byte.__repr__
proton.char.__repr__
proton.decimal128.__repr__
proton.decimal32.__repr__
proton.decimal64.__repr__
proton.float32.__repr__
proton.int32.__repr__
proton.reactor.ApplicationEvent.__repr__
proton.short.__repr__
proton.symbol.__repr__
proton.timestamp.__repr__
proton.ubyte.__repr__
proton.uint.__repr__
proton.ulong.__repr__
proton.ushort.__repr__
proton.wrapper.Wrapper.__repr__" class="py-name" href="#" onclick="return doclink('link-260', '__repr__', 'link-247');">__repr__</a></tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">)</tt> </tt>
</div></div><a name="L1344"></a><tt class="py-lineno">1344</tt> <tt class="py-line"> </tt>
<a name="Described"></a><div id="Described-def"><a name="L1345"></a><tt class="py-lineno">1345</tt> <a class="py-toggle" href="#" id="Described-toggle" onclick="return toggle('Described');">-</a><tt class="py-line"><tt class="py-keyword">class</tt> <a class="py-def-name" href="proton.Described-class.html">Described</a><tt class="py-op">(</tt><tt class="py-base-class">object</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Described-collapsed" style="display:none;" pad="++++" indent="++++"></div><div id="Described-expanded"><a name="L1346"></a><tt class="py-lineno">1346</tt> <tt class="py-line"> </tt>
<a name="Described.__init__"></a><div id="Described.__init__-def"><a name="L1347"></a><tt class="py-lineno">1347</tt> <a class="py-toggle" href="#" id="Described.__init__-toggle" onclick="return toggle('Described.__init__');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Described-class.html#__init__">__init__</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">descriptor</tt><tt class="py-op">,</tt> <tt class="py-param">value</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Described.__init__-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Described.__init__-expanded"><a name="L1348"></a><tt class="py-lineno">1348</tt> <tt class="py-line"> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">descriptor</tt> <tt class="py-op">=</tt> <tt class="py-name">descriptor</tt> </tt>
<a name="L1349"></a><tt class="py-lineno">1349</tt> <tt class="py-line"> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">value</tt> <tt class="py-op">=</tt> <tt class="py-name">value</tt> </tt>
</div><a name="L1350"></a><tt class="py-lineno">1350</tt> <tt class="py-line"> </tt>
<a name="Described.__repr__"></a><div id="Described.__repr__-def"><a name="L1351"></a><tt class="py-lineno">1351</tt> <a class="py-toggle" href="#" id="Described.__repr__-toggle" onclick="return toggle('Described.__repr__');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Described-class.html#__repr__">__repr__</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Described.__repr__-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Described.__repr__-expanded"><a name="L1352"></a><tt class="py-lineno">1352</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt class="py-string">"Described(%r, %r)"</tt> <tt class="py-op">%</tt> <tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">descriptor</tt><tt class="py-op">,</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">value</tt><tt class="py-op">)</tt> </tt>
</div><a name="L1353"></a><tt class="py-lineno">1353</tt> <tt class="py-line"> </tt>
<a name="Described.__eq__"></a><div id="Described.__eq__-def"><a name="L1354"></a><tt class="py-lineno">1354</tt> <a class="py-toggle" href="#" id="Described.__eq__-toggle" onclick="return toggle('Described.__eq__');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Described-class.html#__eq__">__eq__</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">o</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Described.__eq__-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Described.__eq__-expanded"><a name="L1355"></a><tt class="py-lineno">1355</tt> <tt class="py-line"> <tt class="py-keyword">if</tt> <tt class="py-name">isinstance</tt><tt class="py-op">(</tt><tt class="py-name">o</tt><tt class="py-op">,</tt> <tt id="link-261" class="py-name" targets="Class proton.Described=proton.Described-class.html"><a title="proton.Described" class="py-name" href="#" onclick="return doclink('link-261', 'Described', 'link-261');">Described</a></tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
<a name="L1356"></a><tt class="py-lineno">1356</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">descriptor</tt> <tt class="py-op">==</tt> <tt class="py-name">o</tt><tt class="py-op">.</tt><tt class="py-name">descriptor</tt> <tt class="py-keyword">and</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">value</tt> <tt class="py-op">==</tt> <tt class="py-name">o</tt><tt class="py-op">.</tt><tt class="py-name">value</tt> </tt>
<a name="L1357"></a><tt class="py-lineno">1357</tt> <tt class="py-line"> <tt class="py-keyword">else</tt><tt class="py-op">:</tt> </tt>
<a name="L1358"></a><tt class="py-lineno">1358</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt class="py-name">False</tt> </tt>
</div></div><a name="L1359"></a><tt class="py-lineno">1359</tt> <tt class="py-line"> </tt>
<a name="L1360"></a><tt class="py-lineno">1360</tt> <tt class="py-line"><tt id="link-262" class="py-name" targets="Variable proton.UNDESCRIBED=proton-module.html#UNDESCRIBED"><a title="proton.UNDESCRIBED" class="py-name" href="#" onclick="return doclink('link-262', 'UNDESCRIBED', 'link-262');">UNDESCRIBED</a></tt> <tt class="py-op">=</tt> <tt class="py-name">Constant</tt><tt class="py-op">(</tt><tt class="py-string">"UNDESCRIBED"</tt><tt class="py-op">)</tt> </tt>
<a name="Array"></a><div id="Array-def"><a name="L1361"></a><tt class="py-lineno">1361</tt> <tt class="py-line"> </tt>
<a name="L1362"></a><tt class="py-lineno">1362</tt> <a class="py-toggle" href="#" id="Array-toggle" onclick="return toggle('Array');">-</a><tt class="py-line"><tt class="py-keyword">class</tt> <a class="py-def-name" href="proton.Array-class.html">Array</a><tt class="py-op">(</tt><tt class="py-base-class">object</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Array-collapsed" style="display:none;" pad="++++" indent="++++"></div><div id="Array-expanded"><a name="L1363"></a><tt class="py-lineno">1363</tt> <tt class="py-line"> </tt>
<a name="Array.__init__"></a><div id="Array.__init__-def"><a name="L1364"></a><tt class="py-lineno">1364</tt> <a class="py-toggle" href="#" id="Array.__init__-toggle" onclick="return toggle('Array.__init__');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Array-class.html#__init__">__init__</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">descriptor</tt><tt class="py-op">,</tt> <tt class="py-param">type</tt><tt class="py-op">,</tt> <tt class="py-op">*</tt><tt class="py-param">elements</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Array.__init__-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Array.__init__-expanded"><a name="L1365"></a><tt class="py-lineno">1365</tt> <tt class="py-line"> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">descriptor</tt> <tt class="py-op">=</tt> <tt class="py-name">descriptor</tt> </tt>
<a name="L1366"></a><tt class="py-lineno">1366</tt> <tt class="py-line"> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-263" class="py-name"><a title="proton.Data.type
proton.Disposition.type
proton.Terminus.type" class="py-name" href="#" onclick="return doclink('link-263', 'type', 'link-152');">type</a></tt> <tt class="py-op">=</tt> <tt id="link-264" class="py-name"><a title="proton.Data.type
proton.Disposition.type
proton.Terminus.type" class="py-name" href="#" onclick="return doclink('link-264', 'type', 'link-152');">type</a></tt> </tt>
<a name="L1367"></a><tt class="py-lineno">1367</tt> <tt class="py-line"> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">elements</tt> <tt class="py-op">=</tt> <tt class="py-name">elements</tt> </tt>
</div><a name="L1368"></a><tt class="py-lineno">1368</tt> <tt class="py-line"> </tt>
<a name="Array.__iter__"></a><div id="Array.__iter__-def"><a name="L1369"></a><tt class="py-lineno">1369</tt> <a class="py-toggle" href="#" id="Array.__iter__-toggle" onclick="return toggle('Array.__iter__');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Array-class.html#__iter__">__iter__</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Array.__iter__-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Array.__iter__-expanded"><a name="L1370"></a><tt class="py-lineno">1370</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt class="py-name">iter</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">elements</tt><tt class="py-op">)</tt> </tt>
</div><a name="L1371"></a><tt class="py-lineno">1371</tt> <tt class="py-line"> </tt>
<a name="Array.__repr__"></a><div id="Array.__repr__-def"><a name="L1372"></a><tt class="py-lineno">1372</tt> <a class="py-toggle" href="#" id="Array.__repr__-toggle" onclick="return toggle('Array.__repr__');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Array-class.html#__repr__">__repr__</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Array.__repr__-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Array.__repr__-expanded"><a name="L1373"></a><tt class="py-lineno">1373</tt> <tt class="py-line"> <tt class="py-keyword">if</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">elements</tt><tt class="py-op">:</tt> </tt>
<a name="L1374"></a><tt class="py-lineno">1374</tt> <tt class="py-line"> <tt class="py-name">els</tt> <tt class="py-op">=</tt> <tt class="py-string">", %s"</tt> <tt class="py-op">%</tt> <tt class="py-op">(</tt><tt class="py-string">", "</tt><tt class="py-op">.</tt><tt class="py-name">join</tt><tt class="py-op">(</tt><tt class="py-name">map</tt><tt class="py-op">(</tt><tt class="py-name">repr</tt><tt class="py-op">,</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">elements</tt><tt class="py-op">)</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
<a name="L1375"></a><tt class="py-lineno">1375</tt> <tt class="py-line"> <tt class="py-keyword">else</tt><tt class="py-op">:</tt> </tt>
<a name="L1376"></a><tt class="py-lineno">1376</tt> <tt class="py-line"> <tt class="py-name">els</tt> <tt class="py-op">=</tt> <tt class="py-string">""</tt> </tt>
<a name="L1377"></a><tt class="py-lineno">1377</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt class="py-string">"Array(%r, %r%s)"</tt> <tt class="py-op">%</tt> <tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">descriptor</tt><tt class="py-op">,</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-265" class="py-name"><a title="proton.Data.type
proton.Disposition.type
proton.Terminus.type" class="py-name" href="#" onclick="return doclink('link-265', 'type', 'link-152');">type</a></tt><tt class="py-op">,</tt> <tt class="py-name">els</tt><tt class="py-op">)</tt> </tt>
</div><a name="L1378"></a><tt class="py-lineno">1378</tt> <tt class="py-line"> </tt>
<a name="Array.__eq__"></a><div id="Array.__eq__-def"><a name="L1379"></a><tt class="py-lineno">1379</tt> <a class="py-toggle" href="#" id="Array.__eq__-toggle" onclick="return toggle('Array.__eq__');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Array-class.html#__eq__">__eq__</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">o</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Array.__eq__-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Array.__eq__-expanded"><a name="L1380"></a><tt class="py-lineno">1380</tt> <tt class="py-line"> <tt class="py-keyword">if</tt> <tt class="py-name">isinstance</tt><tt class="py-op">(</tt><tt class="py-name">o</tt><tt class="py-op">,</tt> <tt id="link-266" class="py-name" targets="Class proton.Array=proton.Array-class.html"><a title="proton.Array" class="py-name" href="#" onclick="return doclink('link-266', 'Array', 'link-266');">Array</a></tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
<a name="L1381"></a><tt class="py-lineno">1381</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">descriptor</tt> <tt class="py-op">==</tt> <tt class="py-name">o</tt><tt class="py-op">.</tt><tt class="py-name">descriptor</tt> <tt class="py-keyword">and</tt> \ </tt>
<a name="L1382"></a><tt class="py-lineno">1382</tt> <tt class="py-line"> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-267" class="py-name"><a title="proton.Data.type
proton.Disposition.type
proton.Terminus.type" class="py-name" href="#" onclick="return doclink('link-267', 'type', 'link-152');">type</a></tt> <tt class="py-op">==</tt> <tt class="py-name">o</tt><tt class="py-op">.</tt><tt id="link-268" class="py-name"><a title="proton.Data.type
proton.Disposition.type
proton.Terminus.type" class="py-name" href="#" onclick="return doclink('link-268', 'type', 'link-152');">type</a></tt> <tt class="py-keyword">and</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">elements</tt> <tt class="py-op">==</tt> <tt class="py-name">o</tt><tt class="py-op">.</tt><tt class="py-name">elements</tt> </tt>
<a name="L1383"></a><tt class="py-lineno">1383</tt> <tt class="py-line"> <tt class="py-keyword">else</tt><tt class="py-op">:</tt> </tt>
<a name="L1384"></a><tt class="py-lineno">1384</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt class="py-name">False</tt> </tt>
</div></div><a name="L1385"></a><tt class="py-lineno">1385</tt> <tt class="py-line"> </tt>
<a name="Data"></a><div id="Data-def"><a name="L1386"></a><tt class="py-lineno">1386</tt> <a class="py-toggle" href="#" id="Data-toggle" onclick="return toggle('Data');">-</a><tt class="py-line"><tt class="py-keyword">class</tt> <a class="py-def-name" href="proton.Data-class.html">Data</a><tt class="py-op">:</tt> </tt>
</div><div id="Data-collapsed" style="display:none;" pad="++++" indent="++++"></div><div id="Data-expanded"><a name="L1387"></a><tt class="py-lineno">1387</tt> <tt class="py-line"> <tt class="py-docstring">"""</tt> </tt>
<a name="L1388"></a><tt class="py-lineno">1388</tt> <tt class="py-line"><tt class="py-docstring"> The L{Data} class provides an interface for decoding, extracting,</tt> </tt>
<a name="L1389"></a><tt class="py-lineno">1389</tt> <tt class="py-line"><tt class="py-docstring"> creating, and encoding arbitrary AMQP data. A L{Data} object</tt> </tt>
<a name="L1390"></a><tt class="py-lineno">1390</tt> <tt class="py-line"><tt class="py-docstring"> contains a tree of AMQP values. Leaf nodes in this tree correspond</tt> </tt>
<a name="L1391"></a><tt class="py-lineno">1391</tt> <tt class="py-line"><tt class="py-docstring"> to scalars in the AMQP type system such as L{ints<INT>} or</tt> </tt>
<a name="L1392"></a><tt class="py-lineno">1392</tt> <tt class="py-line"><tt class="py-docstring"> L{strings<STRING>}. Non-leaf nodes in this tree correspond to</tt> </tt>
<a name="L1393"></a><tt class="py-lineno">1393</tt> <tt class="py-line"><tt class="py-docstring"> compound values in the AMQP type system such as L{lists<LIST>},</tt> </tt>
<a name="L1394"></a><tt class="py-lineno">1394</tt> <tt class="py-line"><tt class="py-docstring"> L{maps<MAP>}, L{arrays<ARRAY>}, or L{described values<DESCRIBED>}.</tt> </tt>
<a name="L1395"></a><tt class="py-lineno">1395</tt> <tt class="py-line"><tt class="py-docstring"> The root node of the tree is the L{Data} object itself and can have</tt> </tt>
<a name="L1396"></a><tt class="py-lineno">1396</tt> <tt class="py-line"><tt class="py-docstring"> an arbitrary number of children.</tt> </tt>
<a name="L1397"></a><tt class="py-lineno">1397</tt> <tt class="py-line"><tt class="py-docstring"></tt> </tt>
<a name="L1398"></a><tt class="py-lineno">1398</tt> <tt class="py-line"><tt class="py-docstring"> A L{Data} object maintains the notion of the current sibling node</tt> </tt>
<a name="L1399"></a><tt class="py-lineno">1399</tt> <tt class="py-line"><tt class="py-docstring"> and a current parent node. Siblings are ordered within their parent.</tt> </tt>
<a name="L1400"></a><tt class="py-lineno">1400</tt> <tt class="py-line"><tt class="py-docstring"> Values are accessed and/or added by using the L{next}, L{prev},</tt> </tt>
<a name="L1401"></a><tt class="py-lineno">1401</tt> <tt class="py-line"><tt class="py-docstring"> L{enter}, and L{exit} methods to navigate to the desired location in</tt> </tt>
<a name="L1402"></a><tt class="py-lineno">1402</tt> <tt class="py-line"><tt class="py-docstring"> the tree and using the supplied variety of put_*/get_* methods to</tt> </tt>
<a name="L1403"></a><tt class="py-lineno">1403</tt> <tt class="py-line"><tt class="py-docstring"> access or add a value of the desired type.</tt> </tt>
<a name="L1404"></a><tt class="py-lineno">1404</tt> <tt class="py-line"><tt class="py-docstring"></tt> </tt>
<a name="L1405"></a><tt class="py-lineno">1405</tt> <tt class="py-line"><tt class="py-docstring"> The put_* methods will always add a value I{after} the current node</tt> </tt>
<a name="L1406"></a><tt class="py-lineno">1406</tt> <tt class="py-line"><tt class="py-docstring"> in the tree. If the current node has a next sibling the put_* method</tt> </tt>
<a name="L1407"></a><tt class="py-lineno">1407</tt> <tt class="py-line"><tt class="py-docstring"> will overwrite the value on this node. If there is no current node</tt> </tt>
<a name="L1408"></a><tt class="py-lineno">1408</tt> <tt class="py-line"><tt class="py-docstring"> or the current node has no next sibling then one will be added. The</tt> </tt>
<a name="L1409"></a><tt class="py-lineno">1409</tt> <tt class="py-line"><tt class="py-docstring"> put_* methods always set the added/modified node to the current</tt> </tt>
<a name="L1410"></a><tt class="py-lineno">1410</tt> <tt class="py-line"><tt class="py-docstring"> node. The get_* methods read the value of the current node and do</tt> </tt>
<a name="L1411"></a><tt class="py-lineno">1411</tt> <tt class="py-line"><tt class="py-docstring"> not change which node is current.</tt> </tt>
<a name="L1412"></a><tt class="py-lineno">1412</tt> <tt class="py-line"><tt class="py-docstring"></tt> </tt>
<a name="L1413"></a><tt class="py-lineno">1413</tt> <tt class="py-line"><tt class="py-docstring"> The following types of scalar values are supported:</tt> </tt>
<a name="L1414"></a><tt class="py-lineno">1414</tt> <tt class="py-line"><tt class="py-docstring"></tt> </tt>
<a name="L1415"></a><tt class="py-lineno">1415</tt> <tt class="py-line"><tt class="py-docstring"> - L{NULL}</tt> </tt>
<a name="L1416"></a><tt class="py-lineno">1416</tt> <tt class="py-line"><tt class="py-docstring"> - L{BOOL}</tt> </tt>
<a name="L1417"></a><tt class="py-lineno">1417</tt> <tt class="py-line"><tt class="py-docstring"> - L{UBYTE}</tt> </tt>
<a name="L1418"></a><tt class="py-lineno">1418</tt> <tt class="py-line"><tt class="py-docstring"> - L{USHORT}</tt> </tt>
<a name="L1419"></a><tt class="py-lineno">1419</tt> <tt class="py-line"><tt class="py-docstring"> - L{SHORT}</tt> </tt>
<a name="L1420"></a><tt class="py-lineno">1420</tt> <tt class="py-line"><tt class="py-docstring"> - L{UINT}</tt> </tt>
<a name="L1421"></a><tt class="py-lineno">1421</tt> <tt class="py-line"><tt class="py-docstring"> - L{INT}</tt> </tt>
<a name="L1422"></a><tt class="py-lineno">1422</tt> <tt class="py-line"><tt class="py-docstring"> - L{ULONG}</tt> </tt>
<a name="L1423"></a><tt class="py-lineno">1423</tt> <tt class="py-line"><tt class="py-docstring"> - L{LONG}</tt> </tt>
<a name="L1424"></a><tt class="py-lineno">1424</tt> <tt class="py-line"><tt class="py-docstring"> - L{FLOAT}</tt> </tt>
<a name="L1425"></a><tt class="py-lineno">1425</tt> <tt class="py-line"><tt class="py-docstring"> - L{DOUBLE}</tt> </tt>
<a name="L1426"></a><tt class="py-lineno">1426</tt> <tt class="py-line"><tt class="py-docstring"> - L{BINARY}</tt> </tt>
<a name="L1427"></a><tt class="py-lineno">1427</tt> <tt class="py-line"><tt class="py-docstring"> - L{STRING}</tt> </tt>
<a name="L1428"></a><tt class="py-lineno">1428</tt> <tt class="py-line"><tt class="py-docstring"> - L{SYMBOL}</tt> </tt>
<a name="L1429"></a><tt class="py-lineno">1429</tt> <tt class="py-line"><tt class="py-docstring"></tt> </tt>
<a name="L1430"></a><tt class="py-lineno">1430</tt> <tt class="py-line"><tt class="py-docstring"> The following types of compound values are supported:</tt> </tt>
<a name="L1431"></a><tt class="py-lineno">1431</tt> <tt class="py-line"><tt class="py-docstring"></tt> </tt>
<a name="L1432"></a><tt class="py-lineno">1432</tt> <tt class="py-line"><tt class="py-docstring"> - L{DESCRIBED}</tt> </tt>
<a name="L1433"></a><tt class="py-lineno">1433</tt> <tt class="py-line"><tt class="py-docstring"> - L{ARRAY}</tt> </tt>
<a name="L1434"></a><tt class="py-lineno">1434</tt> <tt class="py-line"><tt class="py-docstring"> - L{LIST}</tt> </tt>
<a name="L1435"></a><tt class="py-lineno">1435</tt> <tt class="py-line"><tt class="py-docstring"> - L{MAP}</tt> </tt>
<a name="L1436"></a><tt class="py-lineno">1436</tt> <tt class="py-line"><tt class="py-docstring"> """</tt> </tt>
<a name="L1437"></a><tt class="py-lineno">1437</tt> <tt class="py-line"> </tt>
<a name="L1438"></a><tt class="py-lineno">1438</tt> <tt class="py-line"> <tt id="link-269" class="py-name" targets="Variable proton.Data.NULL=proton.Data-class.html#NULL"><a title="proton.Data.NULL" class="py-name" href="#" onclick="return doclink('link-269', 'NULL', 'link-269');">NULL</a></tt> <tt class="py-op">=</tt> <tt class="py-name">PN_NULL</tt><tt class="py-op">;</tt> <tt class="py-string">"A null value."</tt> </tt>
<a name="L1439"></a><tt class="py-lineno">1439</tt> <tt class="py-line"> <tt id="link-270" class="py-name" targets="Variable proton.Data.BOOL=proton.Data-class.html#BOOL"><a title="proton.Data.BOOL" class="py-name" href="#" onclick="return doclink('link-270', 'BOOL', 'link-270');">BOOL</a></tt> <tt class="py-op">=</tt> <tt class="py-name">PN_BOOL</tt><tt class="py-op">;</tt> <tt class="py-string">"A boolean value."</tt> </tt>
<a name="L1440"></a><tt class="py-lineno">1440</tt> <tt class="py-line"> <tt id="link-271" class="py-name" targets="Variable proton.Data.UBYTE=proton.Data-class.html#UBYTE"><a title="proton.Data.UBYTE" class="py-name" href="#" onclick="return doclink('link-271', 'UBYTE', 'link-271');">UBYTE</a></tt> <tt class="py-op">=</tt> <tt class="py-name">PN_UBYTE</tt><tt class="py-op">;</tt> <tt class="py-string">"An unsigned byte value."</tt> </tt>
<a name="L1441"></a><tt class="py-lineno">1441</tt> <tt class="py-line"> <tt id="link-272" class="py-name" targets="Variable proton.Data.BYTE=proton.Data-class.html#BYTE"><a title="proton.Data.BYTE" class="py-name" href="#" onclick="return doclink('link-272', 'BYTE', 'link-272');">BYTE</a></tt> <tt class="py-op">=</tt> <tt class="py-name">PN_BYTE</tt><tt class="py-op">;</tt> <tt class="py-string">"A signed byte value."</tt> </tt>
<a name="L1442"></a><tt class="py-lineno">1442</tt> <tt class="py-line"> <tt id="link-273" class="py-name" targets="Variable proton.Data.USHORT=proton.Data-class.html#USHORT"><a title="proton.Data.USHORT" class="py-name" href="#" onclick="return doclink('link-273', 'USHORT', 'link-273');">USHORT</a></tt> <tt class="py-op">=</tt> <tt class="py-name">PN_USHORT</tt><tt class="py-op">;</tt> <tt class="py-string">"An unsigned short value."</tt> </tt>
<a name="L1443"></a><tt class="py-lineno">1443</tt> <tt class="py-line"> <tt id="link-274" class="py-name" targets="Variable proton.Data.SHORT=proton.Data-class.html#SHORT"><a title="proton.Data.SHORT" class="py-name" href="#" onclick="return doclink('link-274', 'SHORT', 'link-274');">SHORT</a></tt> <tt class="py-op">=</tt> <tt class="py-name">PN_SHORT</tt><tt class="py-op">;</tt> <tt class="py-string">"A short value."</tt> </tt>
<a name="L1444"></a><tt class="py-lineno">1444</tt> <tt class="py-line"> <tt id="link-275" class="py-name" targets="Variable proton.Data.UINT=proton.Data-class.html#UINT"><a title="proton.Data.UINT" class="py-name" href="#" onclick="return doclink('link-275', 'UINT', 'link-275');">UINT</a></tt> <tt class="py-op">=</tt> <tt class="py-name">PN_UINT</tt><tt class="py-op">;</tt> <tt class="py-string">"An unsigned int value."</tt> </tt>
<a name="L1445"></a><tt class="py-lineno">1445</tt> <tt class="py-line"> <tt id="link-276" class="py-name" targets="Variable proton.Data.INT=proton.Data-class.html#INT"><a title="proton.Data.INT" class="py-name" href="#" onclick="return doclink('link-276', 'INT', 'link-276');">INT</a></tt> <tt class="py-op">=</tt> <tt class="py-name">PN_INT</tt><tt class="py-op">;</tt> <tt class="py-string">"A signed int value."</tt> </tt>
<a name="L1446"></a><tt class="py-lineno">1446</tt> <tt class="py-line"> <tt id="link-277" class="py-name" targets="Variable proton.Data.CHAR=proton.Data-class.html#CHAR"><a title="proton.Data.CHAR" class="py-name" href="#" onclick="return doclink('link-277', 'CHAR', 'link-277');">CHAR</a></tt> <tt class="py-op">=</tt> <tt class="py-name">PN_CHAR</tt><tt class="py-op">;</tt> <tt class="py-string">"A character value."</tt> </tt>
<a name="L1447"></a><tt class="py-lineno">1447</tt> <tt class="py-line"> <tt id="link-278" class="py-name" targets="Variable proton.Data.ULONG=proton.Data-class.html#ULONG"><a title="proton.Data.ULONG" class="py-name" href="#" onclick="return doclink('link-278', 'ULONG', 'link-278');">ULONG</a></tt> <tt class="py-op">=</tt> <tt class="py-name">PN_ULONG</tt><tt class="py-op">;</tt> <tt class="py-string">"An unsigned long value."</tt> </tt>
<a name="L1448"></a><tt class="py-lineno">1448</tt> <tt class="py-line"> <tt id="link-279" class="py-name" targets="Variable proton.Data.LONG=proton.Data-class.html#LONG"><a title="proton.Data.LONG" class="py-name" href="#" onclick="return doclink('link-279', 'LONG', 'link-279');">LONG</a></tt> <tt class="py-op">=</tt> <tt class="py-name">PN_LONG</tt><tt class="py-op">;</tt> <tt class="py-string">"A signed long value."</tt> </tt>
<a name="L1449"></a><tt class="py-lineno">1449</tt> <tt class="py-line"> <tt id="link-280" class="py-name" targets="Variable proton.Data.TIMESTAMP=proton.Data-class.html#TIMESTAMP"><a title="proton.Data.TIMESTAMP" class="py-name" href="#" onclick="return doclink('link-280', 'TIMESTAMP', 'link-280');">TIMESTAMP</a></tt> <tt class="py-op">=</tt> <tt class="py-name">PN_TIMESTAMP</tt><tt class="py-op">;</tt> <tt class="py-string">"A timestamp value."</tt> </tt>
<a name="L1450"></a><tt class="py-lineno">1450</tt> <tt class="py-line"> <tt id="link-281" class="py-name" targets="Variable proton.Data.FLOAT=proton.Data-class.html#FLOAT"><a title="proton.Data.FLOAT" class="py-name" href="#" onclick="return doclink('link-281', 'FLOAT', 'link-281');">FLOAT</a></tt> <tt class="py-op">=</tt> <tt class="py-name">PN_FLOAT</tt><tt class="py-op">;</tt> <tt class="py-string">"A float value."</tt> </tt>
<a name="L1451"></a><tt class="py-lineno">1451</tt> <tt class="py-line"> <tt id="link-282" class="py-name" targets="Variable proton.Data.DOUBLE=proton.Data-class.html#DOUBLE"><a title="proton.Data.DOUBLE" class="py-name" href="#" onclick="return doclink('link-282', 'DOUBLE', 'link-282');">DOUBLE</a></tt> <tt class="py-op">=</tt> <tt class="py-name">PN_DOUBLE</tt><tt class="py-op">;</tt> <tt class="py-string">"A double value."</tt> </tt>
<a name="L1452"></a><tt class="py-lineno">1452</tt> <tt class="py-line"> <tt id="link-283" class="py-name" targets="Variable proton.Data.DECIMAL32=proton.Data-class.html#DECIMAL32"><a title="proton.Data.DECIMAL32" class="py-name" href="#" onclick="return doclink('link-283', 'DECIMAL32', 'link-283');">DECIMAL32</a></tt> <tt class="py-op">=</tt> <tt class="py-name">PN_DECIMAL32</tt><tt class="py-op">;</tt> <tt class="py-string">"A DECIMAL32 value."</tt> </tt>
<a name="L1453"></a><tt class="py-lineno">1453</tt> <tt class="py-line"> <tt id="link-284" class="py-name" targets="Variable proton.Data.DECIMAL64=proton.Data-class.html#DECIMAL64"><a title="proton.Data.DECIMAL64" class="py-name" href="#" onclick="return doclink('link-284', 'DECIMAL64', 'link-284');">DECIMAL64</a></tt> <tt class="py-op">=</tt> <tt class="py-name">PN_DECIMAL64</tt><tt class="py-op">;</tt> <tt class="py-string">"A DECIMAL64 value."</tt> </tt>
<a name="L1454"></a><tt class="py-lineno">1454</tt> <tt class="py-line"> <tt id="link-285" class="py-name" targets="Variable proton.Data.DECIMAL128=proton.Data-class.html#DECIMAL128"><a title="proton.Data.DECIMAL128" class="py-name" href="#" onclick="return doclink('link-285', 'DECIMAL128', 'link-285');">DECIMAL128</a></tt> <tt class="py-op">=</tt> <tt class="py-name">PN_DECIMAL128</tt><tt class="py-op">;</tt> <tt class="py-string">"A DECIMAL128 value."</tt> </tt>
<a name="L1455"></a><tt class="py-lineno">1455</tt> <tt class="py-line"> <tt id="link-286" class="py-name"><a title="proton.Data.UUID" class="py-name" href="#" onclick="return doclink('link-286', 'UUID', 'link-4');">UUID</a></tt> <tt class="py-op">=</tt> <tt class="py-name">PN_UUID</tt><tt class="py-op">;</tt> <tt class="py-string">"A UUID value."</tt> </tt>
<a name="L1456"></a><tt class="py-lineno">1456</tt> <tt class="py-line"> <tt id="link-287" class="py-name" targets="Variable proton.Data.BINARY=proton.Data-class.html#BINARY"><a title="proton.Data.BINARY" class="py-name" href="#" onclick="return doclink('link-287', 'BINARY', 'link-287');">BINARY</a></tt> <tt class="py-op">=</tt> <tt class="py-name">PN_BINARY</tt><tt class="py-op">;</tt> <tt class="py-string">"A binary string."</tt> </tt>
<a name="L1457"></a><tt class="py-lineno">1457</tt> <tt class="py-line"> <tt id="link-288" class="py-name" targets="Variable proton.Data.STRING=proton.Data-class.html#STRING"><a title="proton.Data.STRING" class="py-name" href="#" onclick="return doclink('link-288', 'STRING', 'link-288');">STRING</a></tt> <tt class="py-op">=</tt> <tt class="py-name">PN_STRING</tt><tt class="py-op">;</tt> <tt class="py-string">"A unicode string."</tt> </tt>
<a name="L1458"></a><tt class="py-lineno">1458</tt> <tt class="py-line"> <tt id="link-289" class="py-name" targets="Variable proton.Data.SYMBOL=proton.Data-class.html#SYMBOL"><a title="proton.Data.SYMBOL" class="py-name" href="#" onclick="return doclink('link-289', 'SYMBOL', 'link-289');">SYMBOL</a></tt> <tt class="py-op">=</tt> <tt class="py-name">PN_SYMBOL</tt><tt class="py-op">;</tt> <tt class="py-string">"A symbolic string."</tt> </tt>
<a name="L1459"></a><tt class="py-lineno">1459</tt> <tt class="py-line"> <tt id="link-290" class="py-name" targets="Variable proton.Data.DESCRIBED=proton.Data-class.html#DESCRIBED"><a title="proton.Data.DESCRIBED" class="py-name" href="#" onclick="return doclink('link-290', 'DESCRIBED', 'link-290');">DESCRIBED</a></tt> <tt class="py-op">=</tt> <tt class="py-name">PN_DESCRIBED</tt><tt class="py-op">;</tt> <tt class="py-string">"A described value."</tt> </tt>
<a name="L1460"></a><tt class="py-lineno">1460</tt> <tt class="py-line"> <tt id="link-291" class="py-name" targets="Variable proton.Data.ARRAY=proton.Data-class.html#ARRAY"><a title="proton.Data.ARRAY" class="py-name" href="#" onclick="return doclink('link-291', 'ARRAY', 'link-291');">ARRAY</a></tt> <tt class="py-op">=</tt> <tt class="py-name">PN_ARRAY</tt><tt class="py-op">;</tt> <tt class="py-string">"An array value."</tt> </tt>
<a name="L1461"></a><tt class="py-lineno">1461</tt> <tt class="py-line"> <tt id="link-292" class="py-name" targets="Variable proton.Data.LIST=proton.Data-class.html#LIST"><a title="proton.Data.LIST" class="py-name" href="#" onclick="return doclink('link-292', 'LIST', 'link-292');">LIST</a></tt> <tt class="py-op">=</tt> <tt class="py-name">PN_LIST</tt><tt class="py-op">;</tt> <tt class="py-string">"A list value."</tt> </tt>
<a name="L1462"></a><tt class="py-lineno">1462</tt> <tt class="py-line"> <tt id="link-293" class="py-name" targets="Variable proton.Data.MAP=proton.Data-class.html#MAP"><a title="proton.Data.MAP" class="py-name" href="#" onclick="return doclink('link-293', 'MAP', 'link-293');">MAP</a></tt> <tt class="py-op">=</tt> <tt class="py-name">PN_MAP</tt><tt class="py-op">;</tt> <tt class="py-string">"A map value."</tt> </tt>
<a name="L1463"></a><tt class="py-lineno">1463</tt> <tt class="py-line"> </tt>
<a name="L1464"></a><tt class="py-lineno">1464</tt> <tt class="py-line"> <tt id="link-294" class="py-name" targets="Variable proton.Data.type_names=proton.Data-class.html#type_names"><a title="proton.Data.type_names" class="py-name" href="#" onclick="return doclink('link-294', 'type_names', 'link-294');">type_names</a></tt> <tt class="py-op">=</tt> <tt class="py-op">{</tt> </tt>
<a name="L1465"></a><tt class="py-lineno">1465</tt> <tt class="py-line"> <tt id="link-295" class="py-name"><a title="proton.Data.NULL" class="py-name" href="#" onclick="return doclink('link-295', 'NULL', 'link-269');">NULL</a></tt><tt class="py-op">:</tt> <tt class="py-string">"null"</tt><tt class="py-op">,</tt> </tt>
<a name="L1466"></a><tt class="py-lineno">1466</tt> <tt class="py-line"> <tt id="link-296" class="py-name"><a title="proton.Data.BOOL" class="py-name" href="#" onclick="return doclink('link-296', 'BOOL', 'link-270');">BOOL</a></tt><tt class="py-op">:</tt> <tt class="py-string">"bool"</tt><tt class="py-op">,</tt> </tt>
<a name="L1467"></a><tt class="py-lineno">1467</tt> <tt class="py-line"> <tt id="link-297" class="py-name"><a title="proton.Data.BYTE" class="py-name" href="#" onclick="return doclink('link-297', 'BYTE', 'link-272');">BYTE</a></tt><tt class="py-op">:</tt> <tt class="py-string">"byte"</tt><tt class="py-op">,</tt> </tt>
<a name="L1468"></a><tt class="py-lineno">1468</tt> <tt class="py-line"> <tt id="link-298" class="py-name"><a title="proton.Data.UBYTE" class="py-name" href="#" onclick="return doclink('link-298', 'UBYTE', 'link-271');">UBYTE</a></tt><tt class="py-op">:</tt> <tt class="py-string">"ubyte"</tt><tt class="py-op">,</tt> </tt>
<a name="L1469"></a><tt class="py-lineno">1469</tt> <tt class="py-line"> <tt id="link-299" class="py-name"><a title="proton.Data.SHORT" class="py-name" href="#" onclick="return doclink('link-299', 'SHORT', 'link-274');">SHORT</a></tt><tt class="py-op">:</tt> <tt class="py-string">"short"</tt><tt class="py-op">,</tt> </tt>
<a name="L1470"></a><tt class="py-lineno">1470</tt> <tt class="py-line"> <tt id="link-300" class="py-name"><a title="proton.Data.USHORT" class="py-name" href="#" onclick="return doclink('link-300', 'USHORT', 'link-273');">USHORT</a></tt><tt class="py-op">:</tt> <tt class="py-string">"ushort"</tt><tt class="py-op">,</tt> </tt>
<a name="L1471"></a><tt class="py-lineno">1471</tt> <tt class="py-line"> <tt id="link-301" class="py-name"><a title="proton.Data.INT" class="py-name" href="#" onclick="return doclink('link-301', 'INT', 'link-276');">INT</a></tt><tt class="py-op">:</tt> <tt class="py-string">"int"</tt><tt class="py-op">,</tt> </tt>
<a name="L1472"></a><tt class="py-lineno">1472</tt> <tt class="py-line"> <tt id="link-302" class="py-name"><a title="proton.Data.UINT" class="py-name" href="#" onclick="return doclink('link-302', 'UINT', 'link-275');">UINT</a></tt><tt class="py-op">:</tt> <tt class="py-string">"uint"</tt><tt class="py-op">,</tt> </tt>
<a name="L1473"></a><tt class="py-lineno">1473</tt> <tt class="py-line"> <tt id="link-303" class="py-name"><a title="proton.Data.CHAR" class="py-name" href="#" onclick="return doclink('link-303', 'CHAR', 'link-277');">CHAR</a></tt><tt class="py-op">:</tt> <tt class="py-string">"char"</tt><tt class="py-op">,</tt> </tt>
<a name="L1474"></a><tt class="py-lineno">1474</tt> <tt class="py-line"> <tt id="link-304" class="py-name"><a title="proton.Data.LONG" class="py-name" href="#" onclick="return doclink('link-304', 'LONG', 'link-279');">LONG</a></tt><tt class="py-op">:</tt> <tt class="py-string">"long"</tt><tt class="py-op">,</tt> </tt>
<a name="L1475"></a><tt class="py-lineno">1475</tt> <tt class="py-line"> <tt id="link-305" class="py-name"><a title="proton.Data.ULONG" class="py-name" href="#" onclick="return doclink('link-305', 'ULONG', 'link-278');">ULONG</a></tt><tt class="py-op">:</tt> <tt class="py-string">"ulong"</tt><tt class="py-op">,</tt> </tt>
<a name="L1476"></a><tt class="py-lineno">1476</tt> <tt class="py-line"> <tt id="link-306" class="py-name"><a title="proton.Data.TIMESTAMP" class="py-name" href="#" onclick="return doclink('link-306', 'TIMESTAMP', 'link-280');">TIMESTAMP</a></tt><tt class="py-op">:</tt> <tt class="py-string">"timestamp"</tt><tt class="py-op">,</tt> </tt>
<a name="L1477"></a><tt class="py-lineno">1477</tt> <tt class="py-line"> <tt id="link-307" class="py-name"><a title="proton.Data.FLOAT" class="py-name" href="#" onclick="return doclink('link-307', 'FLOAT', 'link-281');">FLOAT</a></tt><tt class="py-op">:</tt> <tt class="py-string">"float"</tt><tt class="py-op">,</tt> </tt>
<a name="L1478"></a><tt class="py-lineno">1478</tt> <tt class="py-line"> <tt id="link-308" class="py-name"><a title="proton.Data.DOUBLE" class="py-name" href="#" onclick="return doclink('link-308', 'DOUBLE', 'link-282');">DOUBLE</a></tt><tt class="py-op">:</tt> <tt class="py-string">"double"</tt><tt class="py-op">,</tt> </tt>
<a name="L1479"></a><tt class="py-lineno">1479</tt> <tt class="py-line"> <tt id="link-309" class="py-name"><a title="proton.Data.DECIMAL32" class="py-name" href="#" onclick="return doclink('link-309', 'DECIMAL32', 'link-283');">DECIMAL32</a></tt><tt class="py-op">:</tt> <tt class="py-string">"decimal32"</tt><tt class="py-op">,</tt> </tt>
<a name="L1480"></a><tt class="py-lineno">1480</tt> <tt class="py-line"> <tt id="link-310" class="py-name"><a title="proton.Data.DECIMAL64" class="py-name" href="#" onclick="return doclink('link-310', 'DECIMAL64', 'link-284');">DECIMAL64</a></tt><tt class="py-op">:</tt> <tt class="py-string">"decimal64"</tt><tt class="py-op">,</tt> </tt>
<a name="L1481"></a><tt class="py-lineno">1481</tt> <tt class="py-line"> <tt id="link-311" class="py-name"><a title="proton.Data.DECIMAL128" class="py-name" href="#" onclick="return doclink('link-311', 'DECIMAL128', 'link-285');">DECIMAL128</a></tt><tt class="py-op">:</tt> <tt class="py-string">"decimal128"</tt><tt class="py-op">,</tt> </tt>
<a name="L1482"></a><tt class="py-lineno">1482</tt> <tt class="py-line"> <tt id="link-312" class="py-name"><a title="proton.Data.UUID" class="py-name" href="#" onclick="return doclink('link-312', 'UUID', 'link-4');">UUID</a></tt><tt class="py-op">:</tt> <tt class="py-string">"uuid"</tt><tt class="py-op">,</tt> </tt>
<a name="L1483"></a><tt class="py-lineno">1483</tt> <tt class="py-line"> <tt id="link-313" class="py-name"><a title="proton.Data.BINARY" class="py-name" href="#" onclick="return doclink('link-313', 'BINARY', 'link-287');">BINARY</a></tt><tt class="py-op">:</tt> <tt class="py-string">"binary"</tt><tt class="py-op">,</tt> </tt>
<a name="L1484"></a><tt class="py-lineno">1484</tt> <tt class="py-line"> <tt id="link-314" class="py-name"><a title="proton.Data.STRING" class="py-name" href="#" onclick="return doclink('link-314', 'STRING', 'link-288');">STRING</a></tt><tt class="py-op">:</tt> <tt class="py-string">"string"</tt><tt class="py-op">,</tt> </tt>
<a name="L1485"></a><tt class="py-lineno">1485</tt> <tt class="py-line"> <tt id="link-315" class="py-name"><a title="proton.Data.SYMBOL" class="py-name" href="#" onclick="return doclink('link-315', 'SYMBOL', 'link-289');">SYMBOL</a></tt><tt class="py-op">:</tt> <tt class="py-string">"symbol"</tt><tt class="py-op">,</tt> </tt>
<a name="L1486"></a><tt class="py-lineno">1486</tt> <tt class="py-line"> <tt id="link-316" class="py-name"><a title="proton.Data.DESCRIBED" class="py-name" href="#" onclick="return doclink('link-316', 'DESCRIBED', 'link-290');">DESCRIBED</a></tt><tt class="py-op">:</tt> <tt class="py-string">"described"</tt><tt class="py-op">,</tt> </tt>
<a name="L1487"></a><tt class="py-lineno">1487</tt> <tt class="py-line"> <tt id="link-317" class="py-name"><a title="proton.Data.ARRAY" class="py-name" href="#" onclick="return doclink('link-317', 'ARRAY', 'link-291');">ARRAY</a></tt><tt class="py-op">:</tt> <tt class="py-string">"array"</tt><tt class="py-op">,</tt> </tt>
<a name="L1488"></a><tt class="py-lineno">1488</tt> <tt class="py-line"> <tt id="link-318" class="py-name"><a title="proton.Data.LIST" class="py-name" href="#" onclick="return doclink('link-318', 'LIST', 'link-292');">LIST</a></tt><tt class="py-op">:</tt> <tt class="py-string">"list"</tt><tt class="py-op">,</tt> </tt>
<a name="L1489"></a><tt class="py-lineno">1489</tt> <tt class="py-line"> <tt id="link-319" class="py-name"><a title="proton.Data.MAP" class="py-name" href="#" onclick="return doclink('link-319', 'MAP', 'link-293');">MAP</a></tt><tt class="py-op">:</tt> <tt class="py-string">"map"</tt> </tt>
<a name="L1490"></a><tt class="py-lineno">1490</tt> <tt class="py-line"> <tt class="py-op">}</tt> </tt>
<a name="L1491"></a><tt class="py-lineno">1491</tt> <tt class="py-line"> </tt>
<a name="L1492"></a><tt class="py-lineno">1492</tt> <tt class="py-line"> <tt class="py-decorator">@</tt><tt class="py-decorator">classmethod</tt> </tt>
<a name="Data.type_name"></a><div id="Data.type_name-def"><a name="L1493"></a><tt class="py-lineno">1493</tt> <a class="py-toggle" href="#" id="Data.type_name-toggle" onclick="return toggle('Data.type_name');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Data-class.html#type_name">type_name</a><tt class="py-op">(</tt><tt class="py-param">type</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> <tt class="py-keyword">return</tt> <tt id="link-320" class="py-name"><a title="proton.Data" class="py-name" href="#" onclick="return doclink('link-320', 'Data', 'link-90');">Data</a></tt><tt class="py-op">.</tt><tt id="link-321" class="py-name"><a title="proton.Data.type_names" class="py-name" href="#" onclick="return doclink('link-321', 'type_names', 'link-294');">type_names</a></tt><tt class="py-op">[</tt><tt id="link-322" class="py-name"><a title="proton.Data.type
proton.Disposition.type
proton.Terminus.type" class="py-name" href="#" onclick="return doclink('link-322', 'type', 'link-152');">type</a></tt><tt class="py-op">]</tt> </tt>
</div><a name="L1494"></a><tt class="py-lineno">1494</tt> <tt class="py-line"> </tt>
<a name="Data.__init__"></a><div id="Data.__init__-def"><a name="L1495"></a><tt class="py-lineno">1495</tt> <a class="py-toggle" href="#" id="Data.__init__-toggle" onclick="return toggle('Data.__init__');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Data-class.html#__init__">__init__</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">capacity</tt><tt class="py-op">=</tt><tt class="py-number">16</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Data.__init__-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Data.__init__-expanded"><a name="L1496"></a><tt class="py-lineno">1496</tt> <tt class="py-line"> <tt class="py-keyword">if</tt> <tt id="link-323" class="py-name"><a title="proton.Data.type
proton.Disposition.type
proton.Terminus.type" class="py-name" href="#" onclick="return doclink('link-323', 'type', 'link-152');">type</a></tt><tt class="py-op">(</tt><tt id="link-324" class="py-name" targets="Method proton.Transport.capacity()=proton.Transport-class.html#capacity"><a title="proton.Transport.capacity" class="py-name" href="#" onclick="return doclink('link-324', 'capacity', 'link-324');">capacity</a></tt><tt class="py-op">)</tt> <tt class="py-keyword">in</tt> <tt id="link-325" class="py-name"><a title="proton._compat" class="py-name" href="#" onclick="return doclink('link-325', '_compat', 'link-3');">_compat</a></tt><tt class="py-op">.</tt><tt id="link-326" class="py-name"><a title="proton._compat.INT_TYPES" class="py-name" href="#" onclick="return doclink('link-326', 'INT_TYPES', 'link-154');">INT_TYPES</a></tt><tt class="py-op">:</tt> </tt>
<a name="L1497"></a><tt class="py-lineno">1497</tt> <tt class="py-line"> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_data</tt> <tt class="py-op">=</tt> <tt class="py-name">pn_data</tt><tt class="py-op">(</tt><tt id="link-327" class="py-name"><a title="proton.Transport.capacity" class="py-name" href="#" onclick="return doclink('link-327', 'capacity', 'link-324');">capacity</a></tt><tt class="py-op">)</tt> </tt>
<a name="L1498"></a><tt class="py-lineno">1498</tt> <tt class="py-line"> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_free</tt> <tt class="py-op">=</tt> <tt class="py-name">True</tt> </tt>
<a name="L1499"></a><tt class="py-lineno">1499</tt> <tt class="py-line"> <tt class="py-keyword">else</tt><tt class="py-op">:</tt> </tt>
<a name="L1500"></a><tt class="py-lineno">1500</tt> <tt class="py-line"> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_data</tt> <tt class="py-op">=</tt> <tt id="link-328" class="py-name"><a title="proton.Transport.capacity" class="py-name" href="#" onclick="return doclink('link-328', 'capacity', 'link-324');">capacity</a></tt> </tt>
<a name="L1501"></a><tt class="py-lineno">1501</tt> <tt class="py-line"> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_free</tt> <tt class="py-op">=</tt> <tt class="py-name">False</tt> </tt>
</div><a name="L1502"></a><tt class="py-lineno">1502</tt> <tt class="py-line"> </tt>
<a name="Data.__del__"></a><div id="Data.__del__-def"><a name="L1503"></a><tt class="py-lineno">1503</tt> <a class="py-toggle" href="#" id="Data.__del__-toggle" onclick="return toggle('Data.__del__');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Data-class.html#__del__">__del__</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Data.__del__-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Data.__del__-expanded"><a name="L1504"></a><tt class="py-lineno">1504</tt> <tt class="py-line"> <tt class="py-keyword">if</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_free</tt> <tt class="py-keyword">and</tt> <tt class="py-name">hasattr</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">,</tt> <tt class="py-string">"_data"</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
<a name="L1505"></a><tt class="py-lineno">1505</tt> <tt class="py-line"> <tt class="py-name">pn_data_free</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_data</tt><tt class="py-op">)</tt> </tt>
<a name="L1506"></a><tt class="py-lineno">1506</tt> <tt class="py-line"> <tt class="py-keyword">del</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_data</tt> </tt>
</div><a name="L1507"></a><tt class="py-lineno">1507</tt> <tt class="py-line"> </tt>
<a name="Data._check"></a><div id="Data._check-def"><a name="L1508"></a><tt class="py-lineno">1508</tt> <a class="py-toggle" href="#" id="Data._check-toggle" onclick="return toggle('Data._check');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Data-class.html#_check">_check</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">err</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Data._check-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Data._check-expanded"><a name="L1509"></a><tt class="py-lineno">1509</tt> <tt class="py-line"> <tt class="py-keyword">if</tt> <tt class="py-name">err</tt> <tt class="py-op"><</tt> <tt class="py-number">0</tt><tt class="py-op">:</tt> </tt>
<a name="L1510"></a><tt class="py-lineno">1510</tt> <tt class="py-line"> <tt class="py-name">exc</tt> <tt class="py-op">=</tt> <tt id="link-329" class="py-name"><a title="proton.EXCEPTIONS" class="py-name" href="#" onclick="return doclink('link-329', 'EXCEPTIONS', 'link-28');">EXCEPTIONS</a></tt><tt class="py-op">.</tt><tt id="link-330" class="py-name"><a title="proton.Messenger.get" class="py-name" href="#" onclick="return doclink('link-330', 'get', 'link-50');">get</a></tt><tt class="py-op">(</tt><tt class="py-name">err</tt><tt class="py-op">,</tt> <tt class="py-name">DataException</tt><tt class="py-op">)</tt> </tt>
<a name="L1511"></a><tt class="py-lineno">1511</tt> <tt class="py-line"> <tt class="py-keyword">raise</tt> <tt class="py-name">exc</tt><tt class="py-op">(</tt><tt class="py-string">"[%s]: %s"</tt> <tt class="py-op">%</tt> <tt class="py-op">(</tt><tt class="py-name">err</tt><tt class="py-op">,</tt> <tt class="py-name">pn_error_text</tt><tt class="py-op">(</tt><tt class="py-name">pn_data_error</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_data</tt><tt class="py-op">)</tt><tt class="py-op">)</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
<a name="L1512"></a><tt class="py-lineno">1512</tt> <tt class="py-line"> <tt class="py-keyword">else</tt><tt class="py-op">:</tt> </tt>
<a name="L1513"></a><tt class="py-lineno">1513</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt class="py-name">err</tt> </tt>
</div><a name="L1514"></a><tt class="py-lineno">1514</tt> <tt class="py-line"> </tt>
<a name="Data.clear"></a><div id="Data.clear-def"><a name="L1515"></a><tt class="py-lineno">1515</tt> <a class="py-toggle" href="#" id="Data.clear-toggle" onclick="return toggle('Data.clear');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Data-class.html#clear">clear</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Data.clear-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Data.clear-expanded"><a name="L1516"></a><tt class="py-lineno">1516</tt> <tt class="py-line"> <tt class="py-docstring">"""</tt> </tt>
<a name="L1517"></a><tt class="py-lineno">1517</tt> <tt class="py-line"><tt class="py-docstring"> Clears the data object.</tt> </tt>
<a name="L1518"></a><tt class="py-lineno">1518</tt> <tt class="py-line"><tt class="py-docstring"> """</tt> </tt>
<a name="L1519"></a><tt class="py-lineno">1519</tt> <tt class="py-line"> <tt class="py-name">pn_data_clear</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_data</tt><tt class="py-op">)</tt> </tt>
</div><a name="L1520"></a><tt class="py-lineno">1520</tt> <tt class="py-line"> </tt>
<a name="Data.rewind"></a><div id="Data.rewind-def"><a name="L1521"></a><tt class="py-lineno">1521</tt> <a class="py-toggle" href="#" id="Data.rewind-toggle" onclick="return toggle('Data.rewind');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Data-class.html#rewind">rewind</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Data.rewind-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Data.rewind-expanded"><a name="L1522"></a><tt class="py-lineno">1522</tt> <tt class="py-line"> <tt class="py-docstring">"""</tt> </tt>
<a name="L1523"></a><tt class="py-lineno">1523</tt> <tt class="py-line"><tt class="py-docstring"> Clears current node and sets the parent to the root node. Clearing the</tt> </tt>
<a name="L1524"></a><tt class="py-lineno">1524</tt> <tt class="py-line"><tt class="py-docstring"> current node sets it _before_ the first node, calling next() will advance to</tt> </tt>
<a name="L1525"></a><tt class="py-lineno">1525</tt> <tt class="py-line"><tt class="py-docstring"> the first node.</tt> </tt>
<a name="L1526"></a><tt class="py-lineno">1526</tt> <tt class="py-line"><tt class="py-docstring"> """</tt> </tt>
<a name="L1527"></a><tt class="py-lineno">1527</tt> <tt class="py-line"> <tt class="py-keyword">assert</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_data</tt> <tt class="py-keyword">is</tt> <tt class="py-keyword">not</tt> <tt class="py-name">None</tt> </tt>
<a name="L1528"></a><tt class="py-lineno">1528</tt> <tt class="py-line"> <tt class="py-name">pn_data_rewind</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_data</tt><tt class="py-op">)</tt> </tt>
</div><a name="L1529"></a><tt class="py-lineno">1529</tt> <tt class="py-line"> </tt>
<a name="Data.next"></a><div id="Data.next-def"><a name="L1530"></a><tt class="py-lineno">1530</tt> <a class="py-toggle" href="#" id="Data.next-toggle" onclick="return toggle('Data.next');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Data-class.html#next">next</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Data.next-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Data.next-expanded"><a name="L1531"></a><tt class="py-lineno">1531</tt> <tt class="py-line"> <tt class="py-docstring">"""</tt> </tt>
<a name="L1532"></a><tt class="py-lineno">1532</tt> <tt class="py-line"><tt class="py-docstring"> Advances the current node to its next sibling and returns its</tt> </tt>
<a name="L1533"></a><tt class="py-lineno">1533</tt> <tt class="py-line"><tt class="py-docstring"> type. If there is no next sibling the current node remains</tt> </tt>
<a name="L1534"></a><tt class="py-lineno">1534</tt> <tt class="py-line"><tt class="py-docstring"> unchanged and None is returned.</tt> </tt>
<a name="L1535"></a><tt class="py-lineno">1535</tt> <tt class="py-line"><tt class="py-docstring"> """</tt> </tt>
<a name="L1536"></a><tt class="py-lineno">1536</tt> <tt class="py-line"> <tt class="py-name">found</tt> <tt class="py-op">=</tt> <tt class="py-name">pn_data_next</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_data</tt><tt class="py-op">)</tt> </tt>
<a name="L1537"></a><tt class="py-lineno">1537</tt> <tt class="py-line"> <tt class="py-keyword">if</tt> <tt class="py-name">found</tt><tt class="py-op">:</tt> </tt>
<a name="L1538"></a><tt class="py-lineno">1538</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-331" class="py-name"><a title="proton.Data.type
proton.Disposition.type
proton.Terminus.type" class="py-name" href="#" onclick="return doclink('link-331', 'type', 'link-152');">type</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L1539"></a><tt class="py-lineno">1539</tt> <tt class="py-line"> <tt class="py-keyword">else</tt><tt class="py-op">:</tt> </tt>
<a name="L1540"></a><tt class="py-lineno">1540</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt class="py-name">None</tt> </tt>
</div><a name="L1541"></a><tt class="py-lineno">1541</tt> <tt class="py-line"> </tt>
<a name="Data.prev"></a><div id="Data.prev-def"><a name="L1542"></a><tt class="py-lineno">1542</tt> <a class="py-toggle" href="#" id="Data.prev-toggle" onclick="return toggle('Data.prev');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Data-class.html#prev">prev</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Data.prev-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Data.prev-expanded"><a name="L1543"></a><tt class="py-lineno">1543</tt> <tt class="py-line"> <tt class="py-docstring">"""</tt> </tt>
<a name="L1544"></a><tt class="py-lineno">1544</tt> <tt class="py-line"><tt class="py-docstring"> Advances the current node to its previous sibling and returns its</tt> </tt>
<a name="L1545"></a><tt class="py-lineno">1545</tt> <tt class="py-line"><tt class="py-docstring"> type. If there is no previous sibling the current node remains</tt> </tt>
<a name="L1546"></a><tt class="py-lineno">1546</tt> <tt class="py-line"><tt class="py-docstring"> unchanged and None is returned.</tt> </tt>
<a name="L1547"></a><tt class="py-lineno">1547</tt> <tt class="py-line"><tt class="py-docstring"> """</tt> </tt>
<a name="L1548"></a><tt class="py-lineno">1548</tt> <tt class="py-line"> <tt class="py-name">found</tt> <tt class="py-op">=</tt> <tt class="py-name">pn_data_prev</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_data</tt><tt class="py-op">)</tt> </tt>
<a name="L1549"></a><tt class="py-lineno">1549</tt> <tt class="py-line"> <tt class="py-keyword">if</tt> <tt class="py-name">found</tt><tt class="py-op">:</tt> </tt>
<a name="L1550"></a><tt class="py-lineno">1550</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-332" class="py-name"><a title="proton.Data.type
proton.Disposition.type
proton.Terminus.type" class="py-name" href="#" onclick="return doclink('link-332', 'type', 'link-152');">type</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L1551"></a><tt class="py-lineno">1551</tt> <tt class="py-line"> <tt class="py-keyword">else</tt><tt class="py-op">:</tt> </tt>
<a name="L1552"></a><tt class="py-lineno">1552</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt class="py-name">None</tt> </tt>
</div><a name="L1553"></a><tt class="py-lineno">1553</tt> <tt class="py-line"> </tt>
<a name="Data.enter"></a><div id="Data.enter-def"><a name="L1554"></a><tt class="py-lineno">1554</tt> <a class="py-toggle" href="#" id="Data.enter-toggle" onclick="return toggle('Data.enter');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Data-class.html#enter">enter</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Data.enter-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Data.enter-expanded"><a name="L1555"></a><tt class="py-lineno">1555</tt> <tt class="py-line"> <tt class="py-docstring">"""</tt> </tt>
<a name="L1556"></a><tt class="py-lineno">1556</tt> <tt class="py-line"><tt class="py-docstring"> Sets the parent node to the current node and clears the current node.</tt> </tt>
<a name="L1557"></a><tt class="py-lineno">1557</tt> <tt class="py-line"><tt class="py-docstring"> Clearing the current node sets it _before_ the first child,</tt> </tt>
<a name="L1558"></a><tt class="py-lineno">1558</tt> <tt class="py-line"><tt class="py-docstring"> call next() advances to the first child.</tt> </tt>
<a name="L1559"></a><tt class="py-lineno">1559</tt> <tt class="py-line"><tt class="py-docstring"> """</tt> </tt>
<a name="L1560"></a><tt class="py-lineno">1560</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt class="py-name">pn_data_enter</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_data</tt><tt class="py-op">)</tt> </tt>
</div><a name="L1561"></a><tt class="py-lineno">1561</tt> <tt class="py-line"> </tt>
<a name="Data.exit"></a><div id="Data.exit-def"><a name="L1562"></a><tt class="py-lineno">1562</tt> <a class="py-toggle" href="#" id="Data.exit-toggle" onclick="return toggle('Data.exit');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Data-class.html#exit">exit</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Data.exit-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Data.exit-expanded"><a name="L1563"></a><tt class="py-lineno">1563</tt> <tt class="py-line"> <tt class="py-docstring">"""</tt> </tt>
<a name="L1564"></a><tt class="py-lineno">1564</tt> <tt class="py-line"><tt class="py-docstring"> Sets the current node to the parent node and the parent node to</tt> </tt>
<a name="L1565"></a><tt class="py-lineno">1565</tt> <tt class="py-line"><tt class="py-docstring"> its own parent.</tt> </tt>
<a name="L1566"></a><tt class="py-lineno">1566</tt> <tt class="py-line"><tt class="py-docstring"> """</tt> </tt>
<a name="L1567"></a><tt class="py-lineno">1567</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt class="py-name">pn_data_exit</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_data</tt><tt class="py-op">)</tt> </tt>
</div><a name="L1568"></a><tt class="py-lineno">1568</tt> <tt class="py-line"> </tt>
<a name="Data.lookup"></a><div id="Data.lookup-def"><a name="L1569"></a><tt class="py-lineno">1569</tt> <a class="py-toggle" href="#" id="Data.lookup-toggle" onclick="return toggle('Data.lookup');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Data-class.html#lookup">lookup</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">name</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Data.lookup-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Data.lookup-expanded"><a name="L1570"></a><tt class="py-lineno">1570</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt class="py-name">pn_data_lookup</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_data</tt><tt class="py-op">,</tt> <tt id="link-333" class="py-name"><a title="proton.Link.name
proton.Messenger.name" class="py-name" href="#" onclick="return doclink('link-333', 'name', 'link-25');">name</a></tt><tt class="py-op">)</tt> </tt>
</div><a name="L1571"></a><tt class="py-lineno">1571</tt> <tt class="py-line"> </tt>
<a name="Data.narrow"></a><div id="Data.narrow-def"><a name="L1572"></a><tt class="py-lineno">1572</tt> <a class="py-toggle" href="#" id="Data.narrow-toggle" onclick="return toggle('Data.narrow');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Data-class.html#narrow">narrow</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Data.narrow-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Data.narrow-expanded"><a name="L1573"></a><tt class="py-lineno">1573</tt> <tt class="py-line"> <tt class="py-name">pn_data_narrow</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_data</tt><tt class="py-op">)</tt> </tt>
</div><a name="L1574"></a><tt class="py-lineno">1574</tt> <tt class="py-line"> </tt>
<a name="Data.widen"></a><div id="Data.widen-def"><a name="L1575"></a><tt class="py-lineno">1575</tt> <a class="py-toggle" href="#" id="Data.widen-toggle" onclick="return toggle('Data.widen');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Data-class.html#widen">widen</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Data.widen-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Data.widen-expanded"><a name="L1576"></a><tt class="py-lineno">1576</tt> <tt class="py-line"> <tt class="py-name">pn_data_widen</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_data</tt><tt class="py-op">)</tt> </tt>
</div><a name="L1577"></a><tt class="py-lineno">1577</tt> <tt class="py-line"> </tt>
<a name="Data.type"></a><div id="Data.type-def"><a name="L1578"></a><tt class="py-lineno">1578</tt> <a class="py-toggle" href="#" id="Data.type-toggle" onclick="return toggle('Data.type');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Data-class.html#type">type</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Data.type-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Data.type-expanded"><a name="L1579"></a><tt class="py-lineno">1579</tt> <tt class="py-line"> <tt class="py-docstring">"""</tt> </tt>
<a name="L1580"></a><tt class="py-lineno">1580</tt> <tt class="py-line"><tt class="py-docstring"> Returns the type of the current node.</tt> </tt>
<a name="L1581"></a><tt class="py-lineno">1581</tt> <tt class="py-line"><tt class="py-docstring"> """</tt> </tt>
<a name="L1582"></a><tt class="py-lineno">1582</tt> <tt class="py-line"> <tt class="py-name">dtype</tt> <tt class="py-op">=</tt> <tt class="py-name">pn_data_type</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_data</tt><tt class="py-op">)</tt> </tt>
<a name="L1583"></a><tt class="py-lineno">1583</tt> <tt class="py-line"> <tt class="py-keyword">if</tt> <tt class="py-name">dtype</tt> <tt class="py-op">==</tt> <tt class="py-op">-</tt><tt class="py-number">1</tt><tt class="py-op">:</tt> </tt>
<a name="L1584"></a><tt class="py-lineno">1584</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt class="py-name">None</tt> </tt>
<a name="L1585"></a><tt class="py-lineno">1585</tt> <tt class="py-line"> <tt class="py-keyword">else</tt><tt class="py-op">:</tt> </tt>
<a name="L1586"></a><tt class="py-lineno">1586</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt class="py-name">dtype</tt> </tt>
</div><a name="L1587"></a><tt class="py-lineno">1587</tt> <tt class="py-line"> </tt>
<a name="Data.encoded_size"></a><div id="Data.encoded_size-def"><a name="L1588"></a><tt class="py-lineno">1588</tt> <a class="py-toggle" href="#" id="Data.encoded_size-toggle" onclick="return toggle('Data.encoded_size');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Data-class.html#encoded_size">encoded_size</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Data.encoded_size-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Data.encoded_size-expanded"><a name="L1589"></a><tt class="py-lineno">1589</tt> <tt class="py-line"> <tt class="py-docstring">"""</tt> </tt>
<a name="L1590"></a><tt class="py-lineno">1590</tt> <tt class="py-line"><tt class="py-docstring"> Returns the size in bytes needed to encode the data in AMQP format.</tt> </tt>
<a name="L1591"></a><tt class="py-lineno">1591</tt> <tt class="py-line"><tt class="py-docstring"> """</tt> </tt>
<a name="L1592"></a><tt class="py-lineno">1592</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt class="py-name">pn_data_encoded_size</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_data</tt><tt class="py-op">)</tt> </tt>
</div><a name="L1593"></a><tt class="py-lineno">1593</tt> <tt class="py-line"> </tt>
<a name="Data.encode"></a><div id="Data.encode-def"><a name="L1594"></a><tt class="py-lineno">1594</tt> <a class="py-toggle" href="#" id="Data.encode-toggle" onclick="return toggle('Data.encode');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Data-class.html#encode">encode</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Data.encode-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Data.encode-expanded"><a name="L1595"></a><tt class="py-lineno">1595</tt> <tt class="py-line"> <tt class="py-docstring">"""</tt> </tt>
<a name="L1596"></a><tt class="py-lineno">1596</tt> <tt class="py-line"><tt class="py-docstring"> Returns a representation of the data encoded in AMQP format.</tt> </tt>
<a name="L1597"></a><tt class="py-lineno">1597</tt> <tt class="py-line"><tt class="py-docstring"> """</tt> </tt>
<a name="L1598"></a><tt class="py-lineno">1598</tt> <tt class="py-line"> <tt class="py-name">size</tt> <tt class="py-op">=</tt> <tt class="py-number">1024</tt> </tt>
<a name="L1599"></a><tt class="py-lineno">1599</tt> <tt class="py-line"> <tt class="py-keyword">while</tt> <tt class="py-name">True</tt><tt class="py-op">:</tt> </tt>
<a name="L1600"></a><tt class="py-lineno">1600</tt> <tt class="py-line"> <tt class="py-name">cd</tt><tt class="py-op">,</tt> <tt class="py-name">enc</tt> <tt class="py-op">=</tt> <tt class="py-name">pn_data_encode</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_data</tt><tt class="py-op">,</tt> <tt class="py-name">size</tt><tt class="py-op">)</tt> </tt>
<a name="L1601"></a><tt class="py-lineno">1601</tt> <tt class="py-line"> <tt class="py-keyword">if</tt> <tt class="py-name">cd</tt> <tt class="py-op">==</tt> <tt class="py-name">PN_OVERFLOW</tt><tt class="py-op">:</tt> </tt>
<a name="L1602"></a><tt class="py-lineno">1602</tt> <tt class="py-line"> <tt class="py-name">size</tt> <tt class="py-op">*=</tt> <tt class="py-number">2</tt> </tt>
<a name="L1603"></a><tt class="py-lineno">1603</tt> <tt class="py-line"> <tt class="py-keyword">elif</tt> <tt class="py-name">cd</tt> <tt class="py-op">>=</tt> <tt class="py-number">0</tt><tt class="py-op">:</tt> </tt>
<a name="L1604"></a><tt class="py-lineno">1604</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt class="py-name">enc</tt> </tt>
<a name="L1605"></a><tt class="py-lineno">1605</tt> <tt class="py-line"> <tt class="py-keyword">else</tt><tt class="py-op">:</tt> </tt>
<a name="L1606"></a><tt class="py-lineno">1606</tt> <tt class="py-line"> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_check</tt><tt class="py-op">(</tt><tt class="py-name">cd</tt><tt class="py-op">)</tt> </tt>
</div><a name="L1607"></a><tt class="py-lineno">1607</tt> <tt class="py-line"> </tt>
<a name="Data.decode"></a><div id="Data.decode-def"><a name="L1608"></a><tt class="py-lineno">1608</tt> <a class="py-toggle" href="#" id="Data.decode-toggle" onclick="return toggle('Data.decode');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Data-class.html#decode">decode</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">encoded</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Data.decode-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Data.decode-expanded"><a name="L1609"></a><tt class="py-lineno">1609</tt> <tt class="py-line"> <tt class="py-docstring">"""</tt> </tt>
<a name="L1610"></a><tt class="py-lineno">1610</tt> <tt class="py-line"><tt class="py-docstring"> Decodes the first value from supplied AMQP data and returns the</tt> </tt>
<a name="L1611"></a><tt class="py-lineno">1611</tt> <tt class="py-line"><tt class="py-docstring"> number of bytes consumed.</tt> </tt>
<a name="L1612"></a><tt class="py-lineno">1612</tt> <tt class="py-line"><tt class="py-docstring"></tt> </tt>
<a name="L1613"></a><tt class="py-lineno">1613</tt> <tt class="py-line"><tt class="py-docstring"> @type encoded: binary</tt> </tt>
<a name="L1614"></a><tt class="py-lineno">1614</tt> <tt class="py-line"><tt class="py-docstring"> @param encoded: AMQP encoded binary data</tt> </tt>
<a name="L1615"></a><tt class="py-lineno">1615</tt> <tt class="py-line"><tt class="py-docstring"> """</tt> </tt>
<a name="L1616"></a><tt class="py-lineno">1616</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_check</tt><tt class="py-op">(</tt><tt class="py-name">pn_data_decode</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_data</tt><tt class="py-op">,</tt> <tt class="py-name">encoded</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
</div><a name="L1617"></a><tt class="py-lineno">1617</tt> <tt class="py-line"> </tt>
<a name="Data.put_list"></a><div id="Data.put_list-def"><a name="L1618"></a><tt class="py-lineno">1618</tt> <a class="py-toggle" href="#" id="Data.put_list-toggle" onclick="return toggle('Data.put_list');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Data-class.html#put_list">put_list</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Data.put_list-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Data.put_list-expanded"><a name="L1619"></a><tt class="py-lineno">1619</tt> <tt class="py-line"> <tt class="py-docstring">"""</tt> </tt>
<a name="L1620"></a><tt class="py-lineno">1620</tt> <tt class="py-line"><tt class="py-docstring"> Puts a list value. Elements may be filled by entering the list</tt> </tt>
<a name="L1621"></a><tt class="py-lineno">1621</tt> <tt class="py-line"><tt class="py-docstring"> node and putting element values.</tt> </tt>
<a name="L1622"></a><tt class="py-lineno">1622</tt> <tt class="py-line"><tt class="py-docstring"></tt> </tt>
<a name="L1623"></a><tt class="py-lineno">1623</tt> <tt class="py-line"><tt class="py-docstring"> >>> data = Data()</tt> </tt>
<a name="L1624"></a><tt class="py-lineno">1624</tt> <tt class="py-line"><tt class="py-docstring"> >>> data.put_list()</tt> </tt>
<a name="L1625"></a><tt class="py-lineno">1625</tt> <tt class="py-line"><tt class="py-docstring"> >>> data.enter()</tt> </tt>
<a name="L1626"></a><tt class="py-lineno">1626</tt> <tt class="py-line"><tt class="py-docstring"> >>> data.put_int(1)</tt> </tt>
<a name="L1627"></a><tt class="py-lineno">1627</tt> <tt class="py-line"><tt class="py-docstring"> >>> data.put_int(2)</tt> </tt>
<a name="L1628"></a><tt class="py-lineno">1628</tt> <tt class="py-line"><tt class="py-docstring"> >>> data.put_int(3)</tt> </tt>
<a name="L1629"></a><tt class="py-lineno">1629</tt> <tt class="py-line"><tt class="py-docstring"> >>> data.exit()</tt> </tt>
<a name="L1630"></a><tt class="py-lineno">1630</tt> <tt class="py-line"><tt class="py-docstring"> """</tt> </tt>
<a name="L1631"></a><tt class="py-lineno">1631</tt> <tt class="py-line"> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_check</tt><tt class="py-op">(</tt><tt class="py-name">pn_data_put_list</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_data</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
</div><a name="L1632"></a><tt class="py-lineno">1632</tt> <tt class="py-line"> </tt>
<a name="Data.put_map"></a><div id="Data.put_map-def"><a name="L1633"></a><tt class="py-lineno">1633</tt> <a class="py-toggle" href="#" id="Data.put_map-toggle" onclick="return toggle('Data.put_map');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Data-class.html#put_map">put_map</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Data.put_map-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Data.put_map-expanded"><a name="L1634"></a><tt class="py-lineno">1634</tt> <tt class="py-line"> <tt class="py-docstring">"""</tt> </tt>
<a name="L1635"></a><tt class="py-lineno">1635</tt> <tt class="py-line"><tt class="py-docstring"> Puts a map value. Elements may be filled by entering the map node</tt> </tt>
<a name="L1636"></a><tt class="py-lineno">1636</tt> <tt class="py-line"><tt class="py-docstring"> and putting alternating key value pairs.</tt> </tt>
<a name="L1637"></a><tt class="py-lineno">1637</tt> <tt class="py-line"><tt class="py-docstring"></tt> </tt>
<a name="L1638"></a><tt class="py-lineno">1638</tt> <tt class="py-line"><tt class="py-docstring"> >>> data = Data()</tt> </tt>
<a name="L1639"></a><tt class="py-lineno">1639</tt> <tt class="py-line"><tt class="py-docstring"> >>> data.put_map()</tt> </tt>
<a name="L1640"></a><tt class="py-lineno">1640</tt> <tt class="py-line"><tt class="py-docstring"> >>> data.enter()</tt> </tt>
<a name="L1641"></a><tt class="py-lineno">1641</tt> <tt class="py-line"><tt class="py-docstring"> >>> data.put_string("key")</tt> </tt>
<a name="L1642"></a><tt class="py-lineno">1642</tt> <tt class="py-line"><tt class="py-docstring"> >>> data.put_string("value")</tt> </tt>
<a name="L1643"></a><tt class="py-lineno">1643</tt> <tt class="py-line"><tt class="py-docstring"> >>> data.exit()</tt> </tt>
<a name="L1644"></a><tt class="py-lineno">1644</tt> <tt class="py-line"><tt class="py-docstring"> """</tt> </tt>
<a name="L1645"></a><tt class="py-lineno">1645</tt> <tt class="py-line"> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_check</tt><tt class="py-op">(</tt><tt class="py-name">pn_data_put_map</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_data</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
</div><a name="L1646"></a><tt class="py-lineno">1646</tt> <tt class="py-line"> </tt>
<a name="Data.put_array"></a><div id="Data.put_array-def"><a name="L1647"></a><tt class="py-lineno">1647</tt> <a class="py-toggle" href="#" id="Data.put_array-toggle" onclick="return toggle('Data.put_array');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Data-class.html#put_array">put_array</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">described</tt><tt class="py-op">,</tt> <tt class="py-param">element_type</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Data.put_array-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Data.put_array-expanded"><a name="L1648"></a><tt class="py-lineno">1648</tt> <tt class="py-line"> <tt class="py-docstring">"""</tt> </tt>
<a name="L1649"></a><tt class="py-lineno">1649</tt> <tt class="py-line"><tt class="py-docstring"> Puts an array value. Elements may be filled by entering the array</tt> </tt>
<a name="L1650"></a><tt class="py-lineno">1650</tt> <tt class="py-line"><tt class="py-docstring"> node and putting the element values. The values must all be of the</tt> </tt>
<a name="L1651"></a><tt class="py-lineno">1651</tt> <tt class="py-line"><tt class="py-docstring"> specified array element type. If an array is described then the</tt> </tt>
<a name="L1652"></a><tt class="py-lineno">1652</tt> <tt class="py-line"><tt class="py-docstring"> first child value of the array is the descriptor and may be of any</tt> </tt>
<a name="L1653"></a><tt class="py-lineno">1653</tt> <tt class="py-line"><tt class="py-docstring"> type.</tt> </tt>
<a name="L1654"></a><tt class="py-lineno">1654</tt> <tt class="py-line"><tt class="py-docstring"></tt> </tt>
<a name="L1655"></a><tt class="py-lineno">1655</tt> <tt class="py-line"><tt class="py-docstring"> >>> data = Data()</tt> </tt>
<a name="L1656"></a><tt class="py-lineno">1656</tt> <tt class="py-line"><tt class="py-docstring"> >>></tt> </tt>
<a name="L1657"></a><tt class="py-lineno">1657</tt> <tt class="py-line"><tt class="py-docstring"> >>> data.put_array(False, Data.INT)</tt> </tt>
<a name="L1658"></a><tt class="py-lineno">1658</tt> <tt class="py-line"><tt class="py-docstring"> >>> data.enter()</tt> </tt>
<a name="L1659"></a><tt class="py-lineno">1659</tt> <tt class="py-line"><tt class="py-docstring"> >>> data.put_int(1)</tt> </tt>
<a name="L1660"></a><tt class="py-lineno">1660</tt> <tt class="py-line"><tt class="py-docstring"> >>> data.put_int(2)</tt> </tt>
<a name="L1661"></a><tt class="py-lineno">1661</tt> <tt class="py-line"><tt class="py-docstring"> >>> data.put_int(3)</tt> </tt>
<a name="L1662"></a><tt class="py-lineno">1662</tt> <tt class="py-line"><tt class="py-docstring"> >>> data.exit()</tt> </tt>
<a name="L1663"></a><tt class="py-lineno">1663</tt> <tt class="py-line"><tt class="py-docstring"> >>></tt> </tt>
<a name="L1664"></a><tt class="py-lineno">1664</tt> <tt class="py-line"><tt class="py-docstring"> >>> data.put_array(True, Data.DOUBLE)</tt> </tt>
<a name="L1665"></a><tt class="py-lineno">1665</tt> <tt class="py-line"><tt class="py-docstring"> >>> data.enter()</tt> </tt>
<a name="L1666"></a><tt class="py-lineno">1666</tt> <tt class="py-line"><tt class="py-docstring"> >>> data.put_symbol("array-descriptor")</tt> </tt>
<a name="L1667"></a><tt class="py-lineno">1667</tt> <tt class="py-line"><tt class="py-docstring"> >>> data.put_double(1.1)</tt> </tt>
<a name="L1668"></a><tt class="py-lineno">1668</tt> <tt class="py-line"><tt class="py-docstring"> >>> data.put_double(1.2)</tt> </tt>
<a name="L1669"></a><tt class="py-lineno">1669</tt> <tt class="py-line"><tt class="py-docstring"> >>> data.put_double(1.3)</tt> </tt>
<a name="L1670"></a><tt class="py-lineno">1670</tt> <tt class="py-line"><tt class="py-docstring"> >>> data.exit()</tt> </tt>
<a name="L1671"></a><tt class="py-lineno">1671</tt> <tt class="py-line"><tt class="py-docstring"></tt> </tt>
<a name="L1672"></a><tt class="py-lineno">1672</tt> <tt class="py-line"><tt class="py-docstring"> @type described: bool</tt> </tt>
<a name="L1673"></a><tt class="py-lineno">1673</tt> <tt class="py-line"><tt class="py-docstring"> @param described: specifies whether the array is described</tt> </tt>
<a name="L1674"></a><tt class="py-lineno">1674</tt> <tt class="py-line"><tt class="py-docstring"> @type element_type: int</tt> </tt>
<a name="L1675"></a><tt class="py-lineno">1675</tt> <tt class="py-line"><tt class="py-docstring"> @param element_type: the type of the array elements</tt> </tt>
<a name="L1676"></a><tt class="py-lineno">1676</tt> <tt class="py-line"><tt class="py-docstring"> """</tt> </tt>
<a name="L1677"></a><tt class="py-lineno">1677</tt> <tt class="py-line"> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_check</tt><tt class="py-op">(</tt><tt class="py-name">pn_data_put_array</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_data</tt><tt class="py-op">,</tt> <tt class="py-name">described</tt><tt class="py-op">,</tt> <tt class="py-name">element_type</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
</div><a name="L1678"></a><tt class="py-lineno">1678</tt> <tt class="py-line"> </tt>
<a name="Data.put_described"></a><div id="Data.put_described-def"><a name="L1679"></a><tt class="py-lineno">1679</tt> <a class="py-toggle" href="#" id="Data.put_described-toggle" onclick="return toggle('Data.put_described');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Data-class.html#put_described">put_described</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Data.put_described-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Data.put_described-expanded"><a name="L1680"></a><tt class="py-lineno">1680</tt> <tt class="py-line"> <tt class="py-docstring">"""</tt> </tt>
<a name="L1681"></a><tt class="py-lineno">1681</tt> <tt class="py-line"><tt class="py-docstring"> Puts a described value. A described node has two children, the</tt> </tt>
<a name="L1682"></a><tt class="py-lineno">1682</tt> <tt class="py-line"><tt class="py-docstring"> descriptor and the value. These are specified by entering the node</tt> </tt>
<a name="L1683"></a><tt class="py-lineno">1683</tt> <tt class="py-line"><tt class="py-docstring"> and putting the desired values.</tt> </tt>
<a name="L1684"></a><tt class="py-lineno">1684</tt> <tt class="py-line"><tt class="py-docstring"></tt> </tt>
<a name="L1685"></a><tt class="py-lineno">1685</tt> <tt class="py-line"><tt class="py-docstring"> >>> data = Data()</tt> </tt>
<a name="L1686"></a><tt class="py-lineno">1686</tt> <tt class="py-line"><tt class="py-docstring"> >>> data.put_described()</tt> </tt>
<a name="L1687"></a><tt class="py-lineno">1687</tt> <tt class="py-line"><tt class="py-docstring"> >>> data.enter()</tt> </tt>
<a name="L1688"></a><tt class="py-lineno">1688</tt> <tt class="py-line"><tt class="py-docstring"> >>> data.put_symbol("value-descriptor")</tt> </tt>
<a name="L1689"></a><tt class="py-lineno">1689</tt> <tt class="py-line"><tt class="py-docstring"> >>> data.put_string("the value")</tt> </tt>
<a name="L1690"></a><tt class="py-lineno">1690</tt> <tt class="py-line"><tt class="py-docstring"> >>> data.exit()</tt> </tt>
<a name="L1691"></a><tt class="py-lineno">1691</tt> <tt class="py-line"><tt class="py-docstring"> """</tt> </tt>
<a name="L1692"></a><tt class="py-lineno">1692</tt> <tt class="py-line"> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_check</tt><tt class="py-op">(</tt><tt class="py-name">pn_data_put_described</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_data</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
</div><a name="L1693"></a><tt class="py-lineno">1693</tt> <tt class="py-line"> </tt>
<a name="Data.put_null"></a><div id="Data.put_null-def"><a name="L1694"></a><tt class="py-lineno">1694</tt> <a class="py-toggle" href="#" id="Data.put_null-toggle" onclick="return toggle('Data.put_null');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Data-class.html#put_null">put_null</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Data.put_null-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Data.put_null-expanded"><a name="L1695"></a><tt class="py-lineno">1695</tt> <tt class="py-line"> <tt class="py-docstring">"""</tt> </tt>
<a name="L1696"></a><tt class="py-lineno">1696</tt> <tt class="py-line"><tt class="py-docstring"> Puts a null value.</tt> </tt>
<a name="L1697"></a><tt class="py-lineno">1697</tt> <tt class="py-line"><tt class="py-docstring"> """</tt> </tt>
<a name="L1698"></a><tt class="py-lineno">1698</tt> <tt class="py-line"> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_check</tt><tt class="py-op">(</tt><tt class="py-name">pn_data_put_null</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_data</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
</div><a name="L1699"></a><tt class="py-lineno">1699</tt> <tt class="py-line"> </tt>
<a name="Data.put_bool"></a><div id="Data.put_bool-def"><a name="L1700"></a><tt class="py-lineno">1700</tt> <a class="py-toggle" href="#" id="Data.put_bool-toggle" onclick="return toggle('Data.put_bool');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Data-class.html#put_bool">put_bool</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">b</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Data.put_bool-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Data.put_bool-expanded"><a name="L1701"></a><tt class="py-lineno">1701</tt> <tt class="py-line"> <tt class="py-docstring">"""</tt> </tt>
<a name="L1702"></a><tt class="py-lineno">1702</tt> <tt class="py-line"><tt class="py-docstring"> Puts a boolean value.</tt> </tt>
<a name="L1703"></a><tt class="py-lineno">1703</tt> <tt class="py-line"><tt class="py-docstring"></tt> </tt>
<a name="L1704"></a><tt class="py-lineno">1704</tt> <tt class="py-line"><tt class="py-docstring"> @param b: a boolean value</tt> </tt>
<a name="L1705"></a><tt class="py-lineno">1705</tt> <tt class="py-line"><tt class="py-docstring"> """</tt> </tt>
<a name="L1706"></a><tt class="py-lineno">1706</tt> <tt class="py-line"> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_check</tt><tt class="py-op">(</tt><tt class="py-name">pn_data_put_bool</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_data</tt><tt class="py-op">,</tt> <tt class="py-name">b</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
</div><a name="L1707"></a><tt class="py-lineno">1707</tt> <tt class="py-line"> </tt>
<a name="Data.put_ubyte"></a><div id="Data.put_ubyte-def"><a name="L1708"></a><tt class="py-lineno">1708</tt> <a class="py-toggle" href="#" id="Data.put_ubyte-toggle" onclick="return toggle('Data.put_ubyte');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Data-class.html#put_ubyte">put_ubyte</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">ub</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Data.put_ubyte-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Data.put_ubyte-expanded"><a name="L1709"></a><tt class="py-lineno">1709</tt> <tt class="py-line"> <tt class="py-docstring">"""</tt> </tt>
<a name="L1710"></a><tt class="py-lineno">1710</tt> <tt class="py-line"><tt class="py-docstring"> Puts an unsigned byte value.</tt> </tt>
<a name="L1711"></a><tt class="py-lineno">1711</tt> <tt class="py-line"><tt class="py-docstring"></tt> </tt>
<a name="L1712"></a><tt class="py-lineno">1712</tt> <tt class="py-line"><tt class="py-docstring"> @param ub: an integral value</tt> </tt>
<a name="L1713"></a><tt class="py-lineno">1713</tt> <tt class="py-line"><tt class="py-docstring"> """</tt> </tt>
<a name="L1714"></a><tt class="py-lineno">1714</tt> <tt class="py-line"> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_check</tt><tt class="py-op">(</tt><tt class="py-name">pn_data_put_ubyte</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_data</tt><tt class="py-op">,</tt> <tt class="py-name">ub</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
</div><a name="L1715"></a><tt class="py-lineno">1715</tt> <tt class="py-line"> </tt>
<a name="Data.put_byte"></a><div id="Data.put_byte-def"><a name="L1716"></a><tt class="py-lineno">1716</tt> <a class="py-toggle" href="#" id="Data.put_byte-toggle" onclick="return toggle('Data.put_byte');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Data-class.html#put_byte">put_byte</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">b</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Data.put_byte-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Data.put_byte-expanded"><a name="L1717"></a><tt class="py-lineno">1717</tt> <tt class="py-line"> <tt class="py-docstring">"""</tt> </tt>
<a name="L1718"></a><tt class="py-lineno">1718</tt> <tt class="py-line"><tt class="py-docstring"> Puts a signed byte value.</tt> </tt>
<a name="L1719"></a><tt class="py-lineno">1719</tt> <tt class="py-line"><tt class="py-docstring"></tt> </tt>
<a name="L1720"></a><tt class="py-lineno">1720</tt> <tt class="py-line"><tt class="py-docstring"> @param b: an integral value</tt> </tt>
<a name="L1721"></a><tt class="py-lineno">1721</tt> <tt class="py-line"><tt class="py-docstring"> """</tt> </tt>
<a name="L1722"></a><tt class="py-lineno">1722</tt> <tt class="py-line"> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_check</tt><tt class="py-op">(</tt><tt class="py-name">pn_data_put_byte</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_data</tt><tt class="py-op">,</tt> <tt class="py-name">b</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
</div><a name="L1723"></a><tt class="py-lineno">1723</tt> <tt class="py-line"> </tt>
<a name="Data.put_ushort"></a><div id="Data.put_ushort-def"><a name="L1724"></a><tt class="py-lineno">1724</tt> <a class="py-toggle" href="#" id="Data.put_ushort-toggle" onclick="return toggle('Data.put_ushort');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Data-class.html#put_ushort">put_ushort</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">us</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Data.put_ushort-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Data.put_ushort-expanded"><a name="L1725"></a><tt class="py-lineno">1725</tt> <tt class="py-line"> <tt class="py-docstring">"""</tt> </tt>
<a name="L1726"></a><tt class="py-lineno">1726</tt> <tt class="py-line"><tt class="py-docstring"> Puts an unsigned short value.</tt> </tt>
<a name="L1727"></a><tt class="py-lineno">1727</tt> <tt class="py-line"><tt class="py-docstring"></tt> </tt>
<a name="L1728"></a><tt class="py-lineno">1728</tt> <tt class="py-line"><tt class="py-docstring"> @param us: an integral value.</tt> </tt>
<a name="L1729"></a><tt class="py-lineno">1729</tt> <tt class="py-line"><tt class="py-docstring"> """</tt> </tt>
<a name="L1730"></a><tt class="py-lineno">1730</tt> <tt class="py-line"> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_check</tt><tt class="py-op">(</tt><tt class="py-name">pn_data_put_ushort</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_data</tt><tt class="py-op">,</tt> <tt class="py-name">us</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
</div><a name="L1731"></a><tt class="py-lineno">1731</tt> <tt class="py-line"> </tt>
<a name="Data.put_short"></a><div id="Data.put_short-def"><a name="L1732"></a><tt class="py-lineno">1732</tt> <a class="py-toggle" href="#" id="Data.put_short-toggle" onclick="return toggle('Data.put_short');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Data-class.html#put_short">put_short</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">s</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Data.put_short-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Data.put_short-expanded"><a name="L1733"></a><tt class="py-lineno">1733</tt> <tt class="py-line"> <tt class="py-docstring">"""</tt> </tt>
<a name="L1734"></a><tt class="py-lineno">1734</tt> <tt class="py-line"><tt class="py-docstring"> Puts a signed short value.</tt> </tt>
<a name="L1735"></a><tt class="py-lineno">1735</tt> <tt class="py-line"><tt class="py-docstring"></tt> </tt>
<a name="L1736"></a><tt class="py-lineno">1736</tt> <tt class="py-line"><tt class="py-docstring"> @param s: an integral value</tt> </tt>
<a name="L1737"></a><tt class="py-lineno">1737</tt> <tt class="py-line"><tt class="py-docstring"> """</tt> </tt>
<a name="L1738"></a><tt class="py-lineno">1738</tt> <tt class="py-line"> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_check</tt><tt class="py-op">(</tt><tt class="py-name">pn_data_put_short</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_data</tt><tt class="py-op">,</tt> <tt class="py-name">s</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
</div><a name="L1739"></a><tt class="py-lineno">1739</tt> <tt class="py-line"> </tt>
<a name="Data.put_uint"></a><div id="Data.put_uint-def"><a name="L1740"></a><tt class="py-lineno">1740</tt> <a class="py-toggle" href="#" id="Data.put_uint-toggle" onclick="return toggle('Data.put_uint');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Data-class.html#put_uint">put_uint</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">ui</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Data.put_uint-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Data.put_uint-expanded"><a name="L1741"></a><tt class="py-lineno">1741</tt> <tt class="py-line"> <tt class="py-docstring">"""</tt> </tt>
<a name="L1742"></a><tt class="py-lineno">1742</tt> <tt class="py-line"><tt class="py-docstring"> Puts an unsigned int value.</tt> </tt>
<a name="L1743"></a><tt class="py-lineno">1743</tt> <tt class="py-line"><tt class="py-docstring"></tt> </tt>
<a name="L1744"></a><tt class="py-lineno">1744</tt> <tt class="py-line"><tt class="py-docstring"> @param ui: an integral value</tt> </tt>
<a name="L1745"></a><tt class="py-lineno">1745</tt> <tt class="py-line"><tt class="py-docstring"> """</tt> </tt>
<a name="L1746"></a><tt class="py-lineno">1746</tt> <tt class="py-line"> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_check</tt><tt class="py-op">(</tt><tt class="py-name">pn_data_put_uint</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_data</tt><tt class="py-op">,</tt> <tt class="py-name">ui</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
</div><a name="L1747"></a><tt class="py-lineno">1747</tt> <tt class="py-line"> </tt>
<a name="Data.put_int"></a><div id="Data.put_int-def"><a name="L1748"></a><tt class="py-lineno">1748</tt> <a class="py-toggle" href="#" id="Data.put_int-toggle" onclick="return toggle('Data.put_int');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Data-class.html#put_int">put_int</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">i</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Data.put_int-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Data.put_int-expanded"><a name="L1749"></a><tt class="py-lineno">1749</tt> <tt class="py-line"> <tt class="py-docstring">"""</tt> </tt>
<a name="L1750"></a><tt class="py-lineno">1750</tt> <tt class="py-line"><tt class="py-docstring"> Puts a signed int value.</tt> </tt>
<a name="L1751"></a><tt class="py-lineno">1751</tt> <tt class="py-line"><tt class="py-docstring"></tt> </tt>
<a name="L1752"></a><tt class="py-lineno">1752</tt> <tt class="py-line"><tt class="py-docstring"> @param i: an integral value</tt> </tt>
<a name="L1753"></a><tt class="py-lineno">1753</tt> <tt class="py-line"><tt class="py-docstring"> """</tt> </tt>
<a name="L1754"></a><tt class="py-lineno">1754</tt> <tt class="py-line"> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_check</tt><tt class="py-op">(</tt><tt class="py-name">pn_data_put_int</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_data</tt><tt class="py-op">,</tt> <tt class="py-name">i</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
</div><a name="L1755"></a><tt class="py-lineno">1755</tt> <tt class="py-line"> </tt>
<a name="Data.put_char"></a><div id="Data.put_char-def"><a name="L1756"></a><tt class="py-lineno">1756</tt> <a class="py-toggle" href="#" id="Data.put_char-toggle" onclick="return toggle('Data.put_char');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Data-class.html#put_char">put_char</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">c</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Data.put_char-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Data.put_char-expanded"><a name="L1757"></a><tt class="py-lineno">1757</tt> <tt class="py-line"> <tt class="py-docstring">"""</tt> </tt>
<a name="L1758"></a><tt class="py-lineno">1758</tt> <tt class="py-line"><tt class="py-docstring"> Puts a char value.</tt> </tt>
<a name="L1759"></a><tt class="py-lineno">1759</tt> <tt class="py-line"><tt class="py-docstring"></tt> </tt>
<a name="L1760"></a><tt class="py-lineno">1760</tt> <tt class="py-line"><tt class="py-docstring"> @param c: a single character</tt> </tt>
<a name="L1761"></a><tt class="py-lineno">1761</tt> <tt class="py-line"><tt class="py-docstring"> """</tt> </tt>
<a name="L1762"></a><tt class="py-lineno">1762</tt> <tt class="py-line"> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_check</tt><tt class="py-op">(</tt><tt class="py-name">pn_data_put_char</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_data</tt><tt class="py-op">,</tt> <tt class="py-name">ord</tt><tt class="py-op">(</tt><tt class="py-name">c</tt><tt class="py-op">)</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
</div><a name="L1763"></a><tt class="py-lineno">1763</tt> <tt class="py-line"> </tt>
<a name="Data.put_ulong"></a><div id="Data.put_ulong-def"><a name="L1764"></a><tt class="py-lineno">1764</tt> <a class="py-toggle" href="#" id="Data.put_ulong-toggle" onclick="return toggle('Data.put_ulong');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Data-class.html#put_ulong">put_ulong</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">ul</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Data.put_ulong-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Data.put_ulong-expanded"><a name="L1765"></a><tt class="py-lineno">1765</tt> <tt class="py-line"> <tt class="py-docstring">"""</tt> </tt>
<a name="L1766"></a><tt class="py-lineno">1766</tt> <tt class="py-line"><tt class="py-docstring"> Puts an unsigned long value.</tt> </tt>
<a name="L1767"></a><tt class="py-lineno">1767</tt> <tt class="py-line"><tt class="py-docstring"></tt> </tt>
<a name="L1768"></a><tt class="py-lineno">1768</tt> <tt class="py-line"><tt class="py-docstring"> @param ul: an integral value</tt> </tt>
<a name="L1769"></a><tt class="py-lineno">1769</tt> <tt class="py-line"><tt class="py-docstring"> """</tt> </tt>
<a name="L1770"></a><tt class="py-lineno">1770</tt> <tt class="py-line"> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_check</tt><tt class="py-op">(</tt><tt class="py-name">pn_data_put_ulong</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_data</tt><tt class="py-op">,</tt> <tt class="py-name">ul</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
</div><a name="L1771"></a><tt class="py-lineno">1771</tt> <tt class="py-line"> </tt>
<a name="Data.put_long"></a><div id="Data.put_long-def"><a name="L1772"></a><tt class="py-lineno">1772</tt> <a class="py-toggle" href="#" id="Data.put_long-toggle" onclick="return toggle('Data.put_long');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Data-class.html#put_long">put_long</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">l</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Data.put_long-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Data.put_long-expanded"><a name="L1773"></a><tt class="py-lineno">1773</tt> <tt class="py-line"> <tt class="py-docstring">"""</tt> </tt>
<a name="L1774"></a><tt class="py-lineno">1774</tt> <tt class="py-line"><tt class="py-docstring"> Puts a signed long value.</tt> </tt>
<a name="L1775"></a><tt class="py-lineno">1775</tt> <tt class="py-line"><tt class="py-docstring"></tt> </tt>
<a name="L1776"></a><tt class="py-lineno">1776</tt> <tt class="py-line"><tt class="py-docstring"> @param l: an integral value</tt> </tt>
<a name="L1777"></a><tt class="py-lineno">1777</tt> <tt class="py-line"><tt class="py-docstring"> """</tt> </tt>
<a name="L1778"></a><tt class="py-lineno">1778</tt> <tt class="py-line"> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_check</tt><tt class="py-op">(</tt><tt class="py-name">pn_data_put_long</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_data</tt><tt class="py-op">,</tt> <tt class="py-name">l</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
</div><a name="L1779"></a><tt class="py-lineno">1779</tt> <tt class="py-line"> </tt>
<a name="Data.put_timestamp"></a><div id="Data.put_timestamp-def"><a name="L1780"></a><tt class="py-lineno">1780</tt> <a class="py-toggle" href="#" id="Data.put_timestamp-toggle" onclick="return toggle('Data.put_timestamp');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Data-class.html#put_timestamp">put_timestamp</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">t</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Data.put_timestamp-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Data.put_timestamp-expanded"><a name="L1781"></a><tt class="py-lineno">1781</tt> <tt class="py-line"> <tt class="py-docstring">"""</tt> </tt>
<a name="L1782"></a><tt class="py-lineno">1782</tt> <tt class="py-line"><tt class="py-docstring"> Puts a timestamp value.</tt> </tt>
<a name="L1783"></a><tt class="py-lineno">1783</tt> <tt class="py-line"><tt class="py-docstring"></tt> </tt>
<a name="L1784"></a><tt class="py-lineno">1784</tt> <tt class="py-line"><tt class="py-docstring"> @param t: an integral value</tt> </tt>
<a name="L1785"></a><tt class="py-lineno">1785</tt> <tt class="py-line"><tt class="py-docstring"> """</tt> </tt>
<a name="L1786"></a><tt class="py-lineno">1786</tt> <tt class="py-line"> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_check</tt><tt class="py-op">(</tt><tt class="py-name">pn_data_put_timestamp</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_data</tt><tt class="py-op">,</tt> <tt class="py-name">t</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
</div><a name="L1787"></a><tt class="py-lineno">1787</tt> <tt class="py-line"> </tt>
<a name="Data.put_float"></a><div id="Data.put_float-def"><a name="L1788"></a><tt class="py-lineno">1788</tt> <a class="py-toggle" href="#" id="Data.put_float-toggle" onclick="return toggle('Data.put_float');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Data-class.html#put_float">put_float</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">f</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Data.put_float-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Data.put_float-expanded"><a name="L1789"></a><tt class="py-lineno">1789</tt> <tt class="py-line"> <tt class="py-docstring">"""</tt> </tt>
<a name="L1790"></a><tt class="py-lineno">1790</tt> <tt class="py-line"><tt class="py-docstring"> Puts a float value.</tt> </tt>
<a name="L1791"></a><tt class="py-lineno">1791</tt> <tt class="py-line"><tt class="py-docstring"></tt> </tt>
<a name="L1792"></a><tt class="py-lineno">1792</tt> <tt class="py-line"><tt class="py-docstring"> @param f: a floating point value</tt> </tt>
<a name="L1793"></a><tt class="py-lineno">1793</tt> <tt class="py-line"><tt class="py-docstring"> """</tt> </tt>
<a name="L1794"></a><tt class="py-lineno">1794</tt> <tt class="py-line"> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_check</tt><tt class="py-op">(</tt><tt class="py-name">pn_data_put_float</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_data</tt><tt class="py-op">,</tt> <tt class="py-name">f</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
</div><a name="L1795"></a><tt class="py-lineno">1795</tt> <tt class="py-line"> </tt>
<a name="Data.put_double"></a><div id="Data.put_double-def"><a name="L1796"></a><tt class="py-lineno">1796</tt> <a class="py-toggle" href="#" id="Data.put_double-toggle" onclick="return toggle('Data.put_double');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Data-class.html#put_double">put_double</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">d</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Data.put_double-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Data.put_double-expanded"><a name="L1797"></a><tt class="py-lineno">1797</tt> <tt class="py-line"> <tt class="py-docstring">"""</tt> </tt>
<a name="L1798"></a><tt class="py-lineno">1798</tt> <tt class="py-line"><tt class="py-docstring"> Puts a double value.</tt> </tt>
<a name="L1799"></a><tt class="py-lineno">1799</tt> <tt class="py-line"><tt class="py-docstring"></tt> </tt>
<a name="L1800"></a><tt class="py-lineno">1800</tt> <tt class="py-line"><tt class="py-docstring"> @param d: a floating point value.</tt> </tt>
<a name="L1801"></a><tt class="py-lineno">1801</tt> <tt class="py-line"><tt class="py-docstring"> """</tt> </tt>
<a name="L1802"></a><tt class="py-lineno">1802</tt> <tt class="py-line"> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_check</tt><tt class="py-op">(</tt><tt class="py-name">pn_data_put_double</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_data</tt><tt class="py-op">,</tt> <tt class="py-name">d</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
</div><a name="L1803"></a><tt class="py-lineno">1803</tt> <tt class="py-line"> </tt>
<a name="Data.put_decimal32"></a><div id="Data.put_decimal32-def"><a name="L1804"></a><tt class="py-lineno">1804</tt> <a class="py-toggle" href="#" id="Data.put_decimal32-toggle" onclick="return toggle('Data.put_decimal32');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Data-class.html#put_decimal32">put_decimal32</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">d</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Data.put_decimal32-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Data.put_decimal32-expanded"><a name="L1805"></a><tt class="py-lineno">1805</tt> <tt class="py-line"> <tt class="py-docstring">"""</tt> </tt>
<a name="L1806"></a><tt class="py-lineno">1806</tt> <tt class="py-line"><tt class="py-docstring"> Puts a decimal32 value.</tt> </tt>
<a name="L1807"></a><tt class="py-lineno">1807</tt> <tt class="py-line"><tt class="py-docstring"></tt> </tt>
<a name="L1808"></a><tt class="py-lineno">1808</tt> <tt class="py-line"><tt class="py-docstring"> @param d: a decimal32 value</tt> </tt>
<a name="L1809"></a><tt class="py-lineno">1809</tt> <tt class="py-line"><tt class="py-docstring"> """</tt> </tt>
<a name="L1810"></a><tt class="py-lineno">1810</tt> <tt class="py-line"> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_check</tt><tt class="py-op">(</tt><tt class="py-name">pn_data_put_decimal32</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_data</tt><tt class="py-op">,</tt> <tt class="py-name">d</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
</div><a name="L1811"></a><tt class="py-lineno">1811</tt> <tt class="py-line"> </tt>
<a name="Data.put_decimal64"></a><div id="Data.put_decimal64-def"><a name="L1812"></a><tt class="py-lineno">1812</tt> <a class="py-toggle" href="#" id="Data.put_decimal64-toggle" onclick="return toggle('Data.put_decimal64');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Data-class.html#put_decimal64">put_decimal64</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">d</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Data.put_decimal64-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Data.put_decimal64-expanded"><a name="L1813"></a><tt class="py-lineno">1813</tt> <tt class="py-line"> <tt class="py-docstring">"""</tt> </tt>
<a name="L1814"></a><tt class="py-lineno">1814</tt> <tt class="py-line"><tt class="py-docstring"> Puts a decimal64 value.</tt> </tt>
<a name="L1815"></a><tt class="py-lineno">1815</tt> <tt class="py-line"><tt class="py-docstring"></tt> </tt>
<a name="L1816"></a><tt class="py-lineno">1816</tt> <tt class="py-line"><tt class="py-docstring"> @param d: a decimal64 value</tt> </tt>
<a name="L1817"></a><tt class="py-lineno">1817</tt> <tt class="py-line"><tt class="py-docstring"> """</tt> </tt>
<a name="L1818"></a><tt class="py-lineno">1818</tt> <tt class="py-line"> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_check</tt><tt class="py-op">(</tt><tt class="py-name">pn_data_put_decimal64</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_data</tt><tt class="py-op">,</tt> <tt class="py-name">d</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
</div><a name="L1819"></a><tt class="py-lineno">1819</tt> <tt class="py-line"> </tt>
<a name="Data.put_decimal128"></a><div id="Data.put_decimal128-def"><a name="L1820"></a><tt class="py-lineno">1820</tt> <a class="py-toggle" href="#" id="Data.put_decimal128-toggle" onclick="return toggle('Data.put_decimal128');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Data-class.html#put_decimal128">put_decimal128</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">d</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Data.put_decimal128-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Data.put_decimal128-expanded"><a name="L1821"></a><tt class="py-lineno">1821</tt> <tt class="py-line"> <tt class="py-docstring">"""</tt> </tt>
<a name="L1822"></a><tt class="py-lineno">1822</tt> <tt class="py-line"><tt class="py-docstring"> Puts a decimal128 value.</tt> </tt>
<a name="L1823"></a><tt class="py-lineno">1823</tt> <tt class="py-line"><tt class="py-docstring"></tt> </tt>
<a name="L1824"></a><tt class="py-lineno">1824</tt> <tt class="py-line"><tt class="py-docstring"> @param d: a decimal128 value</tt> </tt>
<a name="L1825"></a><tt class="py-lineno">1825</tt> <tt class="py-line"><tt class="py-docstring"> """</tt> </tt>
<a name="L1826"></a><tt class="py-lineno">1826</tt> <tt class="py-line"> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_check</tt><tt class="py-op">(</tt><tt class="py-name">pn_data_put_decimal128</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_data</tt><tt class="py-op">,</tt> <tt class="py-name">d</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
</div><a name="L1827"></a><tt class="py-lineno">1827</tt> <tt class="py-line"> </tt>
<a name="Data.put_uuid"></a><div id="Data.put_uuid-def"><a name="L1828"></a><tt class="py-lineno">1828</tt> <a class="py-toggle" href="#" id="Data.put_uuid-toggle" onclick="return toggle('Data.put_uuid');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Data-class.html#put_uuid">put_uuid</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">u</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Data.put_uuid-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Data.put_uuid-expanded"><a name="L1829"></a><tt class="py-lineno">1829</tt> <tt class="py-line"> <tt class="py-docstring">"""</tt> </tt>
<a name="L1830"></a><tt class="py-lineno">1830</tt> <tt class="py-line"><tt class="py-docstring"> Puts a UUID value.</tt> </tt>
<a name="L1831"></a><tt class="py-lineno">1831</tt> <tt class="py-line"><tt class="py-docstring"></tt> </tt>
<a name="L1832"></a><tt class="py-lineno">1832</tt> <tt class="py-line"><tt class="py-docstring"> @param u: a uuid value</tt> </tt>
<a name="L1833"></a><tt class="py-lineno">1833</tt> <tt class="py-line"><tt class="py-docstring"> """</tt> </tt>
<a name="L1834"></a><tt class="py-lineno">1834</tt> <tt class="py-line"> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_check</tt><tt class="py-op">(</tt><tt class="py-name">pn_data_put_uuid</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_data</tt><tt class="py-op">,</tt> <tt class="py-name">u</tt><tt class="py-op">.</tt><tt class="py-name">bytes</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
</div><a name="L1835"></a><tt class="py-lineno">1835</tt> <tt class="py-line"> </tt>
<a name="Data.put_binary"></a><div id="Data.put_binary-def"><a name="L1836"></a><tt class="py-lineno">1836</tt> <a class="py-toggle" href="#" id="Data.put_binary-toggle" onclick="return toggle('Data.put_binary');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Data-class.html#put_binary">put_binary</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">b</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Data.put_binary-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Data.put_binary-expanded"><a name="L1837"></a><tt class="py-lineno">1837</tt> <tt class="py-line"> <tt class="py-docstring">"""</tt> </tt>
<a name="L1838"></a><tt class="py-lineno">1838</tt> <tt class="py-line"><tt class="py-docstring"> Puts a binary value.</tt> </tt>
<a name="L1839"></a><tt class="py-lineno">1839</tt> <tt class="py-line"><tt class="py-docstring"></tt> </tt>
<a name="L1840"></a><tt class="py-lineno">1840</tt> <tt class="py-line"><tt class="py-docstring"> @type b: binary</tt> </tt>
<a name="L1841"></a><tt class="py-lineno">1841</tt> <tt class="py-line"><tt class="py-docstring"> @param b: a binary value</tt> </tt>
<a name="L1842"></a><tt class="py-lineno">1842</tt> <tt class="py-line"><tt class="py-docstring"> """</tt> </tt>
<a name="L1843"></a><tt class="py-lineno">1843</tt> <tt class="py-line"> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_check</tt><tt class="py-op">(</tt><tt class="py-name">pn_data_put_binary</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_data</tt><tt class="py-op">,</tt> <tt class="py-name">b</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
</div><a name="L1844"></a><tt class="py-lineno">1844</tt> <tt class="py-line"> </tt>
<a name="Data.put_string"></a><div id="Data.put_string-def"><a name="L1845"></a><tt class="py-lineno">1845</tt> <a class="py-toggle" href="#" id="Data.put_string-toggle" onclick="return toggle('Data.put_string');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Data-class.html#put_string">put_string</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">s</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Data.put_string-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Data.put_string-expanded"><a name="L1846"></a><tt class="py-lineno">1846</tt> <tt class="py-line"> <tt class="py-docstring">"""</tt> </tt>
<a name="L1847"></a><tt class="py-lineno">1847</tt> <tt class="py-line"><tt class="py-docstring"> Puts a unicode value.</tt> </tt>
<a name="L1848"></a><tt class="py-lineno">1848</tt> <tt class="py-line"><tt class="py-docstring"></tt> </tt>
<a name="L1849"></a><tt class="py-lineno">1849</tt> <tt class="py-line"><tt class="py-docstring"> @type s: unicode</tt> </tt>
<a name="L1850"></a><tt class="py-lineno">1850</tt> <tt class="py-line"><tt class="py-docstring"> @param s: a unicode value</tt> </tt>
<a name="L1851"></a><tt class="py-lineno">1851</tt> <tt class="py-line"><tt class="py-docstring"> """</tt> </tt>
<a name="L1852"></a><tt class="py-lineno">1852</tt> <tt class="py-line"> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_check</tt><tt class="py-op">(</tt><tt class="py-name">pn_data_put_string</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_data</tt><tt class="py-op">,</tt> <tt class="py-name">s</tt><tt class="py-op">.</tt><tt id="link-334" class="py-name"><a title="proton.Data.encode
proton.Message.encode" class="py-name" href="#" onclick="return doclink('link-334', 'encode', 'link-214');">encode</a></tt><tt class="py-op">(</tt><tt class="py-string">"utf8"</tt><tt class="py-op">)</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
</div><a name="L1853"></a><tt class="py-lineno">1853</tt> <tt class="py-line"> </tt>
<a name="Data.put_symbol"></a><div id="Data.put_symbol-def"><a name="L1854"></a><tt class="py-lineno">1854</tt> <a class="py-toggle" href="#" id="Data.put_symbol-toggle" onclick="return toggle('Data.put_symbol');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Data-class.html#put_symbol">put_symbol</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">s</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Data.put_symbol-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Data.put_symbol-expanded"><a name="L1855"></a><tt class="py-lineno">1855</tt> <tt class="py-line"> <tt class="py-docstring">"""</tt> </tt>
<a name="L1856"></a><tt class="py-lineno">1856</tt> <tt class="py-line"><tt class="py-docstring"> Puts a symbolic value.</tt> </tt>
<a name="L1857"></a><tt class="py-lineno">1857</tt> <tt class="py-line"><tt class="py-docstring"></tt> </tt>
<a name="L1858"></a><tt class="py-lineno">1858</tt> <tt class="py-line"><tt class="py-docstring"> @type s: string</tt> </tt>
<a name="L1859"></a><tt class="py-lineno">1859</tt> <tt class="py-line"><tt class="py-docstring"> @param s: the symbol name</tt> </tt>
<a name="L1860"></a><tt class="py-lineno">1860</tt> <tt class="py-line"><tt class="py-docstring"> """</tt> </tt>
<a name="L1861"></a><tt class="py-lineno">1861</tt> <tt class="py-line"> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_check</tt><tt class="py-op">(</tt><tt class="py-name">pn_data_put_symbol</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_data</tt><tt class="py-op">,</tt> <tt class="py-name">s</tt><tt class="py-op">.</tt><tt id="link-335" class="py-name"><a title="proton.Data.encode
proton.Message.encode" class="py-name" href="#" onclick="return doclink('link-335', 'encode', 'link-214');">encode</a></tt><tt class="py-op">(</tt><tt class="py-string">'ascii'</tt><tt class="py-op">)</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
</div><a name="L1862"></a><tt class="py-lineno">1862</tt> <tt class="py-line"> </tt>
<a name="Data.get_list"></a><div id="Data.get_list-def"><a name="L1863"></a><tt class="py-lineno">1863</tt> <a class="py-toggle" href="#" id="Data.get_list-toggle" onclick="return toggle('Data.get_list');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Data-class.html#get_list">get_list</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Data.get_list-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Data.get_list-expanded"><a name="L1864"></a><tt class="py-lineno">1864</tt> <tt class="py-line"> <tt class="py-docstring">"""</tt> </tt>
<a name="L1865"></a><tt class="py-lineno">1865</tt> <tt class="py-line"><tt class="py-docstring"> If the current node is a list, return the number of elements,</tt> </tt>
<a name="L1866"></a><tt class="py-lineno">1866</tt> <tt class="py-line"><tt class="py-docstring"> otherwise return zero. List elements can be accessed by entering</tt> </tt>
<a name="L1867"></a><tt class="py-lineno">1867</tt> <tt class="py-line"><tt class="py-docstring"> the list.</tt> </tt>
<a name="L1868"></a><tt class="py-lineno">1868</tt> <tt class="py-line"><tt class="py-docstring"></tt> </tt>
<a name="L1869"></a><tt class="py-lineno">1869</tt> <tt class="py-line"><tt class="py-docstring"> >>> count = data.get_list()</tt> </tt>
<a name="L1870"></a><tt class="py-lineno">1870</tt> <tt class="py-line"><tt class="py-docstring"> >>> data.enter()</tt> </tt>
<a name="L1871"></a><tt class="py-lineno">1871</tt> <tt class="py-line"><tt class="py-docstring"> >>> for i in range(count):</tt> </tt>
<a name="L1872"></a><tt class="py-lineno">1872</tt> <tt class="py-line"><tt class="py-docstring"> ... type = data.next()</tt> </tt>
<a name="L1873"></a><tt class="py-lineno">1873</tt> <tt class="py-line"><tt class="py-docstring"> ... if type == Data.STRING:</tt> </tt>
<a name="L1874"></a><tt class="py-lineno">1874</tt> <tt class="py-line"><tt class="py-docstring"> ... print data.get_string()</tt> </tt>
<a name="L1875"></a><tt class="py-lineno">1875</tt> <tt class="py-line"><tt class="py-docstring"> ... elif type == ...:</tt> </tt>
<a name="L1876"></a><tt class="py-lineno">1876</tt> <tt class="py-line"><tt class="py-docstring"> ... ...</tt> </tt>
<a name="L1877"></a><tt class="py-lineno">1877</tt> <tt class="py-line"><tt class="py-docstring"> >>> data.exit()</tt> </tt>
<a name="L1878"></a><tt class="py-lineno">1878</tt> <tt class="py-line"><tt class="py-docstring"> """</tt> </tt>
<a name="L1879"></a><tt class="py-lineno">1879</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt class="py-name">pn_data_get_list</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_data</tt><tt class="py-op">)</tt> </tt>
</div><a name="L1880"></a><tt class="py-lineno">1880</tt> <tt class="py-line"> </tt>
<a name="Data.get_map"></a><div id="Data.get_map-def"><a name="L1881"></a><tt class="py-lineno">1881</tt> <a class="py-toggle" href="#" id="Data.get_map-toggle" onclick="return toggle('Data.get_map');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Data-class.html#get_map">get_map</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Data.get_map-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Data.get_map-expanded"><a name="L1882"></a><tt class="py-lineno">1882</tt> <tt class="py-line"> <tt class="py-docstring">"""</tt> </tt>
<a name="L1883"></a><tt class="py-lineno">1883</tt> <tt class="py-line"><tt class="py-docstring"> If the current node is a map, return the number of child elements,</tt> </tt>
<a name="L1884"></a><tt class="py-lineno">1884</tt> <tt class="py-line"><tt class="py-docstring"> otherwise return zero. Key value pairs can be accessed by entering</tt> </tt>
<a name="L1885"></a><tt class="py-lineno">1885</tt> <tt class="py-line"><tt class="py-docstring"> the map.</tt> </tt>
<a name="L1886"></a><tt class="py-lineno">1886</tt> <tt class="py-line"><tt class="py-docstring"></tt> </tt>
<a name="L1887"></a><tt class="py-lineno">1887</tt> <tt class="py-line"><tt class="py-docstring"> >>> count = data.get_map()</tt> </tt>
<a name="L1888"></a><tt class="py-lineno">1888</tt> <tt class="py-line"><tt class="py-docstring"> >>> data.enter()</tt> </tt>
<a name="L1889"></a><tt class="py-lineno">1889</tt> <tt class="py-line"><tt class="py-docstring"> >>> for i in range(count/2):</tt> </tt>
<a name="L1890"></a><tt class="py-lineno">1890</tt> <tt class="py-line"><tt class="py-docstring"> ... type = data.next()</tt> </tt>
<a name="L1891"></a><tt class="py-lineno">1891</tt> <tt class="py-line"><tt class="py-docstring"> ... if type == Data.STRING:</tt> </tt>
<a name="L1892"></a><tt class="py-lineno">1892</tt> <tt class="py-line"><tt class="py-docstring"> ... print data.get_string()</tt> </tt>
<a name="L1893"></a><tt class="py-lineno">1893</tt> <tt class="py-line"><tt class="py-docstring"> ... elif type == ...:</tt> </tt>
<a name="L1894"></a><tt class="py-lineno">1894</tt> <tt class="py-line"><tt class="py-docstring"> ... ...</tt> </tt>
<a name="L1895"></a><tt class="py-lineno">1895</tt> <tt class="py-line"><tt class="py-docstring"> >>> data.exit()</tt> </tt>
<a name="L1896"></a><tt class="py-lineno">1896</tt> <tt class="py-line"><tt class="py-docstring"> """</tt> </tt>
<a name="L1897"></a><tt class="py-lineno">1897</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt class="py-name">pn_data_get_map</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_data</tt><tt class="py-op">)</tt> </tt>
</div><a name="L1898"></a><tt class="py-lineno">1898</tt> <tt class="py-line"> </tt>
<a name="Data.get_array"></a><div id="Data.get_array-def"><a name="L1899"></a><tt class="py-lineno">1899</tt> <a class="py-toggle" href="#" id="Data.get_array-toggle" onclick="return toggle('Data.get_array');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Data-class.html#get_array">get_array</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Data.get_array-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Data.get_array-expanded"><a name="L1900"></a><tt class="py-lineno">1900</tt> <tt class="py-line"> <tt class="py-docstring">"""</tt> </tt>
<a name="L1901"></a><tt class="py-lineno">1901</tt> <tt class="py-line"><tt class="py-docstring"> If the current node is an array, return a tuple of the element</tt> </tt>
<a name="L1902"></a><tt class="py-lineno">1902</tt> <tt class="py-line"><tt class="py-docstring"> count, a boolean indicating whether the array is described, and</tt> </tt>
<a name="L1903"></a><tt class="py-lineno">1903</tt> <tt class="py-line"><tt class="py-docstring"> the type of each element, otherwise return (0, False, None). Array</tt> </tt>
<a name="L1904"></a><tt class="py-lineno">1904</tt> <tt class="py-line"><tt class="py-docstring"> data can be accessed by entering the array.</tt> </tt>
<a name="L1905"></a><tt class="py-lineno">1905</tt> <tt class="py-line"><tt class="py-docstring"></tt> </tt>
<a name="L1906"></a><tt class="py-lineno">1906</tt> <tt class="py-line"><tt class="py-docstring"> >>> # read an array of strings with a symbolic descriptor</tt> </tt>
<a name="L1907"></a><tt class="py-lineno">1907</tt> <tt class="py-line"><tt class="py-docstring"> >>> count, described, type = data.get_array()</tt> </tt>
<a name="L1908"></a><tt class="py-lineno">1908</tt> <tt class="py-line"><tt class="py-docstring"> >>> data.enter()</tt> </tt>
<a name="L1909"></a><tt class="py-lineno">1909</tt> <tt class="py-line"><tt class="py-docstring"> >>> data.next()</tt> </tt>
<a name="L1910"></a><tt class="py-lineno">1910</tt> <tt class="py-line"><tt class="py-docstring"> >>> print "Descriptor:", data.get_symbol()</tt> </tt>
<a name="L1911"></a><tt class="py-lineno">1911</tt> <tt class="py-line"><tt class="py-docstring"> >>> for i in range(count):</tt> </tt>
<a name="L1912"></a><tt class="py-lineno">1912</tt> <tt class="py-line"><tt class="py-docstring"> ... data.next()</tt> </tt>
<a name="L1913"></a><tt class="py-lineno">1913</tt> <tt class="py-line"><tt class="py-docstring"> ... print "Element:", data.get_string()</tt> </tt>
<a name="L1914"></a><tt class="py-lineno">1914</tt> <tt class="py-line"><tt class="py-docstring"> >>> data.exit()</tt> </tt>
<a name="L1915"></a><tt class="py-lineno">1915</tt> <tt class="py-line"><tt class="py-docstring"> """</tt> </tt>
<a name="L1916"></a><tt class="py-lineno">1916</tt> <tt class="py-line"> <tt class="py-name">count</tt> <tt class="py-op">=</tt> <tt class="py-name">pn_data_get_array</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_data</tt><tt class="py-op">)</tt> </tt>
<a name="L1917"></a><tt class="py-lineno">1917</tt> <tt class="py-line"> <tt class="py-name">described</tt> <tt class="py-op">=</tt> <tt class="py-name">pn_data_is_array_described</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_data</tt><tt class="py-op">)</tt> </tt>
<a name="L1918"></a><tt class="py-lineno">1918</tt> <tt class="py-line"> <tt id="link-336" class="py-name"><a title="proton.Data.type
proton.Disposition.type
proton.Terminus.type" class="py-name" href="#" onclick="return doclink('link-336', 'type', 'link-152');">type</a></tt> <tt class="py-op">=</tt> <tt class="py-name">pn_data_get_array_type</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_data</tt><tt class="py-op">)</tt> </tt>
<a name="L1919"></a><tt class="py-lineno">1919</tt> <tt class="py-line"> <tt class="py-keyword">if</tt> <tt id="link-337" class="py-name"><a title="proton.Data.type
proton.Disposition.type
proton.Terminus.type" class="py-name" href="#" onclick="return doclink('link-337', 'type', 'link-152');">type</a></tt> <tt class="py-op">==</tt> <tt class="py-op">-</tt><tt class="py-number">1</tt><tt class="py-op">:</tt> </tt>
<a name="L1920"></a><tt class="py-lineno">1920</tt> <tt class="py-line"> <tt id="link-338" class="py-name"><a title="proton.Data.type
proton.Disposition.type
proton.Terminus.type" class="py-name" href="#" onclick="return doclink('link-338', 'type', 'link-152');">type</a></tt> <tt class="py-op">=</tt> <tt class="py-name">None</tt> </tt>
<a name="L1921"></a><tt class="py-lineno">1921</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt class="py-name">count</tt><tt class="py-op">,</tt> <tt class="py-name">described</tt><tt class="py-op">,</tt> <tt id="link-339" class="py-name"><a title="proton.Data.type
proton.Disposition.type
proton.Terminus.type" class="py-name" href="#" onclick="return doclink('link-339', 'type', 'link-152');">type</a></tt> </tt>
</div><a name="L1922"></a><tt class="py-lineno">1922</tt> <tt class="py-line"> </tt>
<a name="Data.is_described"></a><div id="Data.is_described-def"><a name="L1923"></a><tt class="py-lineno">1923</tt> <a class="py-toggle" href="#" id="Data.is_described-toggle" onclick="return toggle('Data.is_described');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Data-class.html#is_described">is_described</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Data.is_described-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Data.is_described-expanded"><a name="L1924"></a><tt class="py-lineno">1924</tt> <tt class="py-line"> <tt class="py-docstring">"""</tt> </tt>
<a name="L1925"></a><tt class="py-lineno">1925</tt> <tt class="py-line"><tt class="py-docstring"> Checks if the current node is a described value. The descriptor</tt> </tt>
<a name="L1926"></a><tt class="py-lineno">1926</tt> <tt class="py-line"><tt class="py-docstring"> and value may be accessed by entering the described value.</tt> </tt>
<a name="L1927"></a><tt class="py-lineno">1927</tt> <tt class="py-line"><tt class="py-docstring"></tt> </tt>
<a name="L1928"></a><tt class="py-lineno">1928</tt> <tt class="py-line"><tt class="py-docstring"> >>> # read a symbolically described string</tt> </tt>
<a name="L1929"></a><tt class="py-lineno">1929</tt> <tt class="py-line"><tt class="py-docstring"> >>> assert data.is_described() # will error if the current node is not described</tt> </tt>
<a name="L1930"></a><tt class="py-lineno">1930</tt> <tt class="py-line"><tt class="py-docstring"> >>> data.enter()</tt> </tt>
<a name="L1931"></a><tt class="py-lineno">1931</tt> <tt class="py-line"><tt class="py-docstring"> >>> data.next()</tt> </tt>
<a name="L1932"></a><tt class="py-lineno">1932</tt> <tt class="py-line"><tt class="py-docstring"> >>> print data.get_symbol()</tt> </tt>
<a name="L1933"></a><tt class="py-lineno">1933</tt> <tt class="py-line"><tt class="py-docstring"> >>> data.next()</tt> </tt>
<a name="L1934"></a><tt class="py-lineno">1934</tt> <tt class="py-line"><tt class="py-docstring"> >>> print data.get_string()</tt> </tt>
<a name="L1935"></a><tt class="py-lineno">1935</tt> <tt class="py-line"><tt class="py-docstring"> >>> data.exit()</tt> </tt>
<a name="L1936"></a><tt class="py-lineno">1936</tt> <tt class="py-line"><tt class="py-docstring"> """</tt> </tt>
<a name="L1937"></a><tt class="py-lineno">1937</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt class="py-name">pn_data_is_described</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_data</tt><tt class="py-op">)</tt> </tt>
</div><a name="L1938"></a><tt class="py-lineno">1938</tt> <tt class="py-line"> </tt>
<a name="Data.is_null"></a><div id="Data.is_null-def"><a name="L1939"></a><tt class="py-lineno">1939</tt> <a class="py-toggle" href="#" id="Data.is_null-toggle" onclick="return toggle('Data.is_null');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Data-class.html#is_null">is_null</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Data.is_null-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Data.is_null-expanded"><a name="L1940"></a><tt class="py-lineno">1940</tt> <tt class="py-line"> <tt class="py-docstring">"""</tt> </tt>
<a name="L1941"></a><tt class="py-lineno">1941</tt> <tt class="py-line"><tt class="py-docstring"> Checks if the current node is a null.</tt> </tt>
<a name="L1942"></a><tt class="py-lineno">1942</tt> <tt class="py-line"><tt class="py-docstring"> """</tt> </tt>
<a name="L1943"></a><tt class="py-lineno">1943</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt class="py-name">pn_data_is_null</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_data</tt><tt class="py-op">)</tt> </tt>
</div><a name="L1944"></a><tt class="py-lineno">1944</tt> <tt class="py-line"> </tt>
<a name="Data.get_bool"></a><div id="Data.get_bool-def"><a name="L1945"></a><tt class="py-lineno">1945</tt> <a class="py-toggle" href="#" id="Data.get_bool-toggle" onclick="return toggle('Data.get_bool');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Data-class.html#get_bool">get_bool</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Data.get_bool-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Data.get_bool-expanded"><a name="L1946"></a><tt class="py-lineno">1946</tt> <tt class="py-line"> <tt class="py-docstring">"""</tt> </tt>
<a name="L1947"></a><tt class="py-lineno">1947</tt> <tt class="py-line"><tt class="py-docstring"> If the current node is a boolean, returns its value, returns False</tt> </tt>
<a name="L1948"></a><tt class="py-lineno">1948</tt> <tt class="py-line"><tt class="py-docstring"> otherwise.</tt> </tt>
<a name="L1949"></a><tt class="py-lineno">1949</tt> <tt class="py-line"><tt class="py-docstring"> """</tt> </tt>
<a name="L1950"></a><tt class="py-lineno">1950</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt class="py-name">pn_data_get_bool</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_data</tt><tt class="py-op">)</tt> </tt>
</div><a name="L1951"></a><tt class="py-lineno">1951</tt> <tt class="py-line"> </tt>
<a name="Data.get_ubyte"></a><div id="Data.get_ubyte-def"><a name="L1952"></a><tt class="py-lineno">1952</tt> <a class="py-toggle" href="#" id="Data.get_ubyte-toggle" onclick="return toggle('Data.get_ubyte');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Data-class.html#get_ubyte">get_ubyte</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Data.get_ubyte-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Data.get_ubyte-expanded"><a name="L1953"></a><tt class="py-lineno">1953</tt> <tt class="py-line"> <tt class="py-docstring">"""</tt> </tt>
<a name="L1954"></a><tt class="py-lineno">1954</tt> <tt class="py-line"><tt class="py-docstring"> If the current node is an unsigned byte, returns its value,</tt> </tt>
<a name="L1955"></a><tt class="py-lineno">1955</tt> <tt class="py-line"><tt class="py-docstring"> returns 0 otherwise.</tt> </tt>
<a name="L1956"></a><tt class="py-lineno">1956</tt> <tt class="py-line"><tt class="py-docstring"> """</tt> </tt>
<a name="L1957"></a><tt class="py-lineno">1957</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt id="link-340" class="py-name" targets="Class proton.ubyte=proton.ubyte-class.html"><a title="proton.ubyte" class="py-name" href="#" onclick="return doclink('link-340', 'ubyte', 'link-340');">ubyte</a></tt><tt class="py-op">(</tt><tt class="py-name">pn_data_get_ubyte</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_data</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
</div><a name="L1958"></a><tt class="py-lineno">1958</tt> <tt class="py-line"> </tt>
<a name="Data.get_byte"></a><div id="Data.get_byte-def"><a name="L1959"></a><tt class="py-lineno">1959</tt> <a class="py-toggle" href="#" id="Data.get_byte-toggle" onclick="return toggle('Data.get_byte');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Data-class.html#get_byte">get_byte</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Data.get_byte-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Data.get_byte-expanded"><a name="L1960"></a><tt class="py-lineno">1960</tt> <tt class="py-line"> <tt class="py-docstring">"""</tt> </tt>
<a name="L1961"></a><tt class="py-lineno">1961</tt> <tt class="py-line"><tt class="py-docstring"> If the current node is a signed byte, returns its value, returns 0</tt> </tt>
<a name="L1962"></a><tt class="py-lineno">1962</tt> <tt class="py-line"><tt class="py-docstring"> otherwise.</tt> </tt>
<a name="L1963"></a><tt class="py-lineno">1963</tt> <tt class="py-line"><tt class="py-docstring"> """</tt> </tt>
<a name="L1964"></a><tt class="py-lineno">1964</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt id="link-341" class="py-name" targets="Class proton.byte=proton.byte-class.html"><a title="proton.byte" class="py-name" href="#" onclick="return doclink('link-341', 'byte', 'link-341');">byte</a></tt><tt class="py-op">(</tt><tt class="py-name">pn_data_get_byte</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_data</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
</div><a name="L1965"></a><tt class="py-lineno">1965</tt> <tt class="py-line"> </tt>
<a name="Data.get_ushort"></a><div id="Data.get_ushort-def"><a name="L1966"></a><tt class="py-lineno">1966</tt> <a class="py-toggle" href="#" id="Data.get_ushort-toggle" onclick="return toggle('Data.get_ushort');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Data-class.html#get_ushort">get_ushort</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Data.get_ushort-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Data.get_ushort-expanded"><a name="L1967"></a><tt class="py-lineno">1967</tt> <tt class="py-line"> <tt class="py-docstring">"""</tt> </tt>
<a name="L1968"></a><tt class="py-lineno">1968</tt> <tt class="py-line"><tt class="py-docstring"> If the current node is an unsigned short, returns its value,</tt> </tt>
<a name="L1969"></a><tt class="py-lineno">1969</tt> <tt class="py-line"><tt class="py-docstring"> returns 0 otherwise.</tt> </tt>
<a name="L1970"></a><tt class="py-lineno">1970</tt> <tt class="py-line"><tt class="py-docstring"> """</tt> </tt>
<a name="L1971"></a><tt class="py-lineno">1971</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt id="link-342" class="py-name" targets="Class proton.ushort=proton.ushort-class.html"><a title="proton.ushort" class="py-name" href="#" onclick="return doclink('link-342', 'ushort', 'link-342');">ushort</a></tt><tt class="py-op">(</tt><tt class="py-name">pn_data_get_ushort</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_data</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
</div><a name="L1972"></a><tt class="py-lineno">1972</tt> <tt class="py-line"> </tt>
<a name="Data.get_short"></a><div id="Data.get_short-def"><a name="L1973"></a><tt class="py-lineno">1973</tt> <a class="py-toggle" href="#" id="Data.get_short-toggle" onclick="return toggle('Data.get_short');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Data-class.html#get_short">get_short</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Data.get_short-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Data.get_short-expanded"><a name="L1974"></a><tt class="py-lineno">1974</tt> <tt class="py-line"> <tt class="py-docstring">"""</tt> </tt>
<a name="L1975"></a><tt class="py-lineno">1975</tt> <tt class="py-line"><tt class="py-docstring"> If the current node is a signed short, returns its value, returns</tt> </tt>
<a name="L1976"></a><tt class="py-lineno">1976</tt> <tt class="py-line"><tt class="py-docstring"> 0 otherwise.</tt> </tt>
<a name="L1977"></a><tt class="py-lineno">1977</tt> <tt class="py-line"><tt class="py-docstring"> """</tt> </tt>
<a name="L1978"></a><tt class="py-lineno">1978</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt id="link-343" class="py-name" targets="Class proton.short=proton.short-class.html"><a title="proton.short" class="py-name" href="#" onclick="return doclink('link-343', 'short', 'link-343');">short</a></tt><tt class="py-op">(</tt><tt class="py-name">pn_data_get_short</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_data</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
</div><a name="L1979"></a><tt class="py-lineno">1979</tt> <tt class="py-line"> </tt>
<a name="Data.get_uint"></a><div id="Data.get_uint-def"><a name="L1980"></a><tt class="py-lineno">1980</tt> <a class="py-toggle" href="#" id="Data.get_uint-toggle" onclick="return toggle('Data.get_uint');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Data-class.html#get_uint">get_uint</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Data.get_uint-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Data.get_uint-expanded"><a name="L1981"></a><tt class="py-lineno">1981</tt> <tt class="py-line"> <tt class="py-docstring">"""</tt> </tt>
<a name="L1982"></a><tt class="py-lineno">1982</tt> <tt class="py-line"><tt class="py-docstring"> If the current node is an unsigned int, returns its value, returns</tt> </tt>
<a name="L1983"></a><tt class="py-lineno">1983</tt> <tt class="py-line"><tt class="py-docstring"> 0 otherwise.</tt> </tt>
<a name="L1984"></a><tt class="py-lineno">1984</tt> <tt class="py-line"><tt class="py-docstring"> """</tt> </tt>
<a name="L1985"></a><tt class="py-lineno">1985</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt id="link-344" class="py-name" targets="Class proton.uint=proton.uint-class.html"><a title="proton.uint" class="py-name" href="#" onclick="return doclink('link-344', 'uint', 'link-344');">uint</a></tt><tt class="py-op">(</tt><tt class="py-name">pn_data_get_uint</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_data</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
</div><a name="L1986"></a><tt class="py-lineno">1986</tt> <tt class="py-line"> </tt>
<a name="Data.get_int"></a><div id="Data.get_int-def"><a name="L1987"></a><tt class="py-lineno">1987</tt> <a class="py-toggle" href="#" id="Data.get_int-toggle" onclick="return toggle('Data.get_int');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Data-class.html#get_int">get_int</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Data.get_int-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Data.get_int-expanded"><a name="L1988"></a><tt class="py-lineno">1988</tt> <tt class="py-line"> <tt class="py-docstring">"""</tt> </tt>
<a name="L1989"></a><tt class="py-lineno">1989</tt> <tt class="py-line"><tt class="py-docstring"> If the current node is a signed int, returns its value, returns 0</tt> </tt>
<a name="L1990"></a><tt class="py-lineno">1990</tt> <tt class="py-line"><tt class="py-docstring"> otherwise.</tt> </tt>
<a name="L1991"></a><tt class="py-lineno">1991</tt> <tt class="py-line"><tt class="py-docstring"> """</tt> </tt>
<a name="L1992"></a><tt class="py-lineno">1992</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt id="link-345" class="py-name" targets="Class proton.int32=proton.int32-class.html"><a title="proton.int32" class="py-name" href="#" onclick="return doclink('link-345', 'int32', 'link-345');">int32</a></tt><tt class="py-op">(</tt><tt class="py-name">pn_data_get_int</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_data</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
</div><a name="L1993"></a><tt class="py-lineno">1993</tt> <tt class="py-line"> </tt>
<a name="Data.get_char"></a><div id="Data.get_char-def"><a name="L1994"></a><tt class="py-lineno">1994</tt> <a class="py-toggle" href="#" id="Data.get_char-toggle" onclick="return toggle('Data.get_char');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Data-class.html#get_char">get_char</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Data.get_char-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Data.get_char-expanded"><a name="L1995"></a><tt class="py-lineno">1995</tt> <tt class="py-line"> <tt class="py-docstring">"""</tt> </tt>
<a name="L1996"></a><tt class="py-lineno">1996</tt> <tt class="py-line"><tt class="py-docstring"> If the current node is a char, returns its value, returns 0</tt> </tt>
<a name="L1997"></a><tt class="py-lineno">1997</tt> <tt class="py-line"><tt class="py-docstring"> otherwise.</tt> </tt>
<a name="L1998"></a><tt class="py-lineno">1998</tt> <tt class="py-line"><tt class="py-docstring"> """</tt> </tt>
<a name="L1999"></a><tt class="py-lineno">1999</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt id="link-346" class="py-name" targets="Class proton.char=proton.char-class.html"><a title="proton.char" class="py-name" href="#" onclick="return doclink('link-346', 'char', 'link-346');">char</a></tt><tt class="py-op">(</tt><tt id="link-347" class="py-name"><a title="proton._compat" class="py-name" href="#" onclick="return doclink('link-347', '_compat', 'link-3');">_compat</a></tt><tt class="py-op">.</tt><tt id="link-348" class="py-name" targets="Function proton._compat.unichar()=proton._compat-module.html#unichar"><a title="proton._compat.unichar" class="py-name" href="#" onclick="return doclink('link-348', 'unichar', 'link-348');">unichar</a></tt><tt class="py-op">(</tt><tt class="py-name">pn_data_get_char</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_data</tt><tt class="py-op">)</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
</div><a name="L2000"></a><tt class="py-lineno">2000</tt> <tt class="py-line"> </tt>
<a name="Data.get_ulong"></a><div id="Data.get_ulong-def"><a name="L2001"></a><tt class="py-lineno">2001</tt> <a class="py-toggle" href="#" id="Data.get_ulong-toggle" onclick="return toggle('Data.get_ulong');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Data-class.html#get_ulong">get_ulong</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Data.get_ulong-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Data.get_ulong-expanded"><a name="L2002"></a><tt class="py-lineno">2002</tt> <tt class="py-line"> <tt class="py-docstring">"""</tt> </tt>
<a name="L2003"></a><tt class="py-lineno">2003</tt> <tt class="py-line"><tt class="py-docstring"> If the current node is an unsigned long, returns its value,</tt> </tt>
<a name="L2004"></a><tt class="py-lineno">2004</tt> <tt class="py-line"><tt class="py-docstring"> returns 0 otherwise.</tt> </tt>
<a name="L2005"></a><tt class="py-lineno">2005</tt> <tt class="py-line"><tt class="py-docstring"> """</tt> </tt>
<a name="L2006"></a><tt class="py-lineno">2006</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt id="link-349" class="py-name"><a title="proton.ulong" class="py-name" href="#" onclick="return doclink('link-349', 'ulong', 'link-155');">ulong</a></tt><tt class="py-op">(</tt><tt class="py-name">pn_data_get_ulong</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_data</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
</div><a name="L2007"></a><tt class="py-lineno">2007</tt> <tt class="py-line"> </tt>
<a name="Data.get_long"></a><div id="Data.get_long-def"><a name="L2008"></a><tt class="py-lineno">2008</tt> <a class="py-toggle" href="#" id="Data.get_long-toggle" onclick="return toggle('Data.get_long');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Data-class.html#get_long">get_long</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Data.get_long-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Data.get_long-expanded"><a name="L2009"></a><tt class="py-lineno">2009</tt> <tt class="py-line"> <tt class="py-docstring">"""</tt> </tt>
<a name="L2010"></a><tt class="py-lineno">2010</tt> <tt class="py-line"><tt class="py-docstring"> If the current node is an signed long, returns its value, returns</tt> </tt>
<a name="L2011"></a><tt class="py-lineno">2011</tt> <tt class="py-line"><tt class="py-docstring"> 0 otherwise.</tt> </tt>
<a name="L2012"></a><tt class="py-lineno">2012</tt> <tt class="py-line"><tt class="py-docstring"> """</tt> </tt>
<a name="L2013"></a><tt class="py-lineno">2013</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt class="py-name">long</tt><tt class="py-op">(</tt><tt class="py-name">pn_data_get_long</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_data</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
</div><a name="L2014"></a><tt class="py-lineno">2014</tt> <tt class="py-line"> </tt>
<a name="Data.get_timestamp"></a><div id="Data.get_timestamp-def"><a name="L2015"></a><tt class="py-lineno">2015</tt> <a class="py-toggle" href="#" id="Data.get_timestamp-toggle" onclick="return toggle('Data.get_timestamp');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Data-class.html#get_timestamp">get_timestamp</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Data.get_timestamp-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Data.get_timestamp-expanded"><a name="L2016"></a><tt class="py-lineno">2016</tt> <tt class="py-line"> <tt class="py-docstring">"""</tt> </tt>
<a name="L2017"></a><tt class="py-lineno">2017</tt> <tt class="py-line"><tt class="py-docstring"> If the current node is a timestamp, returns its value, returns 0</tt> </tt>
<a name="L2018"></a><tt class="py-lineno">2018</tt> <tt class="py-line"><tt class="py-docstring"> otherwise.</tt> </tt>
<a name="L2019"></a><tt class="py-lineno">2019</tt> <tt class="py-line"><tt class="py-docstring"> """</tt> </tt>
<a name="L2020"></a><tt class="py-lineno">2020</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt id="link-350" class="py-name" targets="Class proton.timestamp=proton.timestamp-class.html"><a title="proton.timestamp" class="py-name" href="#" onclick="return doclink('link-350', 'timestamp', 'link-350');">timestamp</a></tt><tt class="py-op">(</tt><tt class="py-name">pn_data_get_timestamp</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_data</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
</div><a name="L2021"></a><tt class="py-lineno">2021</tt> <tt class="py-line"> </tt>
<a name="Data.get_float"></a><div id="Data.get_float-def"><a name="L2022"></a><tt class="py-lineno">2022</tt> <a class="py-toggle" href="#" id="Data.get_float-toggle" onclick="return toggle('Data.get_float');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Data-class.html#get_float">get_float</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Data.get_float-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Data.get_float-expanded"><a name="L2023"></a><tt class="py-lineno">2023</tt> <tt class="py-line"> <tt class="py-docstring">"""</tt> </tt>
<a name="L2024"></a><tt class="py-lineno">2024</tt> <tt class="py-line"><tt class="py-docstring"> If the current node is a float, returns its value, raises 0</tt> </tt>
<a name="L2025"></a><tt class="py-lineno">2025</tt> <tt class="py-line"><tt class="py-docstring"> otherwise.</tt> </tt>
<a name="L2026"></a><tt class="py-lineno">2026</tt> <tt class="py-line"><tt class="py-docstring"> """</tt> </tt>
<a name="L2027"></a><tt class="py-lineno">2027</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt id="link-351" class="py-name" targets="Class proton.float32=proton.float32-class.html"><a title="proton.float32" class="py-name" href="#" onclick="return doclink('link-351', 'float32', 'link-351');">float32</a></tt><tt class="py-op">(</tt><tt class="py-name">pn_data_get_float</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_data</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
</div><a name="L2028"></a><tt class="py-lineno">2028</tt> <tt class="py-line"> </tt>
<a name="Data.get_double"></a><div id="Data.get_double-def"><a name="L2029"></a><tt class="py-lineno">2029</tt> <a class="py-toggle" href="#" id="Data.get_double-toggle" onclick="return toggle('Data.get_double');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Data-class.html#get_double">get_double</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Data.get_double-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Data.get_double-expanded"><a name="L2030"></a><tt class="py-lineno">2030</tt> <tt class="py-line"> <tt class="py-docstring">"""</tt> </tt>
<a name="L2031"></a><tt class="py-lineno">2031</tt> <tt class="py-line"><tt class="py-docstring"> If the current node is a double, returns its value, returns 0</tt> </tt>
<a name="L2032"></a><tt class="py-lineno">2032</tt> <tt class="py-line"><tt class="py-docstring"> otherwise.</tt> </tt>
<a name="L2033"></a><tt class="py-lineno">2033</tt> <tt class="py-line"><tt class="py-docstring"> """</tt> </tt>
<a name="L2034"></a><tt class="py-lineno">2034</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt class="py-name">pn_data_get_double</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_data</tt><tt class="py-op">)</tt> </tt>
</div><a name="L2035"></a><tt class="py-lineno">2035</tt> <tt class="py-line"> </tt>
<a name="L2036"></a><tt class="py-lineno">2036</tt> <tt class="py-line"> <tt class="py-comment"># XXX: need to convert</tt> </tt>
<a name="Data.get_decimal32"></a><div id="Data.get_decimal32-def"><a name="L2037"></a><tt class="py-lineno">2037</tt> <a class="py-toggle" href="#" id="Data.get_decimal32-toggle" onclick="return toggle('Data.get_decimal32');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Data-class.html#get_decimal32">get_decimal32</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Data.get_decimal32-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Data.get_decimal32-expanded"><a name="L2038"></a><tt class="py-lineno">2038</tt> <tt class="py-line"> <tt class="py-docstring">"""</tt> </tt>
<a name="L2039"></a><tt class="py-lineno">2039</tt> <tt class="py-line"><tt class="py-docstring"> If the current node is a decimal32, returns its value, returns 0</tt> </tt>
<a name="L2040"></a><tt class="py-lineno">2040</tt> <tt class="py-line"><tt class="py-docstring"> otherwise.</tt> </tt>
<a name="L2041"></a><tt class="py-lineno">2041</tt> <tt class="py-line"><tt class="py-docstring"> """</tt> </tt>
<a name="L2042"></a><tt class="py-lineno">2042</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt id="link-352" class="py-name" targets="Class proton.decimal32=proton.decimal32-class.html"><a title="proton.decimal32" class="py-name" href="#" onclick="return doclink('link-352', 'decimal32', 'link-352');">decimal32</a></tt><tt class="py-op">(</tt><tt class="py-name">pn_data_get_decimal32</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_data</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
</div><a name="L2043"></a><tt class="py-lineno">2043</tt> <tt class="py-line"> </tt>
<a name="L2044"></a><tt class="py-lineno">2044</tt> <tt class="py-line"> <tt class="py-comment"># XXX: need to convert</tt> </tt>
<a name="Data.get_decimal64"></a><div id="Data.get_decimal64-def"><a name="L2045"></a><tt class="py-lineno">2045</tt> <a class="py-toggle" href="#" id="Data.get_decimal64-toggle" onclick="return toggle('Data.get_decimal64');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Data-class.html#get_decimal64">get_decimal64</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Data.get_decimal64-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Data.get_decimal64-expanded"><a name="L2046"></a><tt class="py-lineno">2046</tt> <tt class="py-line"> <tt class="py-docstring">"""</tt> </tt>
<a name="L2047"></a><tt class="py-lineno">2047</tt> <tt class="py-line"><tt class="py-docstring"> If the current node is a decimal64, returns its value, returns 0</tt> </tt>
<a name="L2048"></a><tt class="py-lineno">2048</tt> <tt class="py-line"><tt class="py-docstring"> otherwise.</tt> </tt>
<a name="L2049"></a><tt class="py-lineno">2049</tt> <tt class="py-line"><tt class="py-docstring"> """</tt> </tt>
<a name="L2050"></a><tt class="py-lineno">2050</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt id="link-353" class="py-name" targets="Class proton.decimal64=proton.decimal64-class.html"><a title="proton.decimal64" class="py-name" href="#" onclick="return doclink('link-353', 'decimal64', 'link-353');">decimal64</a></tt><tt class="py-op">(</tt><tt class="py-name">pn_data_get_decimal64</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_data</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
</div><a name="L2051"></a><tt class="py-lineno">2051</tt> <tt class="py-line"> </tt>
<a name="L2052"></a><tt class="py-lineno">2052</tt> <tt class="py-line"> <tt class="py-comment"># XXX: need to convert</tt> </tt>
<a name="Data.get_decimal128"></a><div id="Data.get_decimal128-def"><a name="L2053"></a><tt class="py-lineno">2053</tt> <a class="py-toggle" href="#" id="Data.get_decimal128-toggle" onclick="return toggle('Data.get_decimal128');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Data-class.html#get_decimal128">get_decimal128</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Data.get_decimal128-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Data.get_decimal128-expanded"><a name="L2054"></a><tt class="py-lineno">2054</tt> <tt class="py-line"> <tt class="py-docstring">"""</tt> </tt>
<a name="L2055"></a><tt class="py-lineno">2055</tt> <tt class="py-line"><tt class="py-docstring"> If the current node is a decimal128, returns its value, returns 0</tt> </tt>
<a name="L2056"></a><tt class="py-lineno">2056</tt> <tt class="py-line"><tt class="py-docstring"> otherwise.</tt> </tt>
<a name="L2057"></a><tt class="py-lineno">2057</tt> <tt class="py-line"><tt class="py-docstring"> """</tt> </tt>
<a name="L2058"></a><tt class="py-lineno">2058</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt id="link-354" class="py-name" targets="Class proton.decimal128=proton.decimal128-class.html"><a title="proton.decimal128" class="py-name" href="#" onclick="return doclink('link-354', 'decimal128', 'link-354');">decimal128</a></tt><tt class="py-op">(</tt><tt class="py-name">pn_data_get_decimal128</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_data</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
</div><a name="L2059"></a><tt class="py-lineno">2059</tt> <tt class="py-line"> </tt>
<a name="Data.get_uuid"></a><div id="Data.get_uuid-def"><a name="L2060"></a><tt class="py-lineno">2060</tt> <a class="py-toggle" href="#" id="Data.get_uuid-toggle" onclick="return toggle('Data.get_uuid');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Data-class.html#get_uuid">get_uuid</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Data.get_uuid-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Data.get_uuid-expanded"><a name="L2061"></a><tt class="py-lineno">2061</tt> <tt class="py-line"> <tt class="py-docstring">"""</tt> </tt>
<a name="L2062"></a><tt class="py-lineno">2062</tt> <tt class="py-line"><tt class="py-docstring"> If the current node is a UUID, returns its value, returns None</tt> </tt>
<a name="L2063"></a><tt class="py-lineno">2063</tt> <tt class="py-line"><tt class="py-docstring"> otherwise.</tt> </tt>
<a name="L2064"></a><tt class="py-lineno">2064</tt> <tt class="py-line"><tt class="py-docstring"> """</tt> </tt>
<a name="L2065"></a><tt class="py-lineno">2065</tt> <tt class="py-line"> <tt class="py-keyword">if</tt> <tt class="py-name">pn_data_type</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_data</tt><tt class="py-op">)</tt> <tt class="py-op">==</tt> <tt id="link-355" class="py-name"><a title="proton.Data" class="py-name" href="#" onclick="return doclink('link-355', 'Data', 'link-90');">Data</a></tt><tt class="py-op">.</tt><tt id="link-356" class="py-name"><a title="proton.Data.UUID" class="py-name" href="#" onclick="return doclink('link-356', 'UUID', 'link-4');">UUID</a></tt><tt class="py-op">:</tt> </tt>
<a name="L2066"></a><tt class="py-lineno">2066</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt class="py-name">uuid</tt><tt class="py-op">.</tt><tt id="link-357" class="py-name"><a title="proton.Data.UUID" class="py-name" href="#" onclick="return doclink('link-357', 'UUID', 'link-4');">UUID</a></tt><tt class="py-op">(</tt><tt class="py-name">bytes</tt><tt class="py-op">=</tt><tt class="py-name">pn_data_get_uuid</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_data</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
<a name="L2067"></a><tt class="py-lineno">2067</tt> <tt class="py-line"> <tt class="py-keyword">else</tt><tt class="py-op">:</tt> </tt>
<a name="L2068"></a><tt class="py-lineno">2068</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt class="py-name">None</tt> </tt>
</div><a name="L2069"></a><tt class="py-lineno">2069</tt> <tt class="py-line"> </tt>
<a name="Data.get_binary"></a><div id="Data.get_binary-def"><a name="L2070"></a><tt class="py-lineno">2070</tt> <a class="py-toggle" href="#" id="Data.get_binary-toggle" onclick="return toggle('Data.get_binary');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Data-class.html#get_binary">get_binary</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Data.get_binary-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Data.get_binary-expanded"><a name="L2071"></a><tt class="py-lineno">2071</tt> <tt class="py-line"> <tt class="py-docstring">"""</tt> </tt>
<a name="L2072"></a><tt class="py-lineno">2072</tt> <tt class="py-line"><tt class="py-docstring"> If the current node is binary, returns its value, returns ""</tt> </tt>
<a name="L2073"></a><tt class="py-lineno">2073</tt> <tt class="py-line"><tt class="py-docstring"> otherwise.</tt> </tt>
<a name="L2074"></a><tt class="py-lineno">2074</tt> <tt class="py-line"><tt class="py-docstring"> """</tt> </tt>
<a name="L2075"></a><tt class="py-lineno">2075</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt class="py-name">pn_data_get_binary</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_data</tt><tt class="py-op">)</tt> </tt>
</div><a name="L2076"></a><tt class="py-lineno">2076</tt> <tt class="py-line"> </tt>
<a name="Data.get_string"></a><div id="Data.get_string-def"><a name="L2077"></a><tt class="py-lineno">2077</tt> <a class="py-toggle" href="#" id="Data.get_string-toggle" onclick="return toggle('Data.get_string');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Data-class.html#get_string">get_string</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Data.get_string-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Data.get_string-expanded"><a name="L2078"></a><tt class="py-lineno">2078</tt> <tt class="py-line"> <tt class="py-docstring">"""</tt> </tt>
<a name="L2079"></a><tt class="py-lineno">2079</tt> <tt class="py-line"><tt class="py-docstring"> If the current node is a string, returns its value, returns ""</tt> </tt>
<a name="L2080"></a><tt class="py-lineno">2080</tt> <tt class="py-line"><tt class="py-docstring"> otherwise.</tt> </tt>
<a name="L2081"></a><tt class="py-lineno">2081</tt> <tt class="py-line"><tt class="py-docstring"> """</tt> </tt>
<a name="L2082"></a><tt class="py-lineno">2082</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt class="py-name">pn_data_get_string</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_data</tt><tt class="py-op">)</tt><tt class="py-op">.</tt><tt id="link-358" class="py-name"><a title="proton.Data.decode
proton.Message.decode" class="py-name" href="#" onclick="return doclink('link-358', 'decode', 'link-239');">decode</a></tt><tt class="py-op">(</tt><tt class="py-string">"utf8"</tt><tt class="py-op">)</tt> </tt>
</div><a name="L2083"></a><tt class="py-lineno">2083</tt> <tt class="py-line"> </tt>
<a name="Data.get_symbol"></a><div id="Data.get_symbol-def"><a name="L2084"></a><tt class="py-lineno">2084</tt> <a class="py-toggle" href="#" id="Data.get_symbol-toggle" onclick="return toggle('Data.get_symbol');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Data-class.html#get_symbol">get_symbol</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Data.get_symbol-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Data.get_symbol-expanded"><a name="L2085"></a><tt class="py-lineno">2085</tt> <tt class="py-line"> <tt class="py-docstring">"""</tt> </tt>
<a name="L2086"></a><tt class="py-lineno">2086</tt> <tt class="py-line"><tt class="py-docstring"> If the current node is a symbol, returns its value, returns ""</tt> </tt>
<a name="L2087"></a><tt class="py-lineno">2087</tt> <tt class="py-line"><tt class="py-docstring"> otherwise.</tt> </tt>
<a name="L2088"></a><tt class="py-lineno">2088</tt> <tt class="py-line"><tt class="py-docstring"> """</tt> </tt>
<a name="L2089"></a><tt class="py-lineno">2089</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt id="link-359" class="py-name"><a title="proton.symbol" class="py-name" href="#" onclick="return doclink('link-359', 'symbol', 'link-183');">symbol</a></tt><tt class="py-op">(</tt><tt class="py-name">pn_data_get_symbol</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_data</tt><tt class="py-op">)</tt><tt class="py-op">.</tt><tt id="link-360" class="py-name"><a title="proton.Data.decode
proton.Message.decode" class="py-name" href="#" onclick="return doclink('link-360', 'decode', 'link-239');">decode</a></tt><tt class="py-op">(</tt><tt class="py-string">'ascii'</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
</div><a name="L2090"></a><tt class="py-lineno">2090</tt> <tt class="py-line"> </tt>
<a name="Data.copy"></a><div id="Data.copy-def"><a name="L2091"></a><tt class="py-lineno">2091</tt> <a class="py-toggle" href="#" id="Data.copy-toggle" onclick="return toggle('Data.copy');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Data-class.html#copy">copy</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">src</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Data.copy-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Data.copy-expanded"><a name="L2092"></a><tt class="py-lineno">2092</tt> <tt class="py-line"> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_check</tt><tt class="py-op">(</tt><tt class="py-name">pn_data_copy</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_data</tt><tt class="py-op">,</tt> <tt class="py-name">src</tt><tt class="py-op">.</tt><tt class="py-name">_data</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
</div><a name="L2093"></a><tt class="py-lineno">2093</tt> <tt class="py-line"> </tt>
<a name="Data.format"></a><div id="Data.format-def"><a name="L2094"></a><tt class="py-lineno">2094</tt> <a class="py-toggle" href="#" id="Data.format-toggle" onclick="return toggle('Data.format');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Data-class.html#format">format</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Data.format-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Data.format-expanded"><a name="L2095"></a><tt class="py-lineno">2095</tt> <tt class="py-line"> <tt class="py-name">sz</tt> <tt class="py-op">=</tt> <tt class="py-number">16</tt> </tt>
<a name="L2096"></a><tt class="py-lineno">2096</tt> <tt class="py-line"> <tt class="py-keyword">while</tt> <tt class="py-name">True</tt><tt class="py-op">:</tt> </tt>
<a name="L2097"></a><tt class="py-lineno">2097</tt> <tt class="py-line"> <tt class="py-name">err</tt><tt class="py-op">,</tt> <tt class="py-name">result</tt> <tt class="py-op">=</tt> <tt class="py-name">pn_data_format</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_data</tt><tt class="py-op">,</tt> <tt class="py-name">sz</tt><tt class="py-op">)</tt> </tt>
<a name="L2098"></a><tt class="py-lineno">2098</tt> <tt class="py-line"> <tt class="py-keyword">if</tt> <tt class="py-name">err</tt> <tt class="py-op">==</tt> <tt class="py-name">PN_OVERFLOW</tt><tt class="py-op">:</tt> </tt>
<a name="L2099"></a><tt class="py-lineno">2099</tt> <tt class="py-line"> <tt class="py-name">sz</tt> <tt class="py-op">*=</tt> <tt class="py-number">2</tt> </tt>
<a name="L2100"></a><tt class="py-lineno">2100</tt> <tt class="py-line"> <tt class="py-keyword">continue</tt> </tt>
<a name="L2101"></a><tt class="py-lineno">2101</tt> <tt class="py-line"> <tt class="py-keyword">else</tt><tt class="py-op">:</tt> </tt>
<a name="L2102"></a><tt class="py-lineno">2102</tt> <tt class="py-line"> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_check</tt><tt class="py-op">(</tt><tt class="py-name">err</tt><tt class="py-op">)</tt> </tt>
<a name="L2103"></a><tt class="py-lineno">2103</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt class="py-name">result</tt> </tt>
</div><a name="L2104"></a><tt class="py-lineno">2104</tt> <tt class="py-line"> </tt>
<a name="Data.dump"></a><div id="Data.dump-def"><a name="L2105"></a><tt class="py-lineno">2105</tt> <a class="py-toggle" href="#" id="Data.dump-toggle" onclick="return toggle('Data.dump');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Data-class.html#dump">dump</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Data.dump-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Data.dump-expanded"><a name="L2106"></a><tt class="py-lineno">2106</tt> <tt class="py-line"> <tt class="py-name">pn_data_dump</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_data</tt><tt class="py-op">)</tt> </tt>
</div><a name="L2107"></a><tt class="py-lineno">2107</tt> <tt class="py-line"> </tt>
<a name="Data.put_dict"></a><div id="Data.put_dict-def"><a name="L2108"></a><tt class="py-lineno">2108</tt> <a class="py-toggle" href="#" id="Data.put_dict-toggle" onclick="return toggle('Data.put_dict');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Data-class.html#put_dict">put_dict</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">d</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Data.put_dict-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Data.put_dict-expanded"><a name="L2109"></a><tt class="py-lineno">2109</tt> <tt class="py-line"> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-361" class="py-name" targets="Method proton.Data.put_map()=proton.Data-class.html#put_map"><a title="proton.Data.put_map" class="py-name" href="#" onclick="return doclink('link-361', 'put_map', 'link-361');">put_map</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L2110"></a><tt class="py-lineno">2110</tt> <tt class="py-line"> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-362" class="py-name" targets="Method proton.Data.enter()=proton.Data-class.html#enter"><a title="proton.Data.enter" class="py-name" href="#" onclick="return doclink('link-362', 'enter', 'link-362');">enter</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L2111"></a><tt class="py-lineno">2111</tt> <tt class="py-line"> <tt class="py-keyword">try</tt><tt class="py-op">:</tt> </tt>
<a name="L2112"></a><tt class="py-lineno">2112</tt> <tt class="py-line"> <tt class="py-keyword">for</tt> <tt class="py-name">k</tt><tt class="py-op">,</tt> <tt class="py-name">v</tt> <tt class="py-keyword">in</tt> <tt class="py-name">d</tt><tt class="py-op">.</tt><tt class="py-name">items</tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
<a name="L2113"></a><tt class="py-lineno">2113</tt> <tt class="py-line"> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-363" class="py-name"><a title="proton.Data.put_object" class="py-name" href="#" onclick="return doclink('link-363', 'put_object', 'link-104');">put_object</a></tt><tt class="py-op">(</tt><tt class="py-name">k</tt><tt class="py-op">)</tt> </tt>
<a name="L2114"></a><tt class="py-lineno">2114</tt> <tt class="py-line"> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-364" class="py-name"><a title="proton.Data.put_object" class="py-name" href="#" onclick="return doclink('link-364', 'put_object', 'link-104');">put_object</a></tt><tt class="py-op">(</tt><tt class="py-name">v</tt><tt class="py-op">)</tt> </tt>
<a name="L2115"></a><tt class="py-lineno">2115</tt> <tt class="py-line"> <tt class="py-keyword">finally</tt><tt class="py-op">:</tt> </tt>
<a name="L2116"></a><tt class="py-lineno">2116</tt> <tt class="py-line"> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-365" class="py-name" targets="Method proton.Data.exit()=proton.Data-class.html#exit"><a title="proton.Data.exit" class="py-name" href="#" onclick="return doclink('link-365', 'exit', 'link-365');">exit</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
</div><a name="L2117"></a><tt class="py-lineno">2117</tt> <tt class="py-line"> </tt>
<a name="Data.get_dict"></a><div id="Data.get_dict-def"><a name="L2118"></a><tt class="py-lineno">2118</tt> <a class="py-toggle" href="#" id="Data.get_dict-toggle" onclick="return toggle('Data.get_dict');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Data-class.html#get_dict">get_dict</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Data.get_dict-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Data.get_dict-expanded"><a name="L2119"></a><tt class="py-lineno">2119</tt> <tt class="py-line"> <tt class="py-keyword">if</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-366" class="py-name"><a title="proton.Data.enter" class="py-name" href="#" onclick="return doclink('link-366', 'enter', 'link-362');">enter</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
<a name="L2120"></a><tt class="py-lineno">2120</tt> <tt class="py-line"> <tt class="py-keyword">try</tt><tt class="py-op">:</tt> </tt>
<a name="L2121"></a><tt class="py-lineno">2121</tt> <tt class="py-line"> <tt class="py-name">result</tt> <tt class="py-op">=</tt> <tt class="py-op">{</tt><tt class="py-op">}</tt> </tt>
<a name="L2122"></a><tt class="py-lineno">2122</tt> <tt class="py-line"> <tt class="py-keyword">while</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-367" class="py-name"><a title="proton.Data.next
proton.Link.next
proton.Session.next
proton.reactor.Backoff.next
proton.reactor.Urls.next
proton.utils.AtomicCount.next" class="py-name" href="#" onclick="return doclink('link-367', 'next', 'link-119');">next</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
<a name="L2123"></a><tt class="py-lineno">2123</tt> <tt class="py-line"> <tt class="py-name">k</tt> <tt class="py-op">=</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-368" class="py-name"><a title="proton.Data.get_object" class="py-name" href="#" onclick="return doclink('link-368', 'get_object', 'link-120');">get_object</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L2124"></a><tt class="py-lineno">2124</tt> <tt class="py-line"> <tt class="py-keyword">if</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-369" class="py-name"><a title="proton.Data.next
proton.Link.next
proton.Session.next
proton.reactor.Backoff.next
proton.reactor.Urls.next
proton.utils.AtomicCount.next" class="py-name" href="#" onclick="return doclink('link-369', 'next', 'link-119');">next</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
<a name="L2125"></a><tt class="py-lineno">2125</tt> <tt class="py-line"> <tt class="py-name">v</tt> <tt class="py-op">=</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-370" class="py-name"><a title="proton.Data.get_object" class="py-name" href="#" onclick="return doclink('link-370', 'get_object', 'link-120');">get_object</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L2126"></a><tt class="py-lineno">2126</tt> <tt class="py-line"> <tt class="py-keyword">else</tt><tt class="py-op">:</tt> </tt>
<a name="L2127"></a><tt class="py-lineno">2127</tt> <tt class="py-line"> <tt class="py-name">v</tt> <tt class="py-op">=</tt> <tt class="py-name">None</tt> </tt>
<a name="L2128"></a><tt class="py-lineno">2128</tt> <tt class="py-line"> <tt class="py-name">result</tt><tt class="py-op">[</tt><tt class="py-name">k</tt><tt class="py-op">]</tt> <tt class="py-op">=</tt> <tt class="py-name">v</tt> </tt>
<a name="L2129"></a><tt class="py-lineno">2129</tt> <tt class="py-line"> <tt class="py-keyword">finally</tt><tt class="py-op">:</tt> </tt>
<a name="L2130"></a><tt class="py-lineno">2130</tt> <tt class="py-line"> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-371" class="py-name"><a title="proton.Data.exit" class="py-name" href="#" onclick="return doclink('link-371', 'exit', 'link-365');">exit</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L2131"></a><tt class="py-lineno">2131</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt class="py-name">result</tt> </tt>
</div><a name="L2132"></a><tt class="py-lineno">2132</tt> <tt class="py-line"> </tt>
<a name="Data.put_sequence"></a><div id="Data.put_sequence-def"><a name="L2133"></a><tt class="py-lineno">2133</tt> <a class="py-toggle" href="#" id="Data.put_sequence-toggle" onclick="return toggle('Data.put_sequence');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Data-class.html#put_sequence">put_sequence</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">s</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Data.put_sequence-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Data.put_sequence-expanded"><a name="L2134"></a><tt class="py-lineno">2134</tt> <tt class="py-line"> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-372" class="py-name" targets="Method proton.Data.put_list()=proton.Data-class.html#put_list"><a title="proton.Data.put_list" class="py-name" href="#" onclick="return doclink('link-372', 'put_list', 'link-372');">put_list</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L2135"></a><tt class="py-lineno">2135</tt> <tt class="py-line"> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-373" class="py-name"><a title="proton.Data.enter" class="py-name" href="#" onclick="return doclink('link-373', 'enter', 'link-362');">enter</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L2136"></a><tt class="py-lineno">2136</tt> <tt class="py-line"> <tt class="py-keyword">try</tt><tt class="py-op">:</tt> </tt>
<a name="L2137"></a><tt class="py-lineno">2137</tt> <tt class="py-line"> <tt class="py-keyword">for</tt> <tt class="py-name">o</tt> <tt class="py-keyword">in</tt> <tt class="py-name">s</tt><tt class="py-op">:</tt> </tt>
<a name="L2138"></a><tt class="py-lineno">2138</tt> <tt class="py-line"> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-374" class="py-name"><a title="proton.Data.put_object" class="py-name" href="#" onclick="return doclink('link-374', 'put_object', 'link-104');">put_object</a></tt><tt class="py-op">(</tt><tt class="py-name">o</tt><tt class="py-op">)</tt> </tt>
<a name="L2139"></a><tt class="py-lineno">2139</tt> <tt class="py-line"> <tt class="py-keyword">finally</tt><tt class="py-op">:</tt> </tt>
<a name="L2140"></a><tt class="py-lineno">2140</tt> <tt class="py-line"> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-375" class="py-name"><a title="proton.Data.exit" class="py-name" href="#" onclick="return doclink('link-375', 'exit', 'link-365');">exit</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
</div><a name="L2141"></a><tt class="py-lineno">2141</tt> <tt class="py-line"> </tt>
<a name="Data.get_sequence"></a><div id="Data.get_sequence-def"><a name="L2142"></a><tt class="py-lineno">2142</tt> <a class="py-toggle" href="#" id="Data.get_sequence-toggle" onclick="return toggle('Data.get_sequence');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Data-class.html#get_sequence">get_sequence</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Data.get_sequence-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Data.get_sequence-expanded"><a name="L2143"></a><tt class="py-lineno">2143</tt> <tt class="py-line"> <tt class="py-keyword">if</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-376" class="py-name"><a title="proton.Data.enter" class="py-name" href="#" onclick="return doclink('link-376', 'enter', 'link-362');">enter</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
<a name="L2144"></a><tt class="py-lineno">2144</tt> <tt class="py-line"> <tt class="py-keyword">try</tt><tt class="py-op">:</tt> </tt>
<a name="L2145"></a><tt class="py-lineno">2145</tt> <tt class="py-line"> <tt class="py-name">result</tt> <tt class="py-op">=</tt> <tt class="py-op">[</tt><tt class="py-op">]</tt> </tt>
<a name="L2146"></a><tt class="py-lineno">2146</tt> <tt class="py-line"> <tt class="py-keyword">while</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-377" class="py-name"><a title="proton.Data.next
proton.Link.next
proton.Session.next
proton.reactor.Backoff.next
proton.reactor.Urls.next
proton.utils.AtomicCount.next" class="py-name" href="#" onclick="return doclink('link-377', 'next', 'link-119');">next</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
<a name="L2147"></a><tt class="py-lineno">2147</tt> <tt class="py-line"> <tt class="py-name">result</tt><tt class="py-op">.</tt><tt class="py-name">append</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-378" class="py-name"><a title="proton.Data.get_object" class="py-name" href="#" onclick="return doclink('link-378', 'get_object', 'link-120');">get_object</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
<a name="L2148"></a><tt class="py-lineno">2148</tt> <tt class="py-line"> <tt class="py-keyword">finally</tt><tt class="py-op">:</tt> </tt>
<a name="L2149"></a><tt class="py-lineno">2149</tt> <tt class="py-line"> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-379" class="py-name"><a title="proton.Data.exit" class="py-name" href="#" onclick="return doclink('link-379', 'exit', 'link-365');">exit</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L2150"></a><tt class="py-lineno">2150</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt class="py-name">result</tt> </tt>
</div><a name="L2151"></a><tt class="py-lineno">2151</tt> <tt class="py-line"> </tt>
<a name="Data.get_py_described"></a><div id="Data.get_py_described-def"><a name="L2152"></a><tt class="py-lineno">2152</tt> <a class="py-toggle" href="#" id="Data.get_py_described-toggle" onclick="return toggle('Data.get_py_described');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Data-class.html#get_py_described">get_py_described</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Data.get_py_described-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Data.get_py_described-expanded"><a name="L2153"></a><tt class="py-lineno">2153</tt> <tt class="py-line"> <tt class="py-keyword">if</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-380" class="py-name"><a title="proton.Data.enter" class="py-name" href="#" onclick="return doclink('link-380', 'enter', 'link-362');">enter</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
<a name="L2154"></a><tt class="py-lineno">2154</tt> <tt class="py-line"> <tt class="py-keyword">try</tt><tt class="py-op">:</tt> </tt>
<a name="L2155"></a><tt class="py-lineno">2155</tt> <tt class="py-line"> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-381" class="py-name"><a title="proton.Data.next
proton.Link.next
proton.Session.next
proton.reactor.Backoff.next
proton.reactor.Urls.next
proton.utils.AtomicCount.next" class="py-name" href="#" onclick="return doclink('link-381', 'next', 'link-119');">next</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L2156"></a><tt class="py-lineno">2156</tt> <tt class="py-line"> <tt class="py-name">descriptor</tt> <tt class="py-op">=</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-382" class="py-name"><a title="proton.Data.get_object" class="py-name" href="#" onclick="return doclink('link-382', 'get_object', 'link-120');">get_object</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L2157"></a><tt class="py-lineno">2157</tt> <tt class="py-line"> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-383" class="py-name"><a title="proton.Data.next
proton.Link.next
proton.Session.next
proton.reactor.Backoff.next
proton.reactor.Urls.next
proton.utils.AtomicCount.next" class="py-name" href="#" onclick="return doclink('link-383', 'next', 'link-119');">next</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L2158"></a><tt class="py-lineno">2158</tt> <tt class="py-line"> <tt class="py-name">value</tt> <tt class="py-op">=</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-384" class="py-name"><a title="proton.Data.get_object" class="py-name" href="#" onclick="return doclink('link-384', 'get_object', 'link-120');">get_object</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L2159"></a><tt class="py-lineno">2159</tt> <tt class="py-line"> <tt class="py-keyword">finally</tt><tt class="py-op">:</tt> </tt>
<a name="L2160"></a><tt class="py-lineno">2160</tt> <tt class="py-line"> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-385" class="py-name"><a title="proton.Data.exit" class="py-name" href="#" onclick="return doclink('link-385', 'exit', 'link-365');">exit</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L2161"></a><tt class="py-lineno">2161</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt id="link-386" class="py-name"><a title="proton.Described" class="py-name" href="#" onclick="return doclink('link-386', 'Described', 'link-261');">Described</a></tt><tt class="py-op">(</tt><tt class="py-name">descriptor</tt><tt class="py-op">,</tt> <tt class="py-name">value</tt><tt class="py-op">)</tt> </tt>
</div><a name="L2162"></a><tt class="py-lineno">2162</tt> <tt class="py-line"> </tt>
<a name="Data.put_py_described"></a><div id="Data.put_py_described-def"><a name="L2163"></a><tt class="py-lineno">2163</tt> <a class="py-toggle" href="#" id="Data.put_py_described-toggle" onclick="return toggle('Data.put_py_described');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Data-class.html#put_py_described">put_py_described</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">d</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Data.put_py_described-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Data.put_py_described-expanded"><a name="L2164"></a><tt class="py-lineno">2164</tt> <tt class="py-line"> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-387" class="py-name" targets="Method proton.Data.put_described()=proton.Data-class.html#put_described"><a title="proton.Data.put_described" class="py-name" href="#" onclick="return doclink('link-387', 'put_described', 'link-387');">put_described</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L2165"></a><tt class="py-lineno">2165</tt> <tt class="py-line"> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-388" class="py-name"><a title="proton.Data.enter" class="py-name" href="#" onclick="return doclink('link-388', 'enter', 'link-362');">enter</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L2166"></a><tt class="py-lineno">2166</tt> <tt class="py-line"> <tt class="py-keyword">try</tt><tt class="py-op">:</tt> </tt>
<a name="L2167"></a><tt class="py-lineno">2167</tt> <tt class="py-line"> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-389" class="py-name"><a title="proton.Data.put_object" class="py-name" href="#" onclick="return doclink('link-389', 'put_object', 'link-104');">put_object</a></tt><tt class="py-op">(</tt><tt class="py-name">d</tt><tt class="py-op">.</tt><tt class="py-name">descriptor</tt><tt class="py-op">)</tt> </tt>
<a name="L2168"></a><tt class="py-lineno">2168</tt> <tt class="py-line"> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-390" class="py-name"><a title="proton.Data.put_object" class="py-name" href="#" onclick="return doclink('link-390', 'put_object', 'link-104');">put_object</a></tt><tt class="py-op">(</tt><tt class="py-name">d</tt><tt class="py-op">.</tt><tt class="py-name">value</tt><tt class="py-op">)</tt> </tt>
<a name="L2169"></a><tt class="py-lineno">2169</tt> <tt class="py-line"> <tt class="py-keyword">finally</tt><tt class="py-op">:</tt> </tt>
<a name="L2170"></a><tt class="py-lineno">2170</tt> <tt class="py-line"> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-391" class="py-name"><a title="proton.Data.exit" class="py-name" href="#" onclick="return doclink('link-391', 'exit', 'link-365');">exit</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
</div><a name="L2171"></a><tt class="py-lineno">2171</tt> <tt class="py-line"> </tt>
<a name="Data.get_py_array"></a><div id="Data.get_py_array-def"><a name="L2172"></a><tt class="py-lineno">2172</tt> <a class="py-toggle" href="#" id="Data.get_py_array-toggle" onclick="return toggle('Data.get_py_array');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Data-class.html#get_py_array">get_py_array</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Data.get_py_array-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Data.get_py_array-expanded"><a name="L2173"></a><tt class="py-lineno">2173</tt> <tt class="py-line"> <tt class="py-docstring">"""</tt> </tt>
<a name="L2174"></a><tt class="py-lineno">2174</tt> <tt class="py-line"><tt class="py-docstring"> If the current node is an array, return an Array object</tt> </tt>
<a name="L2175"></a><tt class="py-lineno">2175</tt> <tt class="py-line"><tt class="py-docstring"> representing the array and its contents. Otherwise return None.</tt> </tt>
<a name="L2176"></a><tt class="py-lineno">2176</tt> <tt class="py-line"><tt class="py-docstring"> This is a convenience wrapper around get_array, enter, etc.</tt> </tt>
<a name="L2177"></a><tt class="py-lineno">2177</tt> <tt class="py-line"><tt class="py-docstring"> """</tt> </tt>
<a name="L2178"></a><tt class="py-lineno">2178</tt> <tt class="py-line"> </tt>
<a name="L2179"></a><tt class="py-lineno">2179</tt> <tt class="py-line"> <tt class="py-name">count</tt><tt class="py-op">,</tt> <tt class="py-name">described</tt><tt class="py-op">,</tt> <tt id="link-392" class="py-name"><a title="proton.Data.type
proton.Disposition.type
proton.Terminus.type" class="py-name" href="#" onclick="return doclink('link-392', 'type', 'link-152');">type</a></tt> <tt class="py-op">=</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-393" class="py-name" targets="Method proton.Data.get_array()=proton.Data-class.html#get_array"><a title="proton.Data.get_array" class="py-name" href="#" onclick="return doclink('link-393', 'get_array', 'link-393');">get_array</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L2180"></a><tt class="py-lineno">2180</tt> <tt class="py-line"> <tt class="py-keyword">if</tt> <tt id="link-394" class="py-name"><a title="proton.Data.type
proton.Disposition.type
proton.Terminus.type" class="py-name" href="#" onclick="return doclink('link-394', 'type', 'link-152');">type</a></tt> <tt class="py-keyword">is</tt> <tt class="py-name">None</tt><tt class="py-op">:</tt> <tt class="py-keyword">return</tt> <tt class="py-name">None</tt> </tt>
<a name="L2181"></a><tt class="py-lineno">2181</tt> <tt class="py-line"> <tt class="py-keyword">if</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-395" class="py-name"><a title="proton.Data.enter" class="py-name" href="#" onclick="return doclink('link-395', 'enter', 'link-362');">enter</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
<a name="L2182"></a><tt class="py-lineno">2182</tt> <tt class="py-line"> <tt class="py-keyword">try</tt><tt class="py-op">:</tt> </tt>
<a name="L2183"></a><tt class="py-lineno">2183</tt> <tt class="py-line"> <tt class="py-keyword">if</tt> <tt class="py-name">described</tt><tt class="py-op">:</tt> </tt>
<a name="L2184"></a><tt class="py-lineno">2184</tt> <tt class="py-line"> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-396" class="py-name"><a title="proton.Data.next
proton.Link.next
proton.Session.next
proton.reactor.Backoff.next
proton.reactor.Urls.next
proton.utils.AtomicCount.next" class="py-name" href="#" onclick="return doclink('link-396', 'next', 'link-119');">next</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L2185"></a><tt class="py-lineno">2185</tt> <tt class="py-line"> <tt class="py-name">descriptor</tt> <tt class="py-op">=</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-397" class="py-name"><a title="proton.Data.get_object" class="py-name" href="#" onclick="return doclink('link-397', 'get_object', 'link-120');">get_object</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L2186"></a><tt class="py-lineno">2186</tt> <tt class="py-line"> <tt class="py-keyword">else</tt><tt class="py-op">:</tt> </tt>
<a name="L2187"></a><tt class="py-lineno">2187</tt> <tt class="py-line"> <tt class="py-name">descriptor</tt> <tt class="py-op">=</tt> <tt id="link-398" class="py-name"><a title="proton.UNDESCRIBED" class="py-name" href="#" onclick="return doclink('link-398', 'UNDESCRIBED', 'link-262');">UNDESCRIBED</a></tt> </tt>
<a name="L2188"></a><tt class="py-lineno">2188</tt> <tt class="py-line"> <tt class="py-name">elements</tt> <tt class="py-op">=</tt> <tt class="py-op">[</tt><tt class="py-op">]</tt> </tt>
<a name="L2189"></a><tt class="py-lineno">2189</tt> <tt class="py-line"> <tt class="py-keyword">while</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-399" class="py-name"><a title="proton.Data.next
proton.Link.next
proton.Session.next
proton.reactor.Backoff.next
proton.reactor.Urls.next
proton.utils.AtomicCount.next" class="py-name" href="#" onclick="return doclink('link-399', 'next', 'link-119');">next</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
<a name="L2190"></a><tt class="py-lineno">2190</tt> <tt class="py-line"> <tt class="py-name">elements</tt><tt class="py-op">.</tt><tt class="py-name">append</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-400" class="py-name"><a title="proton.Data.get_object" class="py-name" href="#" onclick="return doclink('link-400', 'get_object', 'link-120');">get_object</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
<a name="L2191"></a><tt class="py-lineno">2191</tt> <tt class="py-line"> <tt class="py-keyword">finally</tt><tt class="py-op">:</tt> </tt>
<a name="L2192"></a><tt class="py-lineno">2192</tt> <tt class="py-line"> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-401" class="py-name"><a title="proton.Data.exit" class="py-name" href="#" onclick="return doclink('link-401', 'exit', 'link-365');">exit</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L2193"></a><tt class="py-lineno">2193</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt id="link-402" class="py-name"><a title="proton.Array" class="py-name" href="#" onclick="return doclink('link-402', 'Array', 'link-266');">Array</a></tt><tt class="py-op">(</tt><tt class="py-name">descriptor</tt><tt class="py-op">,</tt> <tt id="link-403" class="py-name"><a title="proton.Data.type
proton.Disposition.type
proton.Terminus.type" class="py-name" href="#" onclick="return doclink('link-403', 'type', 'link-152');">type</a></tt><tt class="py-op">,</tt> <tt class="py-op">*</tt><tt class="py-name">elements</tt><tt class="py-op">)</tt> </tt>
</div><a name="L2194"></a><tt class="py-lineno">2194</tt> <tt class="py-line"> </tt>
<a name="Data.put_py_array"></a><div id="Data.put_py_array-def"><a name="L2195"></a><tt class="py-lineno">2195</tt> <a class="py-toggle" href="#" id="Data.put_py_array-toggle" onclick="return toggle('Data.put_py_array');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Data-class.html#put_py_array">put_py_array</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">a</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Data.put_py_array-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Data.put_py_array-expanded"><a name="L2196"></a><tt class="py-lineno">2196</tt> <tt class="py-line"> <tt class="py-name">described</tt> <tt class="py-op">=</tt> <tt class="py-name">a</tt><tt class="py-op">.</tt><tt class="py-name">descriptor</tt> <tt class="py-op">!=</tt> <tt id="link-404" class="py-name"><a title="proton.UNDESCRIBED" class="py-name" href="#" onclick="return doclink('link-404', 'UNDESCRIBED', 'link-262');">UNDESCRIBED</a></tt> </tt>
<a name="L2197"></a><tt class="py-lineno">2197</tt> <tt class="py-line"> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-405" class="py-name" targets="Method proton.Data.put_array()=proton.Data-class.html#put_array"><a title="proton.Data.put_array" class="py-name" href="#" onclick="return doclink('link-405', 'put_array', 'link-405');">put_array</a></tt><tt class="py-op">(</tt><tt class="py-name">described</tt><tt class="py-op">,</tt> <tt class="py-name">a</tt><tt class="py-op">.</tt><tt id="link-406" class="py-name"><a title="proton.Data.type
proton.Disposition.type
proton.Terminus.type" class="py-name" href="#" onclick="return doclink('link-406', 'type', 'link-152');">type</a></tt><tt class="py-op">)</tt> </tt>
<a name="L2198"></a><tt class="py-lineno">2198</tt> <tt class="py-line"> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-407" class="py-name"><a title="proton.Data.enter" class="py-name" href="#" onclick="return doclink('link-407', 'enter', 'link-362');">enter</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L2199"></a><tt class="py-lineno">2199</tt> <tt class="py-line"> <tt class="py-keyword">try</tt><tt class="py-op">:</tt> </tt>
<a name="L2200"></a><tt class="py-lineno">2200</tt> <tt class="py-line"> <tt class="py-keyword">if</tt> <tt class="py-name">described</tt><tt class="py-op">:</tt> </tt>
<a name="L2201"></a><tt class="py-lineno">2201</tt> <tt class="py-line"> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-408" class="py-name"><a title="proton.Data.put_object" class="py-name" href="#" onclick="return doclink('link-408', 'put_object', 'link-104');">put_object</a></tt><tt class="py-op">(</tt><tt class="py-name">a</tt><tt class="py-op">.</tt><tt class="py-name">descriptor</tt><tt class="py-op">)</tt> </tt>
<a name="L2202"></a><tt class="py-lineno">2202</tt> <tt class="py-line"> <tt class="py-keyword">for</tt> <tt class="py-name">e</tt> <tt class="py-keyword">in</tt> <tt class="py-name">a</tt><tt class="py-op">.</tt><tt class="py-name">elements</tt><tt class="py-op">:</tt> </tt>
<a name="L2203"></a><tt class="py-lineno">2203</tt> <tt class="py-line"> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-409" class="py-name"><a title="proton.Data.put_object" class="py-name" href="#" onclick="return doclink('link-409', 'put_object', 'link-104');">put_object</a></tt><tt class="py-op">(</tt><tt class="py-name">e</tt><tt class="py-op">)</tt> </tt>
<a name="L2204"></a><tt class="py-lineno">2204</tt> <tt class="py-line"> <tt class="py-keyword">finally</tt><tt class="py-op">:</tt> </tt>
<a name="L2205"></a><tt class="py-lineno">2205</tt> <tt class="py-line"> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-410" class="py-name"><a title="proton.Data.exit" class="py-name" href="#" onclick="return doclink('link-410', 'exit', 'link-365');">exit</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
</div><a name="L2206"></a><tt class="py-lineno">2206</tt> <tt class="py-line"> </tt>
<a name="L2207"></a><tt class="py-lineno">2207</tt> <tt class="py-line"> <tt id="link-411" class="py-name" targets="Variable proton.Data.put_mappings=proton.Data-class.html#put_mappings"><a title="proton.Data.put_mappings" class="py-name" href="#" onclick="return doclink('link-411', 'put_mappings', 'link-411');">put_mappings</a></tt> <tt class="py-op">=</tt> <tt class="py-op">{</tt> </tt>
<a name="L2208"></a><tt class="py-lineno">2208</tt> <tt class="py-line"> <tt class="py-name">None</tt><tt class="py-op">.</tt><tt class="py-name">__class__</tt><tt class="py-op">:</tt> <tt class="py-keyword">lambda</tt> <tt class="py-name">s</tt><tt class="py-op">,</tt> <tt class="py-name">_</tt><tt class="py-op">:</tt> <tt class="py-name">s</tt><tt class="py-op">.</tt><tt id="link-412" class="py-name" targets="Method proton.Data.put_null()=proton.Data-class.html#put_null"><a title="proton.Data.put_null" class="py-name" href="#" onclick="return doclink('link-412', 'put_null', 'link-412');">put_null</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">,</tt> </tt>
<a name="L2209"></a><tt class="py-lineno">2209</tt> <tt class="py-line"> <tt class="py-name">bool</tt><tt class="py-op">:</tt> <tt id="link-413" class="py-name" targets="Method proton.Data.put_bool()=proton.Data-class.html#put_bool"><a title="proton.Data.put_bool" class="py-name" href="#" onclick="return doclink('link-413', 'put_bool', 'link-413');">put_bool</a></tt><tt class="py-op">,</tt> </tt>
<a name="L2210"></a><tt class="py-lineno">2210</tt> <tt class="py-line"> <tt id="link-414" class="py-name"><a title="proton.ubyte" class="py-name" href="#" onclick="return doclink('link-414', 'ubyte', 'link-340');">ubyte</a></tt><tt class="py-op">:</tt> <tt id="link-415" class="py-name" targets="Method proton.Data.put_ubyte()=proton.Data-class.html#put_ubyte"><a title="proton.Data.put_ubyte" class="py-name" href="#" onclick="return doclink('link-415', 'put_ubyte', 'link-415');">put_ubyte</a></tt><tt class="py-op">,</tt> </tt>
<a name="L2211"></a><tt class="py-lineno">2211</tt> <tt class="py-line"> <tt id="link-416" class="py-name"><a title="proton.ushort" class="py-name" href="#" onclick="return doclink('link-416', 'ushort', 'link-342');">ushort</a></tt><tt class="py-op">:</tt> <tt id="link-417" class="py-name" targets="Method proton.Data.put_ushort()=proton.Data-class.html#put_ushort"><a title="proton.Data.put_ushort" class="py-name" href="#" onclick="return doclink('link-417', 'put_ushort', 'link-417');">put_ushort</a></tt><tt class="py-op">,</tt> </tt>
<a name="L2212"></a><tt class="py-lineno">2212</tt> <tt class="py-line"> <tt id="link-418" class="py-name"><a title="proton.uint" class="py-name" href="#" onclick="return doclink('link-418', 'uint', 'link-344');">uint</a></tt><tt class="py-op">:</tt> <tt id="link-419" class="py-name" targets="Method proton.Data.put_uint()=proton.Data-class.html#put_uint"><a title="proton.Data.put_uint" class="py-name" href="#" onclick="return doclink('link-419', 'put_uint', 'link-419');">put_uint</a></tt><tt class="py-op">,</tt> </tt>
<a name="L2213"></a><tt class="py-lineno">2213</tt> <tt class="py-line"> <tt id="link-420" class="py-name"><a title="proton.ulong" class="py-name" href="#" onclick="return doclink('link-420', 'ulong', 'link-155');">ulong</a></tt><tt class="py-op">:</tt> <tt id="link-421" class="py-name" targets="Method proton.Data.put_ulong()=proton.Data-class.html#put_ulong"><a title="proton.Data.put_ulong" class="py-name" href="#" onclick="return doclink('link-421', 'put_ulong', 'link-421');">put_ulong</a></tt><tt class="py-op">,</tt> </tt>
<a name="L2214"></a><tt class="py-lineno">2214</tt> <tt class="py-line"> <tt id="link-422" class="py-name"><a title="proton.byte" class="py-name" href="#" onclick="return doclink('link-422', 'byte', 'link-341');">byte</a></tt><tt class="py-op">:</tt> <tt id="link-423" class="py-name" targets="Method proton.Data.put_byte()=proton.Data-class.html#put_byte"><a title="proton.Data.put_byte" class="py-name" href="#" onclick="return doclink('link-423', 'put_byte', 'link-423');">put_byte</a></tt><tt class="py-op">,</tt> </tt>
<a name="L2215"></a><tt class="py-lineno">2215</tt> <tt class="py-line"> <tt id="link-424" class="py-name"><a title="proton.short" class="py-name" href="#" onclick="return doclink('link-424', 'short', 'link-343');">short</a></tt><tt class="py-op">:</tt> <tt id="link-425" class="py-name" targets="Method proton.Data.put_short()=proton.Data-class.html#put_short"><a title="proton.Data.put_short" class="py-name" href="#" onclick="return doclink('link-425', 'put_short', 'link-425');">put_short</a></tt><tt class="py-op">,</tt> </tt>
<a name="L2216"></a><tt class="py-lineno">2216</tt> <tt class="py-line"> <tt id="link-426" class="py-name"><a title="proton.int32" class="py-name" href="#" onclick="return doclink('link-426', 'int32', 'link-345');">int32</a></tt><tt class="py-op">:</tt> <tt id="link-427" class="py-name" targets="Method proton.Data.put_int()=proton.Data-class.html#put_int"><a title="proton.Data.put_int" class="py-name" href="#" onclick="return doclink('link-427', 'put_int', 'link-427');">put_int</a></tt><tt class="py-op">,</tt> </tt>
<a name="L2217"></a><tt class="py-lineno">2217</tt> <tt class="py-line"> <tt class="py-name">long</tt><tt class="py-op">:</tt> <tt id="link-428" class="py-name" targets="Method proton.Data.put_long()=proton.Data-class.html#put_long"><a title="proton.Data.put_long" class="py-name" href="#" onclick="return doclink('link-428', 'put_long', 'link-428');">put_long</a></tt><tt class="py-op">,</tt> </tt>
<a name="L2218"></a><tt class="py-lineno">2218</tt> <tt class="py-line"> <tt id="link-429" class="py-name"><a title="proton.float32" class="py-name" href="#" onclick="return doclink('link-429', 'float32', 'link-351');">float32</a></tt><tt class="py-op">:</tt> <tt id="link-430" class="py-name" targets="Method proton.Data.put_float()=proton.Data-class.html#put_float"><a title="proton.Data.put_float" class="py-name" href="#" onclick="return doclink('link-430', 'put_float', 'link-430');">put_float</a></tt><tt class="py-op">,</tt> </tt>
<a name="L2219"></a><tt class="py-lineno">2219</tt> <tt class="py-line"> <tt class="py-name">float</tt><tt class="py-op">:</tt> <tt id="link-431" class="py-name" targets="Method proton.Data.put_double()=proton.Data-class.html#put_double"><a title="proton.Data.put_double" class="py-name" href="#" onclick="return doclink('link-431', 'put_double', 'link-431');">put_double</a></tt><tt class="py-op">,</tt> </tt>
<a name="L2220"></a><tt class="py-lineno">2220</tt> <tt class="py-line"> <tt id="link-432" class="py-name"><a title="proton.decimal32" class="py-name" href="#" onclick="return doclink('link-432', 'decimal32', 'link-352');">decimal32</a></tt><tt class="py-op">:</tt> <tt id="link-433" class="py-name" targets="Method proton.Data.put_decimal32()=proton.Data-class.html#put_decimal32"><a title="proton.Data.put_decimal32" class="py-name" href="#" onclick="return doclink('link-433', 'put_decimal32', 'link-433');">put_decimal32</a></tt><tt class="py-op">,</tt> </tt>
<a name="L2221"></a><tt class="py-lineno">2221</tt> <tt class="py-line"> <tt id="link-434" class="py-name"><a title="proton.decimal64" class="py-name" href="#" onclick="return doclink('link-434', 'decimal64', 'link-353');">decimal64</a></tt><tt class="py-op">:</tt> <tt id="link-435" class="py-name" targets="Method proton.Data.put_decimal64()=proton.Data-class.html#put_decimal64"><a title="proton.Data.put_decimal64" class="py-name" href="#" onclick="return doclink('link-435', 'put_decimal64', 'link-435');">put_decimal64</a></tt><tt class="py-op">,</tt> </tt>
<a name="L2222"></a><tt class="py-lineno">2222</tt> <tt class="py-line"> <tt id="link-436" class="py-name"><a title="proton.decimal128" class="py-name" href="#" onclick="return doclink('link-436', 'decimal128', 'link-354');">decimal128</a></tt><tt class="py-op">:</tt> <tt id="link-437" class="py-name" targets="Method proton.Data.put_decimal128()=proton.Data-class.html#put_decimal128"><a title="proton.Data.put_decimal128" class="py-name" href="#" onclick="return doclink('link-437', 'put_decimal128', 'link-437');">put_decimal128</a></tt><tt class="py-op">,</tt> </tt>
<a name="L2223"></a><tt class="py-lineno">2223</tt> <tt class="py-line"> <tt id="link-438" class="py-name"><a title="proton.char" class="py-name" href="#" onclick="return doclink('link-438', 'char', 'link-346');">char</a></tt><tt class="py-op">:</tt> <tt id="link-439" class="py-name" targets="Method proton.Data.put_char()=proton.Data-class.html#put_char"><a title="proton.Data.put_char" class="py-name" href="#" onclick="return doclink('link-439', 'put_char', 'link-439');">put_char</a></tt><tt class="py-op">,</tt> </tt>
<a name="L2224"></a><tt class="py-lineno">2224</tt> <tt class="py-line"> <tt id="link-440" class="py-name"><a title="proton.timestamp" class="py-name" href="#" onclick="return doclink('link-440', 'timestamp', 'link-350');">timestamp</a></tt><tt class="py-op">:</tt> <tt id="link-441" class="py-name" targets="Method proton.Data.put_timestamp()=proton.Data-class.html#put_timestamp"><a title="proton.Data.put_timestamp" class="py-name" href="#" onclick="return doclink('link-441', 'put_timestamp', 'link-441');">put_timestamp</a></tt><tt class="py-op">,</tt> </tt>
<a name="L2225"></a><tt class="py-lineno">2225</tt> <tt class="py-line"> <tt class="py-name">uuid</tt><tt class="py-op">.</tt><tt id="link-442" class="py-name"><a title="proton.Data.UUID" class="py-name" href="#" onclick="return doclink('link-442', 'UUID', 'link-4');">UUID</a></tt><tt class="py-op">:</tt> <tt id="link-443" class="py-name" targets="Method proton.Data.put_uuid()=proton.Data-class.html#put_uuid"><a title="proton.Data.put_uuid" class="py-name" href="#" onclick="return doclink('link-443', 'put_uuid', 'link-443');">put_uuid</a></tt><tt class="py-op">,</tt> </tt>
<a name="L2226"></a><tt class="py-lineno">2226</tt> <tt class="py-line"> <tt class="py-name">bytes</tt><tt class="py-op">:</tt> <tt id="link-444" class="py-name" targets="Method proton.Data.put_binary()=proton.Data-class.html#put_binary"><a title="proton.Data.put_binary" class="py-name" href="#" onclick="return doclink('link-444', 'put_binary', 'link-444');">put_binary</a></tt><tt class="py-op">,</tt> </tt>
<a name="L2227"></a><tt class="py-lineno">2227</tt> <tt class="py-line"> <tt class="py-name">unicode</tt><tt class="py-op">:</tt> <tt id="link-445" class="py-name" targets="Method proton.Data.put_string()=proton.Data-class.html#put_string"><a title="proton.Data.put_string" class="py-name" href="#" onclick="return doclink('link-445', 'put_string', 'link-445');">put_string</a></tt><tt class="py-op">,</tt> </tt>
<a name="L2228"></a><tt class="py-lineno">2228</tt> <tt class="py-line"> <tt id="link-446" class="py-name"><a title="proton.symbol" class="py-name" href="#" onclick="return doclink('link-446', 'symbol', 'link-183');">symbol</a></tt><tt class="py-op">:</tt> <tt id="link-447" class="py-name" targets="Method proton.Data.put_symbol()=proton.Data-class.html#put_symbol"><a title="proton.Data.put_symbol" class="py-name" href="#" onclick="return doclink('link-447', 'put_symbol', 'link-447');">put_symbol</a></tt><tt class="py-op">,</tt> </tt>
<a name="L2229"></a><tt class="py-lineno">2229</tt> <tt class="py-line"> <tt class="py-name">list</tt><tt class="py-op">:</tt> <tt id="link-448" class="py-name" targets="Method proton.Data.put_sequence()=proton.Data-class.html#put_sequence"><a title="proton.Data.put_sequence" class="py-name" href="#" onclick="return doclink('link-448', 'put_sequence', 'link-448');">put_sequence</a></tt><tt class="py-op">,</tt> </tt>
<a name="L2230"></a><tt class="py-lineno">2230</tt> <tt class="py-line"> <tt class="py-name">tuple</tt><tt class="py-op">:</tt> <tt id="link-449" class="py-name"><a title="proton.Data.put_sequence" class="py-name" href="#" onclick="return doclink('link-449', 'put_sequence', 'link-448');">put_sequence</a></tt><tt class="py-op">,</tt> </tt>
<a name="L2231"></a><tt class="py-lineno">2231</tt> <tt class="py-line"> <tt class="py-name">dict</tt><tt class="py-op">:</tt> <tt id="link-450" class="py-name" targets="Method proton.Data.put_dict()=proton.Data-class.html#put_dict"><a title="proton.Data.put_dict" class="py-name" href="#" onclick="return doclink('link-450', 'put_dict', 'link-450');">put_dict</a></tt><tt class="py-op">,</tt> </tt>
<a name="L2232"></a><tt class="py-lineno">2232</tt> <tt class="py-line"> <tt id="link-451" class="py-name"><a title="proton.Described" class="py-name" href="#" onclick="return doclink('link-451', 'Described', 'link-261');">Described</a></tt><tt class="py-op">:</tt> <tt id="link-452" class="py-name" targets="Method proton.Data.put_py_described()=proton.Data-class.html#put_py_described"><a title="proton.Data.put_py_described" class="py-name" href="#" onclick="return doclink('link-452', 'put_py_described', 'link-452');">put_py_described</a></tt><tt class="py-op">,</tt> </tt>
<a name="L2233"></a><tt class="py-lineno">2233</tt> <tt class="py-line"> <tt id="link-453" class="py-name"><a title="proton.Array" class="py-name" href="#" onclick="return doclink('link-453', 'Array', 'link-266');">Array</a></tt><tt class="py-op">:</tt> <tt id="link-454" class="py-name" targets="Method proton.Data.put_py_array()=proton.Data-class.html#put_py_array"><a title="proton.Data.put_py_array" class="py-name" href="#" onclick="return doclink('link-454', 'put_py_array', 'link-454');">put_py_array</a></tt> </tt>
<a name="L2234"></a><tt class="py-lineno">2234</tt> <tt class="py-line"> <tt class="py-op">}</tt> </tt>
<a name="L2235"></a><tt class="py-lineno">2235</tt> <tt class="py-line"> <tt class="py-comment"># for python 3.x, long is merely an alias for int, but for python 2.x</tt> </tt>
<a name="L2236"></a><tt class="py-lineno">2236</tt> <tt class="py-line"> <tt class="py-comment"># we need to add an explicit int since it is a different type</tt> </tt>
<a name="L2237"></a><tt class="py-lineno">2237</tt> <tt class="py-line"> <tt class="py-keyword">if</tt> <tt class="py-name">int</tt> <tt class="py-keyword">not</tt> <tt class="py-keyword">in</tt> <tt id="link-455" class="py-name"><a title="proton.Data.put_mappings" class="py-name" href="#" onclick="return doclink('link-455', 'put_mappings', 'link-411');">put_mappings</a></tt><tt class="py-op">:</tt> </tt>
<a name="L2238"></a><tt class="py-lineno">2238</tt> <tt class="py-line"> <tt id="link-456" class="py-name"><a title="proton.Data.put_mappings" class="py-name" href="#" onclick="return doclink('link-456', 'put_mappings', 'link-411');">put_mappings</a></tt><tt class="py-op">[</tt><tt class="py-name">int</tt><tt class="py-op">]</tt> <tt class="py-op">=</tt> <tt id="link-457" class="py-name"><a title="proton.Data.put_int" class="py-name" href="#" onclick="return doclink('link-457', 'put_int', 'link-427');">put_int</a></tt> </tt>
<a name="L2239"></a><tt class="py-lineno">2239</tt> <tt class="py-line"> </tt>
<a name="L2240"></a><tt class="py-lineno">2240</tt> <tt class="py-line"> <tt id="link-458" class="py-name" targets="Variable proton.Data.get_mappings=proton.Data-class.html#get_mappings"><a title="proton.Data.get_mappings" class="py-name" href="#" onclick="return doclink('link-458', 'get_mappings', 'link-458');">get_mappings</a></tt> <tt class="py-op">=</tt> <tt class="py-op">{</tt> </tt>
<a name="L2241"></a><tt class="py-lineno">2241</tt> <tt class="py-line"> <tt id="link-459" class="py-name"><a title="proton.Data.NULL" class="py-name" href="#" onclick="return doclink('link-459', 'NULL', 'link-269');">NULL</a></tt><tt class="py-op">:</tt> <tt class="py-keyword">lambda</tt> <tt class="py-name">s</tt><tt class="py-op">:</tt> <tt class="py-name">None</tt><tt class="py-op">,</tt> </tt>
<a name="L2242"></a><tt class="py-lineno">2242</tt> <tt class="py-line"> <tt id="link-460" class="py-name"><a title="proton.Data.BOOL" class="py-name" href="#" onclick="return doclink('link-460', 'BOOL', 'link-270');">BOOL</a></tt><tt class="py-op">:</tt> <tt id="link-461" class="py-name" targets="Method proton.Data.get_bool()=proton.Data-class.html#get_bool"><a title="proton.Data.get_bool" class="py-name" href="#" onclick="return doclink('link-461', 'get_bool', 'link-461');">get_bool</a></tt><tt class="py-op">,</tt> </tt>
<a name="L2243"></a><tt class="py-lineno">2243</tt> <tt class="py-line"> <tt id="link-462" class="py-name"><a title="proton.Data.BYTE" class="py-name" href="#" onclick="return doclink('link-462', 'BYTE', 'link-272');">BYTE</a></tt><tt class="py-op">:</tt> <tt id="link-463" class="py-name" targets="Method proton.Data.get_byte()=proton.Data-class.html#get_byte"><a title="proton.Data.get_byte" class="py-name" href="#" onclick="return doclink('link-463', 'get_byte', 'link-463');">get_byte</a></tt><tt class="py-op">,</tt> </tt>
<a name="L2244"></a><tt class="py-lineno">2244</tt> <tt class="py-line"> <tt id="link-464" class="py-name"><a title="proton.Data.UBYTE" class="py-name" href="#" onclick="return doclink('link-464', 'UBYTE', 'link-271');">UBYTE</a></tt><tt class="py-op">:</tt> <tt id="link-465" class="py-name" targets="Method proton.Data.get_ubyte()=proton.Data-class.html#get_ubyte"><a title="proton.Data.get_ubyte" class="py-name" href="#" onclick="return doclink('link-465', 'get_ubyte', 'link-465');">get_ubyte</a></tt><tt class="py-op">,</tt> </tt>
<a name="L2245"></a><tt class="py-lineno">2245</tt> <tt class="py-line"> <tt id="link-466" class="py-name"><a title="proton.Data.SHORT" class="py-name" href="#" onclick="return doclink('link-466', 'SHORT', 'link-274');">SHORT</a></tt><tt class="py-op">:</tt> <tt id="link-467" class="py-name" targets="Method proton.Data.get_short()=proton.Data-class.html#get_short"><a title="proton.Data.get_short" class="py-name" href="#" onclick="return doclink('link-467', 'get_short', 'link-467');">get_short</a></tt><tt class="py-op">,</tt> </tt>
<a name="L2246"></a><tt class="py-lineno">2246</tt> <tt class="py-line"> <tt id="link-468" class="py-name"><a title="proton.Data.USHORT" class="py-name" href="#" onclick="return doclink('link-468', 'USHORT', 'link-273');">USHORT</a></tt><tt class="py-op">:</tt> <tt id="link-469" class="py-name" targets="Method proton.Data.get_ushort()=proton.Data-class.html#get_ushort"><a title="proton.Data.get_ushort" class="py-name" href="#" onclick="return doclink('link-469', 'get_ushort', 'link-469');">get_ushort</a></tt><tt class="py-op">,</tt> </tt>
<a name="L2247"></a><tt class="py-lineno">2247</tt> <tt class="py-line"> <tt id="link-470" class="py-name"><a title="proton.Data.INT" class="py-name" href="#" onclick="return doclink('link-470', 'INT', 'link-276');">INT</a></tt><tt class="py-op">:</tt> <tt id="link-471" class="py-name" targets="Method proton.Data.get_int()=proton.Data-class.html#get_int"><a title="proton.Data.get_int" class="py-name" href="#" onclick="return doclink('link-471', 'get_int', 'link-471');">get_int</a></tt><tt class="py-op">,</tt> </tt>
<a name="L2248"></a><tt class="py-lineno">2248</tt> <tt class="py-line"> <tt id="link-472" class="py-name"><a title="proton.Data.UINT" class="py-name" href="#" onclick="return doclink('link-472', 'UINT', 'link-275');">UINT</a></tt><tt class="py-op">:</tt> <tt id="link-473" class="py-name" targets="Method proton.Data.get_uint()=proton.Data-class.html#get_uint"><a title="proton.Data.get_uint" class="py-name" href="#" onclick="return doclink('link-473', 'get_uint', 'link-473');">get_uint</a></tt><tt class="py-op">,</tt> </tt>
<a name="L2249"></a><tt class="py-lineno">2249</tt> <tt class="py-line"> <tt id="link-474" class="py-name"><a title="proton.Data.CHAR" class="py-name" href="#" onclick="return doclink('link-474', 'CHAR', 'link-277');">CHAR</a></tt><tt class="py-op">:</tt> <tt id="link-475" class="py-name" targets="Method proton.Data.get_char()=proton.Data-class.html#get_char"><a title="proton.Data.get_char" class="py-name" href="#" onclick="return doclink('link-475', 'get_char', 'link-475');">get_char</a></tt><tt class="py-op">,</tt> </tt>
<a name="L2250"></a><tt class="py-lineno">2250</tt> <tt class="py-line"> <tt id="link-476" class="py-name"><a title="proton.Data.LONG" class="py-name" href="#" onclick="return doclink('link-476', 'LONG', 'link-279');">LONG</a></tt><tt class="py-op">:</tt> <tt id="link-477" class="py-name" targets="Method proton.Data.get_long()=proton.Data-class.html#get_long"><a title="proton.Data.get_long" class="py-name" href="#" onclick="return doclink('link-477', 'get_long', 'link-477');">get_long</a></tt><tt class="py-op">,</tt> </tt>
<a name="L2251"></a><tt class="py-lineno">2251</tt> <tt class="py-line"> <tt id="link-478" class="py-name"><a title="proton.Data.ULONG" class="py-name" href="#" onclick="return doclink('link-478', 'ULONG', 'link-278');">ULONG</a></tt><tt class="py-op">:</tt> <tt id="link-479" class="py-name" targets="Method proton.Data.get_ulong()=proton.Data-class.html#get_ulong"><a title="proton.Data.get_ulong" class="py-name" href="#" onclick="return doclink('link-479', 'get_ulong', 'link-479');">get_ulong</a></tt><tt class="py-op">,</tt> </tt>
<a name="L2252"></a><tt class="py-lineno">2252</tt> <tt class="py-line"> <tt id="link-480" class="py-name"><a title="proton.Data.TIMESTAMP" class="py-name" href="#" onclick="return doclink('link-480', 'TIMESTAMP', 'link-280');">TIMESTAMP</a></tt><tt class="py-op">:</tt> <tt id="link-481" class="py-name" targets="Method proton.Data.get_timestamp()=proton.Data-class.html#get_timestamp"><a title="proton.Data.get_timestamp" class="py-name" href="#" onclick="return doclink('link-481', 'get_timestamp', 'link-481');">get_timestamp</a></tt><tt class="py-op">,</tt> </tt>
<a name="L2253"></a><tt class="py-lineno">2253</tt> <tt class="py-line"> <tt id="link-482" class="py-name"><a title="proton.Data.FLOAT" class="py-name" href="#" onclick="return doclink('link-482', 'FLOAT', 'link-281');">FLOAT</a></tt><tt class="py-op">:</tt> <tt id="link-483" class="py-name" targets="Method proton.Data.get_float()=proton.Data-class.html#get_float"><a title="proton.Data.get_float" class="py-name" href="#" onclick="return doclink('link-483', 'get_float', 'link-483');">get_float</a></tt><tt class="py-op">,</tt> </tt>
<a name="L2254"></a><tt class="py-lineno">2254</tt> <tt class="py-line"> <tt id="link-484" class="py-name"><a title="proton.Data.DOUBLE" class="py-name" href="#" onclick="return doclink('link-484', 'DOUBLE', 'link-282');">DOUBLE</a></tt><tt class="py-op">:</tt> <tt id="link-485" class="py-name" targets="Method proton.Data.get_double()=proton.Data-class.html#get_double"><a title="proton.Data.get_double" class="py-name" href="#" onclick="return doclink('link-485', 'get_double', 'link-485');">get_double</a></tt><tt class="py-op">,</tt> </tt>
<a name="L2255"></a><tt class="py-lineno">2255</tt> <tt class="py-line"> <tt id="link-486" class="py-name"><a title="proton.Data.DECIMAL32" class="py-name" href="#" onclick="return doclink('link-486', 'DECIMAL32', 'link-283');">DECIMAL32</a></tt><tt class="py-op">:</tt> <tt id="link-487" class="py-name" targets="Method proton.Data.get_decimal32()=proton.Data-class.html#get_decimal32"><a title="proton.Data.get_decimal32" class="py-name" href="#" onclick="return doclink('link-487', 'get_decimal32', 'link-487');">get_decimal32</a></tt><tt class="py-op">,</tt> </tt>
<a name="L2256"></a><tt class="py-lineno">2256</tt> <tt class="py-line"> <tt id="link-488" class="py-name"><a title="proton.Data.DECIMAL64" class="py-name" href="#" onclick="return doclink('link-488', 'DECIMAL64', 'link-284');">DECIMAL64</a></tt><tt class="py-op">:</tt> <tt id="link-489" class="py-name" targets="Method proton.Data.get_decimal64()=proton.Data-class.html#get_decimal64"><a title="proton.Data.get_decimal64" class="py-name" href="#" onclick="return doclink('link-489', 'get_decimal64', 'link-489');">get_decimal64</a></tt><tt class="py-op">,</tt> </tt>
<a name="L2257"></a><tt class="py-lineno">2257</tt> <tt class="py-line"> <tt id="link-490" class="py-name"><a title="proton.Data.DECIMAL128" class="py-name" href="#" onclick="return doclink('link-490', 'DECIMAL128', 'link-285');">DECIMAL128</a></tt><tt class="py-op">:</tt> <tt id="link-491" class="py-name" targets="Method proton.Data.get_decimal128()=proton.Data-class.html#get_decimal128"><a title="proton.Data.get_decimal128" class="py-name" href="#" onclick="return doclink('link-491', 'get_decimal128', 'link-491');">get_decimal128</a></tt><tt class="py-op">,</tt> </tt>
<a name="L2258"></a><tt class="py-lineno">2258</tt> <tt class="py-line"> <tt id="link-492" class="py-name"><a title="proton.Data.UUID" class="py-name" href="#" onclick="return doclink('link-492', 'UUID', 'link-4');">UUID</a></tt><tt class="py-op">:</tt> <tt id="link-493" class="py-name" targets="Method proton.Data.get_uuid()=proton.Data-class.html#get_uuid"><a title="proton.Data.get_uuid" class="py-name" href="#" onclick="return doclink('link-493', 'get_uuid', 'link-493');">get_uuid</a></tt><tt class="py-op">,</tt> </tt>
<a name="L2259"></a><tt class="py-lineno">2259</tt> <tt class="py-line"> <tt id="link-494" class="py-name"><a title="proton.Data.BINARY" class="py-name" href="#" onclick="return doclink('link-494', 'BINARY', 'link-287');">BINARY</a></tt><tt class="py-op">:</tt> <tt id="link-495" class="py-name" targets="Method proton.Data.get_binary()=proton.Data-class.html#get_binary"><a title="proton.Data.get_binary" class="py-name" href="#" onclick="return doclink('link-495', 'get_binary', 'link-495');">get_binary</a></tt><tt class="py-op">,</tt> </tt>
<a name="L2260"></a><tt class="py-lineno">2260</tt> <tt class="py-line"> <tt id="link-496" class="py-name"><a title="proton.Data.STRING" class="py-name" href="#" onclick="return doclink('link-496', 'STRING', 'link-288');">STRING</a></tt><tt class="py-op">:</tt> <tt id="link-497" class="py-name" targets="Method proton.Data.get_string()=proton.Data-class.html#get_string"><a title="proton.Data.get_string" class="py-name" href="#" onclick="return doclink('link-497', 'get_string', 'link-497');">get_string</a></tt><tt class="py-op">,</tt> </tt>
<a name="L2261"></a><tt class="py-lineno">2261</tt> <tt class="py-line"> <tt id="link-498" class="py-name"><a title="proton.Data.SYMBOL" class="py-name" href="#" onclick="return doclink('link-498', 'SYMBOL', 'link-289');">SYMBOL</a></tt><tt class="py-op">:</tt> <tt id="link-499" class="py-name" targets="Method proton.Data.get_symbol()=proton.Data-class.html#get_symbol"><a title="proton.Data.get_symbol" class="py-name" href="#" onclick="return doclink('link-499', 'get_symbol', 'link-499');">get_symbol</a></tt><tt class="py-op">,</tt> </tt>
<a name="L2262"></a><tt class="py-lineno">2262</tt> <tt class="py-line"> <tt id="link-500" class="py-name"><a title="proton.Data.DESCRIBED" class="py-name" href="#" onclick="return doclink('link-500', 'DESCRIBED', 'link-290');">DESCRIBED</a></tt><tt class="py-op">:</tt> <tt id="link-501" class="py-name" targets="Method proton.Data.get_py_described()=proton.Data-class.html#get_py_described"><a title="proton.Data.get_py_described" class="py-name" href="#" onclick="return doclink('link-501', 'get_py_described', 'link-501');">get_py_described</a></tt><tt class="py-op">,</tt> </tt>
<a name="L2263"></a><tt class="py-lineno">2263</tt> <tt class="py-line"> <tt id="link-502" class="py-name"><a title="proton.Data.ARRAY" class="py-name" href="#" onclick="return doclink('link-502', 'ARRAY', 'link-291');">ARRAY</a></tt><tt class="py-op">:</tt> <tt id="link-503" class="py-name" targets="Method proton.Data.get_py_array()=proton.Data-class.html#get_py_array"><a title="proton.Data.get_py_array" class="py-name" href="#" onclick="return doclink('link-503', 'get_py_array', 'link-503');">get_py_array</a></tt><tt class="py-op">,</tt> </tt>
<a name="L2264"></a><tt class="py-lineno">2264</tt> <tt class="py-line"> <tt id="link-504" class="py-name"><a title="proton.Data.LIST" class="py-name" href="#" onclick="return doclink('link-504', 'LIST', 'link-292');">LIST</a></tt><tt class="py-op">:</tt> <tt id="link-505" class="py-name" targets="Method proton.Data.get_sequence()=proton.Data-class.html#get_sequence"><a title="proton.Data.get_sequence" class="py-name" href="#" onclick="return doclink('link-505', 'get_sequence', 'link-505');">get_sequence</a></tt><tt class="py-op">,</tt> </tt>
<a name="L2265"></a><tt class="py-lineno">2265</tt> <tt class="py-line"> <tt id="link-506" class="py-name"><a title="proton.Data.MAP" class="py-name" href="#" onclick="return doclink('link-506', 'MAP', 'link-293');">MAP</a></tt><tt class="py-op">:</tt> <tt id="link-507" class="py-name" targets="Method proton.Data.get_dict()=proton.Data-class.html#get_dict"><a title="proton.Data.get_dict" class="py-name" href="#" onclick="return doclink('link-507', 'get_dict', 'link-507');">get_dict</a></tt> </tt>
<a name="L2266"></a><tt class="py-lineno">2266</tt> <tt class="py-line"> <tt class="py-op">}</tt> </tt>
<a name="L2267"></a><tt class="py-lineno">2267</tt> <tt class="py-line"> </tt>
<a name="L2268"></a><tt class="py-lineno">2268</tt> <tt class="py-line"> </tt>
<a name="Data.put_object"></a><div id="Data.put_object-def"><a name="L2269"></a><tt class="py-lineno">2269</tt> <a class="py-toggle" href="#" id="Data.put_object-toggle" onclick="return toggle('Data.put_object');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Data-class.html#put_object">put_object</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">obj</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Data.put_object-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Data.put_object-expanded"><a name="L2270"></a><tt class="py-lineno">2270</tt> <tt class="py-line"> <tt class="py-name">putter</tt> <tt class="py-op">=</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-508" class="py-name"><a title="proton.Data.put_mappings" class="py-name" href="#" onclick="return doclink('link-508', 'put_mappings', 'link-411');">put_mappings</a></tt><tt class="py-op">[</tt><tt class="py-name">obj</tt><tt class="py-op">.</tt><tt class="py-name">__class__</tt><tt class="py-op">]</tt> </tt>
<a name="L2271"></a><tt class="py-lineno">2271</tt> <tt class="py-line"> <tt class="py-name">putter</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">,</tt> <tt class="py-name">obj</tt><tt class="py-op">)</tt> </tt>
</div><a name="L2272"></a><tt class="py-lineno">2272</tt> <tt class="py-line"> </tt>
<a name="Data.get_object"></a><div id="Data.get_object-def"><a name="L2273"></a><tt class="py-lineno">2273</tt> <a class="py-toggle" href="#" id="Data.get_object-toggle" onclick="return toggle('Data.get_object');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Data-class.html#get_object">get_object</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Data.get_object-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Data.get_object-expanded"><a name="L2274"></a><tt class="py-lineno">2274</tt> <tt class="py-line"> <tt id="link-509" class="py-name"><a title="proton.Data.type
proton.Disposition.type
proton.Terminus.type" class="py-name" href="#" onclick="return doclink('link-509', 'type', 'link-152');">type</a></tt> <tt class="py-op">=</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-510" class="py-name"><a title="proton.Data.type
proton.Disposition.type
proton.Terminus.type" class="py-name" href="#" onclick="return doclink('link-510', 'type', 'link-152');">type</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L2275"></a><tt class="py-lineno">2275</tt> <tt class="py-line"> <tt class="py-keyword">if</tt> <tt id="link-511" class="py-name"><a title="proton.Data.type
proton.Disposition.type
proton.Terminus.type" class="py-name" href="#" onclick="return doclink('link-511', 'type', 'link-152');">type</a></tt> <tt class="py-keyword">is</tt> <tt class="py-name">None</tt><tt class="py-op">:</tt> <tt class="py-keyword">return</tt> <tt class="py-name">None</tt> </tt>
<a name="L2276"></a><tt class="py-lineno">2276</tt> <tt class="py-line"> <tt class="py-name">getter</tt> <tt class="py-op">=</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-512" class="py-name"><a title="proton.Data.get_mappings" class="py-name" href="#" onclick="return doclink('link-512', 'get_mappings', 'link-458');">get_mappings</a></tt><tt class="py-op">.</tt><tt id="link-513" class="py-name"><a title="proton.Messenger.get" class="py-name" href="#" onclick="return doclink('link-513', 'get', 'link-50');">get</a></tt><tt class="py-op">(</tt><tt id="link-514" class="py-name"><a title="proton.Data.type
proton.Disposition.type
proton.Terminus.type" class="py-name" href="#" onclick="return doclink('link-514', 'type', 'link-152');">type</a></tt><tt class="py-op">)</tt> </tt>
<a name="L2277"></a><tt class="py-lineno">2277</tt> <tt class="py-line"> <tt class="py-keyword">if</tt> <tt class="py-name">getter</tt><tt class="py-op">:</tt> </tt>
<a name="L2278"></a><tt class="py-lineno">2278</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt class="py-name">getter</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">)</tt> </tt>
<a name="L2279"></a><tt class="py-lineno">2279</tt> <tt class="py-line"> <tt class="py-keyword">else</tt><tt class="py-op">:</tt> </tt>
<a name="L2280"></a><tt class="py-lineno">2280</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt class="py-name">UnmappedType</tt><tt class="py-op">(</tt><tt class="py-name">str</tt><tt class="py-op">(</tt><tt id="link-515" class="py-name"><a title="proton.Data.type
proton.Disposition.type
proton.Terminus.type" class="py-name" href="#" onclick="return doclink('link-515', 'type', 'link-152');">type</a></tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
</div></div><a name="L2281"></a><tt class="py-lineno">2281</tt> <tt class="py-line"> </tt>
<a name="ConnectionException"></a><div id="ConnectionException-def"><a name="L2282"></a><tt class="py-lineno">2282</tt> <a class="py-toggle" href="#" id="ConnectionException-toggle" onclick="return toggle('ConnectionException');">-</a><tt class="py-line"><tt class="py-keyword">class</tt> <a class="py-def-name" href="proton.ConnectionException-class.html">ConnectionException</a><tt class="py-op">(</tt><tt class="py-base-class">ProtonException</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="ConnectionException-collapsed" style="display:none;" pad="++++" indent="++++"></div><div id="ConnectionException-expanded"><a name="L2283"></a><tt class="py-lineno">2283</tt> <tt class="py-line"> <tt class="py-keyword">pass</tt> </tt>
</div><a name="L2284"></a><tt class="py-lineno">2284</tt> <tt class="py-line"> </tt>
<a name="Endpoint"></a><div id="Endpoint-def"><a name="L2285"></a><tt class="py-lineno">2285</tt> <a class="py-toggle" href="#" id="Endpoint-toggle" onclick="return toggle('Endpoint');">-</a><tt class="py-line"><tt class="py-keyword">class</tt> <a class="py-def-name" href="proton.Endpoint-class.html">Endpoint</a><tt class="py-op">(</tt><tt class="py-base-class">object</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Endpoint-collapsed" style="display:none;" pad="++++" indent="++++"></div><div id="Endpoint-expanded"><a name="L2286"></a><tt class="py-lineno">2286</tt> <tt class="py-line"> </tt>
<a name="L2287"></a><tt class="py-lineno">2287</tt> <tt class="py-line"> <tt id="link-516" class="py-name" targets="Variable proton.Endpoint.LOCAL_UNINIT=proton.Endpoint-class.html#LOCAL_UNINIT"><a title="proton.Endpoint.LOCAL_UNINIT" class="py-name" href="#" onclick="return doclink('link-516', 'LOCAL_UNINIT', 'link-516');">LOCAL_UNINIT</a></tt> <tt class="py-op">=</tt> <tt class="py-name">PN_LOCAL_UNINIT</tt> </tt>
<a name="L2288"></a><tt class="py-lineno">2288</tt> <tt class="py-line"> <tt id="link-517" class="py-name" targets="Variable proton.Endpoint.REMOTE_UNINIT=proton.Endpoint-class.html#REMOTE_UNINIT"><a title="proton.Endpoint.REMOTE_UNINIT" class="py-name" href="#" onclick="return doclink('link-517', 'REMOTE_UNINIT', 'link-517');">REMOTE_UNINIT</a></tt> <tt class="py-op">=</tt> <tt class="py-name">PN_REMOTE_UNINIT</tt> </tt>
<a name="L2289"></a><tt class="py-lineno">2289</tt> <tt class="py-line"> <tt id="link-518" class="py-name" targets="Variable proton.Endpoint.LOCAL_ACTIVE=proton.Endpoint-class.html#LOCAL_ACTIVE"><a title="proton.Endpoint.LOCAL_ACTIVE" class="py-name" href="#" onclick="return doclink('link-518', 'LOCAL_ACTIVE', 'link-518');">LOCAL_ACTIVE</a></tt> <tt class="py-op">=</tt> <tt class="py-name">PN_LOCAL_ACTIVE</tt> </tt>
<a name="L2290"></a><tt class="py-lineno">2290</tt> <tt class="py-line"> <tt id="link-519" class="py-name" targets="Variable proton.Endpoint.REMOTE_ACTIVE=proton.Endpoint-class.html#REMOTE_ACTIVE"><a title="proton.Endpoint.REMOTE_ACTIVE" class="py-name" href="#" onclick="return doclink('link-519', 'REMOTE_ACTIVE', 'link-519');">REMOTE_ACTIVE</a></tt> <tt class="py-op">=</tt> <tt class="py-name">PN_REMOTE_ACTIVE</tt> </tt>
<a name="L2291"></a><tt class="py-lineno">2291</tt> <tt class="py-line"> <tt id="link-520" class="py-name" targets="Variable proton.Endpoint.LOCAL_CLOSED=proton.Endpoint-class.html#LOCAL_CLOSED"><a title="proton.Endpoint.LOCAL_CLOSED" class="py-name" href="#" onclick="return doclink('link-520', 'LOCAL_CLOSED', 'link-520');">LOCAL_CLOSED</a></tt> <tt class="py-op">=</tt> <tt class="py-name">PN_LOCAL_CLOSED</tt> </tt>
<a name="L2292"></a><tt class="py-lineno">2292</tt> <tt class="py-line"> <tt id="link-521" class="py-name" targets="Variable proton.Endpoint.REMOTE_CLOSED=proton.Endpoint-class.html#REMOTE_CLOSED"><a title="proton.Endpoint.REMOTE_CLOSED" class="py-name" href="#" onclick="return doclink('link-521', 'REMOTE_CLOSED', 'link-521');">REMOTE_CLOSED</a></tt> <tt class="py-op">=</tt> <tt class="py-name">PN_REMOTE_CLOSED</tt> </tt>
<a name="L2293"></a><tt class="py-lineno">2293</tt> <tt class="py-line"> </tt>
<a name="Endpoint._init"></a><div id="Endpoint._init-def"><a name="L2294"></a><tt class="py-lineno">2294</tt> <a class="py-toggle" href="#" id="Endpoint._init-toggle" onclick="return toggle('Endpoint._init');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Endpoint-class.html#_init">_init</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Endpoint._init-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Endpoint._init-expanded"><a name="L2295"></a><tt class="py-lineno">2295</tt> <tt class="py-line"> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-522" class="py-name" targets="Variable proton.Disposition.condition=proton.Disposition-class.html#condition,Variable proton.Transport.condition=proton.Transport-class.html#condition"><a title="proton.Disposition.condition
proton.Transport.condition" class="py-name" href="#" onclick="return doclink('link-522', 'condition', 'link-522');">condition</a></tt> <tt class="py-op">=</tt> <tt class="py-name">None</tt> </tt>
</div><a name="L2296"></a><tt class="py-lineno">2296</tt> <tt class="py-line"> </tt>
<a name="Endpoint._update_cond"></a><div id="Endpoint._update_cond-def"><a name="L2297"></a><tt class="py-lineno">2297</tt> <a class="py-toggle" href="#" id="Endpoint._update_cond-toggle" onclick="return toggle('Endpoint._update_cond');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Endpoint-class.html#_update_cond">_update_cond</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Endpoint._update_cond-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Endpoint._update_cond-expanded"><a name="L2298"></a><tt class="py-lineno">2298</tt> <tt class="py-line"> <tt class="py-name">obj2cond</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-523" class="py-name"><a title="proton.Disposition.condition
proton.Transport.condition" class="py-name" href="#" onclick="return doclink('link-523', 'condition', 'link-522');">condition</a></tt><tt class="py-op">,</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_get_cond_impl</tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
</div><a name="L2299"></a><tt class="py-lineno">2299</tt> <tt class="py-line"> </tt>
<a name="L2300"></a><tt class="py-lineno">2300</tt> <tt class="py-line"> <tt class="py-decorator">@</tt><tt class="py-decorator">property</tt> </tt>
<a name="Endpoint.remote_condition"></a><div id="Endpoint.remote_condition-def"><a name="L2301"></a><tt class="py-lineno">2301</tt> <a class="py-toggle" href="#" id="Endpoint.remote_condition-toggle" onclick="return toggle('Endpoint.remote_condition');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Endpoint-class.html#remote_condition">remote_condition</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Endpoint.remote_condition-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Endpoint.remote_condition-expanded"><a name="L2302"></a><tt class="py-lineno">2302</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt class="py-name">cond2obj</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_get_remote_cond_impl</tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
</div><a name="L2303"></a><tt class="py-lineno">2303</tt> <tt class="py-line"> </tt>
<a name="L2304"></a><tt class="py-lineno">2304</tt> <tt class="py-line"> <tt class="py-comment"># the following must be provided by subclasses</tt> </tt>
<a name="Endpoint._get_cond_impl"></a><div id="Endpoint._get_cond_impl-def"><a name="L2305"></a><tt class="py-lineno">2305</tt> <a class="py-toggle" href="#" id="Endpoint._get_cond_impl-toggle" onclick="return toggle('Endpoint._get_cond_impl');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Endpoint-class.html#_get_cond_impl">_get_cond_impl</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Endpoint._get_cond_impl-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Endpoint._get_cond_impl-expanded"><a name="L2306"></a><tt class="py-lineno">2306</tt> <tt class="py-line"> <tt class="py-keyword">assert</tt> <tt class="py-name">False</tt><tt class="py-op">,</tt> <tt class="py-string">"Subclass must override this!"</tt> </tt>
</div><a name="L2307"></a><tt class="py-lineno">2307</tt> <tt class="py-line"> </tt>
<a name="Endpoint._get_remote_cond_impl"></a><div id="Endpoint._get_remote_cond_impl-def"><a name="L2308"></a><tt class="py-lineno">2308</tt> <a class="py-toggle" href="#" id="Endpoint._get_remote_cond_impl-toggle" onclick="return toggle('Endpoint._get_remote_cond_impl');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Endpoint-class.html#_get_remote_cond_impl">_get_remote_cond_impl</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Endpoint._get_remote_cond_impl-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Endpoint._get_remote_cond_impl-expanded"><a name="L2309"></a><tt class="py-lineno">2309</tt> <tt class="py-line"> <tt class="py-keyword">assert</tt> <tt class="py-name">False</tt><tt class="py-op">,</tt> <tt class="py-string">"Subclass must override this!"</tt> </tt>
</div><a name="L2310"></a><tt class="py-lineno">2310</tt> <tt class="py-line"> </tt>
<a name="Endpoint._get_handler"></a><div id="Endpoint._get_handler-def"><a name="L2311"></a><tt class="py-lineno">2311</tt> <a class="py-toggle" href="#" id="Endpoint._get_handler-toggle" onclick="return toggle('Endpoint._get_handler');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Endpoint-class.html#_get_handler">_get_handler</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Endpoint._get_handler-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Endpoint._get_handler-expanded"><a name="L2312"></a><tt class="py-lineno">2312</tt> <tt class="py-line"> <tt class="py-keyword">from</tt> <tt class="py-op">.</tt> <tt class="py-keyword">import</tt> <tt id="link-524" class="py-name" targets="Variable proton.Event.reactor=proton.Event-class.html#reactor,Module proton.reactor=proton.reactor-module.html"><a title="proton.Event.reactor
proton.reactor" class="py-name" href="#" onclick="return doclink('link-524', 'reactor', 'link-524');">reactor</a></tt> </tt>
<a name="L2313"></a><tt class="py-lineno">2313</tt> <tt class="py-line"> <tt class="py-name">ractor</tt> <tt class="py-op">=</tt> <tt id="link-525" class="py-name"><a title="proton.Event.reactor
proton.reactor" class="py-name" href="#" onclick="return doclink('link-525', 'reactor', 'link-524');">reactor</a></tt><tt class="py-op">.</tt><tt id="link-526" class="py-name" targets="Class proton.reactor.Reactor=proton.reactor.Reactor-class.html"><a title="proton.reactor.Reactor" class="py-name" href="#" onclick="return doclink('link-526', 'Reactor', 'link-526');">Reactor</a></tt><tt class="py-op">.</tt><tt id="link-527" class="py-name"><a title="proton.Connection.wrap
proton.Delivery.wrap
proton.Event.wrap
proton.Link.wrap
proton.Session.wrap
proton.Transport.wrap
proton.reactor.Reactor.wrap
proton.reactor.Task.wrap" class="py-name" href="#" onclick="return doclink('link-527', 'wrap', 'link-88');">wrap</a></tt><tt class="py-op">(</tt><tt class="py-name">pn_object_reactor</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_impl</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
<a name="L2314"></a><tt class="py-lineno">2314</tt> <tt class="py-line"> <tt class="py-keyword">if</tt> <tt class="py-name">ractor</tt><tt class="py-op">:</tt> </tt>
<a name="L2315"></a><tt class="py-lineno">2315</tt> <tt class="py-line"> <tt id="link-528" class="py-name" targets="Method proton.reactor.Reactor.on_error()=proton.reactor.Reactor-class.html#on_error"><a title="proton.reactor.Reactor.on_error" class="py-name" href="#" onclick="return doclink('link-528', 'on_error', 'link-528');">on_error</a></tt> <tt class="py-op">=</tt> <tt class="py-name">ractor</tt><tt class="py-op">.</tt><tt id="link-529" class="py-name"><a title="proton.reactor.Reactor.on_error" class="py-name" href="#" onclick="return doclink('link-529', 'on_error', 'link-528');">on_error</a></tt> </tt>
<a name="L2316"></a><tt class="py-lineno">2316</tt> <tt class="py-line"> <tt class="py-keyword">else</tt><tt class="py-op">:</tt> </tt>
<a name="L2317"></a><tt class="py-lineno">2317</tt> <tt class="py-line"> <tt id="link-530" class="py-name"><a title="proton.reactor.Reactor.on_error" class="py-name" href="#" onclick="return doclink('link-530', 'on_error', 'link-528');">on_error</a></tt> <tt class="py-op">=</tt> <tt class="py-name">None</tt> </tt>
<a name="L2318"></a><tt class="py-lineno">2318</tt> <tt class="py-line"> <tt class="py-name">record</tt> <tt class="py-op">=</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_get_attachments</tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L2319"></a><tt class="py-lineno">2319</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt class="py-name">WrappedHandler</tt><tt class="py-op">.</tt><tt id="link-531" class="py-name"><a title="proton.Connection.wrap
proton.Delivery.wrap
proton.Event.wrap
proton.Link.wrap
proton.Session.wrap
proton.Transport.wrap
proton.reactor.Reactor.wrap
proton.reactor.Task.wrap" class="py-name" href="#" onclick="return doclink('link-531', 'wrap', 'link-88');">wrap</a></tt><tt class="py-op">(</tt><tt class="py-name">pn_record_get_handler</tt><tt class="py-op">(</tt><tt class="py-name">record</tt><tt class="py-op">)</tt><tt class="py-op">,</tt> <tt id="link-532" class="py-name"><a title="proton.reactor.Reactor.on_error" class="py-name" href="#" onclick="return doclink('link-532', 'on_error', 'link-528');">on_error</a></tt><tt class="py-op">)</tt> </tt>
</div><a name="L2320"></a><tt class="py-lineno">2320</tt> <tt class="py-line"> </tt>
<a name="Endpoint._set_handler"></a><div id="Endpoint._set_handler-def"><a name="L2321"></a><tt class="py-lineno">2321</tt> <a class="py-toggle" href="#" id="Endpoint._set_handler-toggle" onclick="return toggle('Endpoint._set_handler');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Endpoint-class.html#_set_handler">_set_handler</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">handler</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Endpoint._set_handler-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Endpoint._set_handler-expanded"><a name="L2322"></a><tt class="py-lineno">2322</tt> <tt class="py-line"> <tt class="py-keyword">from</tt> <tt class="py-op">.</tt> <tt class="py-keyword">import</tt> <tt id="link-533" class="py-name"><a title="proton.Event.reactor
proton.reactor" class="py-name" href="#" onclick="return doclink('link-533', 'reactor', 'link-524');">reactor</a></tt> </tt>
<a name="L2323"></a><tt class="py-lineno">2323</tt> <tt class="py-line"> <tt class="py-name">ractor</tt> <tt class="py-op">=</tt> <tt id="link-534" class="py-name"><a title="proton.Event.reactor
proton.reactor" class="py-name" href="#" onclick="return doclink('link-534', 'reactor', 'link-524');">reactor</a></tt><tt class="py-op">.</tt><tt id="link-535" class="py-name"><a title="proton.reactor.Reactor" class="py-name" href="#" onclick="return doclink('link-535', 'Reactor', 'link-526');">Reactor</a></tt><tt class="py-op">.</tt><tt id="link-536" class="py-name"><a title="proton.Connection.wrap
proton.Delivery.wrap
proton.Event.wrap
proton.Link.wrap
proton.Session.wrap
proton.Transport.wrap
proton.reactor.Reactor.wrap
proton.reactor.Task.wrap" class="py-name" href="#" onclick="return doclink('link-536', 'wrap', 'link-88');">wrap</a></tt><tt class="py-op">(</tt><tt class="py-name">pn_object_reactor</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_impl</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
<a name="L2324"></a><tt class="py-lineno">2324</tt> <tt class="py-line"> <tt class="py-keyword">if</tt> <tt class="py-name">ractor</tt><tt class="py-op">:</tt> </tt>
<a name="L2325"></a><tt class="py-lineno">2325</tt> <tt class="py-line"> <tt id="link-537" class="py-name"><a title="proton.reactor.Reactor.on_error" class="py-name" href="#" onclick="return doclink('link-537', 'on_error', 'link-528');">on_error</a></tt> <tt class="py-op">=</tt> <tt class="py-name">ractor</tt><tt class="py-op">.</tt><tt id="link-538" class="py-name"><a title="proton.reactor.Reactor.on_error" class="py-name" href="#" onclick="return doclink('link-538', 'on_error', 'link-528');">on_error</a></tt> </tt>
<a name="L2326"></a><tt class="py-lineno">2326</tt> <tt class="py-line"> <tt class="py-keyword">else</tt><tt class="py-op">:</tt> </tt>
<a name="L2327"></a><tt class="py-lineno">2327</tt> <tt class="py-line"> <tt id="link-539" class="py-name"><a title="proton.reactor.Reactor.on_error" class="py-name" href="#" onclick="return doclink('link-539', 'on_error', 'link-528');">on_error</a></tt> <tt class="py-op">=</tt> <tt class="py-name">None</tt> </tt>
<a name="L2328"></a><tt class="py-lineno">2328</tt> <tt class="py-line"> <tt class="py-name">impl</tt> <tt class="py-op">=</tt> <tt class="py-name">_chandler</tt><tt class="py-op">(</tt><tt id="link-540" class="py-name" targets="Variable proton.Endpoint.handler=proton.Endpoint-class.html#handler,Variable proton.reactor.Reactor.handler=proton.reactor.Reactor-class.html#handler"><a title="proton.Endpoint.handler
proton.reactor.Reactor.handler" class="py-name" href="#" onclick="return doclink('link-540', 'handler', 'link-540');">handler</a></tt><tt class="py-op">,</tt> <tt id="link-541" class="py-name"><a title="proton.reactor.Reactor.on_error" class="py-name" href="#" onclick="return doclink('link-541', 'on_error', 'link-528');">on_error</a></tt><tt class="py-op">)</tt> </tt>
<a name="L2329"></a><tt class="py-lineno">2329</tt> <tt class="py-line"> <tt class="py-name">record</tt> <tt class="py-op">=</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_get_attachments</tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L2330"></a><tt class="py-lineno">2330</tt> <tt class="py-line"> <tt class="py-name">pn_record_set_handler</tt><tt class="py-op">(</tt><tt class="py-name">record</tt><tt class="py-op">,</tt> <tt class="py-name">impl</tt><tt class="py-op">)</tt> </tt>
<a name="L2331"></a><tt class="py-lineno">2331</tt> <tt class="py-line"> <tt class="py-name">pn_decref</tt><tt class="py-op">(</tt><tt class="py-name">impl</tt><tt class="py-op">)</tt> </tt>
</div><a name="L2332"></a><tt class="py-lineno">2332</tt> <tt class="py-line"> </tt>
<a name="L2333"></a><tt class="py-lineno">2333</tt> <tt class="py-line"> <tt id="link-542" class="py-name"><a title="proton.Endpoint.handler
proton.reactor.Reactor.handler" class="py-name" href="#" onclick="return doclink('link-542', 'handler', 'link-540');">handler</a></tt> <tt class="py-op">=</tt> <tt class="py-name">property</tt><tt class="py-op">(</tt><tt id="link-543" class="py-name" targets="Method proton.Endpoint._get_handler()=proton.Endpoint-class.html#_get_handler,Method proton.reactor.Reactor._get_handler()=proton.reactor.Reactor-class.html#_get_handler"><a title="proton.Endpoint._get_handler
proton.reactor.Reactor._get_handler" class="py-name" href="#" onclick="return doclink('link-543', '_get_handler', 'link-543');">_get_handler</a></tt><tt class="py-op">,</tt> <tt id="link-544" class="py-name" targets="Method proton.Endpoint._set_handler()=proton.Endpoint-class.html#_set_handler,Method proton.reactor.Reactor._set_handler()=proton.reactor.Reactor-class.html#_set_handler"><a title="proton.Endpoint._set_handler
proton.reactor.Reactor._set_handler" class="py-name" href="#" onclick="return doclink('link-544', '_set_handler', 'link-544');">_set_handler</a></tt><tt class="py-op">)</tt> </tt>
<a name="L2334"></a><tt class="py-lineno">2334</tt> <tt class="py-line"> </tt>
<a name="L2335"></a><tt class="py-lineno">2335</tt> <tt class="py-line"> <tt class="py-decorator">@</tt><tt class="py-decorator">property</tt> </tt>
<a name="Endpoint.transport"></a><div id="Endpoint.transport-def"><a name="L2336"></a><tt class="py-lineno">2336</tt> <a class="py-toggle" href="#" id="Endpoint.transport-toggle" onclick="return toggle('Endpoint.transport');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Endpoint-class.html#transport">transport</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Endpoint.transport-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Endpoint.transport-expanded"><a name="L2337"></a><tt class="py-lineno">2337</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-545" class="py-name" targets="Variable proton.Connection.connection=proton.Connection-class.html#connection,Variable proton.Delivery.connection=proton.Delivery-class.html#connection,Variable proton.Event.connection=proton.Event-class.html#connection,Variable proton.Link.connection=proton.Link-class.html#connection,Variable proton.Session.connection=proton.Session-class.html#connection,Variable proton.Transport.connection=proton.Transport-class.html#connection,Method proton.reactor.Reactor.connection()=proton.reactor.Reactor-class.html#connection"><a title="proton.Connection.connection
proton.Delivery.connection
proton.Event.connection
proton.Link.connection
proton.Session.connection
proton.Transport.connection
proton.reactor.Reactor.connection" class="py-name" href="#" onclick="return doclink('link-545', 'connection', 'link-545');">connection</a></tt><tt class="py-op">.</tt><tt id="link-546" class="py-name" targets="Variable proton.Connection.transport=proton.Connection-class.html#transport,Variable proton.Delivery.transport=proton.Delivery-class.html#transport,Variable proton.Endpoint.transport=proton.Endpoint-class.html#transport,Variable proton.Event.transport=proton.Event-class.html#transport"><a title="proton.Connection.transport
proton.Delivery.transport
proton.Endpoint.transport
proton.Event.transport" class="py-name" href="#" onclick="return doclink('link-546', 'transport', 'link-546');">transport</a></tt> </tt>
</div></div><a name="L2338"></a><tt class="py-lineno">2338</tt> <tt class="py-line"> </tt>
<a name="Condition"></a><div id="Condition-def"><a name="L2339"></a><tt class="py-lineno">2339</tt> <a class="py-toggle" href="#" id="Condition-toggle" onclick="return toggle('Condition');">-</a><tt class="py-line"><tt class="py-keyword">class</tt> <a class="py-def-name" href="proton.Condition-class.html">Condition</a><tt class="py-op">:</tt> </tt>
</div><div id="Condition-collapsed" style="display:none;" pad="++++" indent="++++"></div><div id="Condition-expanded"><a name="L2340"></a><tt class="py-lineno">2340</tt> <tt class="py-line"> </tt>
<a name="Condition.__init__"></a><div id="Condition.__init__-def"><a name="L2341"></a><tt class="py-lineno">2341</tt> <a class="py-toggle" href="#" id="Condition.__init__-toggle" onclick="return toggle('Condition.__init__');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Condition-class.html#__init__">__init__</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">name</tt><tt class="py-op">,</tt> <tt class="py-param">description</tt><tt class="py-op">=</tt><tt class="py-name">None</tt><tt class="py-op">,</tt> <tt class="py-param">info</tt><tt class="py-op">=</tt><tt class="py-name">None</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Condition.__init__-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Condition.__init__-expanded"><a name="L2342"></a><tt class="py-lineno">2342</tt> <tt class="py-line"> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-547" class="py-name"><a title="proton.Link.name
proton.Messenger.name" class="py-name" href="#" onclick="return doclink('link-547', 'name', 'link-25');">name</a></tt> <tt class="py-op">=</tt> <tt id="link-548" class="py-name"><a title="proton.Link.name
proton.Messenger.name" class="py-name" href="#" onclick="return doclink('link-548', 'name', 'link-25');">name</a></tt> </tt>
<a name="L2343"></a><tt class="py-lineno">2343</tt> <tt class="py-line"> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">description</tt> <tt class="py-op">=</tt> <tt class="py-name">description</tt> </tt>
<a name="L2344"></a><tt class="py-lineno">2344</tt> <tt class="py-line"> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">info</tt> <tt class="py-op">=</tt> <tt class="py-name">info</tt> </tt>
</div><a name="L2345"></a><tt class="py-lineno">2345</tt> <tt class="py-line"> </tt>
<a name="Condition.__repr__"></a><div id="Condition.__repr__-def"><a name="L2346"></a><tt class="py-lineno">2346</tt> <a class="py-toggle" href="#" id="Condition.__repr__-toggle" onclick="return toggle('Condition.__repr__');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Condition-class.html#__repr__">__repr__</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Condition.__repr__-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Condition.__repr__-expanded"><a name="L2347"></a><tt class="py-lineno">2347</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt class="py-string">"Condition(%s)"</tt> <tt class="py-op">%</tt> <tt class="py-string">", "</tt><tt class="py-op">.</tt><tt class="py-name">join</tt><tt class="py-op">(</tt><tt class="py-op">[</tt><tt class="py-name">repr</tt><tt class="py-op">(</tt><tt class="py-name">x</tt><tt class="py-op">)</tt> <tt class="py-keyword">for</tt> <tt class="py-name">x</tt> <tt class="py-keyword">in</tt> </tt>
<a name="L2348"></a><tt class="py-lineno">2348</tt> <tt class="py-line"> <tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-549" class="py-name"><a title="proton.Link.name
proton.Messenger.name" class="py-name" href="#" onclick="return doclink('link-549', 'name', 'link-25');">name</a></tt><tt class="py-op">,</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">description</tt><tt class="py-op">,</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">info</tt><tt class="py-op">)</tt> </tt>
<a name="L2349"></a><tt class="py-lineno">2349</tt> <tt class="py-line"> <tt class="py-keyword">if</tt> <tt class="py-name">x</tt><tt class="py-op">]</tt><tt class="py-op">)</tt> </tt>
</div><a name="L2350"></a><tt class="py-lineno">2350</tt> <tt class="py-line"> </tt>
<a name="Condition.__eq__"></a><div id="Condition.__eq__-def"><a name="L2351"></a><tt class="py-lineno">2351</tt> <a class="py-toggle" href="#" id="Condition.__eq__-toggle" onclick="return toggle('Condition.__eq__');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Condition-class.html#__eq__">__eq__</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">o</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Condition.__eq__-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Condition.__eq__-expanded"><a name="L2352"></a><tt class="py-lineno">2352</tt> <tt class="py-line"> <tt class="py-keyword">if</tt> <tt class="py-keyword">not</tt> <tt class="py-name">isinstance</tt><tt class="py-op">(</tt><tt class="py-name">o</tt><tt class="py-op">,</tt> <tt id="link-550" class="py-name" targets="Class proton.Condition=proton.Condition-class.html"><a title="proton.Condition" class="py-name" href="#" onclick="return doclink('link-550', 'Condition', 'link-550');">Condition</a></tt><tt class="py-op">)</tt><tt class="py-op">:</tt> <tt class="py-keyword">return</tt> <tt class="py-name">False</tt> </tt>
<a name="L2353"></a><tt class="py-lineno">2353</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-551" class="py-name"><a title="proton.Link.name
proton.Messenger.name" class="py-name" href="#" onclick="return doclink('link-551', 'name', 'link-25');">name</a></tt> <tt class="py-op">==</tt> <tt class="py-name">o</tt><tt class="py-op">.</tt><tt id="link-552" class="py-name"><a title="proton.Link.name
proton.Messenger.name" class="py-name" href="#" onclick="return doclink('link-552', 'name', 'link-25');">name</a></tt> <tt class="py-keyword">and</tt> \ </tt>
<a name="L2354"></a><tt class="py-lineno">2354</tt> <tt class="py-line"> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">description</tt> <tt class="py-op">==</tt> <tt class="py-name">o</tt><tt class="py-op">.</tt><tt class="py-name">description</tt> <tt class="py-keyword">and</tt> \ </tt>
<a name="L2355"></a><tt class="py-lineno">2355</tt> <tt class="py-line"> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">info</tt> <tt class="py-op">==</tt> <tt class="py-name">o</tt><tt class="py-op">.</tt><tt class="py-name">info</tt> </tt>
</div></div><a name="L2356"></a><tt class="py-lineno">2356</tt> <tt class="py-line"> </tt>
<a name="obj2cond"></a><div id="obj2cond-def"><a name="L2357"></a><tt class="py-lineno">2357</tt> <a class="py-toggle" href="#" id="obj2cond-toggle" onclick="return toggle('obj2cond');">-</a><tt class="py-line"><tt class="py-keyword">def</tt> <a class="py-def-name" href="proton-module.html#obj2cond">obj2cond</a><tt class="py-op">(</tt><tt class="py-param">obj</tt><tt class="py-op">,</tt> <tt class="py-param">cond</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="obj2cond-collapsed" style="display:none;" pad="++++" indent="++++"></div><div id="obj2cond-expanded"><a name="L2358"></a><tt class="py-lineno">2358</tt> <tt class="py-line"> <tt class="py-name">pn_condition_clear</tt><tt class="py-op">(</tt><tt class="py-name">cond</tt><tt class="py-op">)</tt> </tt>
<a name="L2359"></a><tt class="py-lineno">2359</tt> <tt class="py-line"> <tt class="py-keyword">if</tt> <tt class="py-name">obj</tt><tt class="py-op">:</tt> </tt>
<a name="L2360"></a><tt class="py-lineno">2360</tt> <tt class="py-line"> <tt class="py-name">pn_condition_set_name</tt><tt class="py-op">(</tt><tt class="py-name">cond</tt><tt class="py-op">,</tt> <tt class="py-name">str</tt><tt class="py-op">(</tt><tt class="py-name">obj</tt><tt class="py-op">.</tt><tt id="link-553" class="py-name"><a title="proton.Link.name
proton.Messenger.name" class="py-name" href="#" onclick="return doclink('link-553', 'name', 'link-25');">name</a></tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
<a name="L2361"></a><tt class="py-lineno">2361</tt> <tt class="py-line"> <tt class="py-name">pn_condition_set_description</tt><tt class="py-op">(</tt><tt class="py-name">cond</tt><tt class="py-op">,</tt> <tt class="py-name">obj</tt><tt class="py-op">.</tt><tt class="py-name">description</tt><tt class="py-op">)</tt> </tt>
<a name="L2362"></a><tt class="py-lineno">2362</tt> <tt class="py-line"> <tt class="py-name">info</tt> <tt class="py-op">=</tt> <tt id="link-554" class="py-name"><a title="proton.Data" class="py-name" href="#" onclick="return doclink('link-554', 'Data', 'link-90');">Data</a></tt><tt class="py-op">(</tt><tt class="py-name">pn_condition_info</tt><tt class="py-op">(</tt><tt class="py-name">cond</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
<a name="L2363"></a><tt class="py-lineno">2363</tt> <tt class="py-line"> <tt class="py-keyword">if</tt> <tt class="py-name">obj</tt><tt class="py-op">.</tt><tt class="py-name">info</tt><tt class="py-op">:</tt> </tt>
<a name="L2364"></a><tt class="py-lineno">2364</tt> <tt class="py-line"> <tt class="py-name">info</tt><tt class="py-op">.</tt><tt id="link-555" class="py-name"><a title="proton.Data.put_object" class="py-name" href="#" onclick="return doclink('link-555', 'put_object', 'link-104');">put_object</a></tt><tt class="py-op">(</tt><tt class="py-name">obj</tt><tt class="py-op">.</tt><tt class="py-name">info</tt><tt class="py-op">)</tt> </tt>
</div><a name="L2365"></a><tt class="py-lineno">2365</tt> <tt class="py-line"> </tt>
<a name="cond2obj"></a><div id="cond2obj-def"><a name="L2366"></a><tt class="py-lineno">2366</tt> <a class="py-toggle" href="#" id="cond2obj-toggle" onclick="return toggle('cond2obj');">-</a><tt class="py-line"><tt class="py-keyword">def</tt> <a class="py-def-name" href="proton-module.html#cond2obj">cond2obj</a><tt class="py-op">(</tt><tt class="py-param">cond</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="cond2obj-collapsed" style="display:none;" pad="++++" indent="++++"></div><div id="cond2obj-expanded"><a name="L2367"></a><tt class="py-lineno">2367</tt> <tt class="py-line"> <tt class="py-keyword">if</tt> <tt class="py-name">pn_condition_is_set</tt><tt class="py-op">(</tt><tt class="py-name">cond</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
<a name="L2368"></a><tt class="py-lineno">2368</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt id="link-556" class="py-name"><a title="proton.Condition" class="py-name" href="#" onclick="return doclink('link-556', 'Condition', 'link-550');">Condition</a></tt><tt class="py-op">(</tt><tt class="py-name">pn_condition_get_name</tt><tt class="py-op">(</tt><tt class="py-name">cond</tt><tt class="py-op">)</tt><tt class="py-op">,</tt> </tt>
<a name="L2369"></a><tt class="py-lineno">2369</tt> <tt class="py-line"> <tt class="py-name">pn_condition_get_description</tt><tt class="py-op">(</tt><tt class="py-name">cond</tt><tt class="py-op">)</tt><tt class="py-op">,</tt> </tt>
<a name="L2370"></a><tt class="py-lineno">2370</tt> <tt class="py-line"> <tt class="py-name">dat2obj</tt><tt class="py-op">(</tt><tt class="py-name">pn_condition_info</tt><tt class="py-op">(</tt><tt class="py-name">cond</tt><tt class="py-op">)</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
<a name="L2371"></a><tt class="py-lineno">2371</tt> <tt class="py-line"> <tt class="py-keyword">else</tt><tt class="py-op">:</tt> </tt>
<a name="L2372"></a><tt class="py-lineno">2372</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt class="py-name">None</tt> </tt>
</div><a name="L2373"></a><tt class="py-lineno">2373</tt> <tt class="py-line"> </tt>
<a name="dat2obj"></a><div id="dat2obj-def"><a name="L2374"></a><tt class="py-lineno">2374</tt> <a class="py-toggle" href="#" id="dat2obj-toggle" onclick="return toggle('dat2obj');">-</a><tt class="py-line"><tt class="py-keyword">def</tt> <a class="py-def-name" href="proton-module.html#dat2obj">dat2obj</a><tt class="py-op">(</tt><tt class="py-param">dimpl</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="dat2obj-collapsed" style="display:none;" pad="++++" indent="++++"></div><div id="dat2obj-expanded"><a name="L2375"></a><tt class="py-lineno">2375</tt> <tt class="py-line"> <tt class="py-keyword">if</tt> <tt class="py-name">dimpl</tt><tt class="py-op">:</tt> </tt>
<a name="L2376"></a><tt class="py-lineno">2376</tt> <tt class="py-line"> <tt class="py-name">d</tt> <tt class="py-op">=</tt> <tt id="link-557" class="py-name"><a title="proton.Data" class="py-name" href="#" onclick="return doclink('link-557', 'Data', 'link-90');">Data</a></tt><tt class="py-op">(</tt><tt class="py-name">dimpl</tt><tt class="py-op">)</tt> </tt>
<a name="L2377"></a><tt class="py-lineno">2377</tt> <tt class="py-line"> <tt class="py-name">d</tt><tt class="py-op">.</tt><tt id="link-558" class="py-name"><a title="proton.Data.rewind" class="py-name" href="#" onclick="return doclink('link-558', 'rewind', 'link-156');">rewind</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L2378"></a><tt class="py-lineno">2378</tt> <tt class="py-line"> <tt class="py-name">d</tt><tt class="py-op">.</tt><tt id="link-559" class="py-name"><a title="proton.Data.next
proton.Link.next
proton.Session.next
proton.reactor.Backoff.next
proton.reactor.Urls.next
proton.utils.AtomicCount.next" class="py-name" href="#" onclick="return doclink('link-559', 'next', 'link-119');">next</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L2379"></a><tt class="py-lineno">2379</tt> <tt class="py-line"> <tt class="py-name">obj</tt> <tt class="py-op">=</tt> <tt class="py-name">d</tt><tt class="py-op">.</tt><tt id="link-560" class="py-name"><a title="proton.Data.get_object" class="py-name" href="#" onclick="return doclink('link-560', 'get_object', 'link-120');">get_object</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L2380"></a><tt class="py-lineno">2380</tt> <tt class="py-line"> <tt class="py-name">d</tt><tt class="py-op">.</tt><tt id="link-561" class="py-name"><a title="proton.Data.rewind" class="py-name" href="#" onclick="return doclink('link-561', 'rewind', 'link-156');">rewind</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L2381"></a><tt class="py-lineno">2381</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt class="py-name">obj</tt> </tt>
</div><a name="L2382"></a><tt class="py-lineno">2382</tt> <tt class="py-line"> </tt>
<a name="obj2dat"></a><div id="obj2dat-def"><a name="L2383"></a><tt class="py-lineno">2383</tt> <a class="py-toggle" href="#" id="obj2dat-toggle" onclick="return toggle('obj2dat');">-</a><tt class="py-line"><tt class="py-keyword">def</tt> <a class="py-def-name" href="proton-module.html#obj2dat">obj2dat</a><tt class="py-op">(</tt><tt class="py-param">obj</tt><tt class="py-op">,</tt> <tt class="py-param">dimpl</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="obj2dat-collapsed" style="display:none;" pad="++++" indent="++++"></div><div id="obj2dat-expanded"><a name="L2384"></a><tt class="py-lineno">2384</tt> <tt class="py-line"> <tt class="py-keyword">if</tt> <tt class="py-name">obj</tt> <tt class="py-keyword">is</tt> <tt class="py-keyword">not</tt> <tt class="py-name">None</tt><tt class="py-op">:</tt> </tt>
<a name="L2385"></a><tt class="py-lineno">2385</tt> <tt class="py-line"> <tt class="py-name">d</tt> <tt class="py-op">=</tt> <tt id="link-562" class="py-name"><a title="proton.Data" class="py-name" href="#" onclick="return doclink('link-562', 'Data', 'link-90');">Data</a></tt><tt class="py-op">(</tt><tt class="py-name">dimpl</tt><tt class="py-op">)</tt> </tt>
<a name="L2386"></a><tt class="py-lineno">2386</tt> <tt class="py-line"> <tt class="py-name">d</tt><tt class="py-op">.</tt><tt id="link-563" class="py-name"><a title="proton.Data.put_object" class="py-name" href="#" onclick="return doclink('link-563', 'put_object', 'link-104');">put_object</a></tt><tt class="py-op">(</tt><tt class="py-name">obj</tt><tt class="py-op">)</tt> </tt>
</div><a name="L2387"></a><tt class="py-lineno">2387</tt> <tt class="py-line"> </tt>
<a name="secs2millis"></a><div id="secs2millis-def"><a name="L2388"></a><tt class="py-lineno">2388</tt> <a class="py-toggle" href="#" id="secs2millis-toggle" onclick="return toggle('secs2millis');">-</a><tt class="py-line"><tt class="py-keyword">def</tt> <a class="py-def-name" href="proton-module.html#secs2millis">secs2millis</a><tt class="py-op">(</tt><tt class="py-param">secs</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="secs2millis-collapsed" style="display:none;" pad="++++" indent="++++"></div><div id="secs2millis-expanded"><a name="L2389"></a><tt class="py-lineno">2389</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt class="py-name">long</tt><tt class="py-op">(</tt><tt class="py-name">secs</tt><tt class="py-op">*</tt><tt class="py-number">1000</tt><tt class="py-op">)</tt> </tt>
</div><a name="L2390"></a><tt class="py-lineno">2390</tt> <tt class="py-line"> </tt>
<a name="millis2secs"></a><div id="millis2secs-def"><a name="L2391"></a><tt class="py-lineno">2391</tt> <a class="py-toggle" href="#" id="millis2secs-toggle" onclick="return toggle('millis2secs');">-</a><tt class="py-line"><tt class="py-keyword">def</tt> <a class="py-def-name" href="proton-module.html#millis2secs">millis2secs</a><tt class="py-op">(</tt><tt class="py-param">millis</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="millis2secs-collapsed" style="display:none;" pad="++++" indent="++++"></div><div id="millis2secs-expanded"><a name="L2392"></a><tt class="py-lineno">2392</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt class="py-name">float</tt><tt class="py-op">(</tt><tt class="py-name">millis</tt><tt class="py-op">)</tt><tt class="py-op">/</tt><tt class="py-number">1000.0</tt> </tt>
</div><a name="L2393"></a><tt class="py-lineno">2393</tt> <tt class="py-line"> </tt>
<a name="timeout2millis"></a><div id="timeout2millis-def"><a name="L2394"></a><tt class="py-lineno">2394</tt> <a class="py-toggle" href="#" id="timeout2millis-toggle" onclick="return toggle('timeout2millis');">-</a><tt class="py-line"><tt class="py-keyword">def</tt> <a class="py-def-name" href="proton-module.html#timeout2millis">timeout2millis</a><tt class="py-op">(</tt><tt class="py-param">secs</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="timeout2millis-collapsed" style="display:none;" pad="++++" indent="++++"></div><div id="timeout2millis-expanded"><a name="L2395"></a><tt class="py-lineno">2395</tt> <tt class="py-line"> <tt class="py-keyword">if</tt> <tt class="py-name">secs</tt> <tt class="py-keyword">is</tt> <tt class="py-name">None</tt><tt class="py-op">:</tt> <tt class="py-keyword">return</tt> <tt class="py-name">PN_MILLIS_MAX</tt> </tt>
<a name="L2396"></a><tt class="py-lineno">2396</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt class="py-name">secs2millis</tt><tt class="py-op">(</tt><tt class="py-name">secs</tt><tt class="py-op">)</tt> </tt>
</div><a name="L2397"></a><tt class="py-lineno">2397</tt> <tt class="py-line"> </tt>
<a name="millis2timeout"></a><div id="millis2timeout-def"><a name="L2398"></a><tt class="py-lineno">2398</tt> <a class="py-toggle" href="#" id="millis2timeout-toggle" onclick="return toggle('millis2timeout');">-</a><tt class="py-line"><tt class="py-keyword">def</tt> <a class="py-def-name" href="proton-module.html#millis2timeout">millis2timeout</a><tt class="py-op">(</tt><tt class="py-param">millis</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="millis2timeout-collapsed" style="display:none;" pad="++++" indent="++++"></div><div id="millis2timeout-expanded"><a name="L2399"></a><tt class="py-lineno">2399</tt> <tt class="py-line"> <tt class="py-keyword">if</tt> <tt class="py-name">millis</tt> <tt class="py-op">==</tt> <tt class="py-name">PN_MILLIS_MAX</tt><tt class="py-op">:</tt> <tt class="py-keyword">return</tt> <tt class="py-name">None</tt> </tt>
<a name="L2400"></a><tt class="py-lineno">2400</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt class="py-name">millis2secs</tt><tt class="py-op">(</tt><tt class="py-name">millis</tt><tt class="py-op">)</tt> </tt>
</div><a name="L2401"></a><tt class="py-lineno">2401</tt> <tt class="py-line"> </tt>
<a name="unicode2utf8"></a><div id="unicode2utf8-def"><a name="L2402"></a><tt class="py-lineno">2402</tt> <a class="py-toggle" href="#" id="unicode2utf8-toggle" onclick="return toggle('unicode2utf8');">-</a><tt class="py-line"><tt class="py-keyword">def</tt> <a class="py-def-name" href="proton-module.html#unicode2utf8">unicode2utf8</a><tt class="py-op">(</tt><tt class="py-param">string</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="unicode2utf8-collapsed" style="display:none;" pad="++++" indent="++++"></div><div id="unicode2utf8-expanded"><a name="L2403"></a><tt class="py-lineno">2403</tt> <tt class="py-line"> <tt class="py-docstring">"""Some Proton APIs expect a null terminated string. Convert python text</tt> </tt>
<a name="L2404"></a><tt class="py-lineno">2404</tt> <tt class="py-line"><tt class="py-docstring"> types to UTF8 to avoid zero bytes introduced by other multi-byte encodings.</tt> </tt>
<a name="L2405"></a><tt class="py-lineno">2405</tt> <tt class="py-line"><tt class="py-docstring"> This method will throw if the string cannot be converted.</tt> </tt>
<a name="L2406"></a><tt class="py-lineno">2406</tt> <tt class="py-line"><tt class="py-docstring"> """</tt> </tt>
<a name="L2407"></a><tt class="py-lineno">2407</tt> <tt class="py-line"> <tt class="py-keyword">if</tt> <tt class="py-name">string</tt> <tt class="py-keyword">is</tt> <tt class="py-name">None</tt><tt class="py-op">:</tt> </tt>
<a name="L2408"></a><tt class="py-lineno">2408</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt class="py-name">None</tt> </tt>
<a name="L2409"></a><tt class="py-lineno">2409</tt> <tt class="py-line"> <tt class="py-keyword">if</tt> <tt id="link-564" class="py-name"><a title="proton._compat" class="py-name" href="#" onclick="return doclink('link-564', '_compat', 'link-3');">_compat</a></tt><tt class="py-op">.</tt><tt id="link-565" class="py-name" targets="Variable proton._compat.IS_PY2=proton._compat-module.html#IS_PY2"><a title="proton._compat.IS_PY2" class="py-name" href="#" onclick="return doclink('link-565', 'IS_PY2', 'link-565');">IS_PY2</a></tt><tt class="py-op">:</tt> </tt>
<a name="L2410"></a><tt class="py-lineno">2410</tt> <tt class="py-line"> <tt class="py-keyword">if</tt> <tt class="py-name">isinstance</tt><tt class="py-op">(</tt><tt class="py-name">string</tt><tt class="py-op">,</tt> <tt class="py-name">unicode</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
<a name="L2411"></a><tt class="py-lineno">2411</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt class="py-name">string</tt><tt class="py-op">.</tt><tt id="link-566" class="py-name"><a title="proton.Data.encode
proton.Message.encode" class="py-name" href="#" onclick="return doclink('link-566', 'encode', 'link-214');">encode</a></tt><tt class="py-op">(</tt><tt class="py-string">'utf-8'</tt><tt class="py-op">)</tt> </tt>
<a name="L2412"></a><tt class="py-lineno">2412</tt> <tt class="py-line"> <tt class="py-keyword">elif</tt> <tt class="py-name">isinstance</tt><tt class="py-op">(</tt><tt class="py-name">string</tt><tt class="py-op">,</tt> <tt class="py-name">str</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
<a name="L2413"></a><tt class="py-lineno">2413</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt class="py-name">string</tt> </tt>
<a name="L2414"></a><tt class="py-lineno">2414</tt> <tt class="py-line"> <tt class="py-keyword">else</tt><tt class="py-op">:</tt> </tt>
<a name="L2415"></a><tt class="py-lineno">2415</tt> <tt class="py-line"> <tt class="py-comment"># decoding a string results in bytes</tt> </tt>
<a name="L2416"></a><tt class="py-lineno">2416</tt> <tt class="py-line"> <tt class="py-keyword">if</tt> <tt class="py-name">isinstance</tt><tt class="py-op">(</tt><tt class="py-name">string</tt><tt class="py-op">,</tt> <tt class="py-name">str</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
<a name="L2417"></a><tt class="py-lineno">2417</tt> <tt class="py-line"> <tt class="py-name">string</tt> <tt class="py-op">=</tt> <tt class="py-name">string</tt><tt class="py-op">.</tt><tt id="link-567" class="py-name"><a title="proton.Data.encode
proton.Message.encode" class="py-name" href="#" onclick="return doclink('link-567', 'encode', 'link-214');">encode</a></tt><tt class="py-op">(</tt><tt class="py-string">'utf-8'</tt><tt class="py-op">)</tt> </tt>
<a name="L2418"></a><tt class="py-lineno">2418</tt> <tt class="py-line"> <tt class="py-comment"># fall through</tt> </tt>
<a name="L2419"></a><tt class="py-lineno">2419</tt> <tt class="py-line"> <tt class="py-keyword">if</tt> <tt class="py-name">isinstance</tt><tt class="py-op">(</tt><tt class="py-name">string</tt><tt class="py-op">,</tt> <tt class="py-name">bytes</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
<a name="L2420"></a><tt class="py-lineno">2420</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt class="py-name">string</tt><tt class="py-op">.</tt><tt id="link-568" class="py-name"><a title="proton.Data.decode
proton.Message.decode" class="py-name" href="#" onclick="return doclink('link-568', 'decode', 'link-239');">decode</a></tt><tt class="py-op">(</tt><tt class="py-string">'utf-8'</tt><tt class="py-op">)</tt> </tt>
<a name="L2421"></a><tt class="py-lineno">2421</tt> <tt class="py-line"> <tt class="py-keyword">raise</tt> <tt class="py-name">TypeError</tt><tt class="py-op">(</tt><tt class="py-string">"Unrecognized string type: %r (%s)"</tt> <tt class="py-op">%</tt> <tt class="py-op">(</tt><tt class="py-name">string</tt><tt class="py-op">,</tt> <tt id="link-569" class="py-name"><a title="proton.Data.type
proton.Disposition.type
proton.Terminus.type" class="py-name" href="#" onclick="return doclink('link-569', 'type', 'link-152');">type</a></tt><tt class="py-op">(</tt><tt class="py-name">string</tt><tt class="py-op">)</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
</div><a name="L2422"></a><tt class="py-lineno">2422</tt> <tt class="py-line"> </tt>
<a name="utf82unicode"></a><div id="utf82unicode-def"><a name="L2423"></a><tt class="py-lineno">2423</tt> <a class="py-toggle" href="#" id="utf82unicode-toggle" onclick="return toggle('utf82unicode');">-</a><tt class="py-line"><tt class="py-keyword">def</tt> <a class="py-def-name" href="proton-module.html#utf82unicode">utf82unicode</a><tt class="py-op">(</tt><tt class="py-param">string</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="utf82unicode-collapsed" style="display:none;" pad="++++" indent="++++"></div><div id="utf82unicode-expanded"><a name="L2424"></a><tt class="py-lineno">2424</tt> <tt class="py-line"> <tt class="py-docstring">"""Covert C strings returned from proton-c into python unicode"""</tt> </tt>
<a name="L2425"></a><tt class="py-lineno">2425</tt> <tt class="py-line"> <tt class="py-keyword">if</tt> <tt class="py-name">string</tt> <tt class="py-keyword">is</tt> <tt class="py-name">None</tt><tt class="py-op">:</tt> </tt>
<a name="L2426"></a><tt class="py-lineno">2426</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt class="py-name">None</tt> </tt>
<a name="L2427"></a><tt class="py-lineno">2427</tt> <tt class="py-line"> <tt class="py-keyword">if</tt> <tt class="py-name">isinstance</tt><tt class="py-op">(</tt><tt class="py-name">string</tt><tt class="py-op">,</tt> <tt id="link-570" class="py-name"><a title="proton._compat" class="py-name" href="#" onclick="return doclink('link-570', '_compat', 'link-3');">_compat</a></tt><tt class="py-op">.</tt><tt id="link-571" class="py-name" targets="Variable proton._compat.TEXT_TYPES=proton._compat-module.html#TEXT_TYPES"><a title="proton._compat.TEXT_TYPES" class="py-name" href="#" onclick="return doclink('link-571', 'TEXT_TYPES', 'link-571');">TEXT_TYPES</a></tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
<a name="L2428"></a><tt class="py-lineno">2428</tt> <tt class="py-line"> <tt class="py-comment"># already unicode</tt> </tt>
<a name="L2429"></a><tt class="py-lineno">2429</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt class="py-name">string</tt> </tt>
<a name="L2430"></a><tt class="py-lineno">2430</tt> <tt class="py-line"> <tt class="py-keyword">elif</tt> <tt class="py-name">isinstance</tt><tt class="py-op">(</tt><tt class="py-name">string</tt><tt class="py-op">,</tt> <tt id="link-572" class="py-name"><a title="proton._compat" class="py-name" href="#" onclick="return doclink('link-572', '_compat', 'link-3');">_compat</a></tt><tt class="py-op">.</tt><tt id="link-573" class="py-name" targets="Variable proton._compat.BINARY_TYPES=proton._compat-module.html#BINARY_TYPES"><a title="proton._compat.BINARY_TYPES" class="py-name" href="#" onclick="return doclink('link-573', 'BINARY_TYPES', 'link-573');">BINARY_TYPES</a></tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
<a name="L2431"></a><tt class="py-lineno">2431</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt class="py-name">string</tt><tt class="py-op">.</tt><tt id="link-574" class="py-name"><a title="proton.Data.decode
proton.Message.decode" class="py-name" href="#" onclick="return doclink('link-574', 'decode', 'link-239');">decode</a></tt><tt class="py-op">(</tt><tt class="py-string">'utf8'</tt><tt class="py-op">)</tt> </tt>
<a name="L2432"></a><tt class="py-lineno">2432</tt> <tt class="py-line"> <tt class="py-keyword">else</tt><tt class="py-op">:</tt> </tt>
<a name="L2433"></a><tt class="py-lineno">2433</tt> <tt class="py-line"> <tt class="py-keyword">raise</tt> <tt class="py-name">TypeError</tt><tt class="py-op">(</tt><tt class="py-string">"Unrecognized string type"</tt><tt class="py-op">)</tt> </tt>
</div><a name="L2434"></a><tt class="py-lineno">2434</tt> <tt class="py-line"> </tt>
<a name="Connection"></a><div id="Connection-def"><a name="L2435"></a><tt class="py-lineno">2435</tt> <a class="py-toggle" href="#" id="Connection-toggle" onclick="return toggle('Connection');">-</a><tt class="py-line"><tt class="py-keyword">class</tt> <a class="py-def-name" href="proton.Connection-class.html">Connection</a><tt class="py-op">(</tt><tt class="py-base-class">Wrapper</tt><tt class="py-op">,</tt> <tt class="py-base-class">Endpoint</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Connection-collapsed" style="display:none;" pad="++++" indent="++++"></div><div id="Connection-expanded"><a name="L2436"></a><tt class="py-lineno">2436</tt> <tt class="py-line"> <tt class="py-docstring">"""</tt> </tt>
<a name="L2437"></a><tt class="py-lineno">2437</tt> <tt class="py-line"><tt class="py-docstring"> A representation of an AMQP connection</tt> </tt>
<a name="L2438"></a><tt class="py-lineno">2438</tt> <tt class="py-line"><tt class="py-docstring"> """</tt> </tt>
<a name="L2439"></a><tt class="py-lineno">2439</tt> <tt class="py-line"> </tt>
<a name="L2440"></a><tt class="py-lineno">2440</tt> <tt class="py-line"> <tt class="py-decorator">@</tt><tt class="py-decorator">staticmethod</tt> </tt>
<a name="Connection.wrap"></a><div id="Connection.wrap-def"><a name="L2441"></a><tt class="py-lineno">2441</tt> <a class="py-toggle" href="#" id="Connection.wrap-toggle" onclick="return toggle('Connection.wrap');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Connection-class.html#wrap">wrap</a><tt class="py-op">(</tt><tt class="py-param">impl</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Connection.wrap-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Connection.wrap-expanded"><a name="L2442"></a><tt class="py-lineno">2442</tt> <tt class="py-line"> <tt class="py-keyword">if</tt> <tt class="py-name">impl</tt> <tt class="py-keyword">is</tt> <tt class="py-name">None</tt><tt class="py-op">:</tt> </tt>
<a name="L2443"></a><tt class="py-lineno">2443</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt class="py-name">None</tt> </tt>
<a name="L2444"></a><tt class="py-lineno">2444</tt> <tt class="py-line"> <tt class="py-keyword">else</tt><tt class="py-op">:</tt> </tt>
<a name="L2445"></a><tt class="py-lineno">2445</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt id="link-575" class="py-name" targets="Class proton.Connection=proton.Connection-class.html"><a title="proton.Connection" class="py-name" href="#" onclick="return doclink('link-575', 'Connection', 'link-575');">Connection</a></tt><tt class="py-op">(</tt><tt class="py-name">impl</tt><tt class="py-op">)</tt> </tt>
</div><a name="L2446"></a><tt class="py-lineno">2446</tt> <tt class="py-line"> </tt>
<a name="Connection.__init__"></a><div id="Connection.__init__-def"><a name="L2447"></a><tt class="py-lineno">2447</tt> <a class="py-toggle" href="#" id="Connection.__init__-toggle" onclick="return toggle('Connection.__init__');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Connection-class.html#__init__">__init__</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">impl</tt> <tt class="py-op">=</tt> <tt class="py-name">pn_connection</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Connection.__init__-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Connection.__init__-expanded"><a name="L2448"></a><tt class="py-lineno">2448</tt> <tt class="py-line"> <tt id="link-576" class="py-name"><a title="proton.wrapper.Wrapper" class="py-name" href="#" onclick="return doclink('link-576', 'Wrapper', 'link-1');">Wrapper</a></tt><tt class="py-op">.</tt><tt id="link-577" class="py-name"><a title="proton.Array.__init__
proton.Collector.__init__
proton.Condition.__init__
proton.Connection.__init__
proton.Data.__init__
proton.Delivery.__init__
proton.Described.__init__
proton.Disposition.__init__
proton.Event.__init__
proton.EventType.__init__
proton.Link.__init__
proton.Message.__init__
proton.Messenger.__init__
proton.SASL.__init__
proton.SSLDomain.__init__
proton.SSLSessionDetails.__init__
proton.Session.__init__
proton.Terminus.__init__
proton.Transport.__init__
proton.Url.PartDescriptor.__init__
proton.Url.__init__
proton.handlers.CFlowController.__init__
proton.handlers.CHandshaker.__init__
proton.handlers.EndpointStateHandler.__init__
proton.handlers.IOHandler.__init__
proton.handlers.IncomingMessageHandler.__init__
proton.handlers.MessagingHandler.__init__
proton.handlers.OutgoingMessageHandler.__init__
proton.handlers.PythonIO.__init__
proton.handlers.TransactionalClientHandler.__init__
proton.reactor.Acceptor.__init__
proton.reactor.ApplicationEvent.__init__
proton.reactor.Backoff.__init__
proton.reactor.Connector.__init__
proton.reactor.Container.__init__
proton.reactor.DynamicNodeProperties.__init__
proton.reactor.EventInjector.__init__
proton.reactor.Filter.__init__
proton.reactor.GlobalOverrides.__init__
proton.reactor.Reactor.__init__
proton.reactor.SSLConfig.__init__
proton.reactor.Selector.__init__
proton.reactor.SessionPerConnection.__init__
proton.reactor.Task.__init__
proton.reactor.Transaction.__init__
proton.reactor.Urls.__init__
proton.utils.AtomicCount.__init__
proton.utils.BlockingConnection.__init__
proton.utils.BlockingLink.__init__
proton.utils.BlockingReceiver.__init__
proton.utils.BlockingSender.__init__
proton.utils.ConnectionClosed.__init__
proton.utils.Fetcher.__init__
proton.utils.LinkDetached.__init__
proton.utils.SendException.__init__
proton.utils.SyncRequestResponse.__init__
proton.wrapper.Wrapper.__init__" class="py-name" href="#" onclick="return doclink('link-577', '__init__', 'link-242');">__init__</a></tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">,</tt> <tt class="py-name">impl</tt><tt class="py-op">,</tt> <tt class="py-name">pn_connection_attachments</tt><tt class="py-op">)</tt> </tt>
</div><a name="L2449"></a><tt class="py-lineno">2449</tt> <tt class="py-line"> </tt>
<a name="Connection._init"></a><div id="Connection._init-def"><a name="L2450"></a><tt class="py-lineno">2450</tt> <a class="py-toggle" href="#" id="Connection._init-toggle" onclick="return toggle('Connection._init');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Connection-class.html#_init">_init</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Connection._init-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Connection._init-expanded"><a name="L2451"></a><tt class="py-lineno">2451</tt> <tt class="py-line"> <tt id="link-578" class="py-name" targets="Class proton.Endpoint=proton.Endpoint-class.html"><a title="proton.Endpoint" class="py-name" href="#" onclick="return doclink('link-578', 'Endpoint', 'link-578');">Endpoint</a></tt><tt class="py-op">.</tt><tt class="py-name">_init</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">)</tt> </tt>
<a name="L2452"></a><tt class="py-lineno">2452</tt> <tt class="py-line"> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">offered_capabilities</tt> <tt class="py-op">=</tt> <tt class="py-name">None</tt> </tt>
<a name="L2453"></a><tt class="py-lineno">2453</tt> <tt class="py-line"> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">desired_capabilities</tt> <tt class="py-op">=</tt> <tt class="py-name">None</tt> </tt>
<a name="L2454"></a><tt class="py-lineno">2454</tt> <tt class="py-line"> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-579" class="py-name"><a title="proton.Terminus.properties" class="py-name" href="#" onclick="return doclink('link-579', 'properties', 'link-93');">properties</a></tt> <tt class="py-op">=</tt> <tt class="py-name">None</tt> </tt>
</div><a name="L2455"></a><tt class="py-lineno">2455</tt> <tt class="py-line"> </tt>
<a name="Connection._get_attachments"></a><div id="Connection._get_attachments-def"><a name="L2456"></a><tt class="py-lineno">2456</tt> <a class="py-toggle" href="#" id="Connection._get_attachments-toggle" onclick="return toggle('Connection._get_attachments');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Connection-class.html#_get_attachments">_get_attachments</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Connection._get_attachments-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Connection._get_attachments-expanded"><a name="L2457"></a><tt class="py-lineno">2457</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt class="py-name">pn_connection_attachments</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_impl</tt><tt class="py-op">)</tt> </tt>
</div><a name="L2458"></a><tt class="py-lineno">2458</tt> <tt class="py-line"> </tt>
<a name="L2459"></a><tt class="py-lineno">2459</tt> <tt class="py-line"> <tt class="py-decorator">@</tt><tt class="py-decorator">property</tt> </tt>
<a name="Connection.connection"></a><div id="Connection.connection-def"><a name="L2460"></a><tt class="py-lineno">2460</tt> <a class="py-toggle" href="#" id="Connection.connection-toggle" onclick="return toggle('Connection.connection');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Connection-class.html#connection">connection</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Connection.connection-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Connection.connection-expanded"><a name="L2461"></a><tt class="py-lineno">2461</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt class="py-name">self</tt> </tt>
</div><a name="L2462"></a><tt class="py-lineno">2462</tt> <tt class="py-line"> </tt>
<a name="L2463"></a><tt class="py-lineno">2463</tt> <tt class="py-line"> <tt class="py-decorator">@</tt><tt class="py-decorator">property</tt> </tt>
<a name="Connection.transport"></a><div id="Connection.transport-def"><a name="L2464"></a><tt class="py-lineno">2464</tt> <a class="py-toggle" href="#" id="Connection.transport-toggle" onclick="return toggle('Connection.transport');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Connection-class.html#transport">transport</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Connection.transport-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Connection.transport-expanded"><a name="L2465"></a><tt class="py-lineno">2465</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt id="link-580" class="py-name" targets="Class proton.Transport=proton.Transport-class.html"><a title="proton.Transport" class="py-name" href="#" onclick="return doclink('link-580', 'Transport', 'link-580');">Transport</a></tt><tt class="py-op">.</tt><tt id="link-581" class="py-name"><a title="proton.Connection.wrap
proton.Delivery.wrap
proton.Event.wrap
proton.Link.wrap
proton.Session.wrap
proton.Transport.wrap
proton.reactor.Reactor.wrap
proton.reactor.Task.wrap" class="py-name" href="#" onclick="return doclink('link-581', 'wrap', 'link-88');">wrap</a></tt><tt class="py-op">(</tt><tt class="py-name">pn_connection_transport</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_impl</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
</div><a name="L2466"></a><tt class="py-lineno">2466</tt> <tt class="py-line"> </tt>
<a name="Connection._check"></a><div id="Connection._check-def"><a name="L2467"></a><tt class="py-lineno">2467</tt> <a class="py-toggle" href="#" id="Connection._check-toggle" onclick="return toggle('Connection._check');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Connection-class.html#_check">_check</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">err</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Connection._check-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Connection._check-expanded"><a name="L2468"></a><tt class="py-lineno">2468</tt> <tt class="py-line"> <tt class="py-keyword">if</tt> <tt class="py-name">err</tt> <tt class="py-op"><</tt> <tt class="py-number">0</tt><tt class="py-op">:</tt> </tt>
<a name="L2469"></a><tt class="py-lineno">2469</tt> <tt class="py-line"> <tt class="py-name">exc</tt> <tt class="py-op">=</tt> <tt id="link-582" class="py-name"><a title="proton.EXCEPTIONS" class="py-name" href="#" onclick="return doclink('link-582', 'EXCEPTIONS', 'link-28');">EXCEPTIONS</a></tt><tt class="py-op">.</tt><tt id="link-583" class="py-name"><a title="proton.Messenger.get" class="py-name" href="#" onclick="return doclink('link-583', 'get', 'link-50');">get</a></tt><tt class="py-op">(</tt><tt class="py-name">err</tt><tt class="py-op">,</tt> <tt class="py-name">ConnectionException</tt><tt class="py-op">)</tt> </tt>
<a name="L2470"></a><tt class="py-lineno">2470</tt> <tt class="py-line"> <tt class="py-keyword">raise</tt> <tt class="py-name">exc</tt><tt class="py-op">(</tt><tt class="py-string">"[%s]: %s"</tt> <tt class="py-op">%</tt> <tt class="py-op">(</tt><tt class="py-name">err</tt><tt class="py-op">,</tt> <tt class="py-name">pn_connection_error</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_impl</tt><tt class="py-op">)</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
<a name="L2471"></a><tt class="py-lineno">2471</tt> <tt class="py-line"> <tt class="py-keyword">else</tt><tt class="py-op">:</tt> </tt>
<a name="L2472"></a><tt class="py-lineno">2472</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt class="py-name">err</tt> </tt>
</div><a name="L2473"></a><tt class="py-lineno">2473</tt> <tt class="py-line"> </tt>
<a name="Connection._get_cond_impl"></a><div id="Connection._get_cond_impl-def"><a name="L2474"></a><tt class="py-lineno">2474</tt> <a class="py-toggle" href="#" id="Connection._get_cond_impl-toggle" onclick="return toggle('Connection._get_cond_impl');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Connection-class.html#_get_cond_impl">_get_cond_impl</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Connection._get_cond_impl-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Connection._get_cond_impl-expanded"><a name="L2475"></a><tt class="py-lineno">2475</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt class="py-name">pn_connection_condition</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_impl</tt><tt class="py-op">)</tt> </tt>
</div><a name="L2476"></a><tt class="py-lineno">2476</tt> <tt class="py-line"> </tt>
<a name="Connection._get_remote_cond_impl"></a><div id="Connection._get_remote_cond_impl-def"><a name="L2477"></a><tt class="py-lineno">2477</tt> <a class="py-toggle" href="#" id="Connection._get_remote_cond_impl-toggle" onclick="return toggle('Connection._get_remote_cond_impl');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Connection-class.html#_get_remote_cond_impl">_get_remote_cond_impl</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Connection._get_remote_cond_impl-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Connection._get_remote_cond_impl-expanded"><a name="L2478"></a><tt class="py-lineno">2478</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt class="py-name">pn_connection_remote_condition</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_impl</tt><tt class="py-op">)</tt> </tt>
</div><a name="L2479"></a><tt class="py-lineno">2479</tt> <tt class="py-line"> </tt>
<a name="Connection.collect"></a><div id="Connection.collect-def"><a name="L2480"></a><tt class="py-lineno">2480</tt> <a class="py-toggle" href="#" id="Connection.collect-toggle" onclick="return toggle('Connection.collect');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Connection-class.html#collect">collect</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">collector</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Connection.collect-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Connection.collect-expanded"><a name="L2481"></a><tt class="py-lineno">2481</tt> <tt class="py-line"> <tt class="py-keyword">if</tt> <tt class="py-name">collector</tt> <tt class="py-keyword">is</tt> <tt class="py-name">None</tt><tt class="py-op">:</tt> </tt>
<a name="L2482"></a><tt class="py-lineno">2482</tt> <tt class="py-line"> <tt class="py-name">pn_connection_collect</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_impl</tt><tt class="py-op">,</tt> <tt class="py-name">None</tt><tt class="py-op">)</tt> </tt>
<a name="L2483"></a><tt class="py-lineno">2483</tt> <tt class="py-line"> <tt class="py-keyword">else</tt><tt class="py-op">:</tt> </tt>
<a name="L2484"></a><tt class="py-lineno">2484</tt> <tt class="py-line"> <tt class="py-name">pn_connection_collect</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_impl</tt><tt class="py-op">,</tt> <tt class="py-name">collector</tt><tt class="py-op">.</tt><tt class="py-name">_impl</tt><tt class="py-op">)</tt> </tt>
<a name="L2485"></a><tt class="py-lineno">2485</tt> <tt class="py-line"> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_collector</tt> <tt class="py-op">=</tt> <tt class="py-name">weakref</tt><tt class="py-op">.</tt><tt class="py-name">ref</tt><tt class="py-op">(</tt><tt class="py-name">collector</tt><tt class="py-op">)</tt> </tt>
</div><a name="L2486"></a><tt class="py-lineno">2486</tt> <tt class="py-line"> </tt>
<a name="Connection._get_container"></a><div id="Connection._get_container-def"><a name="L2487"></a><tt class="py-lineno">2487</tt> <a class="py-toggle" href="#" id="Connection._get_container-toggle" onclick="return toggle('Connection._get_container');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Connection-class.html#_get_container">_get_container</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Connection._get_container-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Connection._get_container-expanded"><a name="L2488"></a><tt class="py-lineno">2488</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt class="py-name">utf82unicode</tt><tt class="py-op">(</tt><tt class="py-name">pn_connection_get_container</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_impl</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
</div><a name="Connection._set_container"></a><div id="Connection._set_container-def"><a name="L2489"></a><tt class="py-lineno">2489</tt> <a class="py-toggle" href="#" id="Connection._set_container-toggle" onclick="return toggle('Connection._set_container');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Connection-class.html#_set_container">_set_container</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">name</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Connection._set_container-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Connection._set_container-expanded"><a name="L2490"></a><tt class="py-lineno">2490</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt class="py-name">pn_connection_set_container</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_impl</tt><tt class="py-op">,</tt> <tt class="py-name">unicode2utf8</tt><tt class="py-op">(</tt><tt id="link-584" class="py-name"><a title="proton.Link.name
proton.Messenger.name" class="py-name" href="#" onclick="return doclink('link-584', 'name', 'link-25');">name</a></tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
</div><a name="L2491"></a><tt class="py-lineno">2491</tt> <tt class="py-line"> </tt>
<a name="L2492"></a><tt class="py-lineno">2492</tt> <tt class="py-line"> <tt id="link-585" class="py-name" targets="Variable proton.Connection.container=proton.Connection-class.html#container"><a title="proton.Connection.container" class="py-name" href="#" onclick="return doclink('link-585', 'container', 'link-585');">container</a></tt> <tt class="py-op">=</tt> <tt class="py-name">property</tt><tt class="py-op">(</tt><tt id="link-586" class="py-name" targets="Method proton.Connection._get_container()=proton.Connection-class.html#_get_container"><a title="proton.Connection._get_container" class="py-name" href="#" onclick="return doclink('link-586', '_get_container', 'link-586');">_get_container</a></tt><tt class="py-op">,</tt> <tt id="link-587" class="py-name" targets="Method proton.Connection._set_container()=proton.Connection-class.html#_set_container"><a title="proton.Connection._set_container" class="py-name" href="#" onclick="return doclink('link-587', '_set_container', 'link-587');">_set_container</a></tt><tt class="py-op">)</tt> </tt>
<a name="L2493"></a><tt class="py-lineno">2493</tt> <tt class="py-line"> </tt>
<a name="Connection._get_hostname"></a><div id="Connection._get_hostname-def"><a name="L2494"></a><tt class="py-lineno">2494</tt> <a class="py-toggle" href="#" id="Connection._get_hostname-toggle" onclick="return toggle('Connection._get_hostname');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Connection-class.html#_get_hostname">_get_hostname</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Connection._get_hostname-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Connection._get_hostname-expanded"><a name="L2495"></a><tt class="py-lineno">2495</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt class="py-name">utf82unicode</tt><tt class="py-op">(</tt><tt class="py-name">pn_connection_get_hostname</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_impl</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
</div><a name="Connection._set_hostname"></a><div id="Connection._set_hostname-def"><a name="L2496"></a><tt class="py-lineno">2496</tt> <a class="py-toggle" href="#" id="Connection._set_hostname-toggle" onclick="return toggle('Connection._set_hostname');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Connection-class.html#_set_hostname">_set_hostname</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">name</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Connection._set_hostname-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Connection._set_hostname-expanded"><a name="L2497"></a><tt class="py-lineno">2497</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt class="py-name">pn_connection_set_hostname</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_impl</tt><tt class="py-op">,</tt> <tt class="py-name">unicode2utf8</tt><tt class="py-op">(</tt><tt id="link-588" class="py-name"><a title="proton.Link.name
proton.Messenger.name" class="py-name" href="#" onclick="return doclink('link-588', 'name', 'link-25');">name</a></tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
</div><a name="L2498"></a><tt class="py-lineno">2498</tt> <tt class="py-line"> </tt>
<a name="L2499"></a><tt class="py-lineno">2499</tt> <tt class="py-line"> <tt id="link-589" class="py-name" targets="Variable proton.Connection.hostname=proton.Connection-class.html#hostname"><a title="proton.Connection.hostname" class="py-name" href="#" onclick="return doclink('link-589', 'hostname', 'link-589');">hostname</a></tt> <tt class="py-op">=</tt> <tt class="py-name">property</tt><tt class="py-op">(</tt><tt id="link-590" class="py-name" targets="Method proton.Connection._get_hostname()=proton.Connection-class.html#_get_hostname"><a title="proton.Connection._get_hostname" class="py-name" href="#" onclick="return doclink('link-590', '_get_hostname', 'link-590');">_get_hostname</a></tt><tt class="py-op">,</tt> <tt id="link-591" class="py-name" targets="Method proton.Connection._set_hostname()=proton.Connection-class.html#_set_hostname"><a title="proton.Connection._set_hostname" class="py-name" href="#" onclick="return doclink('link-591', '_set_hostname', 'link-591');">_set_hostname</a></tt><tt class="py-op">,</tt> </tt>
<a name="L2500"></a><tt class="py-lineno">2500</tt> <tt class="py-line"> <tt class="py-name">doc</tt><tt class="py-op">=</tt><tt class="py-string">"""</tt> </tt>
<a name="L2501"></a><tt class="py-lineno">2501</tt> <tt class="py-line"><tt class="py-string">Set the name of the host (either fully qualified or relative) to which this</tt> </tt>
<a name="L2502"></a><tt class="py-lineno">2502</tt> <tt class="py-line"><tt class="py-string">connection is connecting to. This information may be used by the remote</tt> </tt>
<a name="L2503"></a><tt class="py-lineno">2503</tt> <tt class="py-line"><tt class="py-string">peer to determine the correct back-end service to connect the client to.</tt> </tt>
<a name="L2504"></a><tt class="py-lineno">2504</tt> <tt class="py-line"><tt class="py-string">This value will be sent in the Open performative, and will be used by SSL</tt> </tt>
<a name="L2505"></a><tt class="py-lineno">2505</tt> <tt class="py-line"><tt class="py-string">and SASL layers to identify the peer.</tt> </tt>
<a name="L2506"></a><tt class="py-lineno">2506</tt> <tt class="py-line"><tt class="py-string">"""</tt><tt class="py-op">)</tt> </tt>
<a name="L2507"></a><tt class="py-lineno">2507</tt> <tt class="py-line"> </tt>
<a name="Connection._get_user"></a><div id="Connection._get_user-def"><a name="L2508"></a><tt class="py-lineno">2508</tt> <a class="py-toggle" href="#" id="Connection._get_user-toggle" onclick="return toggle('Connection._get_user');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Connection-class.html#_get_user">_get_user</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Connection._get_user-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Connection._get_user-expanded"><a name="L2509"></a><tt class="py-lineno">2509</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt class="py-name">utf82unicode</tt><tt class="py-op">(</tt><tt class="py-name">pn_connection_get_user</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_impl</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
</div><a name="Connection._set_user"></a><div id="Connection._set_user-def"><a name="L2510"></a><tt class="py-lineno">2510</tt> <a class="py-toggle" href="#" id="Connection._set_user-toggle" onclick="return toggle('Connection._set_user');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Connection-class.html#_set_user">_set_user</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">name</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Connection._set_user-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Connection._set_user-expanded"><a name="L2511"></a><tt class="py-lineno">2511</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt class="py-name">pn_connection_set_user</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_impl</tt><tt class="py-op">,</tt> <tt class="py-name">unicode2utf8</tt><tt class="py-op">(</tt><tt id="link-592" class="py-name"><a title="proton.Link.name
proton.Messenger.name" class="py-name" href="#" onclick="return doclink('link-592', 'name', 'link-25');">name</a></tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
</div><a name="L2512"></a><tt class="py-lineno">2512</tt> <tt class="py-line"> </tt>
<a name="L2513"></a><tt class="py-lineno">2513</tt> <tt class="py-line"> <tt id="link-593" class="py-name" targets="Variable proton.Connection.user=proton.Connection-class.html#user,Variable proton.SASL.user=proton.SASL-class.html#user,Variable proton.Transport.user=proton.Transport-class.html#user"><a title="proton.Connection.user
proton.SASL.user
proton.Transport.user" class="py-name" href="#" onclick="return doclink('link-593', 'user', 'link-593');">user</a></tt> <tt class="py-op">=</tt> <tt class="py-name">property</tt><tt class="py-op">(</tt><tt id="link-594" class="py-name" targets="Method proton.Connection._get_user()=proton.Connection-class.html#_get_user"><a title="proton.Connection._get_user" class="py-name" href="#" onclick="return doclink('link-594', '_get_user', 'link-594');">_get_user</a></tt><tt class="py-op">,</tt> <tt id="link-595" class="py-name" targets="Method proton.Connection._set_user()=proton.Connection-class.html#_set_user"><a title="proton.Connection._set_user" class="py-name" href="#" onclick="return doclink('link-595', '_set_user', 'link-595');">_set_user</a></tt><tt class="py-op">)</tt> </tt>
<a name="L2514"></a><tt class="py-lineno">2514</tt> <tt class="py-line"> </tt>
<a name="Connection._get_password"></a><div id="Connection._get_password-def"><a name="L2515"></a><tt class="py-lineno">2515</tt> <a class="py-toggle" href="#" id="Connection._get_password-toggle" onclick="return toggle('Connection._get_password');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Connection-class.html#_get_password">_get_password</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Connection._get_password-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Connection._get_password-expanded"><a name="L2516"></a><tt class="py-lineno">2516</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt class="py-name">None</tt> </tt>
</div><a name="Connection._set_password"></a><div id="Connection._set_password-def"><a name="L2517"></a><tt class="py-lineno">2517</tt> <a class="py-toggle" href="#" id="Connection._set_password-toggle" onclick="return toggle('Connection._set_password');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Connection-class.html#_set_password">_set_password</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">name</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Connection._set_password-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Connection._set_password-expanded"><a name="L2518"></a><tt class="py-lineno">2518</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt class="py-name">pn_connection_set_password</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_impl</tt><tt class="py-op">,</tt> <tt class="py-name">unicode2utf8</tt><tt class="py-op">(</tt><tt id="link-596" class="py-name"><a title="proton.Link.name
proton.Messenger.name" class="py-name" href="#" onclick="return doclink('link-596', 'name', 'link-25');">name</a></tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
</div><a name="L2519"></a><tt class="py-lineno">2519</tt> <tt class="py-line"> </tt>
<a name="L2520"></a><tt class="py-lineno">2520</tt> <tt class="py-line"> <tt id="link-597" class="py-name"><a title="proton.Connection.password
proton.Messenger.password
proton.Url.password" class="py-name" href="#" onclick="return doclink('link-597', 'password', 'link-58');">password</a></tt> <tt class="py-op">=</tt> <tt class="py-name">property</tt><tt class="py-op">(</tt><tt id="link-598" class="py-name"><a title="proton.Connection._get_password
proton.Messenger._get_password" class="py-name" href="#" onclick="return doclink('link-598', '_get_password', 'link-59');">_get_password</a></tt><tt class="py-op">,</tt> <tt id="link-599" class="py-name"><a title="proton.Connection._set_password
proton.Messenger._set_password" class="py-name" href="#" onclick="return doclink('link-599', '_set_password', 'link-60');">_set_password</a></tt><tt class="py-op">)</tt> </tt>
<a name="L2521"></a><tt class="py-lineno">2521</tt> <tt class="py-line"> </tt>
<a name="L2522"></a><tt class="py-lineno">2522</tt> <tt class="py-line"> <tt class="py-decorator">@</tt><tt class="py-decorator">property</tt> </tt>
<a name="Connection.remote_container"></a><div id="Connection.remote_container-def"><a name="L2523"></a><tt class="py-lineno">2523</tt> <a class="py-toggle" href="#" id="Connection.remote_container-toggle" onclick="return toggle('Connection.remote_container');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Connection-class.html#remote_container">remote_container</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Connection.remote_container-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Connection.remote_container-expanded"><a name="L2524"></a><tt class="py-lineno">2524</tt> <tt class="py-line"> <tt class="py-docstring">"""The container identifier specified by the remote peer for this connection."""</tt> </tt>
<a name="L2525"></a><tt class="py-lineno">2525</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt class="py-name">pn_connection_remote_container</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_impl</tt><tt class="py-op">)</tt> </tt>
</div><a name="L2526"></a><tt class="py-lineno">2526</tt> <tt class="py-line"> </tt>
<a name="L2527"></a><tt class="py-lineno">2527</tt> <tt class="py-line"> <tt class="py-decorator">@</tt><tt class="py-decorator">property</tt> </tt>
<a name="Connection.remote_hostname"></a><div id="Connection.remote_hostname-def"><a name="L2528"></a><tt class="py-lineno">2528</tt> <a class="py-toggle" href="#" id="Connection.remote_hostname-toggle" onclick="return toggle('Connection.remote_hostname');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Connection-class.html#remote_hostname">remote_hostname</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Connection.remote_hostname-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Connection.remote_hostname-expanded"><a name="L2529"></a><tt class="py-lineno">2529</tt> <tt class="py-line"> <tt class="py-docstring">"""The hostname specified by the remote peer for this connection."""</tt> </tt>
<a name="L2530"></a><tt class="py-lineno">2530</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt class="py-name">pn_connection_remote_hostname</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_impl</tt><tt class="py-op">)</tt> </tt>
</div><a name="L2531"></a><tt class="py-lineno">2531</tt> <tt class="py-line"> </tt>
<a name="L2532"></a><tt class="py-lineno">2532</tt> <tt class="py-line"> <tt class="py-decorator">@</tt><tt class="py-decorator">property</tt> </tt>
<a name="Connection.remote_offered_capabilities"></a><div id="Connection.remote_offered_capabilities-def"><a name="L2533"></a><tt class="py-lineno">2533</tt> <a class="py-toggle" href="#" id="Connection.remote_offered_capabilities-toggle" onclick="return toggle('Connection.remote_offered_capabilities');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Connection-class.html#remote_offered_capabilities">remote_offered_capabilities</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Connection.remote_offered_capabilities-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Connection.remote_offered_capabilities-expanded"><a name="L2534"></a><tt class="py-lineno">2534</tt> <tt class="py-line"> <tt class="py-docstring">"""The capabilities offered by the remote peer for this connection."""</tt> </tt>
<a name="L2535"></a><tt class="py-lineno">2535</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt class="py-name">dat2obj</tt><tt class="py-op">(</tt><tt class="py-name">pn_connection_remote_offered_capabilities</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_impl</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
</div><a name="L2536"></a><tt class="py-lineno">2536</tt> <tt class="py-line"> </tt>
<a name="L2537"></a><tt class="py-lineno">2537</tt> <tt class="py-line"> <tt class="py-decorator">@</tt><tt class="py-decorator">property</tt> </tt>
<a name="Connection.remote_desired_capabilities"></a><div id="Connection.remote_desired_capabilities-def"><a name="L2538"></a><tt class="py-lineno">2538</tt> <a class="py-toggle" href="#" id="Connection.remote_desired_capabilities-toggle" onclick="return toggle('Connection.remote_desired_capabilities');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Connection-class.html#remote_desired_capabilities">remote_desired_capabilities</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Connection.remote_desired_capabilities-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Connection.remote_desired_capabilities-expanded"><a name="L2539"></a><tt class="py-lineno">2539</tt> <tt class="py-line"> <tt class="py-docstring">"""The capabilities desired by the remote peer for this connection."""</tt> </tt>
<a name="L2540"></a><tt class="py-lineno">2540</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt class="py-name">dat2obj</tt><tt class="py-op">(</tt><tt class="py-name">pn_connection_remote_desired_capabilities</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_impl</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
</div><a name="L2541"></a><tt class="py-lineno">2541</tt> <tt class="py-line"> </tt>
<a name="L2542"></a><tt class="py-lineno">2542</tt> <tt class="py-line"> <tt class="py-decorator">@</tt><tt class="py-decorator">property</tt> </tt>
<a name="Connection.remote_properties"></a><div id="Connection.remote_properties-def"><a name="L2543"></a><tt class="py-lineno">2543</tt> <a class="py-toggle" href="#" id="Connection.remote_properties-toggle" onclick="return toggle('Connection.remote_properties');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Connection-class.html#remote_properties">remote_properties</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Connection.remote_properties-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Connection.remote_properties-expanded"><a name="L2544"></a><tt class="py-lineno">2544</tt> <tt class="py-line"> <tt class="py-docstring">"""The properties specified by the remote peer for this connection."""</tt> </tt>
<a name="L2545"></a><tt class="py-lineno">2545</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt class="py-name">dat2obj</tt><tt class="py-op">(</tt><tt class="py-name">pn_connection_remote_properties</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_impl</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
</div><a name="L2546"></a><tt class="py-lineno">2546</tt> <tt class="py-line"> </tt>
<a name="Connection.open"></a><div id="Connection.open-def"><a name="L2547"></a><tt class="py-lineno">2547</tt> <a class="py-toggle" href="#" id="Connection.open-toggle" onclick="return toggle('Connection.open');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Connection-class.html#open">open</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Connection.open-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Connection.open-expanded"><a name="L2548"></a><tt class="py-lineno">2548</tt> <tt class="py-line"> <tt class="py-docstring">"""</tt> </tt>
<a name="L2549"></a><tt class="py-lineno">2549</tt> <tt class="py-line"><tt class="py-docstring"> Opens the connection.</tt> </tt>
<a name="L2550"></a><tt class="py-lineno">2550</tt> <tt class="py-line"><tt class="py-docstring"></tt> </tt>
<a name="L2551"></a><tt class="py-lineno">2551</tt> <tt class="py-line"><tt class="py-docstring"> In more detail, this moves the local state of the connection to</tt> </tt>
<a name="L2552"></a><tt class="py-lineno">2552</tt> <tt class="py-line"><tt class="py-docstring"> the ACTIVE state and triggers an open frame to be sent to the</tt> </tt>
<a name="L2553"></a><tt class="py-lineno">2553</tt> <tt class="py-line"><tt class="py-docstring"> peer. A connection is fully active once both peers have opened it.</tt> </tt>
<a name="L2554"></a><tt class="py-lineno">2554</tt> <tt class="py-line"><tt class="py-docstring"> """</tt> </tt>
<a name="L2555"></a><tt class="py-lineno">2555</tt> <tt class="py-line"> <tt class="py-name">obj2dat</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">offered_capabilities</tt><tt class="py-op">,</tt> </tt>
<a name="L2556"></a><tt class="py-lineno">2556</tt> <tt class="py-line"> <tt class="py-name">pn_connection_offered_capabilities</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_impl</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
<a name="L2557"></a><tt class="py-lineno">2557</tt> <tt class="py-line"> <tt class="py-name">obj2dat</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">desired_capabilities</tt><tt class="py-op">,</tt> </tt>
<a name="L2558"></a><tt class="py-lineno">2558</tt> <tt class="py-line"> <tt class="py-name">pn_connection_desired_capabilities</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_impl</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
<a name="L2559"></a><tt class="py-lineno">2559</tt> <tt class="py-line"> <tt class="py-name">obj2dat</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-600" class="py-name"><a title="proton.Terminus.properties" class="py-name" href="#" onclick="return doclink('link-600', 'properties', 'link-93');">properties</a></tt><tt class="py-op">,</tt> <tt class="py-name">pn_connection_properties</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_impl</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
<a name="L2560"></a><tt class="py-lineno">2560</tt> <tt class="py-line"> <tt class="py-name">pn_connection_open</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_impl</tt><tt class="py-op">)</tt> </tt>
</div><a name="L2561"></a><tt class="py-lineno">2561</tt> <tt class="py-line"> </tt>
<a name="Connection.close"></a><div id="Connection.close-def"><a name="L2562"></a><tt class="py-lineno">2562</tt> <a class="py-toggle" href="#" id="Connection.close-toggle" onclick="return toggle('Connection.close');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Connection-class.html#close">close</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Connection.close-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Connection.close-expanded"><a name="L2563"></a><tt class="py-lineno">2563</tt> <tt class="py-line"> <tt class="py-docstring">"""</tt> </tt>
<a name="L2564"></a><tt class="py-lineno">2564</tt> <tt class="py-line"><tt class="py-docstring"> Closes the connection.</tt> </tt>
<a name="L2565"></a><tt class="py-lineno">2565</tt> <tt class="py-line"><tt class="py-docstring"></tt> </tt>
<a name="L2566"></a><tt class="py-lineno">2566</tt> <tt class="py-line"><tt class="py-docstring"> In more detail, this moves the local state of the connection to</tt> </tt>
<a name="L2567"></a><tt class="py-lineno">2567</tt> <tt class="py-line"><tt class="py-docstring"> the CLOSED state and triggers a close frame to be sent to the</tt> </tt>
<a name="L2568"></a><tt class="py-lineno">2568</tt> <tt class="py-line"><tt class="py-docstring"> peer. A connection is fully closed once both peers have closed it.</tt> </tt>
<a name="L2569"></a><tt class="py-lineno">2569</tt> <tt class="py-line"><tt class="py-docstring"> """</tt> </tt>
<a name="L2570"></a><tt class="py-lineno">2570</tt> <tt class="py-line"> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_update_cond</tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L2571"></a><tt class="py-lineno">2571</tt> <tt class="py-line"> <tt class="py-name">pn_connection_close</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_impl</tt><tt class="py-op">)</tt> </tt>
</div><a name="L2572"></a><tt class="py-lineno">2572</tt> <tt class="py-line"> </tt>
<a name="L2573"></a><tt class="py-lineno">2573</tt> <tt class="py-line"> <tt class="py-decorator">@</tt><tt class="py-decorator">property</tt> </tt>
<a name="Connection.state"></a><div id="Connection.state-def"><a name="L2574"></a><tt class="py-lineno">2574</tt> <a class="py-toggle" href="#" id="Connection.state-toggle" onclick="return toggle('Connection.state');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Connection-class.html#state">state</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Connection.state-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Connection.state-expanded"><a name="L2575"></a><tt class="py-lineno">2575</tt> <tt class="py-line"> <tt class="py-docstring">"""</tt> </tt>
<a name="L2576"></a><tt class="py-lineno">2576</tt> <tt class="py-line"><tt class="py-docstring"> The state of the connection as a bit field. The state has a local</tt> </tt>
<a name="L2577"></a><tt class="py-lineno">2577</tt> <tt class="py-line"><tt class="py-docstring"> and a remote component. Each of these can be in one of three</tt> </tt>
<a name="L2578"></a><tt class="py-lineno">2578</tt> <tt class="py-line"><tt class="py-docstring"> states: UNINIT, ACTIVE or CLOSED. These can be tested by masking</tt> </tt>
<a name="L2579"></a><tt class="py-lineno">2579</tt> <tt class="py-line"><tt class="py-docstring"> against LOCAL_UNINIT, LOCAL_ACTIVE, LOCAL_CLOSED, REMOTE_UNINIT,</tt> </tt>
<a name="L2580"></a><tt class="py-lineno">2580</tt> <tt class="py-line"><tt class="py-docstring"> REMOTE_ACTIVE and REMOTE_CLOSED.</tt> </tt>
<a name="L2581"></a><tt class="py-lineno">2581</tt> <tt class="py-line"><tt class="py-docstring"> """</tt> </tt>
<a name="L2582"></a><tt class="py-lineno">2582</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt class="py-name">pn_connection_state</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_impl</tt><tt class="py-op">)</tt> </tt>
</div><a name="L2583"></a><tt class="py-lineno">2583</tt> <tt class="py-line"> </tt>
<a name="Connection.session"></a><div id="Connection.session-def"><a name="L2584"></a><tt class="py-lineno">2584</tt> <a class="py-toggle" href="#" id="Connection.session-toggle" onclick="return toggle('Connection.session');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Connection-class.html#session">session</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Connection.session-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Connection.session-expanded"><a name="L2585"></a><tt class="py-lineno">2585</tt> <tt class="py-line"> <tt class="py-docstring">"""</tt> </tt>
<a name="L2586"></a><tt class="py-lineno">2586</tt> <tt class="py-line"><tt class="py-docstring"> Returns a new session on this connection.</tt> </tt>
<a name="L2587"></a><tt class="py-lineno">2587</tt> <tt class="py-line"><tt class="py-docstring"> """</tt> </tt>
<a name="L2588"></a><tt class="py-lineno">2588</tt> <tt class="py-line"> <tt class="py-name">ssn</tt> <tt class="py-op">=</tt> <tt class="py-name">pn_session</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_impl</tt><tt class="py-op">)</tt> </tt>
<a name="L2589"></a><tt class="py-lineno">2589</tt> <tt class="py-line"> <tt class="py-keyword">if</tt> <tt class="py-name">ssn</tt> <tt class="py-keyword">is</tt> <tt class="py-name">None</tt><tt class="py-op">:</tt> </tt>
<a name="L2590"></a><tt class="py-lineno">2590</tt> <tt class="py-line"> <tt class="py-keyword">raise</tt><tt class="py-op">(</tt><tt id="link-601" class="py-name" targets="Class proton.SessionException=proton.SessionException-class.html"><a title="proton.SessionException" class="py-name" href="#" onclick="return doclink('link-601', 'SessionException', 'link-601');">SessionException</a></tt><tt class="py-op">(</tt><tt class="py-string">"Session allocation failed."</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
<a name="L2591"></a><tt class="py-lineno">2591</tt> <tt class="py-line"> <tt class="py-keyword">else</tt><tt class="py-op">:</tt> </tt>
<a name="L2592"></a><tt class="py-lineno">2592</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt id="link-602" class="py-name" targets="Class proton.Session=proton.Session-class.html"><a title="proton.Session" class="py-name" href="#" onclick="return doclink('link-602', 'Session', 'link-602');">Session</a></tt><tt class="py-op">(</tt><tt class="py-name">ssn</tt><tt class="py-op">)</tt> </tt>
</div><a name="L2593"></a><tt class="py-lineno">2593</tt> <tt class="py-line"> </tt>
<a name="Connection.session_head"></a><div id="Connection.session_head-def"><a name="L2594"></a><tt class="py-lineno">2594</tt> <a class="py-toggle" href="#" id="Connection.session_head-toggle" onclick="return toggle('Connection.session_head');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Connection-class.html#session_head">session_head</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">mask</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Connection.session_head-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Connection.session_head-expanded"><a name="L2595"></a><tt class="py-lineno">2595</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt id="link-603" class="py-name"><a title="proton.Session" class="py-name" href="#" onclick="return doclink('link-603', 'Session', 'link-602');">Session</a></tt><tt class="py-op">.</tt><tt id="link-604" class="py-name"><a title="proton.Connection.wrap
proton.Delivery.wrap
proton.Event.wrap
proton.Link.wrap
proton.Session.wrap
proton.Transport.wrap
proton.reactor.Reactor.wrap
proton.reactor.Task.wrap" class="py-name" href="#" onclick="return doclink('link-604', 'wrap', 'link-88');">wrap</a></tt><tt class="py-op">(</tt><tt class="py-name">pn_session_head</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_impl</tt><tt class="py-op">,</tt> <tt class="py-name">mask</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
</div><a name="L2596"></a><tt class="py-lineno">2596</tt> <tt class="py-line"> </tt>
<a name="Connection.link_head"></a><div id="Connection.link_head-def"><a name="L2597"></a><tt class="py-lineno">2597</tt> <a class="py-toggle" href="#" id="Connection.link_head-toggle" onclick="return toggle('Connection.link_head');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Connection-class.html#link_head">link_head</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">mask</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Connection.link_head-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Connection.link_head-expanded"><a name="L2598"></a><tt class="py-lineno">2598</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt id="link-605" class="py-name"><a title="proton.Link" class="py-name" href="#" onclick="return doclink('link-605', 'Link', 'link-221');">Link</a></tt><tt class="py-op">.</tt><tt id="link-606" class="py-name"><a title="proton.Connection.wrap
proton.Delivery.wrap
proton.Event.wrap
proton.Link.wrap
proton.Session.wrap
proton.Transport.wrap
proton.reactor.Reactor.wrap
proton.reactor.Task.wrap" class="py-name" href="#" onclick="return doclink('link-606', 'wrap', 'link-88');">wrap</a></tt><tt class="py-op">(</tt><tt class="py-name">pn_link_head</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_impl</tt><tt class="py-op">,</tt> <tt class="py-name">mask</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
</div><a name="L2599"></a><tt class="py-lineno">2599</tt> <tt class="py-line"> </tt>
<a name="L2600"></a><tt class="py-lineno">2600</tt> <tt class="py-line"> <tt class="py-decorator">@</tt><tt class="py-decorator">property</tt> </tt>
<a name="Connection.work_head"></a><div id="Connection.work_head-def"><a name="L2601"></a><tt class="py-lineno">2601</tt> <a class="py-toggle" href="#" id="Connection.work_head-toggle" onclick="return toggle('Connection.work_head');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Connection-class.html#work_head">work_head</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Connection.work_head-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Connection.work_head-expanded"><a name="L2602"></a><tt class="py-lineno">2602</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt id="link-607" class="py-name" targets="Class proton.Delivery=proton.Delivery-class.html"><a title="proton.Delivery" class="py-name" href="#" onclick="return doclink('link-607', 'Delivery', 'link-607');">Delivery</a></tt><tt class="py-op">.</tt><tt id="link-608" class="py-name"><a title="proton.Connection.wrap
proton.Delivery.wrap
proton.Event.wrap
proton.Link.wrap
proton.Session.wrap
proton.Transport.wrap
proton.reactor.Reactor.wrap
proton.reactor.Task.wrap" class="py-name" href="#" onclick="return doclink('link-608', 'wrap', 'link-88');">wrap</a></tt><tt class="py-op">(</tt><tt class="py-name">pn_work_head</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_impl</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
</div><a name="L2603"></a><tt class="py-lineno">2603</tt> <tt class="py-line"> </tt>
<a name="L2604"></a><tt class="py-lineno">2604</tt> <tt class="py-line"> <tt class="py-decorator">@</tt><tt class="py-decorator">property</tt> </tt>
<a name="Connection.error"></a><div id="Connection.error-def"><a name="L2605"></a><tt class="py-lineno">2605</tt> <a class="py-toggle" href="#" id="Connection.error-toggle" onclick="return toggle('Connection.error');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Connection-class.html#error">error</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Connection.error-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Connection.error-expanded"><a name="L2606"></a><tt class="py-lineno">2606</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt class="py-name">pn_error_code</tt><tt class="py-op">(</tt><tt class="py-name">pn_connection_error</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_impl</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
</div><a name="L2607"></a><tt class="py-lineno">2607</tt> <tt class="py-line"> </tt>
<a name="Connection.free"></a><div id="Connection.free-def"><a name="L2608"></a><tt class="py-lineno">2608</tt> <a class="py-toggle" href="#" id="Connection.free-toggle" onclick="return toggle('Connection.free');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Connection-class.html#free">free</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Connection.free-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Connection.free-expanded"><a name="L2609"></a><tt class="py-lineno">2609</tt> <tt class="py-line"> <tt class="py-name">pn_connection_release</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_impl</tt><tt class="py-op">)</tt> </tt>
</div></div><a name="L2610"></a><tt class="py-lineno">2610</tt> <tt class="py-line"> </tt>
<a name="SessionException"></a><div id="SessionException-def"><a name="L2611"></a><tt class="py-lineno">2611</tt> <a class="py-toggle" href="#" id="SessionException-toggle" onclick="return toggle('SessionException');">-</a><tt class="py-line"><tt class="py-keyword">class</tt> <a class="py-def-name" href="proton.SessionException-class.html">SessionException</a><tt class="py-op">(</tt><tt class="py-base-class">ProtonException</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="SessionException-collapsed" style="display:none;" pad="++++" indent="++++"></div><div id="SessionException-expanded"><a name="L2612"></a><tt class="py-lineno">2612</tt> <tt class="py-line"> <tt class="py-keyword">pass</tt> </tt>
</div><a name="L2613"></a><tt class="py-lineno">2613</tt> <tt class="py-line"> </tt>
<a name="Session"></a><div id="Session-def"><a name="L2614"></a><tt class="py-lineno">2614</tt> <a class="py-toggle" href="#" id="Session-toggle" onclick="return toggle('Session');">-</a><tt class="py-line"><tt class="py-keyword">class</tt> <a class="py-def-name" href="proton.Session-class.html">Session</a><tt class="py-op">(</tt><tt class="py-base-class">Wrapper</tt><tt class="py-op">,</tt> <tt class="py-base-class">Endpoint</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Session-collapsed" style="display:none;" pad="++++" indent="++++"></div><div id="Session-expanded"><a name="L2615"></a><tt class="py-lineno">2615</tt> <tt class="py-line"> </tt>
<a name="L2616"></a><tt class="py-lineno">2616</tt> <tt class="py-line"> <tt class="py-decorator">@</tt><tt class="py-decorator">staticmethod</tt> </tt>
<a name="Session.wrap"></a><div id="Session.wrap-def"><a name="L2617"></a><tt class="py-lineno">2617</tt> <a class="py-toggle" href="#" id="Session.wrap-toggle" onclick="return toggle('Session.wrap');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Session-class.html#wrap">wrap</a><tt class="py-op">(</tt><tt class="py-param">impl</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Session.wrap-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Session.wrap-expanded"><a name="L2618"></a><tt class="py-lineno">2618</tt> <tt class="py-line"> <tt class="py-keyword">if</tt> <tt class="py-name">impl</tt> <tt class="py-keyword">is</tt> <tt class="py-name">None</tt><tt class="py-op">:</tt> </tt>
<a name="L2619"></a><tt class="py-lineno">2619</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt class="py-name">None</tt> </tt>
<a name="L2620"></a><tt class="py-lineno">2620</tt> <tt class="py-line"> <tt class="py-keyword">else</tt><tt class="py-op">:</tt> </tt>
<a name="L2621"></a><tt class="py-lineno">2621</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt id="link-609" class="py-name"><a title="proton.Session" class="py-name" href="#" onclick="return doclink('link-609', 'Session', 'link-602');">Session</a></tt><tt class="py-op">(</tt><tt class="py-name">impl</tt><tt class="py-op">)</tt> </tt>
</div><a name="L2622"></a><tt class="py-lineno">2622</tt> <tt class="py-line"> </tt>
<a name="Session.__init__"></a><div id="Session.__init__-def"><a name="L2623"></a><tt class="py-lineno">2623</tt> <a class="py-toggle" href="#" id="Session.__init__-toggle" onclick="return toggle('Session.__init__');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Session-class.html#__init__">__init__</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">impl</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Session.__init__-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Session.__init__-expanded"><a name="L2624"></a><tt class="py-lineno">2624</tt> <tt class="py-line"> <tt id="link-610" class="py-name"><a title="proton.wrapper.Wrapper" class="py-name" href="#" onclick="return doclink('link-610', 'Wrapper', 'link-1');">Wrapper</a></tt><tt class="py-op">.</tt><tt id="link-611" class="py-name"><a title="proton.Array.__init__
proton.Collector.__init__
proton.Condition.__init__
proton.Connection.__init__
proton.Data.__init__
proton.Delivery.__init__
proton.Described.__init__
proton.Disposition.__init__
proton.Event.__init__
proton.EventType.__init__
proton.Link.__init__
proton.Message.__init__
proton.Messenger.__init__
proton.SASL.__init__
proton.SSLDomain.__init__
proton.SSLSessionDetails.__init__
proton.Session.__init__
proton.Terminus.__init__
proton.Transport.__init__
proton.Url.PartDescriptor.__init__
proton.Url.__init__
proton.handlers.CFlowController.__init__
proton.handlers.CHandshaker.__init__
proton.handlers.EndpointStateHandler.__init__
proton.handlers.IOHandler.__init__
proton.handlers.IncomingMessageHandler.__init__
proton.handlers.MessagingHandler.__init__
proton.handlers.OutgoingMessageHandler.__init__
proton.handlers.PythonIO.__init__
proton.handlers.TransactionalClientHandler.__init__
proton.reactor.Acceptor.__init__
proton.reactor.ApplicationEvent.__init__
proton.reactor.Backoff.__init__
proton.reactor.Connector.__init__
proton.reactor.Container.__init__
proton.reactor.DynamicNodeProperties.__init__
proton.reactor.EventInjector.__init__
proton.reactor.Filter.__init__
proton.reactor.GlobalOverrides.__init__
proton.reactor.Reactor.__init__
proton.reactor.SSLConfig.__init__
proton.reactor.Selector.__init__
proton.reactor.SessionPerConnection.__init__
proton.reactor.Task.__init__
proton.reactor.Transaction.__init__
proton.reactor.Urls.__init__
proton.utils.AtomicCount.__init__
proton.utils.BlockingConnection.__init__
proton.utils.BlockingLink.__init__
proton.utils.BlockingReceiver.__init__
proton.utils.BlockingSender.__init__
proton.utils.ConnectionClosed.__init__
proton.utils.Fetcher.__init__
proton.utils.LinkDetached.__init__
proton.utils.SendException.__init__
proton.utils.SyncRequestResponse.__init__
proton.wrapper.Wrapper.__init__" class="py-name" href="#" onclick="return doclink('link-611', '__init__', 'link-242');">__init__</a></tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">,</tt> <tt class="py-name">impl</tt><tt class="py-op">,</tt> <tt class="py-name">pn_session_attachments</tt><tt class="py-op">)</tt> </tt>
</div><a name="L2625"></a><tt class="py-lineno">2625</tt> <tt class="py-line"> </tt>
<a name="Session._get_attachments"></a><div id="Session._get_attachments-def"><a name="L2626"></a><tt class="py-lineno">2626</tt> <a class="py-toggle" href="#" id="Session._get_attachments-toggle" onclick="return toggle('Session._get_attachments');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Session-class.html#_get_attachments">_get_attachments</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Session._get_attachments-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Session._get_attachments-expanded"><a name="L2627"></a><tt class="py-lineno">2627</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt class="py-name">pn_session_attachments</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_impl</tt><tt class="py-op">)</tt> </tt>
</div><a name="L2628"></a><tt class="py-lineno">2628</tt> <tt class="py-line"> </tt>
<a name="Session._get_cond_impl"></a><div id="Session._get_cond_impl-def"><a name="L2629"></a><tt class="py-lineno">2629</tt> <a class="py-toggle" href="#" id="Session._get_cond_impl-toggle" onclick="return toggle('Session._get_cond_impl');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Session-class.html#_get_cond_impl">_get_cond_impl</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Session._get_cond_impl-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Session._get_cond_impl-expanded"><a name="L2630"></a><tt class="py-lineno">2630</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt class="py-name">pn_session_condition</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_impl</tt><tt class="py-op">)</tt> </tt>
</div><a name="L2631"></a><tt class="py-lineno">2631</tt> <tt class="py-line"> </tt>
<a name="Session._get_remote_cond_impl"></a><div id="Session._get_remote_cond_impl-def"><a name="L2632"></a><tt class="py-lineno">2632</tt> <a class="py-toggle" href="#" id="Session._get_remote_cond_impl-toggle" onclick="return toggle('Session._get_remote_cond_impl');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Session-class.html#_get_remote_cond_impl">_get_remote_cond_impl</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Session._get_remote_cond_impl-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Session._get_remote_cond_impl-expanded"><a name="L2633"></a><tt class="py-lineno">2633</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt class="py-name">pn_session_remote_condition</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_impl</tt><tt class="py-op">)</tt> </tt>
</div><a name="L2634"></a><tt class="py-lineno">2634</tt> <tt class="py-line"> </tt>
<a name="Session._get_incoming_capacity"></a><div id="Session._get_incoming_capacity-def"><a name="L2635"></a><tt class="py-lineno">2635</tt> <a class="py-toggle" href="#" id="Session._get_incoming_capacity-toggle" onclick="return toggle('Session._get_incoming_capacity');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Session-class.html#_get_incoming_capacity">_get_incoming_capacity</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Session._get_incoming_capacity-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Session._get_incoming_capacity-expanded"><a name="L2636"></a><tt class="py-lineno">2636</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt class="py-name">pn_session_get_incoming_capacity</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_impl</tt><tt class="py-op">)</tt> </tt>
</div><a name="L2637"></a><tt class="py-lineno">2637</tt> <tt class="py-line"> </tt>
<a name="Session._set_incoming_capacity"></a><div id="Session._set_incoming_capacity-def"><a name="L2638"></a><tt class="py-lineno">2638</tt> <a class="py-toggle" href="#" id="Session._set_incoming_capacity-toggle" onclick="return toggle('Session._set_incoming_capacity');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Session-class.html#_set_incoming_capacity">_set_incoming_capacity</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">capacity</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Session._set_incoming_capacity-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Session._set_incoming_capacity-expanded"><a name="L2639"></a><tt class="py-lineno">2639</tt> <tt class="py-line"> <tt class="py-name">pn_session_set_incoming_capacity</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_impl</tt><tt class="py-op">,</tt> <tt id="link-612" class="py-name"><a title="proton.Transport.capacity" class="py-name" href="#" onclick="return doclink('link-612', 'capacity', 'link-324');">capacity</a></tt><tt class="py-op">)</tt> </tt>
</div><a name="L2640"></a><tt class="py-lineno">2640</tt> <tt class="py-line"> </tt>
<a name="L2641"></a><tt class="py-lineno">2641</tt> <tt class="py-line"> <tt id="link-613" class="py-name" targets="Variable proton.Session.incoming_capacity=proton.Session-class.html#incoming_capacity"><a title="proton.Session.incoming_capacity" class="py-name" href="#" onclick="return doclink('link-613', 'incoming_capacity', 'link-613');">incoming_capacity</a></tt> <tt class="py-op">=</tt> <tt class="py-name">property</tt><tt class="py-op">(</tt><tt id="link-614" class="py-name" targets="Method proton.Session._get_incoming_capacity()=proton.Session-class.html#_get_incoming_capacity"><a title="proton.Session._get_incoming_capacity" class="py-name" href="#" onclick="return doclink('link-614', '_get_incoming_capacity', 'link-614');">_get_incoming_capacity</a></tt><tt class="py-op">,</tt> <tt id="link-615" class="py-name" targets="Method proton.Session._set_incoming_capacity()=proton.Session-class.html#_set_incoming_capacity"><a title="proton.Session._set_incoming_capacity" class="py-name" href="#" onclick="return doclink('link-615', '_set_incoming_capacity', 'link-615');">_set_incoming_capacity</a></tt><tt class="py-op">)</tt> </tt>
<a name="L2642"></a><tt class="py-lineno">2642</tt> <tt class="py-line"> </tt>
<a name="Session._get_outgoing_window"></a><div id="Session._get_outgoing_window-def"><a name="L2643"></a><tt class="py-lineno">2643</tt> <a class="py-toggle" href="#" id="Session._get_outgoing_window-toggle" onclick="return toggle('Session._get_outgoing_window');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Session-class.html#_get_outgoing_window">_get_outgoing_window</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Session._get_outgoing_window-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Session._get_outgoing_window-expanded"><a name="L2644"></a><tt class="py-lineno">2644</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt class="py-name">pn_session_get_outgoing_window</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_impl</tt><tt class="py-op">)</tt> </tt>
</div><a name="L2645"></a><tt class="py-lineno">2645</tt> <tt class="py-line"> </tt>
<a name="Session._set_outgoing_window"></a><div id="Session._set_outgoing_window-def"><a name="L2646"></a><tt class="py-lineno">2646</tt> <a class="py-toggle" href="#" id="Session._set_outgoing_window-toggle" onclick="return toggle('Session._set_outgoing_window');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Session-class.html#_set_outgoing_window">_set_outgoing_window</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">window</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Session._set_outgoing_window-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Session._set_outgoing_window-expanded"><a name="L2647"></a><tt class="py-lineno">2647</tt> <tt class="py-line"> <tt class="py-name">pn_session_set_outgoing_window</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_impl</tt><tt class="py-op">,</tt> <tt class="py-name">window</tt><tt class="py-op">)</tt> </tt>
</div><a name="L2648"></a><tt class="py-lineno">2648</tt> <tt class="py-line"> </tt>
<a name="L2649"></a><tt class="py-lineno">2649</tt> <tt class="py-line"> <tt id="link-616" class="py-name"><a title="proton.Messenger.outgoing_window
proton.Session.outgoing_window" class="py-name" href="#" onclick="return doclink('link-616', 'outgoing_window', 'link-76');">outgoing_window</a></tt> <tt class="py-op">=</tt> <tt class="py-name">property</tt><tt class="py-op">(</tt><tt id="link-617" class="py-name"><a title="proton.Messenger._get_outgoing_window
proton.Session._get_outgoing_window" class="py-name" href="#" onclick="return doclink('link-617', '_get_outgoing_window', 'link-77');">_get_outgoing_window</a></tt><tt class="py-op">,</tt> <tt id="link-618" class="py-name"><a title="proton.Messenger._set_outgoing_window
proton.Session._set_outgoing_window" class="py-name" href="#" onclick="return doclink('link-618', '_set_outgoing_window', 'link-78');">_set_outgoing_window</a></tt><tt class="py-op">)</tt> </tt>
<a name="L2650"></a><tt class="py-lineno">2650</tt> <tt class="py-line"> </tt>
<a name="L2651"></a><tt class="py-lineno">2651</tt> <tt class="py-line"> <tt class="py-decorator">@</tt><tt class="py-decorator">property</tt> </tt>
<a name="Session.outgoing_bytes"></a><div id="Session.outgoing_bytes-def"><a name="L2652"></a><tt class="py-lineno">2652</tt> <a class="py-toggle" href="#" id="Session.outgoing_bytes-toggle" onclick="return toggle('Session.outgoing_bytes');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Session-class.html#outgoing_bytes">outgoing_bytes</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Session.outgoing_bytes-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Session.outgoing_bytes-expanded"><a name="L2653"></a><tt class="py-lineno">2653</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt class="py-name">pn_session_outgoing_bytes</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_impl</tt><tt class="py-op">)</tt> </tt>
</div><a name="L2654"></a><tt class="py-lineno">2654</tt> <tt class="py-line"> </tt>
<a name="L2655"></a><tt class="py-lineno">2655</tt> <tt class="py-line"> <tt class="py-decorator">@</tt><tt class="py-decorator">property</tt> </tt>
<a name="Session.incoming_bytes"></a><div id="Session.incoming_bytes-def"><a name="L2656"></a><tt class="py-lineno">2656</tt> <a class="py-toggle" href="#" id="Session.incoming_bytes-toggle" onclick="return toggle('Session.incoming_bytes');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Session-class.html#incoming_bytes">incoming_bytes</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Session.incoming_bytes-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Session.incoming_bytes-expanded"><a name="L2657"></a><tt class="py-lineno">2657</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt class="py-name">pn_session_incoming_bytes</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_impl</tt><tt class="py-op">)</tt> </tt>
</div><a name="L2658"></a><tt class="py-lineno">2658</tt> <tt class="py-line"> </tt>
<a name="Session.open"></a><div id="Session.open-def"><a name="L2659"></a><tt class="py-lineno">2659</tt> <a class="py-toggle" href="#" id="Session.open-toggle" onclick="return toggle('Session.open');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Session-class.html#open">open</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Session.open-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Session.open-expanded"><a name="L2660"></a><tt class="py-lineno">2660</tt> <tt class="py-line"> <tt class="py-name">pn_session_open</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_impl</tt><tt class="py-op">)</tt> </tt>
</div><a name="L2661"></a><tt class="py-lineno">2661</tt> <tt class="py-line"> </tt>
<a name="Session.close"></a><div id="Session.close-def"><a name="L2662"></a><tt class="py-lineno">2662</tt> <a class="py-toggle" href="#" id="Session.close-toggle" onclick="return toggle('Session.close');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Session-class.html#close">close</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Session.close-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Session.close-expanded"><a name="L2663"></a><tt class="py-lineno">2663</tt> <tt class="py-line"> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_update_cond</tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L2664"></a><tt class="py-lineno">2664</tt> <tt class="py-line"> <tt class="py-name">pn_session_close</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_impl</tt><tt class="py-op">)</tt> </tt>
</div><a name="L2665"></a><tt class="py-lineno">2665</tt> <tt class="py-line"> </tt>
<a name="Session.next"></a><div id="Session.next-def"><a name="L2666"></a><tt class="py-lineno">2666</tt> <a class="py-toggle" href="#" id="Session.next-toggle" onclick="return toggle('Session.next');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Session-class.html#next">next</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">mask</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Session.next-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Session.next-expanded"><a name="L2667"></a><tt class="py-lineno">2667</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt id="link-619" class="py-name"><a title="proton.Session" class="py-name" href="#" onclick="return doclink('link-619', 'Session', 'link-602');">Session</a></tt><tt class="py-op">.</tt><tt id="link-620" class="py-name"><a title="proton.Connection.wrap
proton.Delivery.wrap
proton.Event.wrap
proton.Link.wrap
proton.Session.wrap
proton.Transport.wrap
proton.reactor.Reactor.wrap
proton.reactor.Task.wrap" class="py-name" href="#" onclick="return doclink('link-620', 'wrap', 'link-88');">wrap</a></tt><tt class="py-op">(</tt><tt class="py-name">pn_session_next</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_impl</tt><tt class="py-op">,</tt> <tt class="py-name">mask</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
</div><a name="L2668"></a><tt class="py-lineno">2668</tt> <tt class="py-line"> </tt>
<a name="L2669"></a><tt class="py-lineno">2669</tt> <tt class="py-line"> <tt class="py-decorator">@</tt><tt class="py-decorator">property</tt> </tt>
<a name="Session.state"></a><div id="Session.state-def"><a name="L2670"></a><tt class="py-lineno">2670</tt> <a class="py-toggle" href="#" id="Session.state-toggle" onclick="return toggle('Session.state');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Session-class.html#state">state</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Session.state-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Session.state-expanded"><a name="L2671"></a><tt class="py-lineno">2671</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt class="py-name">pn_session_state</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_impl</tt><tt class="py-op">)</tt> </tt>
</div><a name="L2672"></a><tt class="py-lineno">2672</tt> <tt class="py-line"> </tt>
<a name="L2673"></a><tt class="py-lineno">2673</tt> <tt class="py-line"> <tt class="py-decorator">@</tt><tt class="py-decorator">property</tt> </tt>
<a name="Session.connection"></a><div id="Session.connection-def"><a name="L2674"></a><tt class="py-lineno">2674</tt> <a class="py-toggle" href="#" id="Session.connection-toggle" onclick="return toggle('Session.connection');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Session-class.html#connection">connection</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Session.connection-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Session.connection-expanded"><a name="L2675"></a><tt class="py-lineno">2675</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt id="link-621" class="py-name"><a title="proton.Connection" class="py-name" href="#" onclick="return doclink('link-621', 'Connection', 'link-575');">Connection</a></tt><tt class="py-op">.</tt><tt id="link-622" class="py-name"><a title="proton.Connection.wrap
proton.Delivery.wrap
proton.Event.wrap
proton.Link.wrap
proton.Session.wrap
proton.Transport.wrap
proton.reactor.Reactor.wrap
proton.reactor.Task.wrap" class="py-name" href="#" onclick="return doclink('link-622', 'wrap', 'link-88');">wrap</a></tt><tt class="py-op">(</tt><tt class="py-name">pn_session_connection</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_impl</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
</div><a name="L2676"></a><tt class="py-lineno">2676</tt> <tt class="py-line"> </tt>
<a name="Session.sender"></a><div id="Session.sender-def"><a name="L2677"></a><tt class="py-lineno">2677</tt> <a class="py-toggle" href="#" id="Session.sender-toggle" onclick="return toggle('Session.sender');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Session-class.html#sender">sender</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">name</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Session.sender-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Session.sender-expanded"><a name="L2678"></a><tt class="py-lineno">2678</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt id="link-623" class="py-name" targets="Class proton.Sender=proton.Sender-class.html"><a title="proton.Sender" class="py-name" href="#" onclick="return doclink('link-623', 'Sender', 'link-623');">Sender</a></tt><tt class="py-op">(</tt><tt class="py-name">pn_sender</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_impl</tt><tt class="py-op">,</tt> <tt class="py-name">unicode2utf8</tt><tt class="py-op">(</tt><tt id="link-624" class="py-name"><a title="proton.Link.name
proton.Messenger.name" class="py-name" href="#" onclick="return doclink('link-624', 'name', 'link-25');">name</a></tt><tt class="py-op">)</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
</div><a name="L2679"></a><tt class="py-lineno">2679</tt> <tt class="py-line"> </tt>
<a name="Session.receiver"></a><div id="Session.receiver-def"><a name="L2680"></a><tt class="py-lineno">2680</tt> <a class="py-toggle" href="#" id="Session.receiver-toggle" onclick="return toggle('Session.receiver');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Session-class.html#receiver">receiver</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">name</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Session.receiver-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Session.receiver-expanded"><a name="L2681"></a><tt class="py-lineno">2681</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt id="link-625" class="py-name" targets="Class proton.Receiver=proton.Receiver-class.html"><a title="proton.Receiver" class="py-name" href="#" onclick="return doclink('link-625', 'Receiver', 'link-625');">Receiver</a></tt><tt class="py-op">(</tt><tt class="py-name">pn_receiver</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_impl</tt><tt class="py-op">,</tt> <tt class="py-name">unicode2utf8</tt><tt class="py-op">(</tt><tt id="link-626" class="py-name"><a title="proton.Link.name
proton.Messenger.name" class="py-name" href="#" onclick="return doclink('link-626', 'name', 'link-25');">name</a></tt><tt class="py-op">)</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
</div><a name="L2682"></a><tt class="py-lineno">2682</tt> <tt class="py-line"> </tt>
<a name="Session.free"></a><div id="Session.free-def"><a name="L2683"></a><tt class="py-lineno">2683</tt> <a class="py-toggle" href="#" id="Session.free-toggle" onclick="return toggle('Session.free');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Session-class.html#free">free</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Session.free-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Session.free-expanded"><a name="L2684"></a><tt class="py-lineno">2684</tt> <tt class="py-line"> <tt class="py-name">pn_session_free</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_impl</tt><tt class="py-op">)</tt> </tt>
</div></div><a name="L2685"></a><tt class="py-lineno">2685</tt> <tt class="py-line"> </tt>
<a name="LinkException"></a><div id="LinkException-def"><a name="L2686"></a><tt class="py-lineno">2686</tt> <a class="py-toggle" href="#" id="LinkException-toggle" onclick="return toggle('LinkException');">-</a><tt class="py-line"><tt class="py-keyword">class</tt> <a class="py-def-name" href="proton.LinkException-class.html">LinkException</a><tt class="py-op">(</tt><tt class="py-base-class">ProtonException</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="LinkException-collapsed" style="display:none;" pad="++++" indent="++++"></div><div id="LinkException-expanded"><a name="L2687"></a><tt class="py-lineno">2687</tt> <tt class="py-line"> <tt class="py-keyword">pass</tt> </tt>
</div><a name="L2688"></a><tt class="py-lineno">2688</tt> <tt class="py-line"> </tt>
<a name="Link"></a><div id="Link-def"><a name="L2689"></a><tt class="py-lineno">2689</tt> <a class="py-toggle" href="#" id="Link-toggle" onclick="return toggle('Link');">-</a><tt class="py-line"><tt class="py-keyword">class</tt> <a class="py-def-name" href="proton.Link-class.html">Link</a><tt class="py-op">(</tt><tt class="py-base-class">Wrapper</tt><tt class="py-op">,</tt> <tt class="py-base-class">Endpoint</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Link-collapsed" style="display:none;" pad="++++" indent="++++"></div><div id="Link-expanded"><a name="L2690"></a><tt class="py-lineno">2690</tt> <tt class="py-line"> <tt class="py-docstring">"""</tt> </tt>
<a name="L2691"></a><tt class="py-lineno">2691</tt> <tt class="py-line"><tt class="py-docstring"> A representation of an AMQP link, of which there are two concrete</tt> </tt>
<a name="L2692"></a><tt class="py-lineno">2692</tt> <tt class="py-line"><tt class="py-docstring"> implementations, Sender and Receiver.</tt> </tt>
<a name="L2693"></a><tt class="py-lineno">2693</tt> <tt class="py-line"><tt class="py-docstring"> """</tt> </tt>
<a name="L2694"></a><tt class="py-lineno">2694</tt> <tt class="py-line"> </tt>
<a name="L2695"></a><tt class="py-lineno">2695</tt> <tt class="py-line"> <tt id="link-627" class="py-name" targets="Variable proton.Link.SND_UNSETTLED=proton.Link-class.html#SND_UNSETTLED"><a title="proton.Link.SND_UNSETTLED" class="py-name" href="#" onclick="return doclink('link-627', 'SND_UNSETTLED', 'link-627');">SND_UNSETTLED</a></tt> <tt class="py-op">=</tt> <tt class="py-name">PN_SND_UNSETTLED</tt> </tt>
<a name="L2696"></a><tt class="py-lineno">2696</tt> <tt class="py-line"> <tt id="link-628" class="py-name"><a title="proton.Link.SND_SETTLED" class="py-name" href="#" onclick="return doclink('link-628', 'SND_SETTLED', 'link-222');">SND_SETTLED</a></tt> <tt class="py-op">=</tt> <tt class="py-name">PN_SND_SETTLED</tt> </tt>
<a name="L2697"></a><tt class="py-lineno">2697</tt> <tt class="py-line"> <tt id="link-629" class="py-name" targets="Variable proton.Link.SND_MIXED=proton.Link-class.html#SND_MIXED"><a title="proton.Link.SND_MIXED" class="py-name" href="#" onclick="return doclink('link-629', 'SND_MIXED', 'link-629');">SND_MIXED</a></tt> <tt class="py-op">=</tt> <tt class="py-name">PN_SND_MIXED</tt> </tt>
<a name="L2698"></a><tt class="py-lineno">2698</tt> <tt class="py-line"> </tt>
<a name="L2699"></a><tt class="py-lineno">2699</tt> <tt class="py-line"> <tt id="link-630" class="py-name" targets="Variable proton.Link.RCV_FIRST=proton.Link-class.html#RCV_FIRST"><a title="proton.Link.RCV_FIRST" class="py-name" href="#" onclick="return doclink('link-630', 'RCV_FIRST', 'link-630');">RCV_FIRST</a></tt> <tt class="py-op">=</tt> <tt class="py-name">PN_RCV_FIRST</tt> </tt>
<a name="L2700"></a><tt class="py-lineno">2700</tt> <tt class="py-line"> <tt id="link-631" class="py-name" targets="Variable proton.Link.RCV_SECOND=proton.Link-class.html#RCV_SECOND"><a title="proton.Link.RCV_SECOND" class="py-name" href="#" onclick="return doclink('link-631', 'RCV_SECOND', 'link-631');">RCV_SECOND</a></tt> <tt class="py-op">=</tt> <tt class="py-name">PN_RCV_SECOND</tt> </tt>
<a name="L2701"></a><tt class="py-lineno">2701</tt> <tt class="py-line"> </tt>
<a name="L2702"></a><tt class="py-lineno">2702</tt> <tt class="py-line"> <tt class="py-decorator">@</tt><tt class="py-decorator">staticmethod</tt> </tt>
<a name="Link.wrap"></a><div id="Link.wrap-def"><a name="L2703"></a><tt class="py-lineno">2703</tt> <a class="py-toggle" href="#" id="Link.wrap-toggle" onclick="return toggle('Link.wrap');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Link-class.html#wrap">wrap</a><tt class="py-op">(</tt><tt class="py-param">impl</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Link.wrap-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Link.wrap-expanded"><a name="L2704"></a><tt class="py-lineno">2704</tt> <tt class="py-line"> <tt class="py-keyword">if</tt> <tt class="py-name">impl</tt> <tt class="py-keyword">is</tt> <tt class="py-name">None</tt><tt class="py-op">:</tt> <tt class="py-keyword">return</tt> <tt class="py-name">None</tt> </tt>
<a name="L2705"></a><tt class="py-lineno">2705</tt> <tt class="py-line"> <tt class="py-keyword">if</tt> <tt class="py-name">pn_link_is_sender</tt><tt class="py-op">(</tt><tt class="py-name">impl</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
<a name="L2706"></a><tt class="py-lineno">2706</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt id="link-632" class="py-name"><a title="proton.Sender" class="py-name" href="#" onclick="return doclink('link-632', 'Sender', 'link-623');">Sender</a></tt><tt class="py-op">(</tt><tt class="py-name">impl</tt><tt class="py-op">)</tt> </tt>
<a name="L2707"></a><tt class="py-lineno">2707</tt> <tt class="py-line"> <tt class="py-keyword">else</tt><tt class="py-op">:</tt> </tt>
<a name="L2708"></a><tt class="py-lineno">2708</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt id="link-633" class="py-name"><a title="proton.Receiver" class="py-name" href="#" onclick="return doclink('link-633', 'Receiver', 'link-625');">Receiver</a></tt><tt class="py-op">(</tt><tt class="py-name">impl</tt><tt class="py-op">)</tt> </tt>
</div><a name="L2709"></a><tt class="py-lineno">2709</tt> <tt class="py-line"> </tt>
<a name="Link.__init__"></a><div id="Link.__init__-def"><a name="L2710"></a><tt class="py-lineno">2710</tt> <a class="py-toggle" href="#" id="Link.__init__-toggle" onclick="return toggle('Link.__init__');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Link-class.html#__init__">__init__</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">impl</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Link.__init__-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Link.__init__-expanded"><a name="L2711"></a><tt class="py-lineno">2711</tt> <tt class="py-line"> <tt id="link-634" class="py-name"><a title="proton.wrapper.Wrapper" class="py-name" href="#" onclick="return doclink('link-634', 'Wrapper', 'link-1');">Wrapper</a></tt><tt class="py-op">.</tt><tt id="link-635" class="py-name"><a title="proton.Array.__init__
proton.Collector.__init__
proton.Condition.__init__
proton.Connection.__init__
proton.Data.__init__
proton.Delivery.__init__
proton.Described.__init__
proton.Disposition.__init__
proton.Event.__init__
proton.EventType.__init__
proton.Link.__init__
proton.Message.__init__
proton.Messenger.__init__
proton.SASL.__init__
proton.SSLDomain.__init__
proton.SSLSessionDetails.__init__
proton.Session.__init__
proton.Terminus.__init__
proton.Transport.__init__
proton.Url.PartDescriptor.__init__
proton.Url.__init__
proton.handlers.CFlowController.__init__
proton.handlers.CHandshaker.__init__
proton.handlers.EndpointStateHandler.__init__
proton.handlers.IOHandler.__init__
proton.handlers.IncomingMessageHandler.__init__
proton.handlers.MessagingHandler.__init__
proton.handlers.OutgoingMessageHandler.__init__
proton.handlers.PythonIO.__init__
proton.handlers.TransactionalClientHandler.__init__
proton.reactor.Acceptor.__init__
proton.reactor.ApplicationEvent.__init__
proton.reactor.Backoff.__init__
proton.reactor.Connector.__init__
proton.reactor.Container.__init__
proton.reactor.DynamicNodeProperties.__init__
proton.reactor.EventInjector.__init__
proton.reactor.Filter.__init__
proton.reactor.GlobalOverrides.__init__
proton.reactor.Reactor.__init__
proton.reactor.SSLConfig.__init__
proton.reactor.Selector.__init__
proton.reactor.SessionPerConnection.__init__
proton.reactor.Task.__init__
proton.reactor.Transaction.__init__
proton.reactor.Urls.__init__
proton.utils.AtomicCount.__init__
proton.utils.BlockingConnection.__init__
proton.utils.BlockingLink.__init__
proton.utils.BlockingReceiver.__init__
proton.utils.BlockingSender.__init__
proton.utils.ConnectionClosed.__init__
proton.utils.Fetcher.__init__
proton.utils.LinkDetached.__init__
proton.utils.SendException.__init__
proton.utils.SyncRequestResponse.__init__
proton.wrapper.Wrapper.__init__" class="py-name" href="#" onclick="return doclink('link-635', '__init__', 'link-242');">__init__</a></tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">,</tt> <tt class="py-name">impl</tt><tt class="py-op">,</tt> <tt class="py-name">pn_link_attachments</tt><tt class="py-op">)</tt> </tt>
</div><a name="L2712"></a><tt class="py-lineno">2712</tt> <tt class="py-line"> </tt>
<a name="Link._get_attachments"></a><div id="Link._get_attachments-def"><a name="L2713"></a><tt class="py-lineno">2713</tt> <a class="py-toggle" href="#" id="Link._get_attachments-toggle" onclick="return toggle('Link._get_attachments');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Link-class.html#_get_attachments">_get_attachments</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Link._get_attachments-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Link._get_attachments-expanded"><a name="L2714"></a><tt class="py-lineno">2714</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt class="py-name">pn_link_attachments</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_impl</tt><tt class="py-op">)</tt> </tt>
</div><a name="L2715"></a><tt class="py-lineno">2715</tt> <tt class="py-line"> </tt>
<a name="Link._check"></a><div id="Link._check-def"><a name="L2716"></a><tt class="py-lineno">2716</tt> <a class="py-toggle" href="#" id="Link._check-toggle" onclick="return toggle('Link._check');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Link-class.html#_check">_check</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">err</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Link._check-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Link._check-expanded"><a name="L2717"></a><tt class="py-lineno">2717</tt> <tt class="py-line"> <tt class="py-keyword">if</tt> <tt class="py-name">err</tt> <tt class="py-op"><</tt> <tt class="py-number">0</tt><tt class="py-op">:</tt> </tt>
<a name="L2718"></a><tt class="py-lineno">2718</tt> <tt class="py-line"> <tt class="py-name">exc</tt> <tt class="py-op">=</tt> <tt id="link-636" class="py-name"><a title="proton.EXCEPTIONS" class="py-name" href="#" onclick="return doclink('link-636', 'EXCEPTIONS', 'link-28');">EXCEPTIONS</a></tt><tt class="py-op">.</tt><tt id="link-637" class="py-name"><a title="proton.Messenger.get" class="py-name" href="#" onclick="return doclink('link-637', 'get', 'link-50');">get</a></tt><tt class="py-op">(</tt><tt class="py-name">err</tt><tt class="py-op">,</tt> <tt class="py-name">LinkException</tt><tt class="py-op">)</tt> </tt>
<a name="L2719"></a><tt class="py-lineno">2719</tt> <tt class="py-line"> <tt class="py-keyword">raise</tt> <tt class="py-name">exc</tt><tt class="py-op">(</tt><tt class="py-string">"[%s]: %s"</tt> <tt class="py-op">%</tt> <tt class="py-op">(</tt><tt class="py-name">err</tt><tt class="py-op">,</tt> <tt class="py-name">pn_error_text</tt><tt class="py-op">(</tt><tt class="py-name">pn_link_error</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_impl</tt><tt class="py-op">)</tt><tt class="py-op">)</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
<a name="L2720"></a><tt class="py-lineno">2720</tt> <tt class="py-line"> <tt class="py-keyword">else</tt><tt class="py-op">:</tt> </tt>
<a name="L2721"></a><tt class="py-lineno">2721</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt class="py-name">err</tt> </tt>
</div><a name="L2722"></a><tt class="py-lineno">2722</tt> <tt class="py-line"> </tt>
<a name="Link._get_cond_impl"></a><div id="Link._get_cond_impl-def"><a name="L2723"></a><tt class="py-lineno">2723</tt> <a class="py-toggle" href="#" id="Link._get_cond_impl-toggle" onclick="return toggle('Link._get_cond_impl');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Link-class.html#_get_cond_impl">_get_cond_impl</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Link._get_cond_impl-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Link._get_cond_impl-expanded"><a name="L2724"></a><tt class="py-lineno">2724</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt class="py-name">pn_link_condition</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_impl</tt><tt class="py-op">)</tt> </tt>
</div><a name="L2725"></a><tt class="py-lineno">2725</tt> <tt class="py-line"> </tt>
<a name="Link._get_remote_cond_impl"></a><div id="Link._get_remote_cond_impl-def"><a name="L2726"></a><tt class="py-lineno">2726</tt> <a class="py-toggle" href="#" id="Link._get_remote_cond_impl-toggle" onclick="return toggle('Link._get_remote_cond_impl');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Link-class.html#_get_remote_cond_impl">_get_remote_cond_impl</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Link._get_remote_cond_impl-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Link._get_remote_cond_impl-expanded"><a name="L2727"></a><tt class="py-lineno">2727</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt class="py-name">pn_link_remote_condition</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_impl</tt><tt class="py-op">)</tt> </tt>
</div><a name="L2728"></a><tt class="py-lineno">2728</tt> <tt class="py-line"> </tt>
<a name="Link.open"></a><div id="Link.open-def"><a name="L2729"></a><tt class="py-lineno">2729</tt> <a class="py-toggle" href="#" id="Link.open-toggle" onclick="return toggle('Link.open');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Link-class.html#open">open</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Link.open-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Link.open-expanded"><a name="L2730"></a><tt class="py-lineno">2730</tt> <tt class="py-line"> <tt class="py-docstring">"""</tt> </tt>
<a name="L2731"></a><tt class="py-lineno">2731</tt> <tt class="py-line"><tt class="py-docstring"> Opens the link.</tt> </tt>
<a name="L2732"></a><tt class="py-lineno">2732</tt> <tt class="py-line"><tt class="py-docstring"></tt> </tt>
<a name="L2733"></a><tt class="py-lineno">2733</tt> <tt class="py-line"><tt class="py-docstring"> In more detail, this moves the local state of the link to the</tt> </tt>
<a name="L2734"></a><tt class="py-lineno">2734</tt> <tt class="py-line"><tt class="py-docstring"> ACTIVE state and triggers an attach frame to be sent to the</tt> </tt>
<a name="L2735"></a><tt class="py-lineno">2735</tt> <tt class="py-line"><tt class="py-docstring"> peer. A link is fully active once both peers have attached it.</tt> </tt>
<a name="L2736"></a><tt class="py-lineno">2736</tt> <tt class="py-line"><tt class="py-docstring"> """</tt> </tt>
<a name="L2737"></a><tt class="py-lineno">2737</tt> <tt class="py-line"> <tt class="py-name">pn_link_open</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_impl</tt><tt class="py-op">)</tt> </tt>
</div><a name="L2738"></a><tt class="py-lineno">2738</tt> <tt class="py-line"> </tt>
<a name="Link.close"></a><div id="Link.close-def"><a name="L2739"></a><tt class="py-lineno">2739</tt> <a class="py-toggle" href="#" id="Link.close-toggle" onclick="return toggle('Link.close');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Link-class.html#close">close</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Link.close-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Link.close-expanded"><a name="L2740"></a><tt class="py-lineno">2740</tt> <tt class="py-line"> <tt class="py-docstring">"""</tt> </tt>
<a name="L2741"></a><tt class="py-lineno">2741</tt> <tt class="py-line"><tt class="py-docstring"> Closes the link.</tt> </tt>
<a name="L2742"></a><tt class="py-lineno">2742</tt> <tt class="py-line"><tt class="py-docstring"></tt> </tt>
<a name="L2743"></a><tt class="py-lineno">2743</tt> <tt class="py-line"><tt class="py-docstring"> In more detail, this moves the local state of the link to the</tt> </tt>
<a name="L2744"></a><tt class="py-lineno">2744</tt> <tt class="py-line"><tt class="py-docstring"> CLOSED state and triggers an detach frame (with the closed flag</tt> </tt>
<a name="L2745"></a><tt class="py-lineno">2745</tt> <tt class="py-line"><tt class="py-docstring"> set) to be sent to the peer. A link is fully closed once both</tt> </tt>
<a name="L2746"></a><tt class="py-lineno">2746</tt> <tt class="py-line"><tt class="py-docstring"> peers have detached it.</tt> </tt>
<a name="L2747"></a><tt class="py-lineno">2747</tt> <tt class="py-line"><tt class="py-docstring"> """</tt> </tt>
<a name="L2748"></a><tt class="py-lineno">2748</tt> <tt class="py-line"> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_update_cond</tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L2749"></a><tt class="py-lineno">2749</tt> <tt class="py-line"> <tt class="py-name">pn_link_close</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_impl</tt><tt class="py-op">)</tt> </tt>
</div><a name="L2750"></a><tt class="py-lineno">2750</tt> <tt class="py-line"> </tt>
<a name="L2751"></a><tt class="py-lineno">2751</tt> <tt class="py-line"> <tt class="py-decorator">@</tt><tt class="py-decorator">property</tt> </tt>
<a name="Link.state"></a><div id="Link.state-def"><a name="L2752"></a><tt class="py-lineno">2752</tt> <a class="py-toggle" href="#" id="Link.state-toggle" onclick="return toggle('Link.state');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Link-class.html#state">state</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Link.state-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Link.state-expanded"><a name="L2753"></a><tt class="py-lineno">2753</tt> <tt class="py-line"> <tt class="py-docstring">"""</tt> </tt>
<a name="L2754"></a><tt class="py-lineno">2754</tt> <tt class="py-line"><tt class="py-docstring"> The state of the link as a bit field. The state has a local</tt> </tt>
<a name="L2755"></a><tt class="py-lineno">2755</tt> <tt class="py-line"><tt class="py-docstring"> and a remote component. Each of these can be in one of three</tt> </tt>
<a name="L2756"></a><tt class="py-lineno">2756</tt> <tt class="py-line"><tt class="py-docstring"> states: UNINIT, ACTIVE or CLOSED. These can be tested by masking</tt> </tt>
<a name="L2757"></a><tt class="py-lineno">2757</tt> <tt class="py-line"><tt class="py-docstring"> against LOCAL_UNINIT, LOCAL_ACTIVE, LOCAL_CLOSED, REMOTE_UNINIT,</tt> </tt>
<a name="L2758"></a><tt class="py-lineno">2758</tt> <tt class="py-line"><tt class="py-docstring"> REMOTE_ACTIVE and REMOTE_CLOSED.</tt> </tt>
<a name="L2759"></a><tt class="py-lineno">2759</tt> <tt class="py-line"><tt class="py-docstring"> """</tt> </tt>
<a name="L2760"></a><tt class="py-lineno">2760</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt class="py-name">pn_link_state</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_impl</tt><tt class="py-op">)</tt> </tt>
</div><a name="L2761"></a><tt class="py-lineno">2761</tt> <tt class="py-line"> </tt>
<a name="L2762"></a><tt class="py-lineno">2762</tt> <tt class="py-line"> <tt class="py-decorator">@</tt><tt class="py-decorator">property</tt> </tt>
<a name="Link.source"></a><div id="Link.source-def"><a name="L2763"></a><tt class="py-lineno">2763</tt> <a class="py-toggle" href="#" id="Link.source-toggle" onclick="return toggle('Link.source');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Link-class.html#source">source</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Link.source-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Link.source-expanded"><a name="L2764"></a><tt class="py-lineno">2764</tt> <tt class="py-line"> <tt class="py-docstring">"""The source of the link as described by the local peer."""</tt> </tt>
<a name="L2765"></a><tt class="py-lineno">2765</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt id="link-638" class="py-name" targets="Class proton.Terminus=proton.Terminus-class.html"><a title="proton.Terminus" class="py-name" href="#" onclick="return doclink('link-638', 'Terminus', 'link-638');">Terminus</a></tt><tt class="py-op">(</tt><tt class="py-name">pn_link_source</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_impl</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
</div><a name="L2766"></a><tt class="py-lineno">2766</tt> <tt class="py-line"> </tt>
<a name="L2767"></a><tt class="py-lineno">2767</tt> <tt class="py-line"> <tt class="py-decorator">@</tt><tt class="py-decorator">property</tt> </tt>
<a name="Link.target"></a><div id="Link.target-def"><a name="L2768"></a><tt class="py-lineno">2768</tt> <a class="py-toggle" href="#" id="Link.target-toggle" onclick="return toggle('Link.target');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Link-class.html#target">target</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Link.target-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Link.target-expanded"><a name="L2769"></a><tt class="py-lineno">2769</tt> <tt class="py-line"> <tt class="py-docstring">"""The target of the link as described by the local peer."""</tt> </tt>
<a name="L2770"></a><tt class="py-lineno">2770</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt id="link-639" class="py-name"><a title="proton.Terminus" class="py-name" href="#" onclick="return doclink('link-639', 'Terminus', 'link-638');">Terminus</a></tt><tt class="py-op">(</tt><tt class="py-name">pn_link_target</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_impl</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
</div><a name="L2771"></a><tt class="py-lineno">2771</tt> <tt class="py-line"> </tt>
<a name="L2772"></a><tt class="py-lineno">2772</tt> <tt class="py-line"> <tt class="py-decorator">@</tt><tt class="py-decorator">property</tt> </tt>
<a name="Link.remote_source"></a><div id="Link.remote_source-def"><a name="L2773"></a><tt class="py-lineno">2773</tt> <a class="py-toggle" href="#" id="Link.remote_source-toggle" onclick="return toggle('Link.remote_source');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Link-class.html#remote_source">remote_source</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Link.remote_source-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Link.remote_source-expanded"><a name="L2774"></a><tt class="py-lineno">2774</tt> <tt class="py-line"> <tt class="py-docstring">"""The source of the link as described by the remote peer."""</tt> </tt>
<a name="L2775"></a><tt class="py-lineno">2775</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt id="link-640" class="py-name"><a title="proton.Terminus" class="py-name" href="#" onclick="return doclink('link-640', 'Terminus', 'link-638');">Terminus</a></tt><tt class="py-op">(</tt><tt class="py-name">pn_link_remote_source</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_impl</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
</div><a name="L2776"></a><tt class="py-lineno">2776</tt> <tt class="py-line"> <tt class="py-decorator">@</tt><tt class="py-decorator">property</tt> </tt>
<a name="Link.remote_target"></a><div id="Link.remote_target-def"><a name="L2777"></a><tt class="py-lineno">2777</tt> <a class="py-toggle" href="#" id="Link.remote_target-toggle" onclick="return toggle('Link.remote_target');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Link-class.html#remote_target">remote_target</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Link.remote_target-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Link.remote_target-expanded"><a name="L2778"></a><tt class="py-lineno">2778</tt> <tt class="py-line"> <tt class="py-docstring">"""The target of the link as described by the remote peer."""</tt> </tt>
<a name="L2779"></a><tt class="py-lineno">2779</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt id="link-641" class="py-name"><a title="proton.Terminus" class="py-name" href="#" onclick="return doclink('link-641', 'Terminus', 'link-638');">Terminus</a></tt><tt class="py-op">(</tt><tt class="py-name">pn_link_remote_target</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_impl</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
</div><a name="L2780"></a><tt class="py-lineno">2780</tt> <tt class="py-line"> </tt>
<a name="L2781"></a><tt class="py-lineno">2781</tt> <tt class="py-line"> <tt class="py-decorator">@</tt><tt class="py-decorator">property</tt> </tt>
<a name="Link.session"></a><div id="Link.session-def"><a name="L2782"></a><tt class="py-lineno">2782</tt> <a class="py-toggle" href="#" id="Link.session-toggle" onclick="return toggle('Link.session');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Link-class.html#session">session</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Link.session-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Link.session-expanded"><a name="L2783"></a><tt class="py-lineno">2783</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt id="link-642" class="py-name"><a title="proton.Session" class="py-name" href="#" onclick="return doclink('link-642', 'Session', 'link-602');">Session</a></tt><tt class="py-op">.</tt><tt id="link-643" class="py-name"><a title="proton.Connection.wrap
proton.Delivery.wrap
proton.Event.wrap
proton.Link.wrap
proton.Session.wrap
proton.Transport.wrap
proton.reactor.Reactor.wrap
proton.reactor.Task.wrap" class="py-name" href="#" onclick="return doclink('link-643', 'wrap', 'link-88');">wrap</a></tt><tt class="py-op">(</tt><tt class="py-name">pn_link_session</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_impl</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
</div><a name="L2784"></a><tt class="py-lineno">2784</tt> <tt class="py-line"> </tt>
<a name="L2785"></a><tt class="py-lineno">2785</tt> <tt class="py-line"> <tt class="py-decorator">@</tt><tt class="py-decorator">property</tt> </tt>
<a name="Link.connection"></a><div id="Link.connection-def"><a name="L2786"></a><tt class="py-lineno">2786</tt> <a class="py-toggle" href="#" id="Link.connection-toggle" onclick="return toggle('Link.connection');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Link-class.html#connection">connection</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Link.connection-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Link.connection-expanded"><a name="L2787"></a><tt class="py-lineno">2787</tt> <tt class="py-line"> <tt class="py-docstring">"""The connection on which this link was attached."""</tt> </tt>
<a name="L2788"></a><tt class="py-lineno">2788</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-644" class="py-name" targets="Method proton.Connection.session()=proton.Connection-class.html#session,Variable proton.Delivery.session=proton.Delivery-class.html#session,Variable proton.Event.session=proton.Event-class.html#session,Variable proton.Link.session=proton.Link-class.html#session,Method proton.reactor.SessionPerConnection.session()=proton.reactor.SessionPerConnection-class.html#session"><a title="proton.Connection.session
proton.Delivery.session
proton.Event.session
proton.Link.session
proton.reactor.SessionPerConnection.session" class="py-name" href="#" onclick="return doclink('link-644', 'session', 'link-644');">session</a></tt><tt class="py-op">.</tt><tt id="link-645" class="py-name"><a title="proton.Connection.connection
proton.Delivery.connection
proton.Event.connection
proton.Link.connection
proton.Session.connection
proton.Transport.connection
proton.reactor.Reactor.connection" class="py-name" href="#" onclick="return doclink('link-645', 'connection', 'link-545');">connection</a></tt> </tt>
</div><a name="L2789"></a><tt class="py-lineno">2789</tt> <tt class="py-line"> </tt>
<a name="Link.delivery"></a><div id="Link.delivery-def"><a name="L2790"></a><tt class="py-lineno">2790</tt> <a class="py-toggle" href="#" id="Link.delivery-toggle" onclick="return toggle('Link.delivery');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Link-class.html#delivery">delivery</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">tag</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Link.delivery-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Link.delivery-expanded"><a name="L2791"></a><tt class="py-lineno">2791</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt id="link-646" class="py-name"><a title="proton.Delivery" class="py-name" href="#" onclick="return doclink('link-646', 'Delivery', 'link-607');">Delivery</a></tt><tt class="py-op">(</tt><tt class="py-name">pn_delivery</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_impl</tt><tt class="py-op">,</tt> <tt id="link-647" class="py-name"><a title="proton.Delivery.tag" class="py-name" href="#" onclick="return doclink('link-647', 'tag', 'link-211');">tag</a></tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
</div><a name="L2792"></a><tt class="py-lineno">2792</tt> <tt class="py-line"> </tt>
<a name="L2793"></a><tt class="py-lineno">2793</tt> <tt class="py-line"> <tt class="py-decorator">@</tt><tt class="py-decorator">property</tt> </tt>
<a name="Link.current"></a><div id="Link.current-def"><a name="L2794"></a><tt class="py-lineno">2794</tt> <a class="py-toggle" href="#" id="Link.current-toggle" onclick="return toggle('Link.current');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Link-class.html#current">current</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Link.current-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Link.current-expanded"><a name="L2795"></a><tt class="py-lineno">2795</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt id="link-648" class="py-name"><a title="proton.Delivery" class="py-name" href="#" onclick="return doclink('link-648', 'Delivery', 'link-607');">Delivery</a></tt><tt class="py-op">.</tt><tt id="link-649" class="py-name"><a title="proton.Connection.wrap
proton.Delivery.wrap
proton.Event.wrap
proton.Link.wrap
proton.Session.wrap
proton.Transport.wrap
proton.reactor.Reactor.wrap
proton.reactor.Task.wrap" class="py-name" href="#" onclick="return doclink('link-649', 'wrap', 'link-88');">wrap</a></tt><tt class="py-op">(</tt><tt class="py-name">pn_link_current</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_impl</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
</div><a name="L2796"></a><tt class="py-lineno">2796</tt> <tt class="py-line"> </tt>
<a name="Link.advance"></a><div id="Link.advance-def"><a name="L2797"></a><tt class="py-lineno">2797</tt> <a class="py-toggle" href="#" id="Link.advance-toggle" onclick="return toggle('Link.advance');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Link-class.html#advance">advance</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Link.advance-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Link.advance-expanded"><a name="L2798"></a><tt class="py-lineno">2798</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt class="py-name">pn_link_advance</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_impl</tt><tt class="py-op">)</tt> </tt>
</div><a name="L2799"></a><tt class="py-lineno">2799</tt> <tt class="py-line"> </tt>
<a name="L2800"></a><tt class="py-lineno">2800</tt> <tt class="py-line"> <tt class="py-decorator">@</tt><tt class="py-decorator">property</tt> </tt>
<a name="Link.unsettled"></a><div id="Link.unsettled-def"><a name="L2801"></a><tt class="py-lineno">2801</tt> <a class="py-toggle" href="#" id="Link.unsettled-toggle" onclick="return toggle('Link.unsettled');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Link-class.html#unsettled">unsettled</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Link.unsettled-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Link.unsettled-expanded"><a name="L2802"></a><tt class="py-lineno">2802</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt class="py-name">pn_link_unsettled</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_impl</tt><tt class="py-op">)</tt> </tt>
</div><a name="L2803"></a><tt class="py-lineno">2803</tt> <tt class="py-line"> </tt>
<a name="L2804"></a><tt class="py-lineno">2804</tt> <tt class="py-line"> <tt class="py-decorator">@</tt><tt class="py-decorator">property</tt> </tt>
<a name="Link.credit"></a><div id="Link.credit-def"><a name="L2805"></a><tt class="py-lineno">2805</tt> <a class="py-toggle" href="#" id="Link.credit-toggle" onclick="return toggle('Link.credit');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Link-class.html#credit">credit</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Link.credit-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Link.credit-expanded"><a name="L2806"></a><tt class="py-lineno">2806</tt> <tt class="py-line"> <tt class="py-docstring">"""The amount of oustanding credit on this link."""</tt> </tt>
<a name="L2807"></a><tt class="py-lineno">2807</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt class="py-name">pn_link_credit</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_impl</tt><tt class="py-op">)</tt> </tt>
</div><a name="L2808"></a><tt class="py-lineno">2808</tt> <tt class="py-line"> </tt>
<a name="L2809"></a><tt class="py-lineno">2809</tt> <tt class="py-line"> <tt class="py-decorator">@</tt><tt class="py-decorator">property</tt> </tt>
<a name="Link.available"></a><div id="Link.available-def"><a name="L2810"></a><tt class="py-lineno">2810</tt> <a class="py-toggle" href="#" id="Link.available-toggle" onclick="return toggle('Link.available');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Link-class.html#available">available</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Link.available-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Link.available-expanded"><a name="L2811"></a><tt class="py-lineno">2811</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt class="py-name">pn_link_available</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_impl</tt><tt class="py-op">)</tt> </tt>
</div><a name="L2812"></a><tt class="py-lineno">2812</tt> <tt class="py-line"> </tt>
<a name="L2813"></a><tt class="py-lineno">2813</tt> <tt class="py-line"> <tt class="py-decorator">@</tt><tt class="py-decorator">property</tt> </tt>
<a name="Link.queued"></a><div id="Link.queued-def"><a name="L2814"></a><tt class="py-lineno">2814</tt> <a class="py-toggle" href="#" id="Link.queued-toggle" onclick="return toggle('Link.queued');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Link-class.html#queued">queued</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Link.queued-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Link.queued-expanded"><a name="L2815"></a><tt class="py-lineno">2815</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt class="py-name">pn_link_queued</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_impl</tt><tt class="py-op">)</tt> </tt>
</div><a name="L2816"></a><tt class="py-lineno">2816</tt> <tt class="py-line"> </tt>
<a name="Link.next"></a><div id="Link.next-def"><a name="L2817"></a><tt class="py-lineno">2817</tt> <a class="py-toggle" href="#" id="Link.next-toggle" onclick="return toggle('Link.next');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Link-class.html#next">next</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">mask</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Link.next-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Link.next-expanded"><a name="L2818"></a><tt class="py-lineno">2818</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt id="link-650" class="py-name"><a title="proton.Link" class="py-name" href="#" onclick="return doclink('link-650', 'Link', 'link-221');">Link</a></tt><tt class="py-op">.</tt><tt id="link-651" class="py-name"><a title="proton.Connection.wrap
proton.Delivery.wrap
proton.Event.wrap
proton.Link.wrap
proton.Session.wrap
proton.Transport.wrap
proton.reactor.Reactor.wrap
proton.reactor.Task.wrap" class="py-name" href="#" onclick="return doclink('link-651', 'wrap', 'link-88');">wrap</a></tt><tt class="py-op">(</tt><tt class="py-name">pn_link_next</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_impl</tt><tt class="py-op">,</tt> <tt class="py-name">mask</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
</div><a name="L2819"></a><tt class="py-lineno">2819</tt> <tt class="py-line"> </tt>
<a name="L2820"></a><tt class="py-lineno">2820</tt> <tt class="py-line"> <tt class="py-decorator">@</tt><tt class="py-decorator">property</tt> </tt>
<a name="Link.name"></a><div id="Link.name-def"><a name="L2821"></a><tt class="py-lineno">2821</tt> <a class="py-toggle" href="#" id="Link.name-toggle" onclick="return toggle('Link.name');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Link-class.html#name">name</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Link.name-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Link.name-expanded"><a name="L2822"></a><tt class="py-lineno">2822</tt> <tt class="py-line"> <tt class="py-docstring">"""Returns the name of the link"""</tt> </tt>
<a name="L2823"></a><tt class="py-lineno">2823</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt class="py-name">utf82unicode</tt><tt class="py-op">(</tt><tt class="py-name">pn_link_name</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_impl</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
</div><a name="L2824"></a><tt class="py-lineno">2824</tt> <tt class="py-line"> </tt>
<a name="L2825"></a><tt class="py-lineno">2825</tt> <tt class="py-line"> <tt class="py-decorator">@</tt><tt class="py-decorator">property</tt> </tt>
<a name="Link.is_sender"></a><div id="Link.is_sender-def"><a name="L2826"></a><tt class="py-lineno">2826</tt> <a class="py-toggle" href="#" id="Link.is_sender-toggle" onclick="return toggle('Link.is_sender');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Link-class.html#is_sender">is_sender</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Link.is_sender-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Link.is_sender-expanded"><a name="L2827"></a><tt class="py-lineno">2827</tt> <tt class="py-line"> <tt class="py-docstring">"""Returns true if this link is a sender."""</tt> </tt>
<a name="L2828"></a><tt class="py-lineno">2828</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt class="py-name">pn_link_is_sender</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_impl</tt><tt class="py-op">)</tt> </tt>
</div><a name="L2829"></a><tt class="py-lineno">2829</tt> <tt class="py-line"> </tt>
<a name="L2830"></a><tt class="py-lineno">2830</tt> <tt class="py-line"> <tt class="py-decorator">@</tt><tt class="py-decorator">property</tt> </tt>
<a name="Link.is_receiver"></a><div id="Link.is_receiver-def"><a name="L2831"></a><tt class="py-lineno">2831</tt> <a class="py-toggle" href="#" id="Link.is_receiver-toggle" onclick="return toggle('Link.is_receiver');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Link-class.html#is_receiver">is_receiver</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Link.is_receiver-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Link.is_receiver-expanded"><a name="L2832"></a><tt class="py-lineno">2832</tt> <tt class="py-line"> <tt class="py-docstring">"""Returns true if this link is a receiver."""</tt> </tt>
<a name="L2833"></a><tt class="py-lineno">2833</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt class="py-name">pn_link_is_receiver</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_impl</tt><tt class="py-op">)</tt> </tt>
</div><a name="L2834"></a><tt class="py-lineno">2834</tt> <tt class="py-line"> </tt>
<a name="L2835"></a><tt class="py-lineno">2835</tt> <tt class="py-line"> <tt class="py-decorator">@</tt><tt class="py-decorator">property</tt> </tt>
<a name="Link.remote_snd_settle_mode"></a><div id="Link.remote_snd_settle_mode-def"><a name="L2836"></a><tt class="py-lineno">2836</tt> <a class="py-toggle" href="#" id="Link.remote_snd_settle_mode-toggle" onclick="return toggle('Link.remote_snd_settle_mode');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Link-class.html#remote_snd_settle_mode">remote_snd_settle_mode</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Link.remote_snd_settle_mode-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Link.remote_snd_settle_mode-expanded"><a name="L2837"></a><tt class="py-lineno">2837</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt class="py-name">pn_link_remote_snd_settle_mode</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_impl</tt><tt class="py-op">)</tt> </tt>
</div><a name="L2838"></a><tt class="py-lineno">2838</tt> <tt class="py-line"> </tt>
<a name="L2839"></a><tt class="py-lineno">2839</tt> <tt class="py-line"> <tt class="py-decorator">@</tt><tt class="py-decorator">property</tt> </tt>
<a name="Link.remote_rcv_settle_mode"></a><div id="Link.remote_rcv_settle_mode-def"><a name="L2840"></a><tt class="py-lineno">2840</tt> <a class="py-toggle" href="#" id="Link.remote_rcv_settle_mode-toggle" onclick="return toggle('Link.remote_rcv_settle_mode');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Link-class.html#remote_rcv_settle_mode">remote_rcv_settle_mode</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Link.remote_rcv_settle_mode-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Link.remote_rcv_settle_mode-expanded"><a name="L2841"></a><tt class="py-lineno">2841</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt class="py-name">pn_link_remote_rcv_settle_mode</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_impl</tt><tt class="py-op">)</tt> </tt>
</div><a name="L2842"></a><tt class="py-lineno">2842</tt> <tt class="py-line"> </tt>
<a name="Link._get_snd_settle_mode"></a><div id="Link._get_snd_settle_mode-def"><a name="L2843"></a><tt class="py-lineno">2843</tt> <a class="py-toggle" href="#" id="Link._get_snd_settle_mode-toggle" onclick="return toggle('Link._get_snd_settle_mode');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Link-class.html#_get_snd_settle_mode">_get_snd_settle_mode</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Link._get_snd_settle_mode-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Link._get_snd_settle_mode-expanded"><a name="L2844"></a><tt class="py-lineno">2844</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt class="py-name">pn_link_snd_settle_mode</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_impl</tt><tt class="py-op">)</tt> </tt>
</div><a name="Link._set_snd_settle_mode"></a><div id="Link._set_snd_settle_mode-def"><a name="L2845"></a><tt class="py-lineno">2845</tt> <a class="py-toggle" href="#" id="Link._set_snd_settle_mode-toggle" onclick="return toggle('Link._set_snd_settle_mode');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Link-class.html#_set_snd_settle_mode">_set_snd_settle_mode</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">mode</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Link._set_snd_settle_mode-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Link._set_snd_settle_mode-expanded"><a name="L2846"></a><tt class="py-lineno">2846</tt> <tt class="py-line"> <tt class="py-name">pn_link_set_snd_settle_mode</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_impl</tt><tt class="py-op">,</tt> <tt class="py-name">mode</tt><tt class="py-op">)</tt> </tt>
</div><a name="L2847"></a><tt class="py-lineno">2847</tt> <tt class="py-line"> <tt id="link-652" class="py-name"><a title="proton.Link.snd_settle_mode" class="py-name" href="#" onclick="return doclink('link-652', 'snd_settle_mode', 'link-220');">snd_settle_mode</a></tt> <tt class="py-op">=</tt> <tt class="py-name">property</tt><tt class="py-op">(</tt><tt id="link-653" class="py-name" targets="Method proton.Link._get_snd_settle_mode()=proton.Link-class.html#_get_snd_settle_mode"><a title="proton.Link._get_snd_settle_mode" class="py-name" href="#" onclick="return doclink('link-653', '_get_snd_settle_mode', 'link-653');">_get_snd_settle_mode</a></tt><tt class="py-op">,</tt> <tt id="link-654" class="py-name" targets="Method proton.Link._set_snd_settle_mode()=proton.Link-class.html#_set_snd_settle_mode"><a title="proton.Link._set_snd_settle_mode" class="py-name" href="#" onclick="return doclink('link-654', '_set_snd_settle_mode', 'link-654');">_set_snd_settle_mode</a></tt><tt class="py-op">)</tt> </tt>
<a name="L2848"></a><tt class="py-lineno">2848</tt> <tt class="py-line"> </tt>
<a name="Link._get_rcv_settle_mode"></a><div id="Link._get_rcv_settle_mode-def"><a name="L2849"></a><tt class="py-lineno">2849</tt> <a class="py-toggle" href="#" id="Link._get_rcv_settle_mode-toggle" onclick="return toggle('Link._get_rcv_settle_mode');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Link-class.html#_get_rcv_settle_mode">_get_rcv_settle_mode</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Link._get_rcv_settle_mode-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Link._get_rcv_settle_mode-expanded"><a name="L2850"></a><tt class="py-lineno">2850</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt class="py-name">pn_link_rcv_settle_mode</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_impl</tt><tt class="py-op">)</tt> </tt>
</div><a name="Link._set_rcv_settle_mode"></a><div id="Link._set_rcv_settle_mode-def"><a name="L2851"></a><tt class="py-lineno">2851</tt> <a class="py-toggle" href="#" id="Link._set_rcv_settle_mode-toggle" onclick="return toggle('Link._set_rcv_settle_mode');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Link-class.html#_set_rcv_settle_mode">_set_rcv_settle_mode</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">mode</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Link._set_rcv_settle_mode-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Link._set_rcv_settle_mode-expanded"><a name="L2852"></a><tt class="py-lineno">2852</tt> <tt class="py-line"> <tt class="py-name">pn_link_set_rcv_settle_mode</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_impl</tt><tt class="py-op">,</tt> <tt class="py-name">mode</tt><tt class="py-op">)</tt> </tt>
</div><a name="L2853"></a><tt class="py-lineno">2853</tt> <tt class="py-line"> <tt id="link-655" class="py-name" targets="Variable proton.Link.rcv_settle_mode=proton.Link-class.html#rcv_settle_mode"><a title="proton.Link.rcv_settle_mode" class="py-name" href="#" onclick="return doclink('link-655', 'rcv_settle_mode', 'link-655');">rcv_settle_mode</a></tt> <tt class="py-op">=</tt> <tt class="py-name">property</tt><tt class="py-op">(</tt><tt id="link-656" class="py-name" targets="Method proton.Link._get_rcv_settle_mode()=proton.Link-class.html#_get_rcv_settle_mode"><a title="proton.Link._get_rcv_settle_mode" class="py-name" href="#" onclick="return doclink('link-656', '_get_rcv_settle_mode', 'link-656');">_get_rcv_settle_mode</a></tt><tt class="py-op">,</tt> <tt id="link-657" class="py-name" targets="Method proton.Link._set_rcv_settle_mode()=proton.Link-class.html#_set_rcv_settle_mode"><a title="proton.Link._set_rcv_settle_mode" class="py-name" href="#" onclick="return doclink('link-657', '_set_rcv_settle_mode', 'link-657');">_set_rcv_settle_mode</a></tt><tt class="py-op">)</tt> </tt>
<a name="L2854"></a><tt class="py-lineno">2854</tt> <tt class="py-line"> </tt>
<a name="Link._get_drain"></a><div id="Link._get_drain-def"><a name="L2855"></a><tt class="py-lineno">2855</tt> <a class="py-toggle" href="#" id="Link._get_drain-toggle" onclick="return toggle('Link._get_drain');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Link-class.html#_get_drain">_get_drain</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Link._get_drain-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Link._get_drain-expanded"><a name="L2856"></a><tt class="py-lineno">2856</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt class="py-name">pn_link_get_drain</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_impl</tt><tt class="py-op">)</tt> </tt>
</div><a name="L2857"></a><tt class="py-lineno">2857</tt> <tt class="py-line"> </tt>
<a name="Link._set_drain"></a><div id="Link._set_drain-def"><a name="L2858"></a><tt class="py-lineno">2858</tt> <a class="py-toggle" href="#" id="Link._set_drain-toggle" onclick="return toggle('Link._set_drain');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Link-class.html#_set_drain">_set_drain</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">b</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Link._set_drain-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Link._set_drain-expanded"><a name="L2859"></a><tt class="py-lineno">2859</tt> <tt class="py-line"> <tt class="py-name">pn_link_set_drain</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_impl</tt><tt class="py-op">,</tt> <tt class="py-name">bool</tt><tt class="py-op">(</tt><tt class="py-name">b</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
</div><a name="L2860"></a><tt class="py-lineno">2860</tt> <tt class="py-line"> </tt>
<a name="L2861"></a><tt class="py-lineno">2861</tt> <tt class="py-line"> <tt id="link-658" class="py-name" targets="Variable proton.Link.drain_mode=proton.Link-class.html#drain_mode"><a title="proton.Link.drain_mode" class="py-name" href="#" onclick="return doclink('link-658', 'drain_mode', 'link-658');">drain_mode</a></tt> <tt class="py-op">=</tt> <tt class="py-name">property</tt><tt class="py-op">(</tt><tt id="link-659" class="py-name" targets="Method proton.Link._get_drain()=proton.Link-class.html#_get_drain"><a title="proton.Link._get_drain" class="py-name" href="#" onclick="return doclink('link-659', '_get_drain', 'link-659');">_get_drain</a></tt><tt class="py-op">,</tt> <tt id="link-660" class="py-name" targets="Method proton.Link._set_drain()=proton.Link-class.html#_set_drain"><a title="proton.Link._set_drain" class="py-name" href="#" onclick="return doclink('link-660', '_set_drain', 'link-660');">_set_drain</a></tt><tt class="py-op">)</tt> </tt>
<a name="L2862"></a><tt class="py-lineno">2862</tt> <tt class="py-line"> </tt>
<a name="Link.drained"></a><div id="Link.drained-def"><a name="L2863"></a><tt class="py-lineno">2863</tt> <a class="py-toggle" href="#" id="Link.drained-toggle" onclick="return toggle('Link.drained');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Link-class.html#drained">drained</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Link.drained-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Link.drained-expanded"><a name="L2864"></a><tt class="py-lineno">2864</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt class="py-name">pn_link_drained</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_impl</tt><tt class="py-op">)</tt> </tt>
</div><a name="L2865"></a><tt class="py-lineno">2865</tt> <tt class="py-line"> </tt>
<a name="Link.detach"></a><div id="Link.detach-def"><a name="L2866"></a><tt class="py-lineno">2866</tt> <a class="py-toggle" href="#" id="Link.detach-toggle" onclick="return toggle('Link.detach');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Link-class.html#detach">detach</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Link.detach-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Link.detach-expanded"><a name="L2867"></a><tt class="py-lineno">2867</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt class="py-name">pn_link_detach</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_impl</tt><tt class="py-op">)</tt> </tt>
</div><a name="L2868"></a><tt class="py-lineno">2868</tt> <tt class="py-line"> </tt>
<a name="Link.free"></a><div id="Link.free-def"><a name="L2869"></a><tt class="py-lineno">2869</tt> <a class="py-toggle" href="#" id="Link.free-toggle" onclick="return toggle('Link.free');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Link-class.html#free">free</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Link.free-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Link.free-expanded"><a name="L2870"></a><tt class="py-lineno">2870</tt> <tt class="py-line"> <tt class="py-name">pn_link_free</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_impl</tt><tt class="py-op">)</tt> </tt>
</div></div><a name="L2871"></a><tt class="py-lineno">2871</tt> <tt class="py-line"> </tt>
<a name="Terminus"></a><div id="Terminus-def"><a name="L2872"></a><tt class="py-lineno">2872</tt> <a class="py-toggle" href="#" id="Terminus-toggle" onclick="return toggle('Terminus');">-</a><tt class="py-line"><tt class="py-keyword">class</tt> <a class="py-def-name" href="proton.Terminus-class.html">Terminus</a><tt class="py-op">(</tt><tt class="py-base-class">object</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Terminus-collapsed" style="display:none;" pad="++++" indent="++++"></div><div id="Terminus-expanded"><a name="L2873"></a><tt class="py-lineno">2873</tt> <tt class="py-line"> </tt>
<a name="L2874"></a><tt class="py-lineno">2874</tt> <tt class="py-line"> <tt id="link-661" class="py-name" targets="Variable proton.Terminus.UNSPECIFIED=proton.Terminus-class.html#UNSPECIFIED"><a title="proton.Terminus.UNSPECIFIED" class="py-name" href="#" onclick="return doclink('link-661', 'UNSPECIFIED', 'link-661');">UNSPECIFIED</a></tt> <tt class="py-op">=</tt> <tt class="py-name">PN_UNSPECIFIED</tt> </tt>
<a name="L2875"></a><tt class="py-lineno">2875</tt> <tt class="py-line"> <tt id="link-662" class="py-name" targets="Variable proton.Terminus.SOURCE=proton.Terminus-class.html#SOURCE"><a title="proton.Terminus.SOURCE" class="py-name" href="#" onclick="return doclink('link-662', 'SOURCE', 'link-662');">SOURCE</a></tt> <tt class="py-op">=</tt> <tt class="py-name">PN_SOURCE</tt> </tt>
<a name="L2876"></a><tt class="py-lineno">2876</tt> <tt class="py-line"> <tt id="link-663" class="py-name" targets="Variable proton.Terminus.TARGET=proton.Terminus-class.html#TARGET"><a title="proton.Terminus.TARGET" class="py-name" href="#" onclick="return doclink('link-663', 'TARGET', 'link-663');">TARGET</a></tt> <tt class="py-op">=</tt> <tt class="py-name">PN_TARGET</tt> </tt>
<a name="L2877"></a><tt class="py-lineno">2877</tt> <tt class="py-line"> <tt id="link-664" class="py-name" targets="Variable proton.Terminus.COORDINATOR=proton.Terminus-class.html#COORDINATOR"><a title="proton.Terminus.COORDINATOR" class="py-name" href="#" onclick="return doclink('link-664', 'COORDINATOR', 'link-664');">COORDINATOR</a></tt> <tt class="py-op">=</tt> <tt class="py-name">PN_COORDINATOR</tt> </tt>
<a name="L2878"></a><tt class="py-lineno">2878</tt> <tt class="py-line"> </tt>
<a name="L2879"></a><tt class="py-lineno">2879</tt> <tt class="py-line"> <tt id="link-665" class="py-name" targets="Variable proton.Terminus.NONDURABLE=proton.Terminus-class.html#NONDURABLE"><a title="proton.Terminus.NONDURABLE" class="py-name" href="#" onclick="return doclink('link-665', 'NONDURABLE', 'link-665');">NONDURABLE</a></tt> <tt class="py-op">=</tt> <tt class="py-name">PN_NONDURABLE</tt> </tt>
<a name="L2880"></a><tt class="py-lineno">2880</tt> <tt class="py-line"> <tt id="link-666" class="py-name" targets="Variable proton.Terminus.CONFIGURATION=proton.Terminus-class.html#CONFIGURATION"><a title="proton.Terminus.CONFIGURATION" class="py-name" href="#" onclick="return doclink('link-666', 'CONFIGURATION', 'link-666');">CONFIGURATION</a></tt> <tt class="py-op">=</tt> <tt class="py-name">PN_CONFIGURATION</tt> </tt>
<a name="L2881"></a><tt class="py-lineno">2881</tt> <tt class="py-line"> <tt id="link-667" class="py-name" targets="Variable proton.Terminus.DELIVERIES=proton.Terminus-class.html#DELIVERIES"><a title="proton.Terminus.DELIVERIES" class="py-name" href="#" onclick="return doclink('link-667', 'DELIVERIES', 'link-667');">DELIVERIES</a></tt> <tt class="py-op">=</tt> <tt class="py-name">PN_DELIVERIES</tt> </tt>
<a name="L2882"></a><tt class="py-lineno">2882</tt> <tt class="py-line"> </tt>
<a name="L2883"></a><tt class="py-lineno">2883</tt> <tt class="py-line"> <tt id="link-668" class="py-name" targets="Variable proton.Terminus.DIST_MODE_UNSPECIFIED=proton.Terminus-class.html#DIST_MODE_UNSPECIFIED"><a title="proton.Terminus.DIST_MODE_UNSPECIFIED" class="py-name" href="#" onclick="return doclink('link-668', 'DIST_MODE_UNSPECIFIED', 'link-668');">DIST_MODE_UNSPECIFIED</a></tt> <tt class="py-op">=</tt> <tt class="py-name">PN_DIST_MODE_UNSPECIFIED</tt> </tt>
<a name="L2884"></a><tt class="py-lineno">2884</tt> <tt class="py-line"> <tt id="link-669" class="py-name" targets="Variable proton.Terminus.DIST_MODE_COPY=proton.Terminus-class.html#DIST_MODE_COPY"><a title="proton.Terminus.DIST_MODE_COPY" class="py-name" href="#" onclick="return doclink('link-669', 'DIST_MODE_COPY', 'link-669');">DIST_MODE_COPY</a></tt> <tt class="py-op">=</tt> <tt class="py-name">PN_DIST_MODE_COPY</tt> </tt>
<a name="L2885"></a><tt class="py-lineno">2885</tt> <tt class="py-line"> <tt id="link-670" class="py-name" targets="Variable proton.Terminus.DIST_MODE_MOVE=proton.Terminus-class.html#DIST_MODE_MOVE"><a title="proton.Terminus.DIST_MODE_MOVE" class="py-name" href="#" onclick="return doclink('link-670', 'DIST_MODE_MOVE', 'link-670');">DIST_MODE_MOVE</a></tt> <tt class="py-op">=</tt> <tt class="py-name">PN_DIST_MODE_MOVE</tt> </tt>
<a name="L2886"></a><tt class="py-lineno">2886</tt> <tt class="py-line"> </tt>
<a name="L2887"></a><tt class="py-lineno">2887</tt> <tt class="py-line"> <tt id="link-671" class="py-name" targets="Variable proton.Terminus.EXPIRE_WITH_LINK=proton.Terminus-class.html#EXPIRE_WITH_LINK"><a title="proton.Terminus.EXPIRE_WITH_LINK" class="py-name" href="#" onclick="return doclink('link-671', 'EXPIRE_WITH_LINK', 'link-671');">EXPIRE_WITH_LINK</a></tt> <tt class="py-op">=</tt> <tt class="py-name">PN_EXPIRE_WITH_LINK</tt> </tt>
<a name="L2888"></a><tt class="py-lineno">2888</tt> <tt class="py-line"> <tt id="link-672" class="py-name" targets="Variable proton.Terminus.EXPIRE_WITH_SESSION=proton.Terminus-class.html#EXPIRE_WITH_SESSION"><a title="proton.Terminus.EXPIRE_WITH_SESSION" class="py-name" href="#" onclick="return doclink('link-672', 'EXPIRE_WITH_SESSION', 'link-672');">EXPIRE_WITH_SESSION</a></tt> <tt class="py-op">=</tt> <tt class="py-name">PN_EXPIRE_WITH_SESSION</tt> </tt>
<a name="L2889"></a><tt class="py-lineno">2889</tt> <tt class="py-line"> <tt id="link-673" class="py-name" targets="Variable proton.Terminus.EXPIRE_WITH_CONNECTION=proton.Terminus-class.html#EXPIRE_WITH_CONNECTION"><a title="proton.Terminus.EXPIRE_WITH_CONNECTION" class="py-name" href="#" onclick="return doclink('link-673', 'EXPIRE_WITH_CONNECTION', 'link-673');">EXPIRE_WITH_CONNECTION</a></tt> <tt class="py-op">=</tt> <tt class="py-name">PN_EXPIRE_WITH_CONNECTION</tt> </tt>
<a name="L2890"></a><tt class="py-lineno">2890</tt> <tt class="py-line"> <tt id="link-674" class="py-name" targets="Variable proton.Terminus.EXPIRE_NEVER=proton.Terminus-class.html#EXPIRE_NEVER"><a title="proton.Terminus.EXPIRE_NEVER" class="py-name" href="#" onclick="return doclink('link-674', 'EXPIRE_NEVER', 'link-674');">EXPIRE_NEVER</a></tt> <tt class="py-op">=</tt> <tt class="py-name">PN_EXPIRE_NEVER</tt> </tt>
<a name="L2891"></a><tt class="py-lineno">2891</tt> <tt class="py-line"> </tt>
<a name="Terminus.__init__"></a><div id="Terminus.__init__-def"><a name="L2892"></a><tt class="py-lineno">2892</tt> <a class="py-toggle" href="#" id="Terminus.__init__-toggle" onclick="return toggle('Terminus.__init__');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Terminus-class.html#__init__">__init__</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">impl</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Terminus.__init__-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Terminus.__init__-expanded"><a name="L2893"></a><tt class="py-lineno">2893</tt> <tt class="py-line"> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_impl</tt> <tt class="py-op">=</tt> <tt class="py-name">impl</tt> </tt>
</div><a name="L2894"></a><tt class="py-lineno">2894</tt> <tt class="py-line"> </tt>
<a name="Terminus._check"></a><div id="Terminus._check-def"><a name="L2895"></a><tt class="py-lineno">2895</tt> <a class="py-toggle" href="#" id="Terminus._check-toggle" onclick="return toggle('Terminus._check');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Terminus-class.html#_check">_check</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">err</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Terminus._check-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Terminus._check-expanded"><a name="L2896"></a><tt class="py-lineno">2896</tt> <tt class="py-line"> <tt class="py-keyword">if</tt> <tt class="py-name">err</tt> <tt class="py-op"><</tt> <tt class="py-number">0</tt><tt class="py-op">:</tt> </tt>
<a name="L2897"></a><tt class="py-lineno">2897</tt> <tt class="py-line"> <tt class="py-name">exc</tt> <tt class="py-op">=</tt> <tt id="link-675" class="py-name"><a title="proton.EXCEPTIONS" class="py-name" href="#" onclick="return doclink('link-675', 'EXCEPTIONS', 'link-28');">EXCEPTIONS</a></tt><tt class="py-op">.</tt><tt id="link-676" class="py-name"><a title="proton.Messenger.get" class="py-name" href="#" onclick="return doclink('link-676', 'get', 'link-50');">get</a></tt><tt class="py-op">(</tt><tt class="py-name">err</tt><tt class="py-op">,</tt> <tt class="py-name">LinkException</tt><tt class="py-op">)</tt> </tt>
<a name="L2898"></a><tt class="py-lineno">2898</tt> <tt class="py-line"> <tt class="py-keyword">raise</tt> <tt class="py-name">exc</tt><tt class="py-op">(</tt><tt class="py-string">"[%s]"</tt> <tt class="py-op">%</tt> <tt class="py-name">err</tt><tt class="py-op">)</tt> </tt>
<a name="L2899"></a><tt class="py-lineno">2899</tt> <tt class="py-line"> <tt class="py-keyword">else</tt><tt class="py-op">:</tt> </tt>
<a name="L2900"></a><tt class="py-lineno">2900</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt class="py-name">err</tt> </tt>
</div><a name="L2901"></a><tt class="py-lineno">2901</tt> <tt class="py-line"> </tt>
<a name="Terminus._get_type"></a><div id="Terminus._get_type-def"><a name="L2902"></a><tt class="py-lineno">2902</tt> <a class="py-toggle" href="#" id="Terminus._get_type-toggle" onclick="return toggle('Terminus._get_type');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Terminus-class.html#_get_type">_get_type</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Terminus._get_type-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Terminus._get_type-expanded"><a name="L2903"></a><tt class="py-lineno">2903</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt class="py-name">pn_terminus_get_type</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_impl</tt><tt class="py-op">)</tt> </tt>
</div><a name="Terminus._set_type"></a><div id="Terminus._set_type-def"><a name="L2904"></a><tt class="py-lineno">2904</tt> <a class="py-toggle" href="#" id="Terminus._set_type-toggle" onclick="return toggle('Terminus._set_type');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Terminus-class.html#_set_type">_set_type</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">type</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Terminus._set_type-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Terminus._set_type-expanded"><a name="L2905"></a><tt class="py-lineno">2905</tt> <tt class="py-line"> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_check</tt><tt class="py-op">(</tt><tt class="py-name">pn_terminus_set_type</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_impl</tt><tt class="py-op">,</tt> <tt id="link-677" class="py-name"><a title="proton.Data.type
proton.Disposition.type
proton.Terminus.type" class="py-name" href="#" onclick="return doclink('link-677', 'type', 'link-152');">type</a></tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
</div><a name="L2906"></a><tt class="py-lineno">2906</tt> <tt class="py-line"> <tt id="link-678" class="py-name"><a title="proton.Data.type
proton.Disposition.type
proton.Terminus.type" class="py-name" href="#" onclick="return doclink('link-678', 'type', 'link-152');">type</a></tt> <tt class="py-op">=</tt> <tt class="py-name">property</tt><tt class="py-op">(</tt><tt id="link-679" class="py-name" targets="Method proton.Terminus._get_type()=proton.Terminus-class.html#_get_type"><a title="proton.Terminus._get_type" class="py-name" href="#" onclick="return doclink('link-679', '_get_type', 'link-679');">_get_type</a></tt><tt class="py-op">,</tt> <tt id="link-680" class="py-name" targets="Method proton.Terminus._set_type()=proton.Terminus-class.html#_set_type"><a title="proton.Terminus._set_type" class="py-name" href="#" onclick="return doclink('link-680', '_set_type', 'link-680');">_set_type</a></tt><tt class="py-op">)</tt> </tt>
<a name="L2907"></a><tt class="py-lineno">2907</tt> <tt class="py-line"> </tt>
<a name="Terminus._get_address"></a><div id="Terminus._get_address-def"><a name="L2908"></a><tt class="py-lineno">2908</tt> <a class="py-toggle" href="#" id="Terminus._get_address-toggle" onclick="return toggle('Terminus._get_address');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Terminus-class.html#_get_address">_get_address</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Terminus._get_address-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Terminus._get_address-expanded"><a name="L2909"></a><tt class="py-lineno">2909</tt> <tt class="py-line"> <tt class="py-docstring">"""The address that identifies the source or target node"""</tt> </tt>
<a name="L2910"></a><tt class="py-lineno">2910</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt class="py-name">utf82unicode</tt><tt class="py-op">(</tt><tt class="py-name">pn_terminus_get_address</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_impl</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
</div><a name="Terminus._set_address"></a><div id="Terminus._set_address-def"><a name="L2911"></a><tt class="py-lineno">2911</tt> <a class="py-toggle" href="#" id="Terminus._set_address-toggle" onclick="return toggle('Terminus._set_address');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Terminus-class.html#_set_address">_set_address</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">address</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Terminus._set_address-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Terminus._set_address-expanded"><a name="L2912"></a><tt class="py-lineno">2912</tt> <tt class="py-line"> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_check</tt><tt class="py-op">(</tt><tt class="py-name">pn_terminus_set_address</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_impl</tt><tt class="py-op">,</tt> <tt class="py-name">unicode2utf8</tt><tt class="py-op">(</tt><tt id="link-681" class="py-name"><a title="proton.Message.address
proton.Terminus.address" class="py-name" href="#" onclick="return doclink('link-681', 'address', 'link-86');">address</a></tt><tt class="py-op">)</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
</div><a name="L2913"></a><tt class="py-lineno">2913</tt> <tt class="py-line"> <tt id="link-682" class="py-name"><a title="proton.Message.address
proton.Terminus.address" class="py-name" href="#" onclick="return doclink('link-682', 'address', 'link-86');">address</a></tt> <tt class="py-op">=</tt> <tt class="py-name">property</tt><tt class="py-op">(</tt><tt id="link-683" class="py-name"><a title="proton.Message._get_address
proton.Terminus._get_address" class="py-name" href="#" onclick="return doclink('link-683', '_get_address', 'link-165');">_get_address</a></tt><tt class="py-op">,</tt> <tt id="link-684" class="py-name"><a title="proton.Message._set_address
proton.Terminus._set_address" class="py-name" href="#" onclick="return doclink('link-684', '_set_address', 'link-166');">_set_address</a></tt><tt class="py-op">)</tt> </tt>
<a name="L2914"></a><tt class="py-lineno">2914</tt> <tt class="py-line"> </tt>
<a name="Terminus._get_durability"></a><div id="Terminus._get_durability-def"><a name="L2915"></a><tt class="py-lineno">2915</tt> <a class="py-toggle" href="#" id="Terminus._get_durability-toggle" onclick="return toggle('Terminus._get_durability');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Terminus-class.html#_get_durability">_get_durability</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Terminus._get_durability-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Terminus._get_durability-expanded"><a name="L2916"></a><tt class="py-lineno">2916</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt class="py-name">pn_terminus_get_durability</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_impl</tt><tt class="py-op">)</tt> </tt>
</div><a name="Terminus._set_durability"></a><div id="Terminus._set_durability-def"><a name="L2917"></a><tt class="py-lineno">2917</tt> <a class="py-toggle" href="#" id="Terminus._set_durability-toggle" onclick="return toggle('Terminus._set_durability');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Terminus-class.html#_set_durability">_set_durability</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">seconds</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Terminus._set_durability-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Terminus._set_durability-expanded"><a name="L2918"></a><tt class="py-lineno">2918</tt> <tt class="py-line"> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_check</tt><tt class="py-op">(</tt><tt class="py-name">pn_terminus_set_durability</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_impl</tt><tt class="py-op">,</tt> <tt class="py-name">seconds</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
</div><a name="L2919"></a><tt class="py-lineno">2919</tt> <tt class="py-line"> <tt id="link-685" class="py-name" targets="Variable proton.Terminus.durability=proton.Terminus-class.html#durability"><a title="proton.Terminus.durability" class="py-name" href="#" onclick="return doclink('link-685', 'durability', 'link-685');">durability</a></tt> <tt class="py-op">=</tt> <tt class="py-name">property</tt><tt class="py-op">(</tt><tt id="link-686" class="py-name" targets="Method proton.Terminus._get_durability()=proton.Terminus-class.html#_get_durability"><a title="proton.Terminus._get_durability" class="py-name" href="#" onclick="return doclink('link-686', '_get_durability', 'link-686');">_get_durability</a></tt><tt class="py-op">,</tt> <tt id="link-687" class="py-name" targets="Method proton.Terminus._set_durability()=proton.Terminus-class.html#_set_durability"><a title="proton.Terminus._set_durability" class="py-name" href="#" onclick="return doclink('link-687', '_set_durability', 'link-687');">_set_durability</a></tt><tt class="py-op">)</tt> </tt>
<a name="L2920"></a><tt class="py-lineno">2920</tt> <tt class="py-line"> </tt>
<a name="Terminus._get_expiry_policy"></a><div id="Terminus._get_expiry_policy-def"><a name="L2921"></a><tt class="py-lineno">2921</tt> <a class="py-toggle" href="#" id="Terminus._get_expiry_policy-toggle" onclick="return toggle('Terminus._get_expiry_policy');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Terminus-class.html#_get_expiry_policy">_get_expiry_policy</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Terminus._get_expiry_policy-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Terminus._get_expiry_policy-expanded"><a name="L2922"></a><tt class="py-lineno">2922</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt class="py-name">pn_terminus_get_expiry_policy</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_impl</tt><tt class="py-op">)</tt> </tt>
</div><a name="Terminus._set_expiry_policy"></a><div id="Terminus._set_expiry_policy-def"><a name="L2923"></a><tt class="py-lineno">2923</tt> <a class="py-toggle" href="#" id="Terminus._set_expiry_policy-toggle" onclick="return toggle('Terminus._set_expiry_policy');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Terminus-class.html#_set_expiry_policy">_set_expiry_policy</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">seconds</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Terminus._set_expiry_policy-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Terminus._set_expiry_policy-expanded"><a name="L2924"></a><tt class="py-lineno">2924</tt> <tt class="py-line"> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_check</tt><tt class="py-op">(</tt><tt class="py-name">pn_terminus_set_expiry_policy</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_impl</tt><tt class="py-op">,</tt> <tt class="py-name">seconds</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
</div><a name="L2925"></a><tt class="py-lineno">2925</tt> <tt class="py-line"> <tt id="link-688" class="py-name" targets="Variable proton.Terminus.expiry_policy=proton.Terminus-class.html#expiry_policy"><a title="proton.Terminus.expiry_policy" class="py-name" href="#" onclick="return doclink('link-688', 'expiry_policy', 'link-688');">expiry_policy</a></tt> <tt class="py-op">=</tt> <tt class="py-name">property</tt><tt class="py-op">(</tt><tt id="link-689" class="py-name" targets="Method proton.Terminus._get_expiry_policy()=proton.Terminus-class.html#_get_expiry_policy"><a title="proton.Terminus._get_expiry_policy" class="py-name" href="#" onclick="return doclink('link-689', '_get_expiry_policy', 'link-689');">_get_expiry_policy</a></tt><tt class="py-op">,</tt> <tt id="link-690" class="py-name" targets="Method proton.Terminus._set_expiry_policy()=proton.Terminus-class.html#_set_expiry_policy"><a title="proton.Terminus._set_expiry_policy" class="py-name" href="#" onclick="return doclink('link-690', '_set_expiry_policy', 'link-690');">_set_expiry_policy</a></tt><tt class="py-op">)</tt> </tt>
<a name="L2926"></a><tt class="py-lineno">2926</tt> <tt class="py-line"> </tt>
<a name="Terminus._get_timeout"></a><div id="Terminus._get_timeout-def"><a name="L2927"></a><tt class="py-lineno">2927</tt> <a class="py-toggle" href="#" id="Terminus._get_timeout-toggle" onclick="return toggle('Terminus._get_timeout');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Terminus-class.html#_get_timeout">_get_timeout</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Terminus._get_timeout-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Terminus._get_timeout-expanded"><a name="L2928"></a><tt class="py-lineno">2928</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt class="py-name">pn_terminus_get_timeout</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_impl</tt><tt class="py-op">)</tt> </tt>
</div><a name="Terminus._set_timeout"></a><div id="Terminus._set_timeout-def"><a name="L2929"></a><tt class="py-lineno">2929</tt> <a class="py-toggle" href="#" id="Terminus._set_timeout-toggle" onclick="return toggle('Terminus._set_timeout');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Terminus-class.html#_set_timeout">_set_timeout</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">seconds</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Terminus._set_timeout-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Terminus._set_timeout-expanded"><a name="L2930"></a><tt class="py-lineno">2930</tt> <tt class="py-line"> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_check</tt><tt class="py-op">(</tt><tt class="py-name">pn_terminus_set_timeout</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_impl</tt><tt class="py-op">,</tt> <tt class="py-name">seconds</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
</div><a name="L2931"></a><tt class="py-lineno">2931</tt> <tt class="py-line"> <tt id="link-691" class="py-name"><a title="proton.Messenger.timeout
proton.Terminus.timeout
proton.reactor.Reactor.timeout" class="py-name" href="#" onclick="return doclink('link-691', 'timeout', 'link-64');">timeout</a></tt> <tt class="py-op">=</tt> <tt class="py-name">property</tt><tt class="py-op">(</tt><tt id="link-692" class="py-name"><a title="proton.Messenger._get_timeout
proton.Terminus._get_timeout
proton.reactor.Reactor._get_timeout" class="py-name" href="#" onclick="return doclink('link-692', '_get_timeout', 'link-65');">_get_timeout</a></tt><tt class="py-op">,</tt> <tt id="link-693" class="py-name"><a title="proton.Messenger._set_timeout
proton.Terminus._set_timeout
proton.reactor.Reactor._set_timeout" class="py-name" href="#" onclick="return doclink('link-693', '_set_timeout', 'link-66');">_set_timeout</a></tt><tt class="py-op">)</tt> </tt>
<a name="L2932"></a><tt class="py-lineno">2932</tt> <tt class="py-line"> </tt>
<a name="Terminus._is_dynamic"></a><div id="Terminus._is_dynamic-def"><a name="L2933"></a><tt class="py-lineno">2933</tt> <a class="py-toggle" href="#" id="Terminus._is_dynamic-toggle" onclick="return toggle('Terminus._is_dynamic');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Terminus-class.html#_is_dynamic">_is_dynamic</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Terminus._is_dynamic-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Terminus._is_dynamic-expanded"><a name="L2934"></a><tt class="py-lineno">2934</tt> <tt class="py-line"> <tt class="py-docstring">"""Indicates whether the source or target node was dynamically</tt> </tt>
<a name="L2935"></a><tt class="py-lineno">2935</tt> <tt class="py-line"><tt class="py-docstring"> created"""</tt> </tt>
<a name="L2936"></a><tt class="py-lineno">2936</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt class="py-name">pn_terminus_is_dynamic</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_impl</tt><tt class="py-op">)</tt> </tt>
</div><a name="Terminus._set_dynamic"></a><div id="Terminus._set_dynamic-def"><a name="L2937"></a><tt class="py-lineno">2937</tt> <a class="py-toggle" href="#" id="Terminus._set_dynamic-toggle" onclick="return toggle('Terminus._set_dynamic');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Terminus-class.html#_set_dynamic">_set_dynamic</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">dynamic</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Terminus._set_dynamic-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Terminus._set_dynamic-expanded"><a name="L2938"></a><tt class="py-lineno">2938</tt> <tt class="py-line"> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_check</tt><tt class="py-op">(</tt><tt class="py-name">pn_terminus_set_dynamic</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_impl</tt><tt class="py-op">,</tt> <tt id="link-694" class="py-name" targets="Variable proton.Terminus.dynamic=proton.Terminus-class.html#dynamic"><a title="proton.Terminus.dynamic" class="py-name" href="#" onclick="return doclink('link-694', 'dynamic', 'link-694');">dynamic</a></tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
</div><a name="L2939"></a><tt class="py-lineno">2939</tt> <tt class="py-line"> <tt id="link-695" class="py-name"><a title="proton.Terminus.dynamic" class="py-name" href="#" onclick="return doclink('link-695', 'dynamic', 'link-694');">dynamic</a></tt> <tt class="py-op">=</tt> <tt class="py-name">property</tt><tt class="py-op">(</tt><tt id="link-696" class="py-name" targets="Method proton.Terminus._is_dynamic()=proton.Terminus-class.html#_is_dynamic"><a title="proton.Terminus._is_dynamic" class="py-name" href="#" onclick="return doclink('link-696', '_is_dynamic', 'link-696');">_is_dynamic</a></tt><tt class="py-op">,</tt> <tt id="link-697" class="py-name" targets="Method proton.Terminus._set_dynamic()=proton.Terminus-class.html#_set_dynamic"><a title="proton.Terminus._set_dynamic" class="py-name" href="#" onclick="return doclink('link-697', '_set_dynamic', 'link-697');">_set_dynamic</a></tt><tt class="py-op">)</tt> </tt>
<a name="L2940"></a><tt class="py-lineno">2940</tt> <tt class="py-line"> </tt>
<a name="Terminus._get_distribution_mode"></a><div id="Terminus._get_distribution_mode-def"><a name="L2941"></a><tt class="py-lineno">2941</tt> <a class="py-toggle" href="#" id="Terminus._get_distribution_mode-toggle" onclick="return toggle('Terminus._get_distribution_mode');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Terminus-class.html#_get_distribution_mode">_get_distribution_mode</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Terminus._get_distribution_mode-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Terminus._get_distribution_mode-expanded"><a name="L2942"></a><tt class="py-lineno">2942</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt class="py-name">pn_terminus_get_distribution_mode</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_impl</tt><tt class="py-op">)</tt> </tt>
</div><a name="Terminus._set_distribution_mode"></a><div id="Terminus._set_distribution_mode-def"><a name="L2943"></a><tt class="py-lineno">2943</tt> <a class="py-toggle" href="#" id="Terminus._set_distribution_mode-toggle" onclick="return toggle('Terminus._set_distribution_mode');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Terminus-class.html#_set_distribution_mode">_set_distribution_mode</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">mode</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Terminus._set_distribution_mode-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Terminus._set_distribution_mode-expanded"><a name="L2944"></a><tt class="py-lineno">2944</tt> <tt class="py-line"> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_check</tt><tt class="py-op">(</tt><tt class="py-name">pn_terminus_set_distribution_mode</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_impl</tt><tt class="py-op">,</tt> <tt class="py-name">mode</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
</div><a name="L2945"></a><tt class="py-lineno">2945</tt> <tt class="py-line"> <tt id="link-698" class="py-name" targets="Variable proton.Terminus.distribution_mode=proton.Terminus-class.html#distribution_mode"><a title="proton.Terminus.distribution_mode" class="py-name" href="#" onclick="return doclink('link-698', 'distribution_mode', 'link-698');">distribution_mode</a></tt> <tt class="py-op">=</tt> <tt class="py-name">property</tt><tt class="py-op">(</tt><tt id="link-699" class="py-name" targets="Method proton.Terminus._get_distribution_mode()=proton.Terminus-class.html#_get_distribution_mode"><a title="proton.Terminus._get_distribution_mode" class="py-name" href="#" onclick="return doclink('link-699', '_get_distribution_mode', 'link-699');">_get_distribution_mode</a></tt><tt class="py-op">,</tt> <tt id="link-700" class="py-name" targets="Method proton.Terminus._set_distribution_mode()=proton.Terminus-class.html#_set_distribution_mode"><a title="proton.Terminus._set_distribution_mode" class="py-name" href="#" onclick="return doclink('link-700', '_set_distribution_mode', 'link-700');">_set_distribution_mode</a></tt><tt class="py-op">)</tt> </tt>
<a name="L2946"></a><tt class="py-lineno">2946</tt> <tt class="py-line"> </tt>
<a name="L2947"></a><tt class="py-lineno">2947</tt> <tt class="py-line"> <tt class="py-decorator">@</tt><tt class="py-decorator">property</tt> </tt>
<a name="Terminus.properties"></a><div id="Terminus.properties-def"><a name="L2948"></a><tt class="py-lineno">2948</tt> <a class="py-toggle" href="#" id="Terminus.properties-toggle" onclick="return toggle('Terminus.properties');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Terminus-class.html#properties">properties</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Terminus.properties-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Terminus.properties-expanded"><a name="L2949"></a><tt class="py-lineno">2949</tt> <tt class="py-line"> <tt class="py-docstring">"""Properties of a dynamic source or target."""</tt> </tt>
<a name="L2950"></a><tt class="py-lineno">2950</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt id="link-701" class="py-name"><a title="proton.Data" class="py-name" href="#" onclick="return doclink('link-701', 'Data', 'link-90');">Data</a></tt><tt class="py-op">(</tt><tt class="py-name">pn_terminus_properties</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_impl</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
</div><a name="L2951"></a><tt class="py-lineno">2951</tt> <tt class="py-line"> </tt>
<a name="L2952"></a><tt class="py-lineno">2952</tt> <tt class="py-line"> <tt class="py-decorator">@</tt><tt class="py-decorator">property</tt> </tt>
<a name="Terminus.capabilities"></a><div id="Terminus.capabilities-def"><a name="L2953"></a><tt class="py-lineno">2953</tt> <a class="py-toggle" href="#" id="Terminus.capabilities-toggle" onclick="return toggle('Terminus.capabilities');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Terminus-class.html#capabilities">capabilities</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Terminus.capabilities-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Terminus.capabilities-expanded"><a name="L2954"></a><tt class="py-lineno">2954</tt> <tt class="py-line"> <tt class="py-docstring">"""Capabilities of the source or target."""</tt> </tt>
<a name="L2955"></a><tt class="py-lineno">2955</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt id="link-702" class="py-name"><a title="proton.Data" class="py-name" href="#" onclick="return doclink('link-702', 'Data', 'link-90');">Data</a></tt><tt class="py-op">(</tt><tt class="py-name">pn_terminus_capabilities</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_impl</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
</div><a name="L2956"></a><tt class="py-lineno">2956</tt> <tt class="py-line"> </tt>
<a name="L2957"></a><tt class="py-lineno">2957</tt> <tt class="py-line"> <tt class="py-decorator">@</tt><tt class="py-decorator">property</tt> </tt>
<a name="Terminus.outcomes"></a><div id="Terminus.outcomes-def"><a name="L2958"></a><tt class="py-lineno">2958</tt> <a class="py-toggle" href="#" id="Terminus.outcomes-toggle" onclick="return toggle('Terminus.outcomes');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Terminus-class.html#outcomes">outcomes</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Terminus.outcomes-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Terminus.outcomes-expanded"><a name="L2959"></a><tt class="py-lineno">2959</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt id="link-703" class="py-name"><a title="proton.Data" class="py-name" href="#" onclick="return doclink('link-703', 'Data', 'link-90');">Data</a></tt><tt class="py-op">(</tt><tt class="py-name">pn_terminus_outcomes</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_impl</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
</div><a name="L2960"></a><tt class="py-lineno">2960</tt> <tt class="py-line"> </tt>
<a name="L2961"></a><tt class="py-lineno">2961</tt> <tt class="py-line"> <tt class="py-decorator">@</tt><tt class="py-decorator">property</tt> </tt>
<a name="Terminus.filter"></a><div id="Terminus.filter-def"><a name="L2962"></a><tt class="py-lineno">2962</tt> <a class="py-toggle" href="#" id="Terminus.filter-toggle" onclick="return toggle('Terminus.filter');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Terminus-class.html#filter">filter</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Terminus.filter-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Terminus.filter-expanded"><a name="L2963"></a><tt class="py-lineno">2963</tt> <tt class="py-line"> <tt class="py-docstring">"""A filter on a source allows the set of messages transfered over</tt> </tt>
<a name="L2964"></a><tt class="py-lineno">2964</tt> <tt class="py-line"><tt class="py-docstring"> the link to be restricted"""</tt> </tt>
<a name="L2965"></a><tt class="py-lineno">2965</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt id="link-704" class="py-name"><a title="proton.Data" class="py-name" href="#" onclick="return doclink('link-704', 'Data', 'link-90');">Data</a></tt><tt class="py-op">(</tt><tt class="py-name">pn_terminus_filter</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_impl</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
</div><a name="L2966"></a><tt class="py-lineno">2966</tt> <tt class="py-line"> </tt>
<a name="Terminus.copy"></a><div id="Terminus.copy-def"><a name="L2967"></a><tt class="py-lineno">2967</tt> <a class="py-toggle" href="#" id="Terminus.copy-toggle" onclick="return toggle('Terminus.copy');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Terminus-class.html#copy">copy</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">src</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Terminus.copy-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Terminus.copy-expanded"><a name="L2968"></a><tt class="py-lineno">2968</tt> <tt class="py-line"> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_check</tt><tt class="py-op">(</tt><tt class="py-name">pn_terminus_copy</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_impl</tt><tt class="py-op">,</tt> <tt class="py-name">src</tt><tt class="py-op">.</tt><tt class="py-name">_impl</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
</div></div><a name="L2969"></a><tt class="py-lineno">2969</tt> <tt class="py-line"> </tt>
<a name="Sender"></a><div id="Sender-def"><a name="L2970"></a><tt class="py-lineno">2970</tt> <a class="py-toggle" href="#" id="Sender-toggle" onclick="return toggle('Sender');">-</a><tt class="py-line"><tt class="py-keyword">class</tt> <a class="py-def-name" href="proton.Sender-class.html">Sender</a><tt class="py-op">(</tt><tt class="py-base-class">Link</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Sender-collapsed" style="display:none;" pad="++++" indent="++++"></div><div id="Sender-expanded"><a name="L2971"></a><tt class="py-lineno">2971</tt> <tt class="py-line"> <tt class="py-docstring">"""</tt> </tt>
<a name="L2972"></a><tt class="py-lineno">2972</tt> <tt class="py-line"><tt class="py-docstring"> A link over which messages are sent.</tt> </tt>
<a name="L2973"></a><tt class="py-lineno">2973</tt> <tt class="py-line"><tt class="py-docstring"> """</tt> </tt>
<a name="L2974"></a><tt class="py-lineno">2974</tt> <tt class="py-line"> </tt>
<a name="Sender.offered"></a><div id="Sender.offered-def"><a name="L2975"></a><tt class="py-lineno">2975</tt> <a class="py-toggle" href="#" id="Sender.offered-toggle" onclick="return toggle('Sender.offered');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Sender-class.html#offered">offered</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">n</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Sender.offered-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Sender.offered-expanded"><a name="L2976"></a><tt class="py-lineno">2976</tt> <tt class="py-line"> <tt class="py-name">pn_link_offered</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_impl</tt><tt class="py-op">,</tt> <tt class="py-name">n</tt><tt class="py-op">)</tt> </tt>
</div><a name="L2977"></a><tt class="py-lineno">2977</tt> <tt class="py-line"> </tt>
<a name="Sender.stream"></a><div id="Sender.stream-def"><a name="L2978"></a><tt class="py-lineno">2978</tt> <a class="py-toggle" href="#" id="Sender.stream-toggle" onclick="return toggle('Sender.stream');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Sender-class.html#stream">stream</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">data</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Sender.stream-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Sender.stream-expanded"><a name="L2979"></a><tt class="py-lineno">2979</tt> <tt class="py-line"> <tt class="py-docstring">"""</tt> </tt>
<a name="L2980"></a><tt class="py-lineno">2980</tt> <tt class="py-line"><tt class="py-docstring"> Send specified data as part of the current delivery</tt> </tt>
<a name="L2981"></a><tt class="py-lineno">2981</tt> <tt class="py-line"><tt class="py-docstring"></tt> </tt>
<a name="L2982"></a><tt class="py-lineno">2982</tt> <tt class="py-line"><tt class="py-docstring"> @type data: binary</tt> </tt>
<a name="L2983"></a><tt class="py-lineno">2983</tt> <tt class="py-line"><tt class="py-docstring"> @param data: data to send</tt> </tt>
<a name="L2984"></a><tt class="py-lineno">2984</tt> <tt class="py-line"><tt class="py-docstring"> """</tt> </tt>
<a name="L2985"></a><tt class="py-lineno">2985</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_check</tt><tt class="py-op">(</tt><tt class="py-name">pn_link_send</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_impl</tt><tt class="py-op">,</tt> <tt id="link-705" class="py-name"><a title="proton.Disposition.data" class="py-name" href="#" onclick="return doclink('link-705', 'data', 'link-8');">data</a></tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
</div><a name="L2986"></a><tt class="py-lineno">2986</tt> <tt class="py-line"> </tt>
<a name="Sender.send"></a><div id="Sender.send-def"><a name="L2987"></a><tt class="py-lineno">2987</tt> <a class="py-toggle" href="#" id="Sender.send-toggle" onclick="return toggle('Sender.send');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Sender-class.html#send">send</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">obj</tt><tt class="py-op">,</tt> <tt class="py-param">tag</tt><tt class="py-op">=</tt><tt class="py-name">None</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Sender.send-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Sender.send-expanded"><a name="L2988"></a><tt class="py-lineno">2988</tt> <tt class="py-line"> <tt class="py-docstring">"""</tt> </tt>
<a name="L2989"></a><tt class="py-lineno">2989</tt> <tt class="py-line"><tt class="py-docstring"> Send specified object over this sender; the object is expected to</tt> </tt>
<a name="L2990"></a><tt class="py-lineno">2990</tt> <tt class="py-line"><tt class="py-docstring"> have a send() method on it that takes the sender and an optional</tt> </tt>
<a name="L2991"></a><tt class="py-lineno">2991</tt> <tt class="py-line"><tt class="py-docstring"> tag as arguments.</tt> </tt>
<a name="L2992"></a><tt class="py-lineno">2992</tt> <tt class="py-line"><tt class="py-docstring"></tt> </tt>
<a name="L2993"></a><tt class="py-lineno">2993</tt> <tt class="py-line"><tt class="py-docstring"> Where the object is a Message, this will send the message over</tt> </tt>
<a name="L2994"></a><tt class="py-lineno">2994</tt> <tt class="py-line"><tt class="py-docstring"> this link, creating a new delivery for the purpose.</tt> </tt>
<a name="L2995"></a><tt class="py-lineno">2995</tt> <tt class="py-line"><tt class="py-docstring"> """</tt> </tt>
<a name="L2996"></a><tt class="py-lineno">2996</tt> <tt class="py-line"> <tt class="py-keyword">if</tt> <tt class="py-name">hasattr</tt><tt class="py-op">(</tt><tt class="py-name">obj</tt><tt class="py-op">,</tt> <tt class="py-string">'send'</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
<a name="L2997"></a><tt class="py-lineno">2997</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt class="py-name">obj</tt><tt class="py-op">.</tt><tt id="link-706" class="py-name" targets="Method proton.Message.send()=proton.Message-class.html#send,Method proton.Messenger.send()=proton.Messenger-class.html#send,Method proton.Sender.send()=proton.Sender-class.html#send,Method proton.reactor.Transaction.send()=proton.reactor.Transaction-class.html#send,Method proton.utils.BlockingSender.send()=proton.utils.BlockingSender-class.html#send"><a title="proton.Message.send
proton.Messenger.send
proton.Sender.send
proton.reactor.Transaction.send
proton.utils.BlockingSender.send" class="py-name" href="#" onclick="return doclink('link-706', 'send', 'link-706');">send</a></tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">,</tt> <tt id="link-707" class="py-name"><a title="proton.Delivery.tag" class="py-name" href="#" onclick="return doclink('link-707', 'tag', 'link-211');">tag</a></tt><tt class="py-op">=</tt><tt id="link-708" class="py-name"><a title="proton.Delivery.tag" class="py-name" href="#" onclick="return doclink('link-708', 'tag', 'link-211');">tag</a></tt><tt class="py-op">)</tt> </tt>
<a name="L2998"></a><tt class="py-lineno">2998</tt> <tt class="py-line"> <tt class="py-keyword">else</tt><tt class="py-op">:</tt> </tt>
<a name="L2999"></a><tt class="py-lineno">2999</tt> <tt class="py-line"> <tt class="py-comment"># treat object as bytes</tt> </tt>
<a name="L3000"></a><tt class="py-lineno">3000</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-709" class="py-name"><a title="proton.Sender.stream" class="py-name" href="#" onclick="return doclink('link-709', 'stream', 'link-216');">stream</a></tt><tt class="py-op">(</tt><tt class="py-name">obj</tt><tt class="py-op">)</tt> </tt>
</div><a name="L3001"></a><tt class="py-lineno">3001</tt> <tt class="py-line"> </tt>
<a name="Sender.delivery_tag"></a><div id="Sender.delivery_tag-def"><a name="L3002"></a><tt class="py-lineno">3002</tt> <a class="py-toggle" href="#" id="Sender.delivery_tag-toggle" onclick="return toggle('Sender.delivery_tag');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Sender-class.html#delivery_tag">delivery_tag</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Sender.delivery_tag-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Sender.delivery_tag-expanded"><a name="L3003"></a><tt class="py-lineno">3003</tt> <tt class="py-line"> <tt class="py-keyword">if</tt> <tt class="py-keyword">not</tt> <tt class="py-name">hasattr</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">,</tt> <tt class="py-string">'tag_generator'</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
<a name="L3004"></a><tt class="py-lineno">3004</tt> <tt class="py-line"> <tt class="py-keyword">def</tt> <tt class="py-def-name">simple_tags</tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
<a name="L3005"></a><tt class="py-lineno">3005</tt> <tt class="py-line"> <tt class="py-name">count</tt> <tt class="py-op">=</tt> <tt class="py-number">1</tt> </tt>
<a name="L3006"></a><tt class="py-lineno">3006</tt> <tt class="py-line"> <tt class="py-keyword">while</tt> <tt class="py-name">True</tt><tt class="py-op">:</tt> </tt>
<a name="L3007"></a><tt class="py-lineno">3007</tt> <tt class="py-line"> <tt class="py-keyword">yield</tt> <tt class="py-name">str</tt><tt class="py-op">(</tt><tt class="py-name">count</tt><tt class="py-op">)</tt> </tt>
<a name="L3008"></a><tt class="py-lineno">3008</tt> <tt class="py-line"> <tt class="py-name">count</tt> <tt class="py-op">+=</tt> <tt class="py-number">1</tt> </tt>
</div><a name="L3009"></a><tt class="py-lineno">3009</tt> <tt class="py-line"> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">tag_generator</tt> <tt class="py-op">=</tt> <tt class="py-name">simple_tags</tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L3010"></a><tt class="py-lineno">3010</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt id="link-710" class="py-name"><a title="proton.Data.next
proton.Link.next
proton.Session.next
proton.reactor.Backoff.next
proton.reactor.Urls.next
proton.utils.AtomicCount.next" class="py-name" href="#" onclick="return doclink('link-710', 'next', 'link-119');">next</a></tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">tag_generator</tt><tt class="py-op">)</tt> </tt>
</div></div><a name="L3011"></a><tt class="py-lineno">3011</tt> <tt class="py-line"> </tt>
<a name="Receiver"></a><div id="Receiver-def"><a name="L3012"></a><tt class="py-lineno">3012</tt> <a class="py-toggle" href="#" id="Receiver-toggle" onclick="return toggle('Receiver');">-</a><tt class="py-line"><tt class="py-keyword">class</tt> <a class="py-def-name" href="proton.Receiver-class.html">Receiver</a><tt class="py-op">(</tt><tt class="py-base-class">Link</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Receiver-collapsed" style="display:none;" pad="++++" indent="++++"></div><div id="Receiver-expanded"><a name="L3013"></a><tt class="py-lineno">3013</tt> <tt class="py-line"> <tt class="py-docstring">"""</tt> </tt>
<a name="L3014"></a><tt class="py-lineno">3014</tt> <tt class="py-line"><tt class="py-docstring"> A link over which messages are received.</tt> </tt>
<a name="L3015"></a><tt class="py-lineno">3015</tt> <tt class="py-line"><tt class="py-docstring"> """</tt> </tt>
<a name="L3016"></a><tt class="py-lineno">3016</tt> <tt class="py-line"> </tt>
<a name="Receiver.flow"></a><div id="Receiver.flow-def"><a name="L3017"></a><tt class="py-lineno">3017</tt> <a class="py-toggle" href="#" id="Receiver.flow-toggle" onclick="return toggle('Receiver.flow');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Receiver-class.html#flow">flow</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">n</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Receiver.flow-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Receiver.flow-expanded"><a name="L3018"></a><tt class="py-lineno">3018</tt> <tt class="py-line"> <tt class="py-docstring">"""Increases the credit issued to the remote sender by the specified number of messages."""</tt> </tt>
<a name="L3019"></a><tt class="py-lineno">3019</tt> <tt class="py-line"> <tt class="py-name">pn_link_flow</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_impl</tt><tt class="py-op">,</tt> <tt class="py-name">n</tt><tt class="py-op">)</tt> </tt>
</div><a name="L3020"></a><tt class="py-lineno">3020</tt> <tt class="py-line"> </tt>
<a name="Receiver.recv"></a><div id="Receiver.recv-def"><a name="L3021"></a><tt class="py-lineno">3021</tt> <a class="py-toggle" href="#" id="Receiver.recv-toggle" onclick="return toggle('Receiver.recv');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Receiver-class.html#recv">recv</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">limit</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Receiver.recv-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Receiver.recv-expanded"><a name="L3022"></a><tt class="py-lineno">3022</tt> <tt class="py-line"> <tt class="py-name">n</tt><tt class="py-op">,</tt> <tt class="py-name">binary</tt> <tt class="py-op">=</tt> <tt class="py-name">pn_link_recv</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_impl</tt><tt class="py-op">,</tt> <tt class="py-name">limit</tt><tt class="py-op">)</tt> </tt>
<a name="L3023"></a><tt class="py-lineno">3023</tt> <tt class="py-line"> <tt class="py-keyword">if</tt> <tt class="py-name">n</tt> <tt class="py-op">==</tt> <tt class="py-name">PN_EOS</tt><tt class="py-op">:</tt> </tt>
<a name="L3024"></a><tt class="py-lineno">3024</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt class="py-name">None</tt> </tt>
<a name="L3025"></a><tt class="py-lineno">3025</tt> <tt class="py-line"> <tt class="py-keyword">else</tt><tt class="py-op">:</tt> </tt>
<a name="L3026"></a><tt class="py-lineno">3026</tt> <tt class="py-line"> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_check</tt><tt class="py-op">(</tt><tt class="py-name">n</tt><tt class="py-op">)</tt> </tt>
<a name="L3027"></a><tt class="py-lineno">3027</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt class="py-name">binary</tt> </tt>
</div><a name="L3028"></a><tt class="py-lineno">3028</tt> <tt class="py-line"> </tt>
<a name="Receiver.drain"></a><div id="Receiver.drain-def"><a name="L3029"></a><tt class="py-lineno">3029</tt> <a class="py-toggle" href="#" id="Receiver.drain-toggle" onclick="return toggle('Receiver.drain');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Receiver-class.html#drain">drain</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">n</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Receiver.drain-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Receiver.drain-expanded"><a name="L3030"></a><tt class="py-lineno">3030</tt> <tt class="py-line"> <tt class="py-name">pn_link_drain</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_impl</tt><tt class="py-op">,</tt> <tt class="py-name">n</tt><tt class="py-op">)</tt> </tt>
</div><a name="L3031"></a><tt class="py-lineno">3031</tt> <tt class="py-line"> </tt>
<a name="Receiver.draining"></a><div id="Receiver.draining-def"><a name="L3032"></a><tt class="py-lineno">3032</tt> <a class="py-toggle" href="#" id="Receiver.draining-toggle" onclick="return toggle('Receiver.draining');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Receiver-class.html#draining">draining</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Receiver.draining-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Receiver.draining-expanded"><a name="L3033"></a><tt class="py-lineno">3033</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt class="py-name">pn_link_draining</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_impl</tt><tt class="py-op">)</tt> </tt>
</div></div><a name="L3034"></a><tt class="py-lineno">3034</tt> <tt class="py-line"> </tt>
<a name="NamedInt"></a><div id="NamedInt-def"><a name="L3035"></a><tt class="py-lineno">3035</tt> <a class="py-toggle" href="#" id="NamedInt-toggle" onclick="return toggle('NamedInt');">-</a><tt class="py-line"><tt class="py-keyword">class</tt> <a class="py-def-name" href="proton.NamedInt-class.html">NamedInt</a><tt class="py-op">(</tt><tt class="py-base-class">int</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="NamedInt-collapsed" style="display:none;" pad="++++" indent="++++"></div><div id="NamedInt-expanded"><a name="L3036"></a><tt class="py-lineno">3036</tt> <tt class="py-line"> </tt>
<a name="L3037"></a><tt class="py-lineno">3037</tt> <tt class="py-line"> <tt class="py-name">values</tt> <tt class="py-op">=</tt> <tt class="py-op">{</tt><tt class="py-op">}</tt> </tt>
<a name="L3038"></a><tt class="py-lineno">3038</tt> <tt class="py-line"> </tt>
<a name="NamedInt.__new__"></a><div id="NamedInt.__new__-def"><a name="L3039"></a><tt class="py-lineno">3039</tt> <a class="py-toggle" href="#" id="NamedInt.__new__-toggle" onclick="return toggle('NamedInt.__new__');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.NamedInt-class.html#__new__">__new__</a><tt class="py-op">(</tt><tt class="py-param">cls</tt><tt class="py-op">,</tt> <tt class="py-param">i</tt><tt class="py-op">,</tt> <tt class="py-param">name</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="NamedInt.__new__-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="NamedInt.__new__-expanded"><a name="L3040"></a><tt class="py-lineno">3040</tt> <tt class="py-line"> <tt class="py-name">ni</tt> <tt class="py-op">=</tt> <tt class="py-name">super</tt><tt class="py-op">(</tt><tt class="py-name">NamedInt</tt><tt class="py-op">,</tt> <tt class="py-name">cls</tt><tt class="py-op">)</tt><tt class="py-op">.</tt><tt id="link-711" class="py-name" targets="Static Method proton.SSL.__new__()=proton.SSL-class.html#__new__,Static Method proton.Url.Port.__new__()=proton.Url.Port-class.html#__new__"><a title="proton.SSL.__new__
proton.Url.Port.__new__" class="py-name" href="#" onclick="return doclink('link-711', '__new__', 'link-711');">__new__</a></tt><tt class="py-op">(</tt><tt class="py-name">cls</tt><tt class="py-op">,</tt> <tt class="py-name">i</tt><tt class="py-op">)</tt> </tt>
<a name="L3041"></a><tt class="py-lineno">3041</tt> <tt class="py-line"> <tt class="py-name">cls</tt><tt class="py-op">.</tt><tt class="py-name">values</tt><tt class="py-op">[</tt><tt class="py-name">i</tt><tt class="py-op">]</tt> <tt class="py-op">=</tt> <tt class="py-name">ni</tt> </tt>
<a name="L3042"></a><tt class="py-lineno">3042</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt class="py-name">ni</tt> </tt>
</div><a name="L3043"></a><tt class="py-lineno">3043</tt> <tt class="py-line"> </tt>
<a name="NamedInt.__init__"></a><div id="NamedInt.__init__-def"><a name="L3044"></a><tt class="py-lineno">3044</tt> <a class="py-toggle" href="#" id="NamedInt.__init__-toggle" onclick="return toggle('NamedInt.__init__');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.NamedInt-class.html#__init__">__init__</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">i</tt><tt class="py-op">,</tt> <tt class="py-param">name</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="NamedInt.__init__-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="NamedInt.__init__-expanded"><a name="L3045"></a><tt class="py-lineno">3045</tt> <tt class="py-line"> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-712" class="py-name"><a title="proton.Link.name
proton.Messenger.name" class="py-name" href="#" onclick="return doclink('link-712', 'name', 'link-25');">name</a></tt> <tt class="py-op">=</tt> <tt id="link-713" class="py-name"><a title="proton.Link.name
proton.Messenger.name" class="py-name" href="#" onclick="return doclink('link-713', 'name', 'link-25');">name</a></tt> </tt>
</div><a name="L3046"></a><tt class="py-lineno">3046</tt> <tt class="py-line"> </tt>
<a name="NamedInt.__repr__"></a><div id="NamedInt.__repr__-def"><a name="L3047"></a><tt class="py-lineno">3047</tt> <a class="py-toggle" href="#" id="NamedInt.__repr__-toggle" onclick="return toggle('NamedInt.__repr__');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.NamedInt-class.html#__repr__">__repr__</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="NamedInt.__repr__-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="NamedInt.__repr__-expanded"><a name="L3048"></a><tt class="py-lineno">3048</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-714" class="py-name"><a title="proton.Link.name
proton.Messenger.name" class="py-name" href="#" onclick="return doclink('link-714', 'name', 'link-25');">name</a></tt> </tt>
</div><a name="L3049"></a><tt class="py-lineno">3049</tt> <tt class="py-line"> </tt>
<a name="NamedInt.__str__"></a><div id="NamedInt.__str__-def"><a name="L3050"></a><tt class="py-lineno">3050</tt> <a class="py-toggle" href="#" id="NamedInt.__str__-toggle" onclick="return toggle('NamedInt.__str__');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.NamedInt-class.html#__str__">__str__</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="NamedInt.__str__-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="NamedInt.__str__-expanded"><a name="L3051"></a><tt class="py-lineno">3051</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-715" class="py-name"><a title="proton.Link.name
proton.Messenger.name" class="py-name" href="#" onclick="return doclink('link-715', 'name', 'link-25');">name</a></tt> </tt>
</div><a name="L3052"></a><tt class="py-lineno">3052</tt> <tt class="py-line"> </tt>
<a name="L3053"></a><tt class="py-lineno">3053</tt> <tt class="py-line"> <tt class="py-decorator">@</tt><tt class="py-decorator">classmethod</tt> </tt>
<a name="NamedInt.get"></a><div id="NamedInt.get-def"><a name="L3054"></a><tt class="py-lineno">3054</tt> <a class="py-toggle" href="#" id="NamedInt.get-toggle" onclick="return toggle('NamedInt.get');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.NamedInt-class.html#get">get</a><tt class="py-op">(</tt><tt class="py-param">cls</tt><tt class="py-op">,</tt> <tt class="py-param">i</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="NamedInt.get-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="NamedInt.get-expanded"><a name="L3055"></a><tt class="py-lineno">3055</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt class="py-name">cls</tt><tt class="py-op">.</tt><tt class="py-name">values</tt><tt class="py-op">.</tt><tt id="link-716" class="py-name"><a title="proton.Messenger.get" class="py-name" href="#" onclick="return doclink('link-716', 'get', 'link-50');">get</a></tt><tt class="py-op">(</tt><tt class="py-name">i</tt><tt class="py-op">,</tt> <tt class="py-name">i</tt><tt class="py-op">)</tt> </tt>
</div></div><a name="L3056"></a><tt class="py-lineno">3056</tt> <tt class="py-line"> </tt>
<a name="DispositionType"></a><div id="DispositionType-def"><a name="L3057"></a><tt class="py-lineno">3057</tt> <a class="py-toggle" href="#" id="DispositionType-toggle" onclick="return toggle('DispositionType');">-</a><tt class="py-line"><tt class="py-keyword">class</tt> <a class="py-def-name" href="proton.DispositionType-class.html">DispositionType</a><tt class="py-op">(</tt><tt class="py-base-class">NamedInt</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="DispositionType-collapsed" style="display:none;" pad="++++" indent="++++"></div><div id="DispositionType-expanded"><a name="L3058"></a><tt class="py-lineno">3058</tt> <tt class="py-line"> <tt class="py-name">values</tt> <tt class="py-op">=</tt> <tt class="py-op">{</tt><tt class="py-op">}</tt> </tt>
</div><a name="L3059"></a><tt class="py-lineno">3059</tt> <tt class="py-line"> </tt>
<a name="Disposition"></a><div id="Disposition-def"><a name="L3060"></a><tt class="py-lineno">3060</tt> <a class="py-toggle" href="#" id="Disposition-toggle" onclick="return toggle('Disposition');">-</a><tt class="py-line"><tt class="py-keyword">class</tt> <a class="py-def-name" href="proton.Disposition-class.html">Disposition</a><tt class="py-op">(</tt><tt class="py-base-class">object</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Disposition-collapsed" style="display:none;" pad="++++" indent="++++"></div><div id="Disposition-expanded"><a name="L3061"></a><tt class="py-lineno">3061</tt> <tt class="py-line"> </tt>
<a name="L3062"></a><tt class="py-lineno">3062</tt> <tt class="py-line"> <tt id="link-717" class="py-name" targets="Variable proton.Delivery.RECEIVED=proton.Delivery-class.html#RECEIVED,Variable proton.Disposition.RECEIVED=proton.Disposition-class.html#RECEIVED"><a title="proton.Delivery.RECEIVED
proton.Disposition.RECEIVED" class="py-name" href="#" onclick="return doclink('link-717', 'RECEIVED', 'link-717');">RECEIVED</a></tt> <tt class="py-op">=</tt> <tt class="py-name">DispositionType</tt><tt class="py-op">(</tt><tt class="py-name">PN_RECEIVED</tt><tt class="py-op">,</tt> <tt class="py-string">"RECEIVED"</tt><tt class="py-op">)</tt> </tt>
<a name="L3063"></a><tt class="py-lineno">3063</tt> <tt class="py-line"> <tt id="link-718" class="py-name"><a title="proton.ACCEPTED
proton.Delivery.ACCEPTED
proton.Disposition.ACCEPTED" class="py-name" href="#" onclick="return doclink('link-718', 'ACCEPTED', 'link-32');">ACCEPTED</a></tt> <tt class="py-op">=</tt> <tt class="py-name">DispositionType</tt><tt class="py-op">(</tt><tt class="py-name">PN_ACCEPTED</tt><tt class="py-op">,</tt> <tt class="py-string">"ACCEPTED"</tt><tt class="py-op">)</tt> </tt>
<a name="L3064"></a><tt class="py-lineno">3064</tt> <tt class="py-line"> <tt id="link-719" class="py-name"><a title="proton.Delivery.REJECTED
proton.Disposition.REJECTED
proton.REJECTED" class="py-name" href="#" onclick="return doclink('link-719', 'REJECTED', 'link-33');">REJECTED</a></tt> <tt class="py-op">=</tt> <tt class="py-name">DispositionType</tt><tt class="py-op">(</tt><tt class="py-name">PN_REJECTED</tt><tt class="py-op">,</tt> <tt class="py-string">"REJECTED"</tt><tt class="py-op">)</tt> </tt>
<a name="L3065"></a><tt class="py-lineno">3065</tt> <tt class="py-line"> <tt id="link-720" class="py-name"><a title="proton.Delivery.RELEASED
proton.Disposition.RELEASED
proton.RELEASED" class="py-name" href="#" onclick="return doclink('link-720', 'RELEASED', 'link-34');">RELEASED</a></tt> <tt class="py-op">=</tt> <tt class="py-name">DispositionType</tt><tt class="py-op">(</tt><tt class="py-name">PN_RELEASED</tt><tt class="py-op">,</tt> <tt class="py-string">"RELEASED"</tt><tt class="py-op">)</tt> </tt>
<a name="L3066"></a><tt class="py-lineno">3066</tt> <tt class="py-line"> <tt id="link-721" class="py-name"><a title="proton.Delivery.MODIFIED
proton.Disposition.MODIFIED
proton.MODIFIED" class="py-name" href="#" onclick="return doclink('link-721', 'MODIFIED', 'link-35');">MODIFIED</a></tt> <tt class="py-op">=</tt> <tt class="py-name">DispositionType</tt><tt class="py-op">(</tt><tt class="py-name">PN_MODIFIED</tt><tt class="py-op">,</tt> <tt class="py-string">"MODIFIED"</tt><tt class="py-op">)</tt> </tt>
<a name="L3067"></a><tt class="py-lineno">3067</tt> <tt class="py-line"> </tt>
<a name="Disposition.__init__"></a><div id="Disposition.__init__-def"><a name="L3068"></a><tt class="py-lineno">3068</tt> <a class="py-toggle" href="#" id="Disposition.__init__-toggle" onclick="return toggle('Disposition.__init__');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Disposition-class.html#__init__">__init__</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">impl</tt><tt class="py-op">,</tt> <tt class="py-param">local</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Disposition.__init__-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Disposition.__init__-expanded"><a name="L3069"></a><tt class="py-lineno">3069</tt> <tt class="py-line"> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_impl</tt> <tt class="py-op">=</tt> <tt class="py-name">impl</tt> </tt>
<a name="L3070"></a><tt class="py-lineno">3070</tt> <tt class="py-line"> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">local</tt> <tt class="py-op">=</tt> <tt class="py-name">local</tt> </tt>
<a name="L3071"></a><tt class="py-lineno">3071</tt> <tt class="py-line"> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_data</tt> <tt class="py-op">=</tt> <tt class="py-name">None</tt> </tt>
<a name="L3072"></a><tt class="py-lineno">3072</tt> <tt class="py-line"> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_condition</tt> <tt class="py-op">=</tt> <tt class="py-name">None</tt> </tt>
<a name="L3073"></a><tt class="py-lineno">3073</tt> <tt class="py-line"> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_annotations</tt> <tt class="py-op">=</tt> <tt class="py-name">None</tt> </tt>
</div><a name="L3074"></a><tt class="py-lineno">3074</tt> <tt class="py-line"> </tt>
<a name="L3075"></a><tt class="py-lineno">3075</tt> <tt class="py-line"> <tt class="py-decorator">@</tt><tt class="py-decorator">property</tt> </tt>
<a name="Disposition.type"></a><div id="Disposition.type-def"><a name="L3076"></a><tt class="py-lineno">3076</tt> <a class="py-toggle" href="#" id="Disposition.type-toggle" onclick="return toggle('Disposition.type');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Disposition-class.html#type">type</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Disposition.type-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Disposition.type-expanded"><a name="L3077"></a><tt class="py-lineno">3077</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt class="py-name">DispositionType</tt><tt class="py-op">.</tt><tt id="link-722" class="py-name"><a title="proton.Messenger.get" class="py-name" href="#" onclick="return doclink('link-722', 'get', 'link-50');">get</a></tt><tt class="py-op">(</tt><tt class="py-name">pn_disposition_type</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_impl</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
</div><a name="L3078"></a><tt class="py-lineno">3078</tt> <tt class="py-line"> </tt>
<a name="Disposition._get_section_number"></a><div id="Disposition._get_section_number-def"><a name="L3079"></a><tt class="py-lineno">3079</tt> <a class="py-toggle" href="#" id="Disposition._get_section_number-toggle" onclick="return toggle('Disposition._get_section_number');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Disposition-class.html#_get_section_number">_get_section_number</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Disposition._get_section_number-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Disposition._get_section_number-expanded"><a name="L3080"></a><tt class="py-lineno">3080</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt class="py-name">pn_disposition_get_section_number</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_impl</tt><tt class="py-op">)</tt> </tt>
</div><a name="Disposition._set_section_number"></a><div id="Disposition._set_section_number-def"><a name="L3081"></a><tt class="py-lineno">3081</tt> <a class="py-toggle" href="#" id="Disposition._set_section_number-toggle" onclick="return toggle('Disposition._set_section_number');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Disposition-class.html#_set_section_number">_set_section_number</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">n</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Disposition._set_section_number-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Disposition._set_section_number-expanded"><a name="L3082"></a><tt class="py-lineno">3082</tt> <tt class="py-line"> <tt class="py-name">pn_disposition_set_section_number</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_impl</tt><tt class="py-op">,</tt> <tt class="py-name">n</tt><tt class="py-op">)</tt> </tt>
</div><a name="L3083"></a><tt class="py-lineno">3083</tt> <tt class="py-line"> <tt id="link-723" class="py-name" targets="Variable proton.Disposition.section_number=proton.Disposition-class.html#section_number"><a title="proton.Disposition.section_number" class="py-name" href="#" onclick="return doclink('link-723', 'section_number', 'link-723');">section_number</a></tt> <tt class="py-op">=</tt> <tt class="py-name">property</tt><tt class="py-op">(</tt><tt id="link-724" class="py-name" targets="Method proton.Disposition._get_section_number()=proton.Disposition-class.html#_get_section_number"><a title="proton.Disposition._get_section_number" class="py-name" href="#" onclick="return doclink('link-724', '_get_section_number', 'link-724');">_get_section_number</a></tt><tt class="py-op">,</tt> <tt id="link-725" class="py-name" targets="Method proton.Disposition._set_section_number()=proton.Disposition-class.html#_set_section_number"><a title="proton.Disposition._set_section_number" class="py-name" href="#" onclick="return doclink('link-725', '_set_section_number', 'link-725');">_set_section_number</a></tt><tt class="py-op">)</tt> </tt>
<a name="L3084"></a><tt class="py-lineno">3084</tt> <tt class="py-line"> </tt>
<a name="Disposition._get_section_offset"></a><div id="Disposition._get_section_offset-def"><a name="L3085"></a><tt class="py-lineno">3085</tt> <a class="py-toggle" href="#" id="Disposition._get_section_offset-toggle" onclick="return toggle('Disposition._get_section_offset');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Disposition-class.html#_get_section_offset">_get_section_offset</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Disposition._get_section_offset-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Disposition._get_section_offset-expanded"><a name="L3086"></a><tt class="py-lineno">3086</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt class="py-name">pn_disposition_get_section_offset</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_impl</tt><tt class="py-op">)</tt> </tt>
</div><a name="Disposition._set_section_offset"></a><div id="Disposition._set_section_offset-def"><a name="L3087"></a><tt class="py-lineno">3087</tt> <a class="py-toggle" href="#" id="Disposition._set_section_offset-toggle" onclick="return toggle('Disposition._set_section_offset');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Disposition-class.html#_set_section_offset">_set_section_offset</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">n</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Disposition._set_section_offset-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Disposition._set_section_offset-expanded"><a name="L3088"></a><tt class="py-lineno">3088</tt> <tt class="py-line"> <tt class="py-name">pn_disposition_set_section_offset</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_impl</tt><tt class="py-op">,</tt> <tt class="py-name">n</tt><tt class="py-op">)</tt> </tt>
</div><a name="L3089"></a><tt class="py-lineno">3089</tt> <tt class="py-line"> <tt id="link-726" class="py-name" targets="Variable proton.Disposition.section_offset=proton.Disposition-class.html#section_offset"><a title="proton.Disposition.section_offset" class="py-name" href="#" onclick="return doclink('link-726', 'section_offset', 'link-726');">section_offset</a></tt> <tt class="py-op">=</tt> <tt class="py-name">property</tt><tt class="py-op">(</tt><tt id="link-727" class="py-name" targets="Method proton.Disposition._get_section_offset()=proton.Disposition-class.html#_get_section_offset"><a title="proton.Disposition._get_section_offset" class="py-name" href="#" onclick="return doclink('link-727', '_get_section_offset', 'link-727');">_get_section_offset</a></tt><tt class="py-op">,</tt> <tt id="link-728" class="py-name" targets="Method proton.Disposition._set_section_offset()=proton.Disposition-class.html#_set_section_offset"><a title="proton.Disposition._set_section_offset" class="py-name" href="#" onclick="return doclink('link-728', '_set_section_offset', 'link-728');">_set_section_offset</a></tt><tt class="py-op">)</tt> </tt>
<a name="L3090"></a><tt class="py-lineno">3090</tt> <tt class="py-line"> </tt>
<a name="Disposition._get_failed"></a><div id="Disposition._get_failed-def"><a name="L3091"></a><tt class="py-lineno">3091</tt> <a class="py-toggle" href="#" id="Disposition._get_failed-toggle" onclick="return toggle('Disposition._get_failed');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Disposition-class.html#_get_failed">_get_failed</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Disposition._get_failed-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Disposition._get_failed-expanded"><a name="L3092"></a><tt class="py-lineno">3092</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt class="py-name">pn_disposition_is_failed</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_impl</tt><tt class="py-op">)</tt> </tt>
</div><a name="Disposition._set_failed"></a><div id="Disposition._set_failed-def"><a name="L3093"></a><tt class="py-lineno">3093</tt> <a class="py-toggle" href="#" id="Disposition._set_failed-toggle" onclick="return toggle('Disposition._set_failed');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Disposition-class.html#_set_failed">_set_failed</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">b</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Disposition._set_failed-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Disposition._set_failed-expanded"><a name="L3094"></a><tt class="py-lineno">3094</tt> <tt class="py-line"> <tt class="py-name">pn_disposition_set_failed</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_impl</tt><tt class="py-op">,</tt> <tt class="py-name">b</tt><tt class="py-op">)</tt> </tt>
</div><a name="L3095"></a><tt class="py-lineno">3095</tt> <tt class="py-line"> <tt id="link-729" class="py-name" targets="Variable proton.Disposition.failed=proton.Disposition-class.html#failed"><a title="proton.Disposition.failed" class="py-name" href="#" onclick="return doclink('link-729', 'failed', 'link-729');">failed</a></tt> <tt class="py-op">=</tt> <tt class="py-name">property</tt><tt class="py-op">(</tt><tt id="link-730" class="py-name" targets="Method proton.Disposition._get_failed()=proton.Disposition-class.html#_get_failed"><a title="proton.Disposition._get_failed" class="py-name" href="#" onclick="return doclink('link-730', '_get_failed', 'link-730');">_get_failed</a></tt><tt class="py-op">,</tt> <tt id="link-731" class="py-name" targets="Method proton.Disposition._set_failed()=proton.Disposition-class.html#_set_failed"><a title="proton.Disposition._set_failed" class="py-name" href="#" onclick="return doclink('link-731', '_set_failed', 'link-731');">_set_failed</a></tt><tt class="py-op">)</tt> </tt>
<a name="L3096"></a><tt class="py-lineno">3096</tt> <tt class="py-line"> </tt>
<a name="Disposition._get_undeliverable"></a><div id="Disposition._get_undeliverable-def"><a name="L3097"></a><tt class="py-lineno">3097</tt> <a class="py-toggle" href="#" id="Disposition._get_undeliverable-toggle" onclick="return toggle('Disposition._get_undeliverable');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Disposition-class.html#_get_undeliverable">_get_undeliverable</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Disposition._get_undeliverable-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Disposition._get_undeliverable-expanded"><a name="L3098"></a><tt class="py-lineno">3098</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt class="py-name">pn_disposition_is_undeliverable</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_impl</tt><tt class="py-op">)</tt> </tt>
</div><a name="Disposition._set_undeliverable"></a><div id="Disposition._set_undeliverable-def"><a name="L3099"></a><tt class="py-lineno">3099</tt> <a class="py-toggle" href="#" id="Disposition._set_undeliverable-toggle" onclick="return toggle('Disposition._set_undeliverable');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Disposition-class.html#_set_undeliverable">_set_undeliverable</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">b</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Disposition._set_undeliverable-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Disposition._set_undeliverable-expanded"><a name="L3100"></a><tt class="py-lineno">3100</tt> <tt class="py-line"> <tt class="py-name">pn_disposition_set_undeliverable</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_impl</tt><tt class="py-op">,</tt> <tt class="py-name">b</tt><tt class="py-op">)</tt> </tt>
</div><a name="L3101"></a><tt class="py-lineno">3101</tt> <tt class="py-line"> <tt id="link-732" class="py-name" targets="Variable proton.Disposition.undeliverable=proton.Disposition-class.html#undeliverable"><a title="proton.Disposition.undeliverable" class="py-name" href="#" onclick="return doclink('link-732', 'undeliverable', 'link-732');">undeliverable</a></tt> <tt class="py-op">=</tt> <tt class="py-name">property</tt><tt class="py-op">(</tt><tt id="link-733" class="py-name" targets="Method proton.Disposition._get_undeliverable()=proton.Disposition-class.html#_get_undeliverable"><a title="proton.Disposition._get_undeliverable" class="py-name" href="#" onclick="return doclink('link-733', '_get_undeliverable', 'link-733');">_get_undeliverable</a></tt><tt class="py-op">,</tt> <tt id="link-734" class="py-name" targets="Method proton.Disposition._set_undeliverable()=proton.Disposition-class.html#_set_undeliverable"><a title="proton.Disposition._set_undeliverable" class="py-name" href="#" onclick="return doclink('link-734', '_set_undeliverable', 'link-734');">_set_undeliverable</a></tt><tt class="py-op">)</tt> </tt>
<a name="L3102"></a><tt class="py-lineno">3102</tt> <tt class="py-line"> </tt>
<a name="Disposition._get_data"></a><div id="Disposition._get_data-def"><a name="L3103"></a><tt class="py-lineno">3103</tt> <a class="py-toggle" href="#" id="Disposition._get_data-toggle" onclick="return toggle('Disposition._get_data');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Disposition-class.html#_get_data">_get_data</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Disposition._get_data-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Disposition._get_data-expanded"><a name="L3104"></a><tt class="py-lineno">3104</tt> <tt class="py-line"> <tt class="py-keyword">if</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">local</tt><tt class="py-op">:</tt> </tt>
<a name="L3105"></a><tt class="py-lineno">3105</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_data</tt> </tt>
<a name="L3106"></a><tt class="py-lineno">3106</tt> <tt class="py-line"> <tt class="py-keyword">else</tt><tt class="py-op">:</tt> </tt>
<a name="L3107"></a><tt class="py-lineno">3107</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt class="py-name">dat2obj</tt><tt class="py-op">(</tt><tt class="py-name">pn_disposition_data</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_impl</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
</div><a name="Disposition._set_data"></a><div id="Disposition._set_data-def"><a name="L3108"></a><tt class="py-lineno">3108</tt> <a class="py-toggle" href="#" id="Disposition._set_data-toggle" onclick="return toggle('Disposition._set_data');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Disposition-class.html#_set_data">_set_data</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">obj</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Disposition._set_data-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Disposition._set_data-expanded"><a name="L3109"></a><tt class="py-lineno">3109</tt> <tt class="py-line"> <tt class="py-keyword">if</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">local</tt><tt class="py-op">:</tt> </tt>
<a name="L3110"></a><tt class="py-lineno">3110</tt> <tt class="py-line"> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_data</tt> <tt class="py-op">=</tt> <tt class="py-name">obj</tt> </tt>
<a name="L3111"></a><tt class="py-lineno">3111</tt> <tt class="py-line"> <tt class="py-keyword">else</tt><tt class="py-op">:</tt> </tt>
<a name="L3112"></a><tt class="py-lineno">3112</tt> <tt class="py-line"> <tt class="py-keyword">raise</tt> <tt class="py-name">AttributeError</tt><tt class="py-op">(</tt><tt class="py-string">"data attribute is read-only"</tt><tt class="py-op">)</tt> </tt>
</div><a name="L3113"></a><tt class="py-lineno">3113</tt> <tt class="py-line"> <tt id="link-735" class="py-name"><a title="proton.Disposition.data" class="py-name" href="#" onclick="return doclink('link-735', 'data', 'link-8');">data</a></tt> <tt class="py-op">=</tt> <tt class="py-name">property</tt><tt class="py-op">(</tt><tt id="link-736" class="py-name" targets="Method proton.Disposition._get_data()=proton.Disposition-class.html#_get_data"><a title="proton.Disposition._get_data" class="py-name" href="#" onclick="return doclink('link-736', '_get_data', 'link-736');">_get_data</a></tt><tt class="py-op">,</tt> <tt id="link-737" class="py-name" targets="Method proton.Disposition._set_data()=proton.Disposition-class.html#_set_data"><a title="proton.Disposition._set_data" class="py-name" href="#" onclick="return doclink('link-737', '_set_data', 'link-737');">_set_data</a></tt><tt class="py-op">)</tt> </tt>
<a name="L3114"></a><tt class="py-lineno">3114</tt> <tt class="py-line"> </tt>
<a name="Disposition._get_annotations"></a><div id="Disposition._get_annotations-def"><a name="L3115"></a><tt class="py-lineno">3115</tt> <a class="py-toggle" href="#" id="Disposition._get_annotations-toggle" onclick="return toggle('Disposition._get_annotations');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Disposition-class.html#_get_annotations">_get_annotations</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Disposition._get_annotations-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Disposition._get_annotations-expanded"><a name="L3116"></a><tt class="py-lineno">3116</tt> <tt class="py-line"> <tt class="py-keyword">if</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">local</tt><tt class="py-op">:</tt> </tt>
<a name="L3117"></a><tt class="py-lineno">3117</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_annotations</tt> </tt>
<a name="L3118"></a><tt class="py-lineno">3118</tt> <tt class="py-line"> <tt class="py-keyword">else</tt><tt class="py-op">:</tt> </tt>
<a name="L3119"></a><tt class="py-lineno">3119</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt class="py-name">dat2obj</tt><tt class="py-op">(</tt><tt class="py-name">pn_disposition_annotations</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_impl</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
</div><a name="Disposition._set_annotations"></a><div id="Disposition._set_annotations-def"><a name="L3120"></a><tt class="py-lineno">3120</tt> <a class="py-toggle" href="#" id="Disposition._set_annotations-toggle" onclick="return toggle('Disposition._set_annotations');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Disposition-class.html#_set_annotations">_set_annotations</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">obj</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Disposition._set_annotations-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Disposition._set_annotations-expanded"><a name="L3121"></a><tt class="py-lineno">3121</tt> <tt class="py-line"> <tt class="py-keyword">if</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">local</tt><tt class="py-op">:</tt> </tt>
<a name="L3122"></a><tt class="py-lineno">3122</tt> <tt class="py-line"> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_annotations</tt> <tt class="py-op">=</tt> <tt class="py-name">obj</tt> </tt>
<a name="L3123"></a><tt class="py-lineno">3123</tt> <tt class="py-line"> <tt class="py-keyword">else</tt><tt class="py-op">:</tt> </tt>
<a name="L3124"></a><tt class="py-lineno">3124</tt> <tt class="py-line"> <tt class="py-keyword">raise</tt> <tt class="py-name">AttributeError</tt><tt class="py-op">(</tt><tt class="py-string">"annotations attribute is read-only"</tt><tt class="py-op">)</tt> </tt>
</div><a name="L3125"></a><tt class="py-lineno">3125</tt> <tt class="py-line"> <tt id="link-738" class="py-name"><a title="proton.Disposition.annotations" class="py-name" href="#" onclick="return doclink('link-738', 'annotations', 'link-92');">annotations</a></tt> <tt class="py-op">=</tt> <tt class="py-name">property</tt><tt class="py-op">(</tt><tt id="link-739" class="py-name" targets="Method proton.Disposition._get_annotations()=proton.Disposition-class.html#_get_annotations"><a title="proton.Disposition._get_annotations" class="py-name" href="#" onclick="return doclink('link-739', '_get_annotations', 'link-739');">_get_annotations</a></tt><tt class="py-op">,</tt> <tt id="link-740" class="py-name" targets="Method proton.Disposition._set_annotations()=proton.Disposition-class.html#_set_annotations"><a title="proton.Disposition._set_annotations" class="py-name" href="#" onclick="return doclink('link-740', '_set_annotations', 'link-740');">_set_annotations</a></tt><tt class="py-op">)</tt> </tt>
<a name="L3126"></a><tt class="py-lineno">3126</tt> <tt class="py-line"> </tt>
<a name="Disposition._get_condition"></a><div id="Disposition._get_condition-def"><a name="L3127"></a><tt class="py-lineno">3127</tt> <a class="py-toggle" href="#" id="Disposition._get_condition-toggle" onclick="return toggle('Disposition._get_condition');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Disposition-class.html#_get_condition">_get_condition</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Disposition._get_condition-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Disposition._get_condition-expanded"><a name="L3128"></a><tt class="py-lineno">3128</tt> <tt class="py-line"> <tt class="py-keyword">if</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">local</tt><tt class="py-op">:</tt> </tt>
<a name="L3129"></a><tt class="py-lineno">3129</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_condition</tt> </tt>
<a name="L3130"></a><tt class="py-lineno">3130</tt> <tt class="py-line"> <tt class="py-keyword">else</tt><tt class="py-op">:</tt> </tt>
<a name="L3131"></a><tt class="py-lineno">3131</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt class="py-name">cond2obj</tt><tt class="py-op">(</tt><tt class="py-name">pn_disposition_condition</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_impl</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
</div><a name="Disposition._set_condition"></a><div id="Disposition._set_condition-def"><a name="L3132"></a><tt class="py-lineno">3132</tt> <a class="py-toggle" href="#" id="Disposition._set_condition-toggle" onclick="return toggle('Disposition._set_condition');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Disposition-class.html#_set_condition">_set_condition</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">obj</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Disposition._set_condition-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Disposition._set_condition-expanded"><a name="L3133"></a><tt class="py-lineno">3133</tt> <tt class="py-line"> <tt class="py-keyword">if</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">local</tt><tt class="py-op">:</tt> </tt>
<a name="L3134"></a><tt class="py-lineno">3134</tt> <tt class="py-line"> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_condition</tt> <tt class="py-op">=</tt> <tt class="py-name">obj</tt> </tt>
<a name="L3135"></a><tt class="py-lineno">3135</tt> <tt class="py-line"> <tt class="py-keyword">else</tt><tt class="py-op">:</tt> </tt>
<a name="L3136"></a><tt class="py-lineno">3136</tt> <tt class="py-line"> <tt class="py-keyword">raise</tt> <tt class="py-name">AttributeError</tt><tt class="py-op">(</tt><tt class="py-string">"condition attribute is read-only"</tt><tt class="py-op">)</tt> </tt>
</div><a name="L3137"></a><tt class="py-lineno">3137</tt> <tt class="py-line"> <tt id="link-741" class="py-name"><a title="proton.Disposition.condition
proton.Transport.condition" class="py-name" href="#" onclick="return doclink('link-741', 'condition', 'link-522');">condition</a></tt> <tt class="py-op">=</tt> <tt class="py-name">property</tt><tt class="py-op">(</tt><tt id="link-742" class="py-name" targets="Method proton.Disposition._get_condition()=proton.Disposition-class.html#_get_condition"><a title="proton.Disposition._get_condition" class="py-name" href="#" onclick="return doclink('link-742', '_get_condition', 'link-742');">_get_condition</a></tt><tt class="py-op">,</tt> <tt id="link-743" class="py-name" targets="Method proton.Disposition._set_condition()=proton.Disposition-class.html#_set_condition"><a title="proton.Disposition._set_condition" class="py-name" href="#" onclick="return doclink('link-743', '_set_condition', 'link-743');">_set_condition</a></tt><tt class="py-op">)</tt> </tt>
</div><a name="L3138"></a><tt class="py-lineno">3138</tt> <tt class="py-line"> </tt>
<a name="Delivery"></a><div id="Delivery-def"><a name="L3139"></a><tt class="py-lineno">3139</tt> <a class="py-toggle" href="#" id="Delivery-toggle" onclick="return toggle('Delivery');">-</a><tt class="py-line"><tt class="py-keyword">class</tt> <a class="py-def-name" href="proton.Delivery-class.html">Delivery</a><tt class="py-op">(</tt><tt class="py-base-class">Wrapper</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Delivery-collapsed" style="display:none;" pad="++++" indent="++++"></div><div id="Delivery-expanded"><a name="L3140"></a><tt class="py-lineno">3140</tt> <tt class="py-line"> <tt class="py-docstring">"""</tt> </tt>
<a name="L3141"></a><tt class="py-lineno">3141</tt> <tt class="py-line"><tt class="py-docstring"> Tracks and/or records the delivery of a message over a link.</tt> </tt>
<a name="L3142"></a><tt class="py-lineno">3142</tt> <tt class="py-line"><tt class="py-docstring"> """</tt> </tt>
<a name="L3143"></a><tt class="py-lineno">3143</tt> <tt class="py-line"> </tt>
<a name="L3144"></a><tt class="py-lineno">3144</tt> <tt class="py-line"> <tt id="link-744" class="py-name"><a title="proton.Delivery.RECEIVED
proton.Disposition.RECEIVED" class="py-name" href="#" onclick="return doclink('link-744', 'RECEIVED', 'link-717');">RECEIVED</a></tt> <tt class="py-op">=</tt> <tt id="link-745" class="py-name" targets="Class proton.Disposition=proton.Disposition-class.html"><a title="proton.Disposition" class="py-name" href="#" onclick="return doclink('link-745', 'Disposition', 'link-745');">Disposition</a></tt><tt class="py-op">.</tt><tt id="link-746" class="py-name"><a title="proton.Delivery.RECEIVED
proton.Disposition.RECEIVED" class="py-name" href="#" onclick="return doclink('link-746', 'RECEIVED', 'link-717');">RECEIVED</a></tt> </tt>
<a name="L3145"></a><tt class="py-lineno">3145</tt> <tt class="py-line"> <tt id="link-747" class="py-name"><a title="proton.ACCEPTED
proton.Delivery.ACCEPTED
proton.Disposition.ACCEPTED" class="py-name" href="#" onclick="return doclink('link-747', 'ACCEPTED', 'link-32');">ACCEPTED</a></tt> <tt class="py-op">=</tt> <tt id="link-748" class="py-name"><a title="proton.Disposition" class="py-name" href="#" onclick="return doclink('link-748', 'Disposition', 'link-745');">Disposition</a></tt><tt class="py-op">.</tt><tt id="link-749" class="py-name"><a title="proton.ACCEPTED
proton.Delivery.ACCEPTED
proton.Disposition.ACCEPTED" class="py-name" href="#" onclick="return doclink('link-749', 'ACCEPTED', 'link-32');">ACCEPTED</a></tt> </tt>
<a name="L3146"></a><tt class="py-lineno">3146</tt> <tt class="py-line"> <tt id="link-750" class="py-name"><a title="proton.Delivery.REJECTED
proton.Disposition.REJECTED
proton.REJECTED" class="py-name" href="#" onclick="return doclink('link-750', 'REJECTED', 'link-33');">REJECTED</a></tt> <tt class="py-op">=</tt> <tt id="link-751" class="py-name"><a title="proton.Disposition" class="py-name" href="#" onclick="return doclink('link-751', 'Disposition', 'link-745');">Disposition</a></tt><tt class="py-op">.</tt><tt id="link-752" class="py-name"><a title="proton.Delivery.REJECTED
proton.Disposition.REJECTED
proton.REJECTED" class="py-name" href="#" onclick="return doclink('link-752', 'REJECTED', 'link-33');">REJECTED</a></tt> </tt>
<a name="L3147"></a><tt class="py-lineno">3147</tt> <tt class="py-line"> <tt id="link-753" class="py-name"><a title="proton.Delivery.RELEASED
proton.Disposition.RELEASED
proton.RELEASED" class="py-name" href="#" onclick="return doclink('link-753', 'RELEASED', 'link-34');">RELEASED</a></tt> <tt class="py-op">=</tt> <tt id="link-754" class="py-name"><a title="proton.Disposition" class="py-name" href="#" onclick="return doclink('link-754', 'Disposition', 'link-745');">Disposition</a></tt><tt class="py-op">.</tt><tt id="link-755" class="py-name"><a title="proton.Delivery.RELEASED
proton.Disposition.RELEASED
proton.RELEASED" class="py-name" href="#" onclick="return doclink('link-755', 'RELEASED', 'link-34');">RELEASED</a></tt> </tt>
<a name="L3148"></a><tt class="py-lineno">3148</tt> <tt class="py-line"> <tt id="link-756" class="py-name"><a title="proton.Delivery.MODIFIED
proton.Disposition.MODIFIED
proton.MODIFIED" class="py-name" href="#" onclick="return doclink('link-756', 'MODIFIED', 'link-35');">MODIFIED</a></tt> <tt class="py-op">=</tt> <tt id="link-757" class="py-name"><a title="proton.Disposition" class="py-name" href="#" onclick="return doclink('link-757', 'Disposition', 'link-745');">Disposition</a></tt><tt class="py-op">.</tt><tt id="link-758" class="py-name"><a title="proton.Delivery.MODIFIED
proton.Disposition.MODIFIED
proton.MODIFIED" class="py-name" href="#" onclick="return doclink('link-758', 'MODIFIED', 'link-35');">MODIFIED</a></tt> </tt>
<a name="L3149"></a><tt class="py-lineno">3149</tt> <tt class="py-line"> </tt>
<a name="L3150"></a><tt class="py-lineno">3150</tt> <tt class="py-line"> <tt class="py-decorator">@</tt><tt class="py-decorator">staticmethod</tt> </tt>
<a name="Delivery.wrap"></a><div id="Delivery.wrap-def"><a name="L3151"></a><tt class="py-lineno">3151</tt> <a class="py-toggle" href="#" id="Delivery.wrap-toggle" onclick="return toggle('Delivery.wrap');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Delivery-class.html#wrap">wrap</a><tt class="py-op">(</tt><tt class="py-param">impl</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Delivery.wrap-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Delivery.wrap-expanded"><a name="L3152"></a><tt class="py-lineno">3152</tt> <tt class="py-line"> <tt class="py-keyword">if</tt> <tt class="py-name">impl</tt> <tt class="py-keyword">is</tt> <tt class="py-name">None</tt><tt class="py-op">:</tt> </tt>
<a name="L3153"></a><tt class="py-lineno">3153</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt class="py-name">None</tt> </tt>
<a name="L3154"></a><tt class="py-lineno">3154</tt> <tt class="py-line"> <tt class="py-keyword">else</tt><tt class="py-op">:</tt> </tt>
<a name="L3155"></a><tt class="py-lineno">3155</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt id="link-759" class="py-name"><a title="proton.Delivery" class="py-name" href="#" onclick="return doclink('link-759', 'Delivery', 'link-607');">Delivery</a></tt><tt class="py-op">(</tt><tt class="py-name">impl</tt><tt class="py-op">)</tt> </tt>
</div><a name="L3156"></a><tt class="py-lineno">3156</tt> <tt class="py-line"> </tt>
<a name="Delivery.__init__"></a><div id="Delivery.__init__-def"><a name="L3157"></a><tt class="py-lineno">3157</tt> <a class="py-toggle" href="#" id="Delivery.__init__-toggle" onclick="return toggle('Delivery.__init__');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Delivery-class.html#__init__">__init__</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">impl</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Delivery.__init__-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Delivery.__init__-expanded"><a name="L3158"></a><tt class="py-lineno">3158</tt> <tt class="py-line"> <tt id="link-760" class="py-name"><a title="proton.wrapper.Wrapper" class="py-name" href="#" onclick="return doclink('link-760', 'Wrapper', 'link-1');">Wrapper</a></tt><tt class="py-op">.</tt><tt id="link-761" class="py-name"><a title="proton.Array.__init__
proton.Collector.__init__
proton.Condition.__init__
proton.Connection.__init__
proton.Data.__init__
proton.Delivery.__init__
proton.Described.__init__
proton.Disposition.__init__
proton.Event.__init__
proton.EventType.__init__
proton.Link.__init__
proton.Message.__init__
proton.Messenger.__init__
proton.SASL.__init__
proton.SSLDomain.__init__
proton.SSLSessionDetails.__init__
proton.Session.__init__
proton.Terminus.__init__
proton.Transport.__init__
proton.Url.PartDescriptor.__init__
proton.Url.__init__
proton.handlers.CFlowController.__init__
proton.handlers.CHandshaker.__init__
proton.handlers.EndpointStateHandler.__init__
proton.handlers.IOHandler.__init__
proton.handlers.IncomingMessageHandler.__init__
proton.handlers.MessagingHandler.__init__
proton.handlers.OutgoingMessageHandler.__init__
proton.handlers.PythonIO.__init__
proton.handlers.TransactionalClientHandler.__init__
proton.reactor.Acceptor.__init__
proton.reactor.ApplicationEvent.__init__
proton.reactor.Backoff.__init__
proton.reactor.Connector.__init__
proton.reactor.Container.__init__
proton.reactor.DynamicNodeProperties.__init__
proton.reactor.EventInjector.__init__
proton.reactor.Filter.__init__
proton.reactor.GlobalOverrides.__init__
proton.reactor.Reactor.__init__
proton.reactor.SSLConfig.__init__
proton.reactor.Selector.__init__
proton.reactor.SessionPerConnection.__init__
proton.reactor.Task.__init__
proton.reactor.Transaction.__init__
proton.reactor.Urls.__init__
proton.utils.AtomicCount.__init__
proton.utils.BlockingConnection.__init__
proton.utils.BlockingLink.__init__
proton.utils.BlockingReceiver.__init__
proton.utils.BlockingSender.__init__
proton.utils.ConnectionClosed.__init__
proton.utils.Fetcher.__init__
proton.utils.LinkDetached.__init__
proton.utils.SendException.__init__
proton.utils.SyncRequestResponse.__init__
proton.wrapper.Wrapper.__init__" class="py-name" href="#" onclick="return doclink('link-761', '__init__', 'link-242');">__init__</a></tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">,</tt> <tt class="py-name">impl</tt><tt class="py-op">,</tt> <tt class="py-name">pn_delivery_attachments</tt><tt class="py-op">)</tt> </tt>
</div><a name="L3159"></a><tt class="py-lineno">3159</tt> <tt class="py-line"> </tt>
<a name="Delivery._init"></a><div id="Delivery._init-def"><a name="L3160"></a><tt class="py-lineno">3160</tt> <a class="py-toggle" href="#" id="Delivery._init-toggle" onclick="return toggle('Delivery._init');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Delivery-class.html#_init">_init</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Delivery._init-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Delivery._init-expanded"><a name="L3161"></a><tt class="py-lineno">3161</tt> <tt class="py-line"> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">local</tt> <tt class="py-op">=</tt> <tt id="link-762" class="py-name"><a title="proton.Disposition" class="py-name" href="#" onclick="return doclink('link-762', 'Disposition', 'link-745');">Disposition</a></tt><tt class="py-op">(</tt><tt class="py-name">pn_delivery_local</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_impl</tt><tt class="py-op">)</tt><tt class="py-op">,</tt> <tt class="py-name">True</tt><tt class="py-op">)</tt> </tt>
<a name="L3162"></a><tt class="py-lineno">3162</tt> <tt class="py-line"> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">remote</tt> <tt class="py-op">=</tt> <tt id="link-763" class="py-name"><a title="proton.Disposition" class="py-name" href="#" onclick="return doclink('link-763', 'Disposition', 'link-745');">Disposition</a></tt><tt class="py-op">(</tt><tt class="py-name">pn_delivery_remote</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_impl</tt><tt class="py-op">)</tt><tt class="py-op">,</tt> <tt class="py-name">False</tt><tt class="py-op">)</tt> </tt>
</div><a name="L3163"></a><tt class="py-lineno">3163</tt> <tt class="py-line"> </tt>
<a name="L3164"></a><tt class="py-lineno">3164</tt> <tt class="py-line"> <tt class="py-decorator">@</tt><tt class="py-decorator">property</tt> </tt>
<a name="Delivery.tag"></a><div id="Delivery.tag-def"><a name="L3165"></a><tt class="py-lineno">3165</tt> <a class="py-toggle" href="#" id="Delivery.tag-toggle" onclick="return toggle('Delivery.tag');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Delivery-class.html#tag">tag</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Delivery.tag-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Delivery.tag-expanded"><a name="L3166"></a><tt class="py-lineno">3166</tt> <tt class="py-line"> <tt class="py-docstring">"""The identifier for the delivery."""</tt> </tt>
<a name="L3167"></a><tt class="py-lineno">3167</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt class="py-name">pn_delivery_tag</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_impl</tt><tt class="py-op">)</tt> </tt>
</div><a name="L3168"></a><tt class="py-lineno">3168</tt> <tt class="py-line"> </tt>
<a name="L3169"></a><tt class="py-lineno">3169</tt> <tt class="py-line"> <tt class="py-decorator">@</tt><tt class="py-decorator">property</tt> </tt>
<a name="Delivery.writable"></a><div id="Delivery.writable-def"><a name="L3170"></a><tt class="py-lineno">3170</tt> <a class="py-toggle" href="#" id="Delivery.writable-toggle" onclick="return toggle('Delivery.writable');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Delivery-class.html#writable">writable</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Delivery.writable-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Delivery.writable-expanded"><a name="L3171"></a><tt class="py-lineno">3171</tt> <tt class="py-line"> <tt class="py-docstring">"""Returns true for an outgoing delivery to which data can now be written."""</tt> </tt>
<a name="L3172"></a><tt class="py-lineno">3172</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt class="py-name">pn_delivery_writable</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_impl</tt><tt class="py-op">)</tt> </tt>
</div><a name="L3173"></a><tt class="py-lineno">3173</tt> <tt class="py-line"> </tt>
<a name="L3174"></a><tt class="py-lineno">3174</tt> <tt class="py-line"> <tt class="py-decorator">@</tt><tt class="py-decorator">property</tt> </tt>
<a name="Delivery.readable"></a><div id="Delivery.readable-def"><a name="L3175"></a><tt class="py-lineno">3175</tt> <a class="py-toggle" href="#" id="Delivery.readable-toggle" onclick="return toggle('Delivery.readable');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Delivery-class.html#readable">readable</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Delivery.readable-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Delivery.readable-expanded"><a name="L3176"></a><tt class="py-lineno">3176</tt> <tt class="py-line"> <tt class="py-docstring">"""Returns true for an incoming delivery that has data to read."""</tt> </tt>
<a name="L3177"></a><tt class="py-lineno">3177</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt class="py-name">pn_delivery_readable</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_impl</tt><tt class="py-op">)</tt> </tt>
</div><a name="L3178"></a><tt class="py-lineno">3178</tt> <tt class="py-line"> </tt>
<a name="L3179"></a><tt class="py-lineno">3179</tt> <tt class="py-line"> <tt class="py-decorator">@</tt><tt class="py-decorator">property</tt> </tt>
<a name="Delivery.updated"></a><div id="Delivery.updated-def"><a name="L3180"></a><tt class="py-lineno">3180</tt> <a class="py-toggle" href="#" id="Delivery.updated-toggle" onclick="return toggle('Delivery.updated');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Delivery-class.html#updated">updated</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Delivery.updated-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Delivery.updated-expanded"><a name="L3181"></a><tt class="py-lineno">3181</tt> <tt class="py-line"> <tt class="py-docstring">"""Returns true if the state of the delivery has been updated</tt> </tt>
<a name="L3182"></a><tt class="py-lineno">3182</tt> <tt class="py-line"><tt class="py-docstring"> (e.g. it has been settled and/or accepted, rejected etc)."""</tt> </tt>
<a name="L3183"></a><tt class="py-lineno">3183</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt class="py-name">pn_delivery_updated</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_impl</tt><tt class="py-op">)</tt> </tt>
</div><a name="L3184"></a><tt class="py-lineno">3184</tt> <tt class="py-line"> </tt>
<a name="Delivery.update"></a><div id="Delivery.update-def"><a name="L3185"></a><tt class="py-lineno">3185</tt> <a class="py-toggle" href="#" id="Delivery.update-toggle" onclick="return toggle('Delivery.update');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Delivery-class.html#update">update</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">state</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Delivery.update-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Delivery.update-expanded"><a name="L3186"></a><tt class="py-lineno">3186</tt> <tt class="py-line"> <tt class="py-docstring">"""</tt> </tt>
<a name="L3187"></a><tt class="py-lineno">3187</tt> <tt class="py-line"><tt class="py-docstring"> Set the local state of the delivery e.g. ACCEPTED, REJECTED, RELEASED.</tt> </tt>
<a name="L3188"></a><tt class="py-lineno">3188</tt> <tt class="py-line"><tt class="py-docstring"> """</tt> </tt>
<a name="L3189"></a><tt class="py-lineno">3189</tt> <tt class="py-line"> <tt class="py-name">obj2dat</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">local</tt><tt class="py-op">.</tt><tt class="py-name">_data</tt><tt class="py-op">,</tt> <tt class="py-name">pn_disposition_data</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">local</tt><tt class="py-op">.</tt><tt class="py-name">_impl</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
<a name="L3190"></a><tt class="py-lineno">3190</tt> <tt class="py-line"> <tt class="py-name">obj2dat</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">local</tt><tt class="py-op">.</tt><tt class="py-name">_annotations</tt><tt class="py-op">,</tt> <tt class="py-name">pn_disposition_annotations</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">local</tt><tt class="py-op">.</tt><tt class="py-name">_impl</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
<a name="L3191"></a><tt class="py-lineno">3191</tt> <tt class="py-line"> <tt class="py-name">obj2cond</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">local</tt><tt class="py-op">.</tt><tt class="py-name">_condition</tt><tt class="py-op">,</tt> <tt class="py-name">pn_disposition_condition</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">local</tt><tt class="py-op">.</tt><tt class="py-name">_impl</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
<a name="L3192"></a><tt class="py-lineno">3192</tt> <tt class="py-line"> <tt class="py-name">pn_delivery_update</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_impl</tt><tt class="py-op">,</tt> <tt id="link-764" class="py-name" targets="Variable proton.Connection.state=proton.Connection-class.html#state,Variable proton.Link.state=proton.Link-class.html#state,Variable proton.Session.state=proton.Session-class.html#state"><a title="proton.Connection.state
proton.Link.state
proton.Session.state" class="py-name" href="#" onclick="return doclink('link-764', 'state', 'link-764');">state</a></tt><tt class="py-op">)</tt> </tt>
</div><a name="L3193"></a><tt class="py-lineno">3193</tt> <tt class="py-line"> </tt>
<a name="L3194"></a><tt class="py-lineno">3194</tt> <tt class="py-line"> <tt class="py-decorator">@</tt><tt class="py-decorator">property</tt> </tt>
<a name="Delivery.pending"></a><div id="Delivery.pending-def"><a name="L3195"></a><tt class="py-lineno">3195</tt> <a class="py-toggle" href="#" id="Delivery.pending-toggle" onclick="return toggle('Delivery.pending');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Delivery-class.html#pending">pending</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Delivery.pending-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Delivery.pending-expanded"><a name="L3196"></a><tt class="py-lineno">3196</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt class="py-name">pn_delivery_pending</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_impl</tt><tt class="py-op">)</tt> </tt>
</div><a name="L3197"></a><tt class="py-lineno">3197</tt> <tt class="py-line"> </tt>
<a name="L3198"></a><tt class="py-lineno">3198</tt> <tt class="py-line"> <tt class="py-decorator">@</tt><tt class="py-decorator">property</tt> </tt>
<a name="Delivery.partial"></a><div id="Delivery.partial-def"><a name="L3199"></a><tt class="py-lineno">3199</tt> <a class="py-toggle" href="#" id="Delivery.partial-toggle" onclick="return toggle('Delivery.partial');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Delivery-class.html#partial">partial</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Delivery.partial-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Delivery.partial-expanded"><a name="L3200"></a><tt class="py-lineno">3200</tt> <tt class="py-line"> <tt class="py-docstring">"""</tt> </tt>
<a name="L3201"></a><tt class="py-lineno">3201</tt> <tt class="py-line"><tt class="py-docstring"> Returns true for an incoming delivery if not all the data is</tt> </tt>
<a name="L3202"></a><tt class="py-lineno">3202</tt> <tt class="py-line"><tt class="py-docstring"> yet available.</tt> </tt>
<a name="L3203"></a><tt class="py-lineno">3203</tt> <tt class="py-line"><tt class="py-docstring"> """</tt> </tt>
<a name="L3204"></a><tt class="py-lineno">3204</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt class="py-name">pn_delivery_partial</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_impl</tt><tt class="py-op">)</tt> </tt>
</div><a name="L3205"></a><tt class="py-lineno">3205</tt> <tt class="py-line"> </tt>
<a name="L3206"></a><tt class="py-lineno">3206</tt> <tt class="py-line"> <tt class="py-decorator">@</tt><tt class="py-decorator">property</tt> </tt>
<a name="Delivery.local_state"></a><div id="Delivery.local_state-def"><a name="L3207"></a><tt class="py-lineno">3207</tt> <a class="py-toggle" href="#" id="Delivery.local_state-toggle" onclick="return toggle('Delivery.local_state');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Delivery-class.html#local_state">local_state</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Delivery.local_state-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Delivery.local_state-expanded"><a name="L3208"></a><tt class="py-lineno">3208</tt> <tt class="py-line"> <tt class="py-docstring">"""Returns the local state of the delivery."""</tt> </tt>
<a name="L3209"></a><tt class="py-lineno">3209</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt class="py-name">DispositionType</tt><tt class="py-op">.</tt><tt id="link-765" class="py-name"><a title="proton.Messenger.get" class="py-name" href="#" onclick="return doclink('link-765', 'get', 'link-50');">get</a></tt><tt class="py-op">(</tt><tt class="py-name">pn_delivery_local_state</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_impl</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
</div><a name="L3210"></a><tt class="py-lineno">3210</tt> <tt class="py-line"> </tt>
<a name="L3211"></a><tt class="py-lineno">3211</tt> <tt class="py-line"> <tt class="py-decorator">@</tt><tt class="py-decorator">property</tt> </tt>
<a name="Delivery.remote_state"></a><div id="Delivery.remote_state-def"><a name="L3212"></a><tt class="py-lineno">3212</tt> <a class="py-toggle" href="#" id="Delivery.remote_state-toggle" onclick="return toggle('Delivery.remote_state');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Delivery-class.html#remote_state">remote_state</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Delivery.remote_state-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Delivery.remote_state-expanded"><a name="L3213"></a><tt class="py-lineno">3213</tt> <tt class="py-line"> <tt class="py-docstring">"""</tt> </tt>
<a name="L3214"></a><tt class="py-lineno">3214</tt> <tt class="py-line"><tt class="py-docstring"> Returns the state of the delivery as indicated by the remote</tt> </tt>
<a name="L3215"></a><tt class="py-lineno">3215</tt> <tt class="py-line"><tt class="py-docstring"> peer.</tt> </tt>
<a name="L3216"></a><tt class="py-lineno">3216</tt> <tt class="py-line"><tt class="py-docstring"> """</tt> </tt>
<a name="L3217"></a><tt class="py-lineno">3217</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt class="py-name">DispositionType</tt><tt class="py-op">.</tt><tt id="link-766" class="py-name"><a title="proton.Messenger.get" class="py-name" href="#" onclick="return doclink('link-766', 'get', 'link-50');">get</a></tt><tt class="py-op">(</tt><tt class="py-name">pn_delivery_remote_state</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_impl</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
</div><a name="L3218"></a><tt class="py-lineno">3218</tt> <tt class="py-line"> </tt>
<a name="L3219"></a><tt class="py-lineno">3219</tt> <tt class="py-line"> <tt class="py-decorator">@</tt><tt class="py-decorator">property</tt> </tt>
<a name="Delivery.settled"></a><div id="Delivery.settled-def"><a name="L3220"></a><tt class="py-lineno">3220</tt> <a class="py-toggle" href="#" id="Delivery.settled-toggle" onclick="return toggle('Delivery.settled');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Delivery-class.html#settled">settled</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Delivery.settled-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Delivery.settled-expanded"><a name="L3221"></a><tt class="py-lineno">3221</tt> <tt class="py-line"> <tt class="py-docstring">"""</tt> </tt>
<a name="L3222"></a><tt class="py-lineno">3222</tt> <tt class="py-line"><tt class="py-docstring"> Returns true if the delivery has been settled by the remote peer.</tt> </tt>
<a name="L3223"></a><tt class="py-lineno">3223</tt> <tt class="py-line"><tt class="py-docstring"> """</tt> </tt>
<a name="L3224"></a><tt class="py-lineno">3224</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt class="py-name">pn_delivery_settled</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_impl</tt><tt class="py-op">)</tt> </tt>
</div><a name="L3225"></a><tt class="py-lineno">3225</tt> <tt class="py-line"> </tt>
<a name="Delivery.settle"></a><div id="Delivery.settle-def"><a name="L3226"></a><tt class="py-lineno">3226</tt> <a class="py-toggle" href="#" id="Delivery.settle-toggle" onclick="return toggle('Delivery.settle');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Delivery-class.html#settle">settle</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Delivery.settle-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Delivery.settle-expanded"><a name="L3227"></a><tt class="py-lineno">3227</tt> <tt class="py-line"> <tt class="py-docstring">"""</tt> </tt>
<a name="L3228"></a><tt class="py-lineno">3228</tt> <tt class="py-line"><tt class="py-docstring"> Settles the delivery locally. This indicates the aplication</tt> </tt>
<a name="L3229"></a><tt class="py-lineno">3229</tt> <tt class="py-line"><tt class="py-docstring"> considers the delivery complete and does not wish to receive any</tt> </tt>
<a name="L3230"></a><tt class="py-lineno">3230</tt> <tt class="py-line"><tt class="py-docstring"> further events about it. Every delivery should be settled locally.</tt> </tt>
<a name="L3231"></a><tt class="py-lineno">3231</tt> <tt class="py-line"><tt class="py-docstring"> """</tt> </tt>
<a name="L3232"></a><tt class="py-lineno">3232</tt> <tt class="py-line"> <tt class="py-name">pn_delivery_settle</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_impl</tt><tt class="py-op">)</tt> </tt>
</div><a name="L3233"></a><tt class="py-lineno">3233</tt> <tt class="py-line"> </tt>
<a name="L3234"></a><tt class="py-lineno">3234</tt> <tt class="py-line"> <tt class="py-decorator">@</tt><tt class="py-decorator">property</tt> </tt>
<a name="Delivery.work_next"></a><div id="Delivery.work_next-def"><a name="L3235"></a><tt class="py-lineno">3235</tt> <a class="py-toggle" href="#" id="Delivery.work_next-toggle" onclick="return toggle('Delivery.work_next');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Delivery-class.html#work_next">work_next</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Delivery.work_next-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Delivery.work_next-expanded"><a name="L3236"></a><tt class="py-lineno">3236</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt id="link-767" class="py-name"><a title="proton.Delivery" class="py-name" href="#" onclick="return doclink('link-767', 'Delivery', 'link-607');">Delivery</a></tt><tt class="py-op">.</tt><tt id="link-768" class="py-name"><a title="proton.Connection.wrap
proton.Delivery.wrap
proton.Event.wrap
proton.Link.wrap
proton.Session.wrap
proton.Transport.wrap
proton.reactor.Reactor.wrap
proton.reactor.Task.wrap" class="py-name" href="#" onclick="return doclink('link-768', 'wrap', 'link-88');">wrap</a></tt><tt class="py-op">(</tt><tt class="py-name">pn_work_next</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_impl</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
</div><a name="L3237"></a><tt class="py-lineno">3237</tt> <tt class="py-line"> </tt>
<a name="L3238"></a><tt class="py-lineno">3238</tt> <tt class="py-line"> <tt class="py-decorator">@</tt><tt class="py-decorator">property</tt> </tt>
<a name="Delivery.link"></a><div id="Delivery.link-def"><a name="L3239"></a><tt class="py-lineno">3239</tt> <a class="py-toggle" href="#" id="Delivery.link-toggle" onclick="return toggle('Delivery.link');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Delivery-class.html#link">link</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Delivery.link-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Delivery.link-expanded"><a name="L3240"></a><tt class="py-lineno">3240</tt> <tt class="py-line"> <tt class="py-docstring">"""</tt> </tt>
<a name="L3241"></a><tt class="py-lineno">3241</tt> <tt class="py-line"><tt class="py-docstring"> Returns the link on which the delivery was sent or received.</tt> </tt>
<a name="L3242"></a><tt class="py-lineno">3242</tt> <tt class="py-line"><tt class="py-docstring"> """</tt> </tt>
<a name="L3243"></a><tt class="py-lineno">3243</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt id="link-769" class="py-name"><a title="proton.Link" class="py-name" href="#" onclick="return doclink('link-769', 'Link', 'link-221');">Link</a></tt><tt class="py-op">.</tt><tt id="link-770" class="py-name"><a title="proton.Connection.wrap
proton.Delivery.wrap
proton.Event.wrap
proton.Link.wrap
proton.Session.wrap
proton.Transport.wrap
proton.reactor.Reactor.wrap
proton.reactor.Task.wrap" class="py-name" href="#" onclick="return doclink('link-770', 'wrap', 'link-88');">wrap</a></tt><tt class="py-op">(</tt><tt class="py-name">pn_delivery_link</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_impl</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
</div><a name="L3244"></a><tt class="py-lineno">3244</tt> <tt class="py-line"> </tt>
<a name="L3245"></a><tt class="py-lineno">3245</tt> <tt class="py-line"> <tt class="py-decorator">@</tt><tt class="py-decorator">property</tt> </tt>
<a name="Delivery.session"></a><div id="Delivery.session-def"><a name="L3246"></a><tt class="py-lineno">3246</tt> <a class="py-toggle" href="#" id="Delivery.session-toggle" onclick="return toggle('Delivery.session');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Delivery-class.html#session">session</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Delivery.session-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Delivery.session-expanded"><a name="L3247"></a><tt class="py-lineno">3247</tt> <tt class="py-line"> <tt class="py-docstring">"""</tt> </tt>
<a name="L3248"></a><tt class="py-lineno">3248</tt> <tt class="py-line"><tt class="py-docstring"> Returns the session over which the delivery was sent or received.</tt> </tt>
<a name="L3249"></a><tt class="py-lineno">3249</tt> <tt class="py-line"><tt class="py-docstring"> """</tt> </tt>
<a name="L3250"></a><tt class="py-lineno">3250</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-771" class="py-name"><a title="proton.Delivery.link
proton.Event.link" class="py-name" href="#" onclick="return doclink('link-771', 'link', 'link-224');">link</a></tt><tt class="py-op">.</tt><tt id="link-772" class="py-name"><a title="proton.Connection.session
proton.Delivery.session
proton.Event.session
proton.Link.session
proton.reactor.SessionPerConnection.session" class="py-name" href="#" onclick="return doclink('link-772', 'session', 'link-644');">session</a></tt> </tt>
</div><a name="L3251"></a><tt class="py-lineno">3251</tt> <tt class="py-line"> </tt>
<a name="L3252"></a><tt class="py-lineno">3252</tt> <tt class="py-line"> <tt class="py-decorator">@</tt><tt class="py-decorator">property</tt> </tt>
<a name="Delivery.connection"></a><div id="Delivery.connection-def"><a name="L3253"></a><tt class="py-lineno">3253</tt> <a class="py-toggle" href="#" id="Delivery.connection-toggle" onclick="return toggle('Delivery.connection');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Delivery-class.html#connection">connection</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Delivery.connection-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Delivery.connection-expanded"><a name="L3254"></a><tt class="py-lineno">3254</tt> <tt class="py-line"> <tt class="py-docstring">"""</tt> </tt>
<a name="L3255"></a><tt class="py-lineno">3255</tt> <tt class="py-line"><tt class="py-docstring"> Returns the connection over which the delivery was sent or received.</tt> </tt>
<a name="L3256"></a><tt class="py-lineno">3256</tt> <tt class="py-line"><tt class="py-docstring"> """</tt> </tt>
<a name="L3257"></a><tt class="py-lineno">3257</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-773" class="py-name"><a title="proton.Connection.session
proton.Delivery.session
proton.Event.session
proton.Link.session
proton.reactor.SessionPerConnection.session" class="py-name" href="#" onclick="return doclink('link-773', 'session', 'link-644');">session</a></tt><tt class="py-op">.</tt><tt id="link-774" class="py-name"><a title="proton.Connection.connection
proton.Delivery.connection
proton.Event.connection
proton.Link.connection
proton.Session.connection
proton.Transport.connection
proton.reactor.Reactor.connection" class="py-name" href="#" onclick="return doclink('link-774', 'connection', 'link-545');">connection</a></tt> </tt>
</div><a name="L3258"></a><tt class="py-lineno">3258</tt> <tt class="py-line"> </tt>
<a name="L3259"></a><tt class="py-lineno">3259</tt> <tt class="py-line"> <tt class="py-decorator">@</tt><tt class="py-decorator">property</tt> </tt>
<a name="Delivery.transport"></a><div id="Delivery.transport-def"><a name="L3260"></a><tt class="py-lineno">3260</tt> <a class="py-toggle" href="#" id="Delivery.transport-toggle" onclick="return toggle('Delivery.transport');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Delivery-class.html#transport">transport</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Delivery.transport-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Delivery.transport-expanded"><a name="L3261"></a><tt class="py-lineno">3261</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-775" class="py-name"><a title="proton.Connection.connection
proton.Delivery.connection
proton.Event.connection
proton.Link.connection
proton.Session.connection
proton.Transport.connection
proton.reactor.Reactor.connection" class="py-name" href="#" onclick="return doclink('link-775', 'connection', 'link-545');">connection</a></tt><tt class="py-op">.</tt><tt id="link-776" class="py-name"><a title="proton.Connection.transport
proton.Delivery.transport
proton.Endpoint.transport
proton.Event.transport" class="py-name" href="#" onclick="return doclink('link-776', 'transport', 'link-546');">transport</a></tt> </tt>
</div></div><a name="L3262"></a><tt class="py-lineno">3262</tt> <tt class="py-line"> </tt>
<a name="TransportException"></a><div id="TransportException-def"><a name="L3263"></a><tt class="py-lineno">3263</tt> <a class="py-toggle" href="#" id="TransportException-toggle" onclick="return toggle('TransportException');">-</a><tt class="py-line"><tt class="py-keyword">class</tt> <a class="py-def-name" href="proton.TransportException-class.html">TransportException</a><tt class="py-op">(</tt><tt class="py-base-class">ProtonException</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="TransportException-collapsed" style="display:none;" pad="++++" indent="++++"></div><div id="TransportException-expanded"><a name="L3264"></a><tt class="py-lineno">3264</tt> <tt class="py-line"> <tt class="py-keyword">pass</tt> </tt>
</div><a name="L3265"></a><tt class="py-lineno">3265</tt> <tt class="py-line"> </tt>
<a name="TraceAdapter"></a><div id="TraceAdapter-def"><a name="L3266"></a><tt class="py-lineno">3266</tt> <a class="py-toggle" href="#" id="TraceAdapter-toggle" onclick="return toggle('TraceAdapter');">-</a><tt class="py-line"><tt class="py-keyword">class</tt> <a class="py-def-name" href="proton.TraceAdapter-class.html">TraceAdapter</a><tt class="py-op">:</tt> </tt>
</div><div id="TraceAdapter-collapsed" style="display:none;" pad="++++" indent="++++"></div><div id="TraceAdapter-expanded"><a name="L3267"></a><tt class="py-lineno">3267</tt> <tt class="py-line"> </tt>
<a name="TraceAdapter.__init__"></a><div id="TraceAdapter.__init__-def"><a name="L3268"></a><tt class="py-lineno">3268</tt> <a class="py-toggle" href="#" id="TraceAdapter.__init__-toggle" onclick="return toggle('TraceAdapter.__init__');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.TraceAdapter-class.html#__init__">__init__</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">tracer</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="TraceAdapter.__init__-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="TraceAdapter.__init__-expanded"><a name="L3269"></a><tt class="py-lineno">3269</tt> <tt class="py-line"> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-777" class="py-name" targets="Variable proton.Transport.tracer=proton.Transport-class.html#tracer"><a title="proton.Transport.tracer" class="py-name" href="#" onclick="return doclink('link-777', 'tracer', 'link-777');">tracer</a></tt> <tt class="py-op">=</tt> <tt id="link-778" class="py-name"><a title="proton.Transport.tracer" class="py-name" href="#" onclick="return doclink('link-778', 'tracer', 'link-777');">tracer</a></tt> </tt>
</div><a name="L3270"></a><tt class="py-lineno">3270</tt> <tt class="py-line"> </tt>
<a name="TraceAdapter.__call__"></a><div id="TraceAdapter.__call__-def"><a name="L3271"></a><tt class="py-lineno">3271</tt> <a class="py-toggle" href="#" id="TraceAdapter.__call__-toggle" onclick="return toggle('TraceAdapter.__call__');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.TraceAdapter-class.html#__call__">__call__</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">trans_impl</tt><tt class="py-op">,</tt> <tt class="py-param">message</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="TraceAdapter.__call__-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="TraceAdapter.__call__-expanded"><a name="L3272"></a><tt class="py-lineno">3272</tt> <tt class="py-line"> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-779" class="py-name"><a title="proton.Transport.tracer" class="py-name" href="#" onclick="return doclink('link-779', 'tracer', 'link-777');">tracer</a></tt><tt class="py-op">(</tt><tt id="link-780" class="py-name"><a title="proton.Transport" class="py-name" href="#" onclick="return doclink('link-780', 'Transport', 'link-580');">Transport</a></tt><tt class="py-op">.</tt><tt id="link-781" class="py-name"><a title="proton.Connection.wrap
proton.Delivery.wrap
proton.Event.wrap
proton.Link.wrap
proton.Session.wrap
proton.Transport.wrap
proton.reactor.Reactor.wrap
proton.reactor.Task.wrap" class="py-name" href="#" onclick="return doclink('link-781', 'wrap', 'link-88');">wrap</a></tt><tt class="py-op">(</tt><tt class="py-name">trans_impl</tt><tt class="py-op">)</tt><tt class="py-op">,</tt> <tt class="py-name">message</tt><tt class="py-op">)</tt> </tt>
</div></div><a name="L3273"></a><tt class="py-lineno">3273</tt> <tt class="py-line"> </tt>
<a name="Transport"></a><div id="Transport-def"><a name="L3274"></a><tt class="py-lineno">3274</tt> <a class="py-toggle" href="#" id="Transport-toggle" onclick="return toggle('Transport');">-</a><tt class="py-line"><tt class="py-keyword">class</tt> <a class="py-def-name" href="proton.Transport-class.html">Transport</a><tt class="py-op">(</tt><tt class="py-base-class">Wrapper</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Transport-collapsed" style="display:none;" pad="++++" indent="++++"></div><div id="Transport-expanded"><a name="L3275"></a><tt class="py-lineno">3275</tt> <tt class="py-line"> </tt>
<a name="L3276"></a><tt class="py-lineno">3276</tt> <tt class="py-line"> <tt id="link-782" class="py-name" targets="Variable proton.Transport.TRACE_OFF=proton.Transport-class.html#TRACE_OFF"><a title="proton.Transport.TRACE_OFF" class="py-name" href="#" onclick="return doclink('link-782', 'TRACE_OFF', 'link-782');">TRACE_OFF</a></tt> <tt class="py-op">=</tt> <tt class="py-name">PN_TRACE_OFF</tt> </tt>
<a name="L3277"></a><tt class="py-lineno">3277</tt> <tt class="py-line"> <tt id="link-783" class="py-name" targets="Variable proton.Transport.TRACE_DRV=proton.Transport-class.html#TRACE_DRV"><a title="proton.Transport.TRACE_DRV" class="py-name" href="#" onclick="return doclink('link-783', 'TRACE_DRV', 'link-783');">TRACE_DRV</a></tt> <tt class="py-op">=</tt> <tt class="py-name">PN_TRACE_DRV</tt> </tt>
<a name="L3278"></a><tt class="py-lineno">3278</tt> <tt class="py-line"> <tt id="link-784" class="py-name" targets="Variable proton.Transport.TRACE_FRM=proton.Transport-class.html#TRACE_FRM"><a title="proton.Transport.TRACE_FRM" class="py-name" href="#" onclick="return doclink('link-784', 'TRACE_FRM', 'link-784');">TRACE_FRM</a></tt> <tt class="py-op">=</tt> <tt class="py-name">PN_TRACE_FRM</tt> </tt>
<a name="L3279"></a><tt class="py-lineno">3279</tt> <tt class="py-line"> <tt id="link-785" class="py-name" targets="Variable proton.Transport.TRACE_RAW=proton.Transport-class.html#TRACE_RAW"><a title="proton.Transport.TRACE_RAW" class="py-name" href="#" onclick="return doclink('link-785', 'TRACE_RAW', 'link-785');">TRACE_RAW</a></tt> <tt class="py-op">=</tt> <tt class="py-name">PN_TRACE_RAW</tt> </tt>
<a name="L3280"></a><tt class="py-lineno">3280</tt> <tt class="py-line"> </tt>
<a name="L3281"></a><tt class="py-lineno">3281</tt> <tt class="py-line"> <tt id="link-786" class="py-name" targets="Variable proton.Transport.CLIENT=proton.Transport-class.html#CLIENT"><a title="proton.Transport.CLIENT" class="py-name" href="#" onclick="return doclink('link-786', 'CLIENT', 'link-786');">CLIENT</a></tt> <tt class="py-op">=</tt> <tt class="py-number">1</tt> </tt>
<a name="L3282"></a><tt class="py-lineno">3282</tt> <tt class="py-line"> <tt id="link-787" class="py-name" targets="Variable proton.Transport.SERVER=proton.Transport-class.html#SERVER"><a title="proton.Transport.SERVER" class="py-name" href="#" onclick="return doclink('link-787', 'SERVER', 'link-787');">SERVER</a></tt> <tt class="py-op">=</tt> <tt class="py-number">2</tt> </tt>
<a name="L3283"></a><tt class="py-lineno">3283</tt> <tt class="py-line"> </tt>
<a name="L3284"></a><tt class="py-lineno">3284</tt> <tt class="py-line"> <tt class="py-decorator">@</tt><tt class="py-decorator">staticmethod</tt> </tt>
<a name="Transport.wrap"></a><div id="Transport.wrap-def"><a name="L3285"></a><tt class="py-lineno">3285</tt> <a class="py-toggle" href="#" id="Transport.wrap-toggle" onclick="return toggle('Transport.wrap');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Transport-class.html#wrap">wrap</a><tt class="py-op">(</tt><tt class="py-param">impl</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Transport.wrap-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Transport.wrap-expanded"><a name="L3286"></a><tt class="py-lineno">3286</tt> <tt class="py-line"> <tt class="py-keyword">if</tt> <tt class="py-name">impl</tt> <tt class="py-keyword">is</tt> <tt class="py-name">None</tt><tt class="py-op">:</tt> </tt>
<a name="L3287"></a><tt class="py-lineno">3287</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt class="py-name">None</tt> </tt>
<a name="L3288"></a><tt class="py-lineno">3288</tt> <tt class="py-line"> <tt class="py-keyword">else</tt><tt class="py-op">:</tt> </tt>
<a name="L3289"></a><tt class="py-lineno">3289</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt id="link-788" class="py-name"><a title="proton.Transport" class="py-name" href="#" onclick="return doclink('link-788', 'Transport', 'link-580');">Transport</a></tt><tt class="py-op">(</tt><tt class="py-name">_impl</tt><tt class="py-op">=</tt><tt class="py-name">impl</tt><tt class="py-op">)</tt> </tt>
</div><a name="L3290"></a><tt class="py-lineno">3290</tt> <tt class="py-line"> </tt>
<a name="Transport.__init__"></a><div id="Transport.__init__-def"><a name="L3291"></a><tt class="py-lineno">3291</tt> <a class="py-toggle" href="#" id="Transport.__init__-toggle" onclick="return toggle('Transport.__init__');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Transport-class.html#__init__">__init__</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">mode</tt><tt class="py-op">=</tt><tt class="py-name">None</tt><tt class="py-op">,</tt> <tt class="py-param">_impl</tt> <tt class="py-op">=</tt> <tt class="py-name">pn_transport</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Transport.__init__-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Transport.__init__-expanded"><a name="L3292"></a><tt class="py-lineno">3292</tt> <tt class="py-line"> <tt id="link-789" class="py-name"><a title="proton.wrapper.Wrapper" class="py-name" href="#" onclick="return doclink('link-789', 'Wrapper', 'link-1');">Wrapper</a></tt><tt class="py-op">.</tt><tt id="link-790" class="py-name"><a title="proton.Array.__init__
proton.Collector.__init__
proton.Condition.__init__
proton.Connection.__init__
proton.Data.__init__
proton.Delivery.__init__
proton.Described.__init__
proton.Disposition.__init__
proton.Event.__init__
proton.EventType.__init__
proton.Link.__init__
proton.Message.__init__
proton.Messenger.__init__
proton.SASL.__init__
proton.SSLDomain.__init__
proton.SSLSessionDetails.__init__
proton.Session.__init__
proton.Terminus.__init__
proton.Transport.__init__
proton.Url.PartDescriptor.__init__
proton.Url.__init__
proton.handlers.CFlowController.__init__
proton.handlers.CHandshaker.__init__
proton.handlers.EndpointStateHandler.__init__
proton.handlers.IOHandler.__init__
proton.handlers.IncomingMessageHandler.__init__
proton.handlers.MessagingHandler.__init__
proton.handlers.OutgoingMessageHandler.__init__
proton.handlers.PythonIO.__init__
proton.handlers.TransactionalClientHandler.__init__
proton.reactor.Acceptor.__init__
proton.reactor.ApplicationEvent.__init__
proton.reactor.Backoff.__init__
proton.reactor.Connector.__init__
proton.reactor.Container.__init__
proton.reactor.DynamicNodeProperties.__init__
proton.reactor.EventInjector.__init__
proton.reactor.Filter.__init__
proton.reactor.GlobalOverrides.__init__
proton.reactor.Reactor.__init__
proton.reactor.SSLConfig.__init__
proton.reactor.Selector.__init__
proton.reactor.SessionPerConnection.__init__
proton.reactor.Task.__init__
proton.reactor.Transaction.__init__
proton.reactor.Urls.__init__
proton.utils.AtomicCount.__init__
proton.utils.BlockingConnection.__init__
proton.utils.BlockingLink.__init__
proton.utils.BlockingReceiver.__init__
proton.utils.BlockingSender.__init__
proton.utils.ConnectionClosed.__init__
proton.utils.Fetcher.__init__
proton.utils.LinkDetached.__init__
proton.utils.SendException.__init__
proton.utils.SyncRequestResponse.__init__
proton.wrapper.Wrapper.__init__" class="py-name" href="#" onclick="return doclink('link-790', '__init__', 'link-242');">__init__</a></tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">,</tt> <tt class="py-name">_impl</tt><tt class="py-op">,</tt> <tt class="py-name">pn_transport_attachments</tt><tt class="py-op">)</tt> </tt>
<a name="L3293"></a><tt class="py-lineno">3293</tt> <tt class="py-line"> <tt class="py-keyword">if</tt> <tt class="py-name">mode</tt> <tt class="py-op">==</tt> <tt id="link-791" class="py-name"><a title="proton.Transport" class="py-name" href="#" onclick="return doclink('link-791', 'Transport', 'link-580');">Transport</a></tt><tt class="py-op">.</tt><tt id="link-792" class="py-name"><a title="proton.Transport.SERVER" class="py-name" href="#" onclick="return doclink('link-792', 'SERVER', 'link-787');">SERVER</a></tt><tt class="py-op">:</tt> </tt>
<a name="L3294"></a><tt class="py-lineno">3294</tt> <tt class="py-line"> <tt class="py-name">pn_transport_set_server</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_impl</tt><tt class="py-op">)</tt> </tt>
<a name="L3295"></a><tt class="py-lineno">3295</tt> <tt class="py-line"> <tt class="py-keyword">elif</tt> <tt class="py-name">mode</tt> <tt class="py-keyword">is</tt> <tt class="py-name">None</tt> <tt class="py-keyword">or</tt> <tt class="py-name">mode</tt><tt class="py-op">==</tt><tt id="link-793" class="py-name"><a title="proton.Transport" class="py-name" href="#" onclick="return doclink('link-793', 'Transport', 'link-580');">Transport</a></tt><tt class="py-op">.</tt><tt id="link-794" class="py-name"><a title="proton.Transport.CLIENT" class="py-name" href="#" onclick="return doclink('link-794', 'CLIENT', 'link-786');">CLIENT</a></tt><tt class="py-op">:</tt> </tt>
<a name="L3296"></a><tt class="py-lineno">3296</tt> <tt class="py-line"> <tt class="py-keyword">pass</tt> </tt>
<a name="L3297"></a><tt class="py-lineno">3297</tt> <tt class="py-line"> <tt class="py-keyword">else</tt><tt class="py-op">:</tt> </tt>
<a name="L3298"></a><tt class="py-lineno">3298</tt> <tt class="py-line"> <tt class="py-keyword">raise</tt> <tt id="link-795" class="py-name" targets="Class proton.TransportException=proton.TransportException-class.html"><a title="proton.TransportException" class="py-name" href="#" onclick="return doclink('link-795', 'TransportException', 'link-795');">TransportException</a></tt><tt class="py-op">(</tt><tt class="py-string">"Cannot initialise Transport from mode: %s"</tt> <tt class="py-op">%</tt> <tt class="py-name">str</tt><tt class="py-op">(</tt><tt class="py-name">mode</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
</div><a name="L3299"></a><tt class="py-lineno">3299</tt> <tt class="py-line"> </tt>
<a name="Transport._init"></a><div id="Transport._init-def"><a name="L3300"></a><tt class="py-lineno">3300</tt> <a class="py-toggle" href="#" id="Transport._init-toggle" onclick="return toggle('Transport._init');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Transport-class.html#_init">_init</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Transport._init-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Transport._init-expanded"><a name="L3301"></a><tt class="py-lineno">3301</tt> <tt class="py-line"> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_sasl</tt> <tt class="py-op">=</tt> <tt class="py-name">None</tt> </tt>
<a name="L3302"></a><tt class="py-lineno">3302</tt> <tt class="py-line"> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_ssl</tt> <tt class="py-op">=</tt> <tt class="py-name">None</tt> </tt>
</div><a name="L3303"></a><tt class="py-lineno">3303</tt> <tt class="py-line"> </tt>
<a name="Transport._check"></a><div id="Transport._check-def"><a name="L3304"></a><tt class="py-lineno">3304</tt> <a class="py-toggle" href="#" id="Transport._check-toggle" onclick="return toggle('Transport._check');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Transport-class.html#_check">_check</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">err</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Transport._check-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Transport._check-expanded"><a name="L3305"></a><tt class="py-lineno">3305</tt> <tt class="py-line"> <tt class="py-keyword">if</tt> <tt class="py-name">err</tt> <tt class="py-op"><</tt> <tt class="py-number">0</tt><tt class="py-op">:</tt> </tt>
<a name="L3306"></a><tt class="py-lineno">3306</tt> <tt class="py-line"> <tt class="py-name">exc</tt> <tt class="py-op">=</tt> <tt id="link-796" class="py-name"><a title="proton.EXCEPTIONS" class="py-name" href="#" onclick="return doclink('link-796', 'EXCEPTIONS', 'link-28');">EXCEPTIONS</a></tt><tt class="py-op">.</tt><tt id="link-797" class="py-name"><a title="proton.Messenger.get" class="py-name" href="#" onclick="return doclink('link-797', 'get', 'link-50');">get</a></tt><tt class="py-op">(</tt><tt class="py-name">err</tt><tt class="py-op">,</tt> <tt id="link-798" class="py-name"><a title="proton.TransportException" class="py-name" href="#" onclick="return doclink('link-798', 'TransportException', 'link-795');">TransportException</a></tt><tt class="py-op">)</tt> </tt>
<a name="L3307"></a><tt class="py-lineno">3307</tt> <tt class="py-line"> <tt class="py-keyword">raise</tt> <tt class="py-name">exc</tt><tt class="py-op">(</tt><tt class="py-string">"[%s]: %s"</tt> <tt class="py-op">%</tt> <tt class="py-op">(</tt><tt class="py-name">err</tt><tt class="py-op">,</tt> <tt class="py-name">pn_error_text</tt><tt class="py-op">(</tt><tt class="py-name">pn_transport_error</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_impl</tt><tt class="py-op">)</tt><tt class="py-op">)</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
<a name="L3308"></a><tt class="py-lineno">3308</tt> <tt class="py-line"> <tt class="py-keyword">else</tt><tt class="py-op">:</tt> </tt>
<a name="L3309"></a><tt class="py-lineno">3309</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt class="py-name">err</tt> </tt>
</div><a name="L3310"></a><tt class="py-lineno">3310</tt> <tt class="py-line"> </tt>
<a name="Transport._set_tracer"></a><div id="Transport._set_tracer-def"><a name="L3311"></a><tt class="py-lineno">3311</tt> <a class="py-toggle" href="#" id="Transport._set_tracer-toggle" onclick="return toggle('Transport._set_tracer');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Transport-class.html#_set_tracer">_set_tracer</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">tracer</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Transport._set_tracer-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Transport._set_tracer-expanded"><a name="L3312"></a><tt class="py-lineno">3312</tt> <tt class="py-line"> <tt class="py-name">pn_transport_set_pytracer</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_impl</tt><tt class="py-op">,</tt> <tt class="py-name">TraceAdapter</tt><tt class="py-op">(</tt><tt id="link-799" class="py-name"><a title="proton.Transport.tracer" class="py-name" href="#" onclick="return doclink('link-799', 'tracer', 'link-777');">tracer</a></tt><tt class="py-op">)</tt><tt class="py-op">)</tt><tt class="py-op">;</tt> </tt>
</div><a name="L3313"></a><tt class="py-lineno">3313</tt> <tt class="py-line"> </tt>
<a name="Transport._get_tracer"></a><div id="Transport._get_tracer-def"><a name="L3314"></a><tt class="py-lineno">3314</tt> <a class="py-toggle" href="#" id="Transport._get_tracer-toggle" onclick="return toggle('Transport._get_tracer');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Transport-class.html#_get_tracer">_get_tracer</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Transport._get_tracer-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Transport._get_tracer-expanded"><a name="L3315"></a><tt class="py-lineno">3315</tt> <tt class="py-line"> <tt class="py-name">adapter</tt> <tt class="py-op">=</tt> <tt class="py-name">pn_transport_get_pytracer</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_impl</tt><tt class="py-op">)</tt> </tt>
<a name="L3316"></a><tt class="py-lineno">3316</tt> <tt class="py-line"> <tt class="py-keyword">if</tt> <tt class="py-name">adapter</tt><tt class="py-op">:</tt> </tt>
<a name="L3317"></a><tt class="py-lineno">3317</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt class="py-name">adapter</tt><tt class="py-op">.</tt><tt id="link-800" class="py-name"><a title="proton.Transport.tracer" class="py-name" href="#" onclick="return doclink('link-800', 'tracer', 'link-777');">tracer</a></tt> </tt>
<a name="L3318"></a><tt class="py-lineno">3318</tt> <tt class="py-line"> <tt class="py-keyword">else</tt><tt class="py-op">:</tt> </tt>
<a name="L3319"></a><tt class="py-lineno">3319</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt class="py-name">None</tt> </tt>
</div><a name="L3320"></a><tt class="py-lineno">3320</tt> <tt class="py-line"> </tt>
<a name="L3321"></a><tt class="py-lineno">3321</tt> <tt class="py-line"> <tt id="link-801" class="py-name"><a title="proton.Transport.tracer" class="py-name" href="#" onclick="return doclink('link-801', 'tracer', 'link-777');">tracer</a></tt> <tt class="py-op">=</tt> <tt class="py-name">property</tt><tt class="py-op">(</tt><tt id="link-802" class="py-name" targets="Method proton.Transport._get_tracer()=proton.Transport-class.html#_get_tracer"><a title="proton.Transport._get_tracer" class="py-name" href="#" onclick="return doclink('link-802', '_get_tracer', 'link-802');">_get_tracer</a></tt><tt class="py-op">,</tt> <tt id="link-803" class="py-name" targets="Method proton.Transport._set_tracer()=proton.Transport-class.html#_set_tracer"><a title="proton.Transport._set_tracer" class="py-name" href="#" onclick="return doclink('link-803', '_set_tracer', 'link-803');">_set_tracer</a></tt><tt class="py-op">,</tt> </tt>
<a name="L3322"></a><tt class="py-lineno">3322</tt> <tt class="py-line"> <tt class="py-name">doc</tt><tt class="py-op">=</tt><tt class="py-string">"""</tt> </tt>
<a name="L3323"></a><tt class="py-lineno">3323</tt> <tt class="py-line"><tt class="py-string">A callback for trace logging. The callback is passed the transport and log message.</tt> </tt>
<a name="L3324"></a><tt class="py-lineno">3324</tt> <tt class="py-line"><tt class="py-string">"""</tt><tt class="py-op">)</tt> </tt>
<a name="L3325"></a><tt class="py-lineno">3325</tt> <tt class="py-line"> </tt>
<a name="Transport.log"></a><div id="Transport.log-def"><a name="L3326"></a><tt class="py-lineno">3326</tt> <a class="py-toggle" href="#" id="Transport.log-toggle" onclick="return toggle('Transport.log');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Transport-class.html#log">log</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">message</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Transport.log-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Transport.log-expanded"><a name="L3327"></a><tt class="py-lineno">3327</tt> <tt class="py-line"> <tt class="py-name">pn_transport_log</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_impl</tt><tt class="py-op">,</tt> <tt class="py-name">message</tt><tt class="py-op">)</tt> </tt>
</div><a name="L3328"></a><tt class="py-lineno">3328</tt> <tt class="py-line"> </tt>
<a name="Transport.require_auth"></a><div id="Transport.require_auth-def"><a name="L3329"></a><tt class="py-lineno">3329</tt> <a class="py-toggle" href="#" id="Transport.require_auth-toggle" onclick="return toggle('Transport.require_auth');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Transport-class.html#require_auth">require_auth</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">bool</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Transport.require_auth-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Transport.require_auth-expanded"><a name="L3330"></a><tt class="py-lineno">3330</tt> <tt class="py-line"> <tt class="py-name">pn_transport_require_auth</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_impl</tt><tt class="py-op">,</tt> <tt class="py-name">bool</tt><tt class="py-op">)</tt> </tt>
</div><a name="L3331"></a><tt class="py-lineno">3331</tt> <tt class="py-line"> </tt>
<a name="L3332"></a><tt class="py-lineno">3332</tt> <tt class="py-line"> <tt class="py-decorator">@</tt><tt class="py-decorator">property</tt> </tt>
<a name="Transport.authenticated"></a><div id="Transport.authenticated-def"><a name="L3333"></a><tt class="py-lineno">3333</tt> <a class="py-toggle" href="#" id="Transport.authenticated-toggle" onclick="return toggle('Transport.authenticated');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Transport-class.html#authenticated">authenticated</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Transport.authenticated-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Transport.authenticated-expanded"><a name="L3334"></a><tt class="py-lineno">3334</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt class="py-name">pn_transport_is_authenticated</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_impl</tt><tt class="py-op">)</tt> </tt>
</div><a name="L3335"></a><tt class="py-lineno">3335</tt> <tt class="py-line"> </tt>
<a name="Transport.require_encryption"></a><div id="Transport.require_encryption-def"><a name="L3336"></a><tt class="py-lineno">3336</tt> <a class="py-toggle" href="#" id="Transport.require_encryption-toggle" onclick="return toggle('Transport.require_encryption');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Transport-class.html#require_encryption">require_encryption</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">bool</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Transport.require_encryption-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Transport.require_encryption-expanded"><a name="L3337"></a><tt class="py-lineno">3337</tt> <tt class="py-line"> <tt class="py-name">pn_transport_require_encryption</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_impl</tt><tt class="py-op">,</tt> <tt class="py-name">bool</tt><tt class="py-op">)</tt> </tt>
</div><a name="L3338"></a><tt class="py-lineno">3338</tt> <tt class="py-line"> </tt>
<a name="L3339"></a><tt class="py-lineno">3339</tt> <tt class="py-line"> <tt class="py-decorator">@</tt><tt class="py-decorator">property</tt> </tt>
<a name="Transport.encrypted"></a><div id="Transport.encrypted-def"><a name="L3340"></a><tt class="py-lineno">3340</tt> <a class="py-toggle" href="#" id="Transport.encrypted-toggle" onclick="return toggle('Transport.encrypted');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Transport-class.html#encrypted">encrypted</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Transport.encrypted-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Transport.encrypted-expanded"><a name="L3341"></a><tt class="py-lineno">3341</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt class="py-name">pn_transport_is_encrypted</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_impl</tt><tt class="py-op">)</tt> </tt>
</div><a name="L3342"></a><tt class="py-lineno">3342</tt> <tt class="py-line"> </tt>
<a name="L3343"></a><tt class="py-lineno">3343</tt> <tt class="py-line"> <tt class="py-decorator">@</tt><tt class="py-decorator">property</tt> </tt>
<a name="Transport.user"></a><div id="Transport.user-def"><a name="L3344"></a><tt class="py-lineno">3344</tt> <a class="py-toggle" href="#" id="Transport.user-toggle" onclick="return toggle('Transport.user');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Transport-class.html#user">user</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Transport.user-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Transport.user-expanded"><a name="L3345"></a><tt class="py-lineno">3345</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt class="py-name">pn_transport_get_user</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_impl</tt><tt class="py-op">)</tt> </tt>
</div><a name="L3346"></a><tt class="py-lineno">3346</tt> <tt class="py-line"> </tt>
<a name="Transport.bind"></a><div id="Transport.bind-def"><a name="L3347"></a><tt class="py-lineno">3347</tt> <a class="py-toggle" href="#" id="Transport.bind-toggle" onclick="return toggle('Transport.bind');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Transport-class.html#bind">bind</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">connection</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Transport.bind-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Transport.bind-expanded"><a name="L3348"></a><tt class="py-lineno">3348</tt> <tt class="py-line"> <tt class="py-docstring">"""Assign a connection to the transport"""</tt> </tt>
<a name="L3349"></a><tt class="py-lineno">3349</tt> <tt class="py-line"> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_check</tt><tt class="py-op">(</tt><tt class="py-name">pn_transport_bind</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_impl</tt><tt class="py-op">,</tt> <tt id="link-804" class="py-name"><a title="proton.Connection.connection
proton.Delivery.connection
proton.Event.connection
proton.Link.connection
proton.Session.connection
proton.Transport.connection
proton.reactor.Reactor.connection" class="py-name" href="#" onclick="return doclink('link-804', 'connection', 'link-545');">connection</a></tt><tt class="py-op">.</tt><tt class="py-name">_impl</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
</div><a name="L3350"></a><tt class="py-lineno">3350</tt> <tt class="py-line"> </tt>
<a name="Transport.unbind"></a><div id="Transport.unbind-def"><a name="L3351"></a><tt class="py-lineno">3351</tt> <a class="py-toggle" href="#" id="Transport.unbind-toggle" onclick="return toggle('Transport.unbind');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Transport-class.html#unbind">unbind</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Transport.unbind-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Transport.unbind-expanded"><a name="L3352"></a><tt class="py-lineno">3352</tt> <tt class="py-line"> <tt class="py-docstring">"""Release the connection"""</tt> </tt>
<a name="L3353"></a><tt class="py-lineno">3353</tt> <tt class="py-line"> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_check</tt><tt class="py-op">(</tt><tt class="py-name">pn_transport_unbind</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_impl</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
</div><a name="L3354"></a><tt class="py-lineno">3354</tt> <tt class="py-line"> </tt>
<a name="Transport.trace"></a><div id="Transport.trace-def"><a name="L3355"></a><tt class="py-lineno">3355</tt> <a class="py-toggle" href="#" id="Transport.trace-toggle" onclick="return toggle('Transport.trace');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Transport-class.html#trace">trace</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">n</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Transport.trace-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Transport.trace-expanded"><a name="L3356"></a><tt class="py-lineno">3356</tt> <tt class="py-line"> <tt class="py-name">pn_transport_trace</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_impl</tt><tt class="py-op">,</tt> <tt class="py-name">n</tt><tt class="py-op">)</tt> </tt>
</div><a name="L3357"></a><tt class="py-lineno">3357</tt> <tt class="py-line"> </tt>
<a name="Transport.tick"></a><div id="Transport.tick-def"><a name="L3358"></a><tt class="py-lineno">3358</tt> <a class="py-toggle" href="#" id="Transport.tick-toggle" onclick="return toggle('Transport.tick');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Transport-class.html#tick">tick</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">now</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Transport.tick-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Transport.tick-expanded"><a name="L3359"></a><tt class="py-lineno">3359</tt> <tt class="py-line"> <tt class="py-docstring">"""Process any timed events (like heartbeat generation).</tt> </tt>
<a name="L3360"></a><tt class="py-lineno">3360</tt> <tt class="py-line"><tt class="py-docstring"> now = seconds since epoch (float).</tt> </tt>
<a name="L3361"></a><tt class="py-lineno">3361</tt> <tt class="py-line"><tt class="py-docstring"> """</tt> </tt>
<a name="L3362"></a><tt class="py-lineno">3362</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt class="py-name">millis2secs</tt><tt class="py-op">(</tt><tt class="py-name">pn_transport_tick</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_impl</tt><tt class="py-op">,</tt> <tt class="py-name">secs2millis</tt><tt class="py-op">(</tt><tt class="py-name">now</tt><tt class="py-op">)</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
</div><a name="L3363"></a><tt class="py-lineno">3363</tt> <tt class="py-line"> </tt>
<a name="Transport.capacity"></a><div id="Transport.capacity-def"><a name="L3364"></a><tt class="py-lineno">3364</tt> <a class="py-toggle" href="#" id="Transport.capacity-toggle" onclick="return toggle('Transport.capacity');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Transport-class.html#capacity">capacity</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Transport.capacity-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Transport.capacity-expanded"><a name="L3365"></a><tt class="py-lineno">3365</tt> <tt class="py-line"> <tt class="py-name">c</tt> <tt class="py-op">=</tt> <tt class="py-name">pn_transport_capacity</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_impl</tt><tt class="py-op">)</tt> </tt>
<a name="L3366"></a><tt class="py-lineno">3366</tt> <tt class="py-line"> <tt class="py-keyword">if</tt> <tt class="py-name">c</tt> <tt class="py-op">>=</tt> <tt class="py-name">PN_EOS</tt><tt class="py-op">:</tt> </tt>
<a name="L3367"></a><tt class="py-lineno">3367</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt class="py-name">c</tt> </tt>
<a name="L3368"></a><tt class="py-lineno">3368</tt> <tt class="py-line"> <tt class="py-keyword">else</tt><tt class="py-op">:</tt> </tt>
<a name="L3369"></a><tt class="py-lineno">3369</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_check</tt><tt class="py-op">(</tt><tt class="py-name">c</tt><tt class="py-op">)</tt> </tt>
</div><a name="L3370"></a><tt class="py-lineno">3370</tt> <tt class="py-line"> </tt>
<a name="Transport.push"></a><div id="Transport.push-def"><a name="L3371"></a><tt class="py-lineno">3371</tt> <a class="py-toggle" href="#" id="Transport.push-toggle" onclick="return toggle('Transport.push');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Transport-class.html#push">push</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">binary</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Transport.push-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Transport.push-expanded"><a name="L3372"></a><tt class="py-lineno">3372</tt> <tt class="py-line"> <tt class="py-name">n</tt> <tt class="py-op">=</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_check</tt><tt class="py-op">(</tt><tt class="py-name">pn_transport_push</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_impl</tt><tt class="py-op">,</tt> <tt class="py-name">binary</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
<a name="L3373"></a><tt class="py-lineno">3373</tt> <tt class="py-line"> <tt class="py-keyword">if</tt> <tt class="py-name">n</tt> <tt class="py-op">!=</tt> <tt class="py-name">len</tt><tt class="py-op">(</tt><tt class="py-name">binary</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
<a name="L3374"></a><tt class="py-lineno">3374</tt> <tt class="py-line"> <tt class="py-keyword">raise</tt> <tt class="py-name">OverflowError</tt><tt class="py-op">(</tt><tt class="py-string">"unable to process all bytes: %s, %s"</tt> <tt class="py-op">%</tt> <tt class="py-op">(</tt><tt class="py-name">n</tt><tt class="py-op">,</tt> <tt class="py-name">len</tt><tt class="py-op">(</tt><tt class="py-name">binary</tt><tt class="py-op">)</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
</div><a name="L3375"></a><tt class="py-lineno">3375</tt> <tt class="py-line"> </tt>
<a name="Transport.close_tail"></a><div id="Transport.close_tail-def"><a name="L3376"></a><tt class="py-lineno">3376</tt> <a class="py-toggle" href="#" id="Transport.close_tail-toggle" onclick="return toggle('Transport.close_tail');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Transport-class.html#close_tail">close_tail</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Transport.close_tail-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Transport.close_tail-expanded"><a name="L3377"></a><tt class="py-lineno">3377</tt> <tt class="py-line"> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_check</tt><tt class="py-op">(</tt><tt class="py-name">pn_transport_close_tail</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_impl</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
</div><a name="L3378"></a><tt class="py-lineno">3378</tt> <tt class="py-line"> </tt>
<a name="Transport.pending"></a><div id="Transport.pending-def"><a name="L3379"></a><tt class="py-lineno">3379</tt> <a class="py-toggle" href="#" id="Transport.pending-toggle" onclick="return toggle('Transport.pending');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Transport-class.html#pending">pending</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Transport.pending-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Transport.pending-expanded"><a name="L3380"></a><tt class="py-lineno">3380</tt> <tt class="py-line"> <tt class="py-name">p</tt> <tt class="py-op">=</tt> <tt class="py-name">pn_transport_pending</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_impl</tt><tt class="py-op">)</tt> </tt>
<a name="L3381"></a><tt class="py-lineno">3381</tt> <tt class="py-line"> <tt class="py-keyword">if</tt> <tt class="py-name">p</tt> <tt class="py-op">>=</tt> <tt class="py-name">PN_EOS</tt><tt class="py-op">:</tt> </tt>
<a name="L3382"></a><tt class="py-lineno">3382</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt class="py-name">p</tt> </tt>
<a name="L3383"></a><tt class="py-lineno">3383</tt> <tt class="py-line"> <tt class="py-keyword">else</tt><tt class="py-op">:</tt> </tt>
<a name="L3384"></a><tt class="py-lineno">3384</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_check</tt><tt class="py-op">(</tt><tt class="py-name">p</tt><tt class="py-op">)</tt> </tt>
</div><a name="L3385"></a><tt class="py-lineno">3385</tt> <tt class="py-line"> </tt>
<a name="Transport.peek"></a><div id="Transport.peek-def"><a name="L3386"></a><tt class="py-lineno">3386</tt> <a class="py-toggle" href="#" id="Transport.peek-toggle" onclick="return toggle('Transport.peek');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Transport-class.html#peek">peek</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">size</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Transport.peek-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Transport.peek-expanded"><a name="L3387"></a><tt class="py-lineno">3387</tt> <tt class="py-line"> <tt class="py-name">cd</tt><tt class="py-op">,</tt> <tt class="py-name">out</tt> <tt class="py-op">=</tt> <tt class="py-name">pn_transport_peek</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_impl</tt><tt class="py-op">,</tt> <tt class="py-name">size</tt><tt class="py-op">)</tt> </tt>
<a name="L3388"></a><tt class="py-lineno">3388</tt> <tt class="py-line"> <tt class="py-keyword">if</tt> <tt class="py-name">cd</tt> <tt class="py-op">==</tt> <tt class="py-name">PN_EOS</tt><tt class="py-op">:</tt> </tt>
<a name="L3389"></a><tt class="py-lineno">3389</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt class="py-name">None</tt> </tt>
<a name="L3390"></a><tt class="py-lineno">3390</tt> <tt class="py-line"> <tt class="py-keyword">else</tt><tt class="py-op">:</tt> </tt>
<a name="L3391"></a><tt class="py-lineno">3391</tt> <tt class="py-line"> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_check</tt><tt class="py-op">(</tt><tt class="py-name">cd</tt><tt class="py-op">)</tt> </tt>
<a name="L3392"></a><tt class="py-lineno">3392</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt class="py-name">out</tt> </tt>
</div><a name="L3393"></a><tt class="py-lineno">3393</tt> <tt class="py-line"> </tt>
<a name="Transport.pop"></a><div id="Transport.pop-def"><a name="L3394"></a><tt class="py-lineno">3394</tt> <a class="py-toggle" href="#" id="Transport.pop-toggle" onclick="return toggle('Transport.pop');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Transport-class.html#pop">pop</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">size</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Transport.pop-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Transport.pop-expanded"><a name="L3395"></a><tt class="py-lineno">3395</tt> <tt class="py-line"> <tt class="py-name">pn_transport_pop</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_impl</tt><tt class="py-op">,</tt> <tt class="py-name">size</tt><tt class="py-op">)</tt> </tt>
</div><a name="L3396"></a><tt class="py-lineno">3396</tt> <tt class="py-line"> </tt>
<a name="Transport.close_head"></a><div id="Transport.close_head-def"><a name="L3397"></a><tt class="py-lineno">3397</tt> <a class="py-toggle" href="#" id="Transport.close_head-toggle" onclick="return toggle('Transport.close_head');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Transport-class.html#close_head">close_head</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Transport.close_head-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Transport.close_head-expanded"><a name="L3398"></a><tt class="py-lineno">3398</tt> <tt class="py-line"> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_check</tt><tt class="py-op">(</tt><tt class="py-name">pn_transport_close_head</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_impl</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
</div><a name="L3399"></a><tt class="py-lineno">3399</tt> <tt class="py-line"> </tt>
<a name="L3400"></a><tt class="py-lineno">3400</tt> <tt class="py-line"> <tt class="py-decorator">@</tt><tt class="py-decorator">property</tt> </tt>
<a name="Transport.closed"></a><div id="Transport.closed-def"><a name="L3401"></a><tt class="py-lineno">3401</tt> <a class="py-toggle" href="#" id="Transport.closed-toggle" onclick="return toggle('Transport.closed');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Transport-class.html#closed">closed</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Transport.closed-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Transport.closed-expanded"><a name="L3402"></a><tt class="py-lineno">3402</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt class="py-name">pn_transport_closed</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_impl</tt><tt class="py-op">)</tt> </tt>
</div><a name="L3403"></a><tt class="py-lineno">3403</tt> <tt class="py-line"> </tt>
<a name="L3404"></a><tt class="py-lineno">3404</tt> <tt class="py-line"> <tt class="py-comment"># AMQP 1.0 max-frame-size</tt> </tt>
<a name="Transport._get_max_frame_size"></a><div id="Transport._get_max_frame_size-def"><a name="L3405"></a><tt class="py-lineno">3405</tt> <a class="py-toggle" href="#" id="Transport._get_max_frame_size-toggle" onclick="return toggle('Transport._get_max_frame_size');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Transport-class.html#_get_max_frame_size">_get_max_frame_size</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Transport._get_max_frame_size-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Transport._get_max_frame_size-expanded"><a name="L3406"></a><tt class="py-lineno">3406</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt class="py-name">pn_transport_get_max_frame</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_impl</tt><tt class="py-op">)</tt> </tt>
</div><a name="L3407"></a><tt class="py-lineno">3407</tt> <tt class="py-line"> </tt>
<a name="Transport._set_max_frame_size"></a><div id="Transport._set_max_frame_size-def"><a name="L3408"></a><tt class="py-lineno">3408</tt> <a class="py-toggle" href="#" id="Transport._set_max_frame_size-toggle" onclick="return toggle('Transport._set_max_frame_size');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Transport-class.html#_set_max_frame_size">_set_max_frame_size</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">value</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Transport._set_max_frame_size-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Transport._set_max_frame_size-expanded"><a name="L3409"></a><tt class="py-lineno">3409</tt> <tt class="py-line"> <tt class="py-name">pn_transport_set_max_frame</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_impl</tt><tt class="py-op">,</tt> <tt class="py-name">value</tt><tt class="py-op">)</tt> </tt>
</div><a name="L3410"></a><tt class="py-lineno">3410</tt> <tt class="py-line"> </tt>
<a name="L3411"></a><tt class="py-lineno">3411</tt> <tt class="py-line"> <tt id="link-805" class="py-name" targets="Variable proton.Transport.max_frame_size=proton.Transport-class.html#max_frame_size"><a title="proton.Transport.max_frame_size" class="py-name" href="#" onclick="return doclink('link-805', 'max_frame_size', 'link-805');">max_frame_size</a></tt> <tt class="py-op">=</tt> <tt class="py-name">property</tt><tt class="py-op">(</tt><tt id="link-806" class="py-name" targets="Method proton.Transport._get_max_frame_size()=proton.Transport-class.html#_get_max_frame_size"><a title="proton.Transport._get_max_frame_size" class="py-name" href="#" onclick="return doclink('link-806', '_get_max_frame_size', 'link-806');">_get_max_frame_size</a></tt><tt class="py-op">,</tt> <tt id="link-807" class="py-name" targets="Method proton.Transport._set_max_frame_size()=proton.Transport-class.html#_set_max_frame_size"><a title="proton.Transport._set_max_frame_size" class="py-name" href="#" onclick="return doclink('link-807', '_set_max_frame_size', 'link-807');">_set_max_frame_size</a></tt><tt class="py-op">,</tt> </tt>
<a name="L3412"></a><tt class="py-lineno">3412</tt> <tt class="py-line"> <tt class="py-name">doc</tt><tt class="py-op">=</tt><tt class="py-string">"""</tt> </tt>
<a name="L3413"></a><tt class="py-lineno">3413</tt> <tt class="py-line"><tt class="py-string">Sets the maximum size for received frames (in bytes).</tt> </tt>
<a name="L3414"></a><tt class="py-lineno">3414</tt> <tt class="py-line"><tt class="py-string">"""</tt><tt class="py-op">)</tt> </tt>
<a name="L3415"></a><tt class="py-lineno">3415</tt> <tt class="py-line"> </tt>
<a name="L3416"></a><tt class="py-lineno">3416</tt> <tt class="py-line"> <tt class="py-decorator">@</tt><tt class="py-decorator">property</tt> </tt>
<a name="Transport.remote_max_frame_size"></a><div id="Transport.remote_max_frame_size-def"><a name="L3417"></a><tt class="py-lineno">3417</tt> <a class="py-toggle" href="#" id="Transport.remote_max_frame_size-toggle" onclick="return toggle('Transport.remote_max_frame_size');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Transport-class.html#remote_max_frame_size">remote_max_frame_size</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Transport.remote_max_frame_size-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Transport.remote_max_frame_size-expanded"><a name="L3418"></a><tt class="py-lineno">3418</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt class="py-name">pn_transport_get_remote_max_frame</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_impl</tt><tt class="py-op">)</tt> </tt>
</div><a name="L3419"></a><tt class="py-lineno">3419</tt> <tt class="py-line"> </tt>
<a name="Transport._get_channel_max"></a><div id="Transport._get_channel_max-def"><a name="L3420"></a><tt class="py-lineno">3420</tt> <a class="py-toggle" href="#" id="Transport._get_channel_max-toggle" onclick="return toggle('Transport._get_channel_max');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Transport-class.html#_get_channel_max">_get_channel_max</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Transport._get_channel_max-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Transport._get_channel_max-expanded"><a name="L3421"></a><tt class="py-lineno">3421</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt class="py-name">pn_transport_get_channel_max</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_impl</tt><tt class="py-op">)</tt> </tt>
</div><a name="L3422"></a><tt class="py-lineno">3422</tt> <tt class="py-line"> </tt>
<a name="Transport._set_channel_max"></a><div id="Transport._set_channel_max-def"><a name="L3423"></a><tt class="py-lineno">3423</tt> <a class="py-toggle" href="#" id="Transport._set_channel_max-toggle" onclick="return toggle('Transport._set_channel_max');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Transport-class.html#_set_channel_max">_set_channel_max</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">value</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Transport._set_channel_max-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Transport._set_channel_max-expanded"><a name="L3424"></a><tt class="py-lineno">3424</tt> <tt class="py-line"> <tt class="py-keyword">if</tt> <tt class="py-name">pn_transport_set_channel_max</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_impl</tt><tt class="py-op">,</tt> <tt class="py-name">value</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
<a name="L3425"></a><tt class="py-lineno">3425</tt> <tt class="py-line"> <tt class="py-keyword">raise</tt> <tt id="link-808" class="py-name"><a title="proton.SessionException" class="py-name" href="#" onclick="return doclink('link-808', 'SessionException', 'link-601');">SessionException</a></tt><tt class="py-op">(</tt><tt class="py-string">"Too late to change channel max."</tt><tt class="py-op">)</tt> </tt>
</div><a name="L3426"></a><tt class="py-lineno">3426</tt> <tt class="py-line"> </tt>
<a name="L3427"></a><tt class="py-lineno">3427</tt> <tt class="py-line"> <tt id="link-809" class="py-name" targets="Variable proton.Transport.channel_max=proton.Transport-class.html#channel_max"><a title="proton.Transport.channel_max" class="py-name" href="#" onclick="return doclink('link-809', 'channel_max', 'link-809');">channel_max</a></tt> <tt class="py-op">=</tt> <tt class="py-name">property</tt><tt class="py-op">(</tt><tt id="link-810" class="py-name" targets="Method proton.Transport._get_channel_max()=proton.Transport-class.html#_get_channel_max"><a title="proton.Transport._get_channel_max" class="py-name" href="#" onclick="return doclink('link-810', '_get_channel_max', 'link-810');">_get_channel_max</a></tt><tt class="py-op">,</tt> <tt id="link-811" class="py-name" targets="Method proton.Transport._set_channel_max()=proton.Transport-class.html#_set_channel_max"><a title="proton.Transport._set_channel_max" class="py-name" href="#" onclick="return doclink('link-811', '_set_channel_max', 'link-811');">_set_channel_max</a></tt><tt class="py-op">,</tt> </tt>
<a name="L3428"></a><tt class="py-lineno">3428</tt> <tt class="py-line"> <tt class="py-name">doc</tt><tt class="py-op">=</tt><tt class="py-string">"""</tt> </tt>
<a name="L3429"></a><tt class="py-lineno">3429</tt> <tt class="py-line"><tt class="py-string">Sets the maximum channel that may be used on the transport.</tt> </tt>
<a name="L3430"></a><tt class="py-lineno">3430</tt> <tt class="py-line"><tt class="py-string">"""</tt><tt class="py-op">)</tt> </tt>
<a name="L3431"></a><tt class="py-lineno">3431</tt> <tt class="py-line"> </tt>
<a name="L3432"></a><tt class="py-lineno">3432</tt> <tt class="py-line"> <tt class="py-decorator">@</tt><tt class="py-decorator">property</tt> </tt>
<a name="Transport.remote_channel_max"></a><div id="Transport.remote_channel_max-def"><a name="L3433"></a><tt class="py-lineno">3433</tt> <a class="py-toggle" href="#" id="Transport.remote_channel_max-toggle" onclick="return toggle('Transport.remote_channel_max');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Transport-class.html#remote_channel_max">remote_channel_max</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Transport.remote_channel_max-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Transport.remote_channel_max-expanded"><a name="L3434"></a><tt class="py-lineno">3434</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt class="py-name">pn_transport_remote_channel_max</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_impl</tt><tt class="py-op">)</tt> </tt>
</div><a name="L3435"></a><tt class="py-lineno">3435</tt> <tt class="py-line"> </tt>
<a name="L3436"></a><tt class="py-lineno">3436</tt> <tt class="py-line"> <tt class="py-comment"># AMQP 1.0 idle-time-out</tt> </tt>
<a name="Transport._get_idle_timeout"></a><div id="Transport._get_idle_timeout-def"><a name="L3437"></a><tt class="py-lineno">3437</tt> <a class="py-toggle" href="#" id="Transport._get_idle_timeout-toggle" onclick="return toggle('Transport._get_idle_timeout');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Transport-class.html#_get_idle_timeout">_get_idle_timeout</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Transport._get_idle_timeout-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Transport._get_idle_timeout-expanded"><a name="L3438"></a><tt class="py-lineno">3438</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt class="py-name">millis2secs</tt><tt class="py-op">(</tt><tt class="py-name">pn_transport_get_idle_timeout</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_impl</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
</div><a name="L3439"></a><tt class="py-lineno">3439</tt> <tt class="py-line"> </tt>
<a name="Transport._set_idle_timeout"></a><div id="Transport._set_idle_timeout-def"><a name="L3440"></a><tt class="py-lineno">3440</tt> <a class="py-toggle" href="#" id="Transport._set_idle_timeout-toggle" onclick="return toggle('Transport._set_idle_timeout');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Transport-class.html#_set_idle_timeout">_set_idle_timeout</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">sec</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Transport._set_idle_timeout-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Transport._set_idle_timeout-expanded"><a name="L3441"></a><tt class="py-lineno">3441</tt> <tt class="py-line"> <tt class="py-name">pn_transport_set_idle_timeout</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_impl</tt><tt class="py-op">,</tt> <tt class="py-name">secs2millis</tt><tt class="py-op">(</tt><tt class="py-name">sec</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
</div><a name="L3442"></a><tt class="py-lineno">3442</tt> <tt class="py-line"> </tt>
<a name="L3443"></a><tt class="py-lineno">3443</tt> <tt class="py-line"> <tt id="link-812" class="py-name" targets="Variable proton.Transport.idle_timeout=proton.Transport-class.html#idle_timeout"><a title="proton.Transport.idle_timeout" class="py-name" href="#" onclick="return doclink('link-812', 'idle_timeout', 'link-812');">idle_timeout</a></tt> <tt class="py-op">=</tt> <tt class="py-name">property</tt><tt class="py-op">(</tt><tt id="link-813" class="py-name" targets="Method proton.Transport._get_idle_timeout()=proton.Transport-class.html#_get_idle_timeout"><a title="proton.Transport._get_idle_timeout" class="py-name" href="#" onclick="return doclink('link-813', '_get_idle_timeout', 'link-813');">_get_idle_timeout</a></tt><tt class="py-op">,</tt> <tt id="link-814" class="py-name" targets="Method proton.Transport._set_idle_timeout()=proton.Transport-class.html#_set_idle_timeout"><a title="proton.Transport._set_idle_timeout" class="py-name" href="#" onclick="return doclink('link-814', '_set_idle_timeout', 'link-814');">_set_idle_timeout</a></tt><tt class="py-op">,</tt> </tt>
<a name="L3444"></a><tt class="py-lineno">3444</tt> <tt class="py-line"> <tt class="py-name">doc</tt><tt class="py-op">=</tt><tt class="py-string">"""</tt> </tt>
<a name="L3445"></a><tt class="py-lineno">3445</tt> <tt class="py-line"><tt class="py-string">The idle timeout of the connection (float, in seconds).</tt> </tt>
<a name="L3446"></a><tt class="py-lineno">3446</tt> <tt class="py-line"><tt class="py-string">"""</tt><tt class="py-op">)</tt> </tt>
<a name="L3447"></a><tt class="py-lineno">3447</tt> <tt class="py-line"> </tt>
<a name="L3448"></a><tt class="py-lineno">3448</tt> <tt class="py-line"> <tt class="py-decorator">@</tt><tt class="py-decorator">property</tt> </tt>
<a name="Transport.remote_idle_timeout"></a><div id="Transport.remote_idle_timeout-def"><a name="L3449"></a><tt class="py-lineno">3449</tt> <a class="py-toggle" href="#" id="Transport.remote_idle_timeout-toggle" onclick="return toggle('Transport.remote_idle_timeout');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Transport-class.html#remote_idle_timeout">remote_idle_timeout</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Transport.remote_idle_timeout-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Transport.remote_idle_timeout-expanded"><a name="L3450"></a><tt class="py-lineno">3450</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt class="py-name">millis2secs</tt><tt class="py-op">(</tt><tt class="py-name">pn_transport_get_remote_idle_timeout</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_impl</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
</div><a name="L3451"></a><tt class="py-lineno">3451</tt> <tt class="py-line"> </tt>
<a name="L3452"></a><tt class="py-lineno">3452</tt> <tt class="py-line"> <tt class="py-decorator">@</tt><tt class="py-decorator">property</tt> </tt>
<a name="Transport.frames_output"></a><div id="Transport.frames_output-def"><a name="L3453"></a><tt class="py-lineno">3453</tt> <a class="py-toggle" href="#" id="Transport.frames_output-toggle" onclick="return toggle('Transport.frames_output');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Transport-class.html#frames_output">frames_output</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Transport.frames_output-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Transport.frames_output-expanded"><a name="L3454"></a><tt class="py-lineno">3454</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt class="py-name">pn_transport_get_frames_output</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_impl</tt><tt class="py-op">)</tt> </tt>
</div><a name="L3455"></a><tt class="py-lineno">3455</tt> <tt class="py-line"> </tt>
<a name="L3456"></a><tt class="py-lineno">3456</tt> <tt class="py-line"> <tt class="py-decorator">@</tt><tt class="py-decorator">property</tt> </tt>
<a name="Transport.frames_input"></a><div id="Transport.frames_input-def"><a name="L3457"></a><tt class="py-lineno">3457</tt> <a class="py-toggle" href="#" id="Transport.frames_input-toggle" onclick="return toggle('Transport.frames_input');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Transport-class.html#frames_input">frames_input</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Transport.frames_input-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Transport.frames_input-expanded"><a name="L3458"></a><tt class="py-lineno">3458</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt class="py-name">pn_transport_get_frames_input</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_impl</tt><tt class="py-op">)</tt> </tt>
</div><a name="L3459"></a><tt class="py-lineno">3459</tt> <tt class="py-line"> </tt>
<a name="Transport.sasl"></a><div id="Transport.sasl-def"><a name="L3460"></a><tt class="py-lineno">3460</tt> <a class="py-toggle" href="#" id="Transport.sasl-toggle" onclick="return toggle('Transport.sasl');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Transport-class.html#sasl">sasl</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Transport.sasl-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Transport.sasl-expanded"><a name="L3461"></a><tt class="py-lineno">3461</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt id="link-815" class="py-name" targets="Class proton.SASL=proton.SASL-class.html"><a title="proton.SASL" class="py-name" href="#" onclick="return doclink('link-815', 'SASL', 'link-815');">SASL</a></tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">)</tt> </tt>
</div><a name="L3462"></a><tt class="py-lineno">3462</tt> <tt class="py-line"> </tt>
<a name="Transport.ssl"></a><div id="Transport.ssl-def"><a name="L3463"></a><tt class="py-lineno">3463</tt> <a class="py-toggle" href="#" id="Transport.ssl-toggle" onclick="return toggle('Transport.ssl');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Transport-class.html#ssl">ssl</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">domain</tt><tt class="py-op">=</tt><tt class="py-name">None</tt><tt class="py-op">,</tt> <tt class="py-param">session_details</tt><tt class="py-op">=</tt><tt class="py-name">None</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Transport.ssl-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Transport.ssl-expanded"><a name="L3464"></a><tt class="py-lineno">3464</tt> <tt class="py-line"> <tt class="py-comment"># SSL factory (singleton for this transport)</tt> </tt>
<a name="L3465"></a><tt class="py-lineno">3465</tt> <tt class="py-line"> <tt class="py-keyword">if</tt> <tt class="py-keyword">not</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_ssl</tt><tt class="py-op">:</tt> </tt>
<a name="L3466"></a><tt class="py-lineno">3466</tt> <tt class="py-line"> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_ssl</tt> <tt class="py-op">=</tt> <tt id="link-816" class="py-name" targets="Class proton.SSL=proton.SSL-class.html"><a title="proton.SSL" class="py-name" href="#" onclick="return doclink('link-816', 'SSL', 'link-816');">SSL</a></tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">,</tt> <tt class="py-name">domain</tt><tt class="py-op">,</tt> <tt class="py-name">session_details</tt><tt class="py-op">)</tt> </tt>
<a name="L3467"></a><tt class="py-lineno">3467</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_ssl</tt> </tt>
</div><a name="L3468"></a><tt class="py-lineno">3468</tt> <tt class="py-line"> </tt>
<a name="L3469"></a><tt class="py-lineno">3469</tt> <tt class="py-line"> <tt class="py-decorator">@</tt><tt class="py-decorator">property</tt> </tt>
<a name="Transport.condition"></a><div id="Transport.condition-def"><a name="L3470"></a><tt class="py-lineno">3470</tt> <a class="py-toggle" href="#" id="Transport.condition-toggle" onclick="return toggle('Transport.condition');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Transport-class.html#condition">condition</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Transport.condition-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Transport.condition-expanded"><a name="L3471"></a><tt class="py-lineno">3471</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt class="py-name">cond2obj</tt><tt class="py-op">(</tt><tt class="py-name">pn_transport_condition</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_impl</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
</div><a name="L3472"></a><tt class="py-lineno">3472</tt> <tt class="py-line"> </tt>
<a name="L3473"></a><tt class="py-lineno">3473</tt> <tt class="py-line"> <tt class="py-decorator">@</tt><tt class="py-decorator">property</tt> </tt>
<a name="Transport.connection"></a><div id="Transport.connection-def"><a name="L3474"></a><tt class="py-lineno">3474</tt> <a class="py-toggle" href="#" id="Transport.connection-toggle" onclick="return toggle('Transport.connection');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Transport-class.html#connection">connection</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Transport.connection-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Transport.connection-expanded"><a name="L3475"></a><tt class="py-lineno">3475</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt id="link-817" class="py-name"><a title="proton.Connection" class="py-name" href="#" onclick="return doclink('link-817', 'Connection', 'link-575');">Connection</a></tt><tt class="py-op">.</tt><tt id="link-818" class="py-name"><a title="proton.Connection.wrap
proton.Delivery.wrap
proton.Event.wrap
proton.Link.wrap
proton.Session.wrap
proton.Transport.wrap
proton.reactor.Reactor.wrap
proton.reactor.Task.wrap" class="py-name" href="#" onclick="return doclink('link-818', 'wrap', 'link-88');">wrap</a></tt><tt class="py-op">(</tt><tt class="py-name">pn_transport_connection</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_impl</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
</div></div><a name="L3476"></a><tt class="py-lineno">3476</tt> <tt class="py-line"> </tt>
<a name="SASLException"></a><div id="SASLException-def"><a name="L3477"></a><tt class="py-lineno">3477</tt> <a class="py-toggle" href="#" id="SASLException-toggle" onclick="return toggle('SASLException');">-</a><tt class="py-line"><tt class="py-keyword">class</tt> <a class="py-def-name" href="proton.SASLException-class.html">SASLException</a><tt class="py-op">(</tt><tt class="py-base-class">TransportException</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="SASLException-collapsed" style="display:none;" pad="++++" indent="++++"></div><div id="SASLException-expanded"><a name="L3478"></a><tt class="py-lineno">3478</tt> <tt class="py-line"> <tt class="py-keyword">pass</tt> </tt>
</div><a name="L3479"></a><tt class="py-lineno">3479</tt> <tt class="py-line"> </tt>
<a name="SASL"></a><div id="SASL-def"><a name="L3480"></a><tt class="py-lineno">3480</tt> <a class="py-toggle" href="#" id="SASL-toggle" onclick="return toggle('SASL');">-</a><tt class="py-line"><tt class="py-keyword">class</tt> <a class="py-def-name" href="proton.SASL-class.html">SASL</a><tt class="py-op">(</tt><tt class="py-base-class">Wrapper</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="SASL-collapsed" style="display:none;" pad="++++" indent="++++"></div><div id="SASL-expanded"><a name="L3481"></a><tt class="py-lineno">3481</tt> <tt class="py-line"> </tt>
<a name="L3482"></a><tt class="py-lineno">3482</tt> <tt class="py-line"> <tt id="link-819" class="py-name" targets="Variable proton.SASL.OK=proton.SASL-class.html#OK"><a title="proton.SASL.OK" class="py-name" href="#" onclick="return doclink('link-819', 'OK', 'link-819');">OK</a></tt> <tt class="py-op">=</tt> <tt class="py-name">PN_SASL_OK</tt> </tt>
<a name="L3483"></a><tt class="py-lineno">3483</tt> <tt class="py-line"> <tt id="link-820" class="py-name" targets="Variable proton.SASL.AUTH=proton.SASL-class.html#AUTH"><a title="proton.SASL.AUTH" class="py-name" href="#" onclick="return doclink('link-820', 'AUTH', 'link-820');">AUTH</a></tt> <tt class="py-op">=</tt> <tt class="py-name">PN_SASL_AUTH</tt> </tt>
<a name="L3484"></a><tt class="py-lineno">3484</tt> <tt class="py-line"> <tt id="link-821" class="py-name" targets="Variable proton.SASL.SYS=proton.SASL-class.html#SYS"><a title="proton.SASL.SYS" class="py-name" href="#" onclick="return doclink('link-821', 'SYS', 'link-821');">SYS</a></tt> <tt class="py-op">=</tt> <tt class="py-name">PN_SASL_SYS</tt> </tt>
<a name="L3485"></a><tt class="py-lineno">3485</tt> <tt class="py-line"> <tt id="link-822" class="py-name" targets="Variable proton.SASL.PERM=proton.SASL-class.html#PERM"><a title="proton.SASL.PERM" class="py-name" href="#" onclick="return doclink('link-822', 'PERM', 'link-822');">PERM</a></tt> <tt class="py-op">=</tt> <tt class="py-name">PN_SASL_PERM</tt> </tt>
<a name="L3486"></a><tt class="py-lineno">3486</tt> <tt class="py-line"> <tt id="link-823" class="py-name" targets="Variable proton.SASL.TEMP=proton.SASL-class.html#TEMP"><a title="proton.SASL.TEMP" class="py-name" href="#" onclick="return doclink('link-823', 'TEMP', 'link-823');">TEMP</a></tt> <tt class="py-op">=</tt> <tt class="py-name">PN_SASL_TEMP</tt> </tt>
<a name="L3487"></a><tt class="py-lineno">3487</tt> <tt class="py-line"> </tt>
<a name="L3488"></a><tt class="py-lineno">3488</tt> <tt class="py-line"> <tt class="py-decorator">@</tt><tt class="py-decorator">staticmethod</tt> </tt>
<a name="SASL.extended"></a><div id="SASL.extended-def"><a name="L3489"></a><tt class="py-lineno">3489</tt> <a class="py-toggle" href="#" id="SASL.extended-toggle" onclick="return toggle('SASL.extended');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.SASL-class.html#extended">extended</a><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="SASL.extended-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="SASL.extended-expanded"><a name="L3490"></a><tt class="py-lineno">3490</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt class="py-name">pn_sasl_extended</tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
</div><a name="L3491"></a><tt class="py-lineno">3491</tt> <tt class="py-line"> </tt>
<a name="SASL.__init__"></a><div id="SASL.__init__-def"><a name="L3492"></a><tt class="py-lineno">3492</tt> <a class="py-toggle" href="#" id="SASL.__init__-toggle" onclick="return toggle('SASL.__init__');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.SASL-class.html#__init__">__init__</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">transport</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="SASL.__init__-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="SASL.__init__-expanded"><a name="L3493"></a><tt class="py-lineno">3493</tt> <tt class="py-line"> <tt id="link-824" class="py-name"><a title="proton.wrapper.Wrapper" class="py-name" href="#" onclick="return doclink('link-824', 'Wrapper', 'link-1');">Wrapper</a></tt><tt class="py-op">.</tt><tt id="link-825" class="py-name"><a title="proton.Array.__init__
proton.Collector.__init__
proton.Condition.__init__
proton.Connection.__init__
proton.Data.__init__
proton.Delivery.__init__
proton.Described.__init__
proton.Disposition.__init__
proton.Event.__init__
proton.EventType.__init__
proton.Link.__init__
proton.Message.__init__
proton.Messenger.__init__
proton.SASL.__init__
proton.SSLDomain.__init__
proton.SSLSessionDetails.__init__
proton.Session.__init__
proton.Terminus.__init__
proton.Transport.__init__
proton.Url.PartDescriptor.__init__
proton.Url.__init__
proton.handlers.CFlowController.__init__
proton.handlers.CHandshaker.__init__
proton.handlers.EndpointStateHandler.__init__
proton.handlers.IOHandler.__init__
proton.handlers.IncomingMessageHandler.__init__
proton.handlers.MessagingHandler.__init__
proton.handlers.OutgoingMessageHandler.__init__
proton.handlers.PythonIO.__init__
proton.handlers.TransactionalClientHandler.__init__
proton.reactor.Acceptor.__init__
proton.reactor.ApplicationEvent.__init__
proton.reactor.Backoff.__init__
proton.reactor.Connector.__init__
proton.reactor.Container.__init__
proton.reactor.DynamicNodeProperties.__init__
proton.reactor.EventInjector.__init__
proton.reactor.Filter.__init__
proton.reactor.GlobalOverrides.__init__
proton.reactor.Reactor.__init__
proton.reactor.SSLConfig.__init__
proton.reactor.Selector.__init__
proton.reactor.SessionPerConnection.__init__
proton.reactor.Task.__init__
proton.reactor.Transaction.__init__
proton.reactor.Urls.__init__
proton.utils.AtomicCount.__init__
proton.utils.BlockingConnection.__init__
proton.utils.BlockingLink.__init__
proton.utils.BlockingReceiver.__init__
proton.utils.BlockingSender.__init__
proton.utils.ConnectionClosed.__init__
proton.utils.Fetcher.__init__
proton.utils.LinkDetached.__init__
proton.utils.SendException.__init__
proton.utils.SyncRequestResponse.__init__
proton.wrapper.Wrapper.__init__" class="py-name" href="#" onclick="return doclink('link-825', '__init__', 'link-242');">__init__</a></tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">,</tt> <tt id="link-826" class="py-name"><a title="proton.Connection.transport
proton.Delivery.transport
proton.Endpoint.transport
proton.Event.transport" class="py-name" href="#" onclick="return doclink('link-826', 'transport', 'link-546');">transport</a></tt><tt class="py-op">.</tt><tt class="py-name">_impl</tt><tt class="py-op">,</tt> <tt class="py-name">pn_transport_attachments</tt><tt class="py-op">)</tt> </tt>
<a name="L3494"></a><tt class="py-lineno">3494</tt> <tt class="py-line"> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_sasl</tt> <tt class="py-op">=</tt> <tt class="py-name">pn_sasl</tt><tt class="py-op">(</tt><tt id="link-827" class="py-name"><a title="proton.Connection.transport
proton.Delivery.transport
proton.Endpoint.transport
proton.Event.transport" class="py-name" href="#" onclick="return doclink('link-827', 'transport', 'link-546');">transport</a></tt><tt class="py-op">.</tt><tt class="py-name">_impl</tt><tt class="py-op">)</tt> </tt>
</div><a name="L3495"></a><tt class="py-lineno">3495</tt> <tt class="py-line"> </tt>
<a name="SASL._check"></a><div id="SASL._check-def"><a name="L3496"></a><tt class="py-lineno">3496</tt> <a class="py-toggle" href="#" id="SASL._check-toggle" onclick="return toggle('SASL._check');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.SASL-class.html#_check">_check</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">err</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="SASL._check-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="SASL._check-expanded"><a name="L3497"></a><tt class="py-lineno">3497</tt> <tt class="py-line"> <tt class="py-keyword">if</tt> <tt class="py-name">err</tt> <tt class="py-op"><</tt> <tt class="py-number">0</tt><tt class="py-op">:</tt> </tt>
<a name="L3498"></a><tt class="py-lineno">3498</tt> <tt class="py-line"> <tt class="py-name">exc</tt> <tt class="py-op">=</tt> <tt id="link-828" class="py-name"><a title="proton.EXCEPTIONS" class="py-name" href="#" onclick="return doclink('link-828', 'EXCEPTIONS', 'link-28');">EXCEPTIONS</a></tt><tt class="py-op">.</tt><tt id="link-829" class="py-name"><a title="proton.Messenger.get" class="py-name" href="#" onclick="return doclink('link-829', 'get', 'link-50');">get</a></tt><tt class="py-op">(</tt><tt class="py-name">err</tt><tt class="py-op">,</tt> <tt class="py-name">SASLException</tt><tt class="py-op">)</tt> </tt>
<a name="L3499"></a><tt class="py-lineno">3499</tt> <tt class="py-line"> <tt class="py-keyword">raise</tt> <tt class="py-name">exc</tt><tt class="py-op">(</tt><tt class="py-string">"[%s]"</tt> <tt class="py-op">%</tt> <tt class="py-op">(</tt><tt class="py-name">err</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
<a name="L3500"></a><tt class="py-lineno">3500</tt> <tt class="py-line"> <tt class="py-keyword">else</tt><tt class="py-op">:</tt> </tt>
<a name="L3501"></a><tt class="py-lineno">3501</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt class="py-name">err</tt> </tt>
</div><a name="L3502"></a><tt class="py-lineno">3502</tt> <tt class="py-line"> </tt>
<a name="L3503"></a><tt class="py-lineno">3503</tt> <tt class="py-line"> <tt class="py-decorator">@</tt><tt class="py-decorator">property</tt> </tt>
<a name="SASL.user"></a><div id="SASL.user-def"><a name="L3504"></a><tt class="py-lineno">3504</tt> <a class="py-toggle" href="#" id="SASL.user-toggle" onclick="return toggle('SASL.user');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.SASL-class.html#user">user</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="SASL.user-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="SASL.user-expanded"><a name="L3505"></a><tt class="py-lineno">3505</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt class="py-name">pn_sasl_get_user</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_sasl</tt><tt class="py-op">)</tt> </tt>
</div><a name="L3506"></a><tt class="py-lineno">3506</tt> <tt class="py-line"> </tt>
<a name="L3507"></a><tt class="py-lineno">3507</tt> <tt class="py-line"> <tt class="py-decorator">@</tt><tt class="py-decorator">property</tt> </tt>
<a name="SASL.mech"></a><div id="SASL.mech-def"><a name="L3508"></a><tt class="py-lineno">3508</tt> <a class="py-toggle" href="#" id="SASL.mech-toggle" onclick="return toggle('SASL.mech');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.SASL-class.html#mech">mech</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="SASL.mech-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="SASL.mech-expanded"><a name="L3509"></a><tt class="py-lineno">3509</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt class="py-name">pn_sasl_get_mech</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_sasl</tt><tt class="py-op">)</tt> </tt>
</div><a name="L3510"></a><tt class="py-lineno">3510</tt> <tt class="py-line"> </tt>
<a name="L3511"></a><tt class="py-lineno">3511</tt> <tt class="py-line"> <tt class="py-decorator">@</tt><tt class="py-decorator">property</tt> </tt>
<a name="SASL.outcome"></a><div id="SASL.outcome-def"><a name="L3512"></a><tt class="py-lineno">3512</tt> <a class="py-toggle" href="#" id="SASL.outcome-toggle" onclick="return toggle('SASL.outcome');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.SASL-class.html#outcome">outcome</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="SASL.outcome-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="SASL.outcome-expanded"><a name="L3513"></a><tt class="py-lineno">3513</tt> <tt class="py-line"> <tt id="link-830" class="py-name" targets="Variable proton.SASL.outcome=proton.SASL-class.html#outcome"><a title="proton.SASL.outcome" class="py-name" href="#" onclick="return doclink('link-830', 'outcome', 'link-830');">outcome</a></tt> <tt class="py-op">=</tt> <tt class="py-name">pn_sasl_outcome</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_sasl</tt><tt class="py-op">)</tt> </tt>
<a name="L3514"></a><tt class="py-lineno">3514</tt> <tt class="py-line"> <tt class="py-keyword">if</tt> <tt id="link-831" class="py-name"><a title="proton.SASL.outcome" class="py-name" href="#" onclick="return doclink('link-831', 'outcome', 'link-830');">outcome</a></tt> <tt class="py-op">==</tt> <tt class="py-name">PN_SASL_NONE</tt><tt class="py-op">:</tt> </tt>
<a name="L3515"></a><tt class="py-lineno">3515</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt class="py-name">None</tt> </tt>
<a name="L3516"></a><tt class="py-lineno">3516</tt> <tt class="py-line"> <tt class="py-keyword">else</tt><tt class="py-op">:</tt> </tt>
<a name="L3517"></a><tt class="py-lineno">3517</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt id="link-832" class="py-name"><a title="proton.SASL.outcome" class="py-name" href="#" onclick="return doclink('link-832', 'outcome', 'link-830');">outcome</a></tt> </tt>
</div><a name="L3518"></a><tt class="py-lineno">3518</tt> <tt class="py-line"> </tt>
<a name="SASL.allowed_mechs"></a><div id="SASL.allowed_mechs-def"><a name="L3519"></a><tt class="py-lineno">3519</tt> <a class="py-toggle" href="#" id="SASL.allowed_mechs-toggle" onclick="return toggle('SASL.allowed_mechs');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.SASL-class.html#allowed_mechs">allowed_mechs</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">mechs</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="SASL.allowed_mechs-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="SASL.allowed_mechs-expanded"><a name="L3520"></a><tt class="py-lineno">3520</tt> <tt class="py-line"> <tt class="py-name">pn_sasl_allowed_mechs</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_sasl</tt><tt class="py-op">,</tt> <tt class="py-name">mechs</tt><tt class="py-op">)</tt> </tt>
</div><a name="L3521"></a><tt class="py-lineno">3521</tt> <tt class="py-line"> </tt>
<a name="SASL._get_allow_insecure_mechs"></a><div id="SASL._get_allow_insecure_mechs-def"><a name="L3522"></a><tt class="py-lineno">3522</tt> <a class="py-toggle" href="#" id="SASL._get_allow_insecure_mechs-toggle" onclick="return toggle('SASL._get_allow_insecure_mechs');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.SASL-class.html#_get_allow_insecure_mechs">_get_allow_insecure_mechs</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="SASL._get_allow_insecure_mechs-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="SASL._get_allow_insecure_mechs-expanded"><a name="L3523"></a><tt class="py-lineno">3523</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt class="py-name">pn_sasl_get_allow_insecure_mechs</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_sasl</tt><tt class="py-op">)</tt> </tt>
</div><a name="L3524"></a><tt class="py-lineno">3524</tt> <tt class="py-line"> </tt>
<a name="SASL._set_allow_insecure_mechs"></a><div id="SASL._set_allow_insecure_mechs-def"><a name="L3525"></a><tt class="py-lineno">3525</tt> <a class="py-toggle" href="#" id="SASL._set_allow_insecure_mechs-toggle" onclick="return toggle('SASL._set_allow_insecure_mechs');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.SASL-class.html#_set_allow_insecure_mechs">_set_allow_insecure_mechs</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">insecure</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="SASL._set_allow_insecure_mechs-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="SASL._set_allow_insecure_mechs-expanded"><a name="L3526"></a><tt class="py-lineno">3526</tt> <tt class="py-line"> <tt class="py-name">pn_sasl_set_allow_insecure_mechs</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_sasl</tt><tt class="py-op">,</tt> <tt class="py-name">insecure</tt><tt class="py-op">)</tt> </tt>
</div><a name="L3527"></a><tt class="py-lineno">3527</tt> <tt class="py-line"> </tt>
<a name="L3528"></a><tt class="py-lineno">3528</tt> <tt class="py-line"> <tt id="link-833" class="py-name" targets="Variable proton.SASL.allow_insecure_mechs=proton.SASL-class.html#allow_insecure_mechs"><a title="proton.SASL.allow_insecure_mechs" class="py-name" href="#" onclick="return doclink('link-833', 'allow_insecure_mechs', 'link-833');">allow_insecure_mechs</a></tt> <tt class="py-op">=</tt> <tt class="py-name">property</tt><tt class="py-op">(</tt><tt id="link-834" class="py-name" targets="Method proton.SASL._get_allow_insecure_mechs()=proton.SASL-class.html#_get_allow_insecure_mechs"><a title="proton.SASL._get_allow_insecure_mechs" class="py-name" href="#" onclick="return doclink('link-834', '_get_allow_insecure_mechs', 'link-834');">_get_allow_insecure_mechs</a></tt><tt class="py-op">,</tt> <tt id="link-835" class="py-name" targets="Method proton.SASL._set_allow_insecure_mechs()=proton.SASL-class.html#_set_allow_insecure_mechs"><a title="proton.SASL._set_allow_insecure_mechs" class="py-name" href="#" onclick="return doclink('link-835', '_set_allow_insecure_mechs', 'link-835');">_set_allow_insecure_mechs</a></tt><tt class="py-op">,</tt> </tt>
<a name="L3529"></a><tt class="py-lineno">3529</tt> <tt class="py-line"> <tt class="py-name">doc</tt><tt class="py-op">=</tt><tt class="py-string">"""</tt> </tt>
<a name="L3530"></a><tt class="py-lineno">3530</tt> <tt class="py-line"><tt class="py-string">Allow unencrypted cleartext passwords (PLAIN mech)</tt> </tt>
<a name="L3531"></a><tt class="py-lineno">3531</tt> <tt class="py-line"><tt class="py-string">"""</tt><tt class="py-op">)</tt> </tt>
<a name="L3532"></a><tt class="py-lineno">3532</tt> <tt class="py-line"> </tt>
<a name="SASL.done"></a><div id="SASL.done-def"><a name="L3533"></a><tt class="py-lineno">3533</tt> <a class="py-toggle" href="#" id="SASL.done-toggle" onclick="return toggle('SASL.done');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.SASL-class.html#done">done</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">outcome</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="SASL.done-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="SASL.done-expanded"><a name="L3534"></a><tt class="py-lineno">3534</tt> <tt class="py-line"> <tt class="py-name">pn_sasl_done</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_sasl</tt><tt class="py-op">,</tt> <tt id="link-836" class="py-name"><a title="proton.SASL.outcome" class="py-name" href="#" onclick="return doclink('link-836', 'outcome', 'link-830');">outcome</a></tt><tt class="py-op">)</tt> </tt>
</div><a name="L3535"></a><tt class="py-lineno">3535</tt> <tt class="py-line"> </tt>
<a name="SASL.config_name"></a><div id="SASL.config_name-def"><a name="L3536"></a><tt class="py-lineno">3536</tt> <a class="py-toggle" href="#" id="SASL.config_name-toggle" onclick="return toggle('SASL.config_name');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.SASL-class.html#config_name">config_name</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">name</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="SASL.config_name-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="SASL.config_name-expanded"><a name="L3537"></a><tt class="py-lineno">3537</tt> <tt class="py-line"> <tt class="py-name">pn_sasl_config_name</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_sasl</tt><tt class="py-op">,</tt> <tt id="link-837" class="py-name"><a title="proton.Link.name
proton.Messenger.name" class="py-name" href="#" onclick="return doclink('link-837', 'name', 'link-25');">name</a></tt><tt class="py-op">)</tt> </tt>
</div><a name="L3538"></a><tt class="py-lineno">3538</tt> <tt class="py-line"> </tt>
<a name="SASL.config_path"></a><div id="SASL.config_path-def"><a name="L3539"></a><tt class="py-lineno">3539</tt> <a class="py-toggle" href="#" id="SASL.config_path-toggle" onclick="return toggle('SASL.config_path');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.SASL-class.html#config_path">config_path</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">path</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="SASL.config_path-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="SASL.config_path-expanded"><a name="L3540"></a><tt class="py-lineno">3540</tt> <tt class="py-line"> <tt class="py-name">pn_sasl_config_path</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_sasl</tt><tt class="py-op">,</tt> <tt id="link-838" class="py-name" targets="Variable proton.Url.path=proton.Url-class.html#path"><a title="proton.Url.path" class="py-name" href="#" onclick="return doclink('link-838', 'path', 'link-838');">path</a></tt><tt class="py-op">)</tt> </tt>
</div></div><a name="L3541"></a><tt class="py-lineno">3541</tt> <tt class="py-line"> </tt>
<a name="SSLException"></a><div id="SSLException-def"><a name="L3542"></a><tt class="py-lineno">3542</tt> <a class="py-toggle" href="#" id="SSLException-toggle" onclick="return toggle('SSLException');">-</a><tt class="py-line"><tt class="py-keyword">class</tt> <a class="py-def-name" href="proton.SSLException-class.html">SSLException</a><tt class="py-op">(</tt><tt class="py-base-class">TransportException</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="SSLException-collapsed" style="display:none;" pad="++++" indent="++++"></div><div id="SSLException-expanded"><a name="L3543"></a><tt class="py-lineno">3543</tt> <tt class="py-line"> <tt class="py-keyword">pass</tt> </tt>
</div><a name="L3544"></a><tt class="py-lineno">3544</tt> <tt class="py-line"> </tt>
<a name="SSLUnavailable"></a><div id="SSLUnavailable-def"><a name="L3545"></a><tt class="py-lineno">3545</tt> <a class="py-toggle" href="#" id="SSLUnavailable-toggle" onclick="return toggle('SSLUnavailable');">-</a><tt class="py-line"><tt class="py-keyword">class</tt> <a class="py-def-name" href="proton.SSLUnavailable-class.html">SSLUnavailable</a><tt class="py-op">(</tt><tt class="py-base-class">SSLException</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="SSLUnavailable-collapsed" style="display:none;" pad="++++" indent="++++"></div><div id="SSLUnavailable-expanded"><a name="L3546"></a><tt class="py-lineno">3546</tt> <tt class="py-line"> <tt class="py-keyword">pass</tt> </tt>
</div><a name="L3547"></a><tt class="py-lineno">3547</tt> <tt class="py-line"> </tt>
<a name="SSLDomain"></a><div id="SSLDomain-def"><a name="L3548"></a><tt class="py-lineno">3548</tt> <a class="py-toggle" href="#" id="SSLDomain-toggle" onclick="return toggle('SSLDomain');">-</a><tt class="py-line"><tt class="py-keyword">class</tt> <a class="py-def-name" href="proton.SSLDomain-class.html">SSLDomain</a><tt class="py-op">(</tt><tt class="py-base-class">object</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="SSLDomain-collapsed" style="display:none;" pad="++++" indent="++++"></div><div id="SSLDomain-expanded"><a name="L3549"></a><tt class="py-lineno">3549</tt> <tt class="py-line"> </tt>
<a name="L3550"></a><tt class="py-lineno">3550</tt> <tt class="py-line"> <tt id="link-839" class="py-name" targets="Variable proton.SSLDomain.MODE_CLIENT=proton.SSLDomain-class.html#MODE_CLIENT"><a title="proton.SSLDomain.MODE_CLIENT" class="py-name" href="#" onclick="return doclink('link-839', 'MODE_CLIENT', 'link-839');">MODE_CLIENT</a></tt> <tt class="py-op">=</tt> <tt class="py-name">PN_SSL_MODE_CLIENT</tt> </tt>
<a name="L3551"></a><tt class="py-lineno">3551</tt> <tt class="py-line"> <tt id="link-840" class="py-name" targets="Variable proton.SSLDomain.MODE_SERVER=proton.SSLDomain-class.html#MODE_SERVER"><a title="proton.SSLDomain.MODE_SERVER" class="py-name" href="#" onclick="return doclink('link-840', 'MODE_SERVER', 'link-840');">MODE_SERVER</a></tt> <tt class="py-op">=</tt> <tt class="py-name">PN_SSL_MODE_SERVER</tt> </tt>
<a name="L3552"></a><tt class="py-lineno">3552</tt> <tt class="py-line"> <tt id="link-841" class="py-name" targets="Variable proton.SSLDomain.VERIFY_PEER=proton.SSLDomain-class.html#VERIFY_PEER"><a title="proton.SSLDomain.VERIFY_PEER" class="py-name" href="#" onclick="return doclink('link-841', 'VERIFY_PEER', 'link-841');">VERIFY_PEER</a></tt> <tt class="py-op">=</tt> <tt class="py-name">PN_SSL_VERIFY_PEER</tt> </tt>
<a name="L3553"></a><tt class="py-lineno">3553</tt> <tt class="py-line"> <tt id="link-842" class="py-name" targets="Variable proton.SSLDomain.VERIFY_PEER_NAME=proton.SSLDomain-class.html#VERIFY_PEER_NAME"><a title="proton.SSLDomain.VERIFY_PEER_NAME" class="py-name" href="#" onclick="return doclink('link-842', 'VERIFY_PEER_NAME', 'link-842');">VERIFY_PEER_NAME</a></tt> <tt class="py-op">=</tt> <tt class="py-name">PN_SSL_VERIFY_PEER_NAME</tt> </tt>
<a name="L3554"></a><tt class="py-lineno">3554</tt> <tt class="py-line"> <tt id="link-843" class="py-name" targets="Variable proton.SSLDomain.ANONYMOUS_PEER=proton.SSLDomain-class.html#ANONYMOUS_PEER"><a title="proton.SSLDomain.ANONYMOUS_PEER" class="py-name" href="#" onclick="return doclink('link-843', 'ANONYMOUS_PEER', 'link-843');">ANONYMOUS_PEER</a></tt> <tt class="py-op">=</tt> <tt class="py-name">PN_SSL_ANONYMOUS_PEER</tt> </tt>
<a name="L3555"></a><tt class="py-lineno">3555</tt> <tt class="py-line"> </tt>
<a name="SSLDomain.__init__"></a><div id="SSLDomain.__init__-def"><a name="L3556"></a><tt class="py-lineno">3556</tt> <a class="py-toggle" href="#" id="SSLDomain.__init__-toggle" onclick="return toggle('SSLDomain.__init__');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.SSLDomain-class.html#__init__">__init__</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">mode</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="SSLDomain.__init__-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="SSLDomain.__init__-expanded"><a name="L3557"></a><tt class="py-lineno">3557</tt> <tt class="py-line"> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_domain</tt> <tt class="py-op">=</tt> <tt class="py-name">pn_ssl_domain</tt><tt class="py-op">(</tt><tt class="py-name">mode</tt><tt class="py-op">)</tt> </tt>
<a name="L3558"></a><tt class="py-lineno">3558</tt> <tt class="py-line"> <tt class="py-keyword">if</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_domain</tt> <tt class="py-keyword">is</tt> <tt class="py-name">None</tt><tt class="py-op">:</tt> </tt>
<a name="L3559"></a><tt class="py-lineno">3559</tt> <tt class="py-line"> <tt class="py-keyword">raise</tt> <tt id="link-844" class="py-name" targets="Class proton.SSLUnavailable=proton.SSLUnavailable-class.html"><a title="proton.SSLUnavailable" class="py-name" href="#" onclick="return doclink('link-844', 'SSLUnavailable', 'link-844');">SSLUnavailable</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
</div><a name="L3560"></a><tt class="py-lineno">3560</tt> <tt class="py-line"> </tt>
<a name="SSLDomain._check"></a><div id="SSLDomain._check-def"><a name="L3561"></a><tt class="py-lineno">3561</tt> <a class="py-toggle" href="#" id="SSLDomain._check-toggle" onclick="return toggle('SSLDomain._check');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.SSLDomain-class.html#_check">_check</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">err</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="SSLDomain._check-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="SSLDomain._check-expanded"><a name="L3562"></a><tt class="py-lineno">3562</tt> <tt class="py-line"> <tt class="py-keyword">if</tt> <tt class="py-name">err</tt> <tt class="py-op"><</tt> <tt class="py-number">0</tt><tt class="py-op">:</tt> </tt>
<a name="L3563"></a><tt class="py-lineno">3563</tt> <tt class="py-line"> <tt class="py-name">exc</tt> <tt class="py-op">=</tt> <tt id="link-845" class="py-name"><a title="proton.EXCEPTIONS" class="py-name" href="#" onclick="return doclink('link-845', 'EXCEPTIONS', 'link-28');">EXCEPTIONS</a></tt><tt class="py-op">.</tt><tt id="link-846" class="py-name"><a title="proton.Messenger.get" class="py-name" href="#" onclick="return doclink('link-846', 'get', 'link-50');">get</a></tt><tt class="py-op">(</tt><tt class="py-name">err</tt><tt class="py-op">,</tt> <tt id="link-847" class="py-name" targets="Class proton.SSLException=proton.SSLException-class.html"><a title="proton.SSLException" class="py-name" href="#" onclick="return doclink('link-847', 'SSLException', 'link-847');">SSLException</a></tt><tt class="py-op">)</tt> </tt>
<a name="L3564"></a><tt class="py-lineno">3564</tt> <tt class="py-line"> <tt class="py-keyword">raise</tt> <tt class="py-name">exc</tt><tt class="py-op">(</tt><tt class="py-string">"SSL failure."</tt><tt class="py-op">)</tt> </tt>
<a name="L3565"></a><tt class="py-lineno">3565</tt> <tt class="py-line"> <tt class="py-keyword">else</tt><tt class="py-op">:</tt> </tt>
<a name="L3566"></a><tt class="py-lineno">3566</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt class="py-name">err</tt> </tt>
</div><a name="L3567"></a><tt class="py-lineno">3567</tt> <tt class="py-line"> </tt>
<a name="SSLDomain.set_credentials"></a><div id="SSLDomain.set_credentials-def"><a name="L3568"></a><tt class="py-lineno">3568</tt> <a class="py-toggle" href="#" id="SSLDomain.set_credentials-toggle" onclick="return toggle('SSLDomain.set_credentials');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.SSLDomain-class.html#set_credentials">set_credentials</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">cert_file</tt><tt class="py-op">,</tt> <tt class="py-param">key_file</tt><tt class="py-op">,</tt> <tt class="py-param">password</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="SSLDomain.set_credentials-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="SSLDomain.set_credentials-expanded"><a name="L3569"></a><tt class="py-lineno">3569</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_check</tt><tt class="py-op">(</tt> <tt class="py-name">pn_ssl_domain_set_credentials</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_domain</tt><tt class="py-op">,</tt> </tt>
<a name="L3570"></a><tt class="py-lineno">3570</tt> <tt class="py-line"> <tt class="py-name">cert_file</tt><tt class="py-op">,</tt> <tt class="py-name">key_file</tt><tt class="py-op">,</tt> </tt>
<a name="L3571"></a><tt class="py-lineno">3571</tt> <tt class="py-line"> <tt id="link-848" class="py-name"><a title="proton.Connection.password
proton.Messenger.password
proton.Url.password" class="py-name" href="#" onclick="return doclink('link-848', 'password', 'link-58');">password</a></tt><tt class="py-op">)</tt> <tt class="py-op">)</tt> </tt>
</div><a name="SSLDomain.set_trusted_ca_db"></a><div id="SSLDomain.set_trusted_ca_db-def"><a name="L3572"></a><tt class="py-lineno">3572</tt> <a class="py-toggle" href="#" id="SSLDomain.set_trusted_ca_db-toggle" onclick="return toggle('SSLDomain.set_trusted_ca_db');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.SSLDomain-class.html#set_trusted_ca_db">set_trusted_ca_db</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">certificate_db</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="SSLDomain.set_trusted_ca_db-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="SSLDomain.set_trusted_ca_db-expanded"><a name="L3573"></a><tt class="py-lineno">3573</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_check</tt><tt class="py-op">(</tt> <tt class="py-name">pn_ssl_domain_set_trusted_ca_db</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_domain</tt><tt class="py-op">,</tt> </tt>
<a name="L3574"></a><tt class="py-lineno">3574</tt> <tt class="py-line"> <tt class="py-name">certificate_db</tt><tt class="py-op">)</tt> <tt class="py-op">)</tt> </tt>
</div><a name="SSLDomain.set_peer_authentication"></a><div id="SSLDomain.set_peer_authentication-def"><a name="L3575"></a><tt class="py-lineno">3575</tt> <a class="py-toggle" href="#" id="SSLDomain.set_peer_authentication-toggle" onclick="return toggle('SSLDomain.set_peer_authentication');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.SSLDomain-class.html#set_peer_authentication">set_peer_authentication</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">verify_mode</tt><tt class="py-op">,</tt> <tt class="py-param">trusted_CAs</tt><tt class="py-op">=</tt><tt class="py-name">None</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="SSLDomain.set_peer_authentication-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="SSLDomain.set_peer_authentication-expanded"><a name="L3576"></a><tt class="py-lineno">3576</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_check</tt><tt class="py-op">(</tt> <tt class="py-name">pn_ssl_domain_set_peer_authentication</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_domain</tt><tt class="py-op">,</tt> </tt>
<a name="L3577"></a><tt class="py-lineno">3577</tt> <tt class="py-line"> <tt class="py-name">verify_mode</tt><tt class="py-op">,</tt> </tt>
<a name="L3578"></a><tt class="py-lineno">3578</tt> <tt class="py-line"> <tt class="py-name">trusted_CAs</tt><tt class="py-op">)</tt> <tt class="py-op">)</tt> </tt>
</div><a name="L3579"></a><tt class="py-lineno">3579</tt> <tt class="py-line"> </tt>
<a name="SSLDomain.allow_unsecured_client"></a><div id="SSLDomain.allow_unsecured_client-def"><a name="L3580"></a><tt class="py-lineno">3580</tt> <a class="py-toggle" href="#" id="SSLDomain.allow_unsecured_client-toggle" onclick="return toggle('SSLDomain.allow_unsecured_client');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.SSLDomain-class.html#allow_unsecured_client">allow_unsecured_client</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="SSLDomain.allow_unsecured_client-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="SSLDomain.allow_unsecured_client-expanded"><a name="L3581"></a><tt class="py-lineno">3581</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_check</tt><tt class="py-op">(</tt> <tt class="py-name">pn_ssl_domain_allow_unsecured_client</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_domain</tt><tt class="py-op">)</tt> <tt class="py-op">)</tt> </tt>
</div><a name="L3582"></a><tt class="py-lineno">3582</tt> <tt class="py-line"> </tt>
<a name="SSLDomain.__del__"></a><div id="SSLDomain.__del__-def"><a name="L3583"></a><tt class="py-lineno">3583</tt> <a class="py-toggle" href="#" id="SSLDomain.__del__-toggle" onclick="return toggle('SSLDomain.__del__');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.SSLDomain-class.html#__del__">__del__</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="SSLDomain.__del__-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="SSLDomain.__del__-expanded"><a name="L3584"></a><tt class="py-lineno">3584</tt> <tt class="py-line"> <tt class="py-name">pn_ssl_domain_free</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_domain</tt><tt class="py-op">)</tt> </tt>
</div></div><a name="L3585"></a><tt class="py-lineno">3585</tt> <tt class="py-line"> </tt>
<a name="SSL"></a><div id="SSL-def"><a name="L3586"></a><tt class="py-lineno">3586</tt> <a class="py-toggle" href="#" id="SSL-toggle" onclick="return toggle('SSL');">-</a><tt class="py-line"><tt class="py-keyword">class</tt> <a class="py-def-name" href="proton.SSL-class.html">SSL</a><tt class="py-op">(</tt><tt class="py-base-class">object</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="SSL-collapsed" style="display:none;" pad="++++" indent="++++"></div><div id="SSL-expanded"><a name="L3587"></a><tt class="py-lineno">3587</tt> <tt class="py-line"> </tt>
<a name="L3588"></a><tt class="py-lineno">3588</tt> <tt class="py-line"> <tt class="py-decorator">@</tt><tt class="py-decorator">staticmethod</tt> </tt>
<a name="SSL.present"></a><div id="SSL.present-def"><a name="L3589"></a><tt class="py-lineno">3589</tt> <a class="py-toggle" href="#" id="SSL.present-toggle" onclick="return toggle('SSL.present');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.SSL-class.html#present">present</a><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="SSL.present-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="SSL.present-expanded"><a name="L3590"></a><tt class="py-lineno">3590</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt class="py-name">pn_ssl_present</tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
</div><a name="L3591"></a><tt class="py-lineno">3591</tt> <tt class="py-line"> </tt>
<a name="SSL._check"></a><div id="SSL._check-def"><a name="L3592"></a><tt class="py-lineno">3592</tt> <a class="py-toggle" href="#" id="SSL._check-toggle" onclick="return toggle('SSL._check');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.SSL-class.html#_check">_check</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">err</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="SSL._check-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="SSL._check-expanded"><a name="L3593"></a><tt class="py-lineno">3593</tt> <tt class="py-line"> <tt class="py-keyword">if</tt> <tt class="py-name">err</tt> <tt class="py-op"><</tt> <tt class="py-number">0</tt><tt class="py-op">:</tt> </tt>
<a name="L3594"></a><tt class="py-lineno">3594</tt> <tt class="py-line"> <tt class="py-name">exc</tt> <tt class="py-op">=</tt> <tt id="link-849" class="py-name"><a title="proton.EXCEPTIONS" class="py-name" href="#" onclick="return doclink('link-849', 'EXCEPTIONS', 'link-28');">EXCEPTIONS</a></tt><tt class="py-op">.</tt><tt id="link-850" class="py-name"><a title="proton.Messenger.get" class="py-name" href="#" onclick="return doclink('link-850', 'get', 'link-50');">get</a></tt><tt class="py-op">(</tt><tt class="py-name">err</tt><tt class="py-op">,</tt> <tt id="link-851" class="py-name"><a title="proton.SSLException" class="py-name" href="#" onclick="return doclink('link-851', 'SSLException', 'link-847');">SSLException</a></tt><tt class="py-op">)</tt> </tt>
<a name="L3595"></a><tt class="py-lineno">3595</tt> <tt class="py-line"> <tt class="py-keyword">raise</tt> <tt class="py-name">exc</tt><tt class="py-op">(</tt><tt class="py-string">"SSL failure."</tt><tt class="py-op">)</tt> </tt>
<a name="L3596"></a><tt class="py-lineno">3596</tt> <tt class="py-line"> <tt class="py-keyword">else</tt><tt class="py-op">:</tt> </tt>
<a name="L3597"></a><tt class="py-lineno">3597</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt class="py-name">err</tt> </tt>
</div><a name="L3598"></a><tt class="py-lineno">3598</tt> <tt class="py-line"> </tt>
<a name="SSL.__new__"></a><div id="SSL.__new__-def"><a name="L3599"></a><tt class="py-lineno">3599</tt> <a class="py-toggle" href="#" id="SSL.__new__-toggle" onclick="return toggle('SSL.__new__');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.SSL-class.html#__new__">__new__</a><tt class="py-op">(</tt><tt class="py-param">cls</tt><tt class="py-op">,</tt> <tt class="py-param">transport</tt><tt class="py-op">,</tt> <tt class="py-param">domain</tt><tt class="py-op">,</tt> <tt class="py-param">session_details</tt><tt class="py-op">=</tt><tt class="py-name">None</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="SSL.__new__-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="SSL.__new__-expanded"><a name="L3600"></a><tt class="py-lineno">3600</tt> <tt class="py-line"> <tt class="py-docstring">"""Enforce a singleton SSL object per Transport"""</tt> </tt>
<a name="L3601"></a><tt class="py-lineno">3601</tt> <tt class="py-line"> <tt class="py-keyword">if</tt> <tt id="link-852" class="py-name"><a title="proton.Connection.transport
proton.Delivery.transport
proton.Endpoint.transport
proton.Event.transport" class="py-name" href="#" onclick="return doclink('link-852', 'transport', 'link-546');">transport</a></tt><tt class="py-op">.</tt><tt class="py-name">_ssl</tt><tt class="py-op">:</tt> </tt>
<a name="L3602"></a><tt class="py-lineno">3602</tt> <tt class="py-line"> <tt class="py-comment"># unfortunately, we've combined the allocation and the configuration in a</tt> </tt>
<a name="L3603"></a><tt class="py-lineno">3603</tt> <tt class="py-line"> <tt class="py-comment"># single step. So catch any attempt by the application to provide what</tt> </tt>
<a name="L3604"></a><tt class="py-lineno">3604</tt> <tt class="py-line"> <tt class="py-comment"># may be a different configuration than the original (hack)</tt> </tt>
<a name="L3605"></a><tt class="py-lineno">3605</tt> <tt class="py-line"> <tt id="link-853" class="py-name" targets="Method proton.Transport.ssl()=proton.Transport-class.html#ssl"><a title="proton.Transport.ssl" class="py-name" href="#" onclick="return doclink('link-853', 'ssl', 'link-853');">ssl</a></tt> <tt class="py-op">=</tt> <tt id="link-854" class="py-name"><a title="proton.Connection.transport
proton.Delivery.transport
proton.Endpoint.transport
proton.Event.transport" class="py-name" href="#" onclick="return doclink('link-854', 'transport', 'link-546');">transport</a></tt><tt class="py-op">.</tt><tt class="py-name">_ssl</tt> </tt>
<a name="L3606"></a><tt class="py-lineno">3606</tt> <tt class="py-line"> <tt class="py-keyword">if</tt> <tt class="py-op">(</tt><tt class="py-name">domain</tt> <tt class="py-keyword">and</tt> <tt class="py-op">(</tt><tt id="link-855" class="py-name"><a title="proton.Transport.ssl" class="py-name" href="#" onclick="return doclink('link-855', 'ssl', 'link-853');">ssl</a></tt><tt class="py-op">.</tt><tt class="py-name">_domain</tt> <tt class="py-keyword">is</tt> <tt class="py-keyword">not</tt> <tt class="py-name">domain</tt><tt class="py-op">)</tt> <tt class="py-keyword">or</tt> </tt>
<a name="L3607"></a><tt class="py-lineno">3607</tt> <tt class="py-line"> <tt class="py-name">session_details</tt> <tt class="py-keyword">and</tt> <tt class="py-op">(</tt><tt id="link-856" class="py-name"><a title="proton.Transport.ssl" class="py-name" href="#" onclick="return doclink('link-856', 'ssl', 'link-853');">ssl</a></tt><tt class="py-op">.</tt><tt class="py-name">_session_details</tt> <tt class="py-keyword">is</tt> <tt class="py-keyword">not</tt> <tt class="py-name">session_details</tt><tt class="py-op">)</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
<a name="L3608"></a><tt class="py-lineno">3608</tt> <tt class="py-line"> <tt class="py-keyword">raise</tt> <tt id="link-857" class="py-name"><a title="proton.SSLException" class="py-name" href="#" onclick="return doclink('link-857', 'SSLException', 'link-847');">SSLException</a></tt><tt class="py-op">(</tt><tt class="py-string">"Cannot re-configure existing SSL object!"</tt><tt class="py-op">)</tt> </tt>
<a name="L3609"></a><tt class="py-lineno">3609</tt> <tt class="py-line"> <tt class="py-keyword">else</tt><tt class="py-op">:</tt> </tt>
<a name="L3610"></a><tt class="py-lineno">3610</tt> <tt class="py-line"> <tt class="py-name">obj</tt> <tt class="py-op">=</tt> <tt class="py-name">super</tt><tt class="py-op">(</tt><tt id="link-858" class="py-name"><a title="proton.SSL" class="py-name" href="#" onclick="return doclink('link-858', 'SSL', 'link-816');">SSL</a></tt><tt class="py-op">,</tt> <tt class="py-name">cls</tt><tt class="py-op">)</tt><tt class="py-op">.</tt><tt id="link-859" class="py-name"><a title="proton.SSL.__new__
proton.Url.Port.__new__" class="py-name" href="#" onclick="return doclink('link-859', '__new__', 'link-711');">__new__</a></tt><tt class="py-op">(</tt><tt class="py-name">cls</tt><tt class="py-op">)</tt> </tt>
<a name="L3611"></a><tt class="py-lineno">3611</tt> <tt class="py-line"> <tt class="py-name">obj</tt><tt class="py-op">.</tt><tt class="py-name">_domain</tt> <tt class="py-op">=</tt> <tt class="py-name">domain</tt> </tt>
<a name="L3612"></a><tt class="py-lineno">3612</tt> <tt class="py-line"> <tt class="py-name">obj</tt><tt class="py-op">.</tt><tt class="py-name">_session_details</tt> <tt class="py-op">=</tt> <tt class="py-name">session_details</tt> </tt>
<a name="L3613"></a><tt class="py-lineno">3613</tt> <tt class="py-line"> <tt class="py-name">session_id</tt> <tt class="py-op">=</tt> <tt class="py-name">None</tt> </tt>
<a name="L3614"></a><tt class="py-lineno">3614</tt> <tt class="py-line"> <tt class="py-keyword">if</tt> <tt class="py-name">session_details</tt><tt class="py-op">:</tt> </tt>
<a name="L3615"></a><tt class="py-lineno">3615</tt> <tt class="py-line"> <tt class="py-name">session_id</tt> <tt class="py-op">=</tt> <tt class="py-name">session_details</tt><tt class="py-op">.</tt><tt id="link-860" class="py-name" targets="Method proton.SSLSessionDetails.get_session_id()=proton.SSLSessionDetails-class.html#get_session_id"><a title="proton.SSLSessionDetails.get_session_id" class="py-name" href="#" onclick="return doclink('link-860', 'get_session_id', 'link-860');">get_session_id</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L3616"></a><tt class="py-lineno">3616</tt> <tt class="py-line"> <tt class="py-name">obj</tt><tt class="py-op">.</tt><tt class="py-name">_ssl</tt> <tt class="py-op">=</tt> <tt class="py-name">pn_ssl</tt><tt class="py-op">(</tt> <tt id="link-861" class="py-name"><a title="proton.Connection.transport
proton.Delivery.transport
proton.Endpoint.transport
proton.Event.transport" class="py-name" href="#" onclick="return doclink('link-861', 'transport', 'link-546');">transport</a></tt><tt class="py-op">.</tt><tt class="py-name">_impl</tt> <tt class="py-op">)</tt> </tt>
<a name="L3617"></a><tt class="py-lineno">3617</tt> <tt class="py-line"> <tt class="py-keyword">if</tt> <tt class="py-name">obj</tt><tt class="py-op">.</tt><tt class="py-name">_ssl</tt> <tt class="py-keyword">is</tt> <tt class="py-name">None</tt><tt class="py-op">:</tt> </tt>
<a name="L3618"></a><tt class="py-lineno">3618</tt> <tt class="py-line"> <tt class="py-keyword">raise</tt> <tt id="link-862" class="py-name"><a title="proton.SSLUnavailable" class="py-name" href="#" onclick="return doclink('link-862', 'SSLUnavailable', 'link-844');">SSLUnavailable</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L3619"></a><tt class="py-lineno">3619</tt> <tt class="py-line"> <tt class="py-keyword">if</tt> <tt class="py-name">domain</tt><tt class="py-op">:</tt> </tt>
<a name="L3620"></a><tt class="py-lineno">3620</tt> <tt class="py-line"> <tt class="py-name">pn_ssl_init</tt><tt class="py-op">(</tt> <tt class="py-name">obj</tt><tt class="py-op">.</tt><tt class="py-name">_ssl</tt><tt class="py-op">,</tt> <tt class="py-name">domain</tt><tt class="py-op">.</tt><tt class="py-name">_domain</tt><tt class="py-op">,</tt> <tt class="py-name">session_id</tt> <tt class="py-op">)</tt> </tt>
<a name="L3621"></a><tt class="py-lineno">3621</tt> <tt class="py-line"> <tt id="link-863" class="py-name"><a title="proton.Connection.transport
proton.Delivery.transport
proton.Endpoint.transport
proton.Event.transport" class="py-name" href="#" onclick="return doclink('link-863', 'transport', 'link-546');">transport</a></tt><tt class="py-op">.</tt><tt class="py-name">_ssl</tt> <tt class="py-op">=</tt> <tt class="py-name">obj</tt> </tt>
<a name="L3622"></a><tt class="py-lineno">3622</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt id="link-864" class="py-name"><a title="proton.Connection.transport
proton.Delivery.transport
proton.Endpoint.transport
proton.Event.transport" class="py-name" href="#" onclick="return doclink('link-864', 'transport', 'link-546');">transport</a></tt><tt class="py-op">.</tt><tt class="py-name">_ssl</tt> </tt>
</div><a name="L3623"></a><tt class="py-lineno">3623</tt> <tt class="py-line"> </tt>
<a name="SSL.cipher_name"></a><div id="SSL.cipher_name-def"><a name="L3624"></a><tt class="py-lineno">3624</tt> <a class="py-toggle" href="#" id="SSL.cipher_name-toggle" onclick="return toggle('SSL.cipher_name');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.SSL-class.html#cipher_name">cipher_name</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="SSL.cipher_name-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="SSL.cipher_name-expanded"><a name="L3625"></a><tt class="py-lineno">3625</tt> <tt class="py-line"> <tt class="py-name">rc</tt><tt class="py-op">,</tt> <tt id="link-865" class="py-name"><a title="proton.Link.name
proton.Messenger.name" class="py-name" href="#" onclick="return doclink('link-865', 'name', 'link-25');">name</a></tt> <tt class="py-op">=</tt> <tt class="py-name">pn_ssl_get_cipher_name</tt><tt class="py-op">(</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_ssl</tt><tt class="py-op">,</tt> <tt class="py-number">128</tt> <tt class="py-op">)</tt> </tt>
<a name="L3626"></a><tt class="py-lineno">3626</tt> <tt class="py-line"> <tt class="py-keyword">if</tt> <tt class="py-name">rc</tt><tt class="py-op">:</tt> </tt>
<a name="L3627"></a><tt class="py-lineno">3627</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt id="link-866" class="py-name"><a title="proton.Link.name
proton.Messenger.name" class="py-name" href="#" onclick="return doclink('link-866', 'name', 'link-25');">name</a></tt> </tt>
<a name="L3628"></a><tt class="py-lineno">3628</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt class="py-name">None</tt> </tt>
</div><a name="L3629"></a><tt class="py-lineno">3629</tt> <tt class="py-line"> </tt>
<a name="SSL.protocol_name"></a><div id="SSL.protocol_name-def"><a name="L3630"></a><tt class="py-lineno">3630</tt> <a class="py-toggle" href="#" id="SSL.protocol_name-toggle" onclick="return toggle('SSL.protocol_name');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.SSL-class.html#protocol_name">protocol_name</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="SSL.protocol_name-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="SSL.protocol_name-expanded"><a name="L3631"></a><tt class="py-lineno">3631</tt> <tt class="py-line"> <tt class="py-name">rc</tt><tt class="py-op">,</tt> <tt id="link-867" class="py-name"><a title="proton.Link.name
proton.Messenger.name" class="py-name" href="#" onclick="return doclink('link-867', 'name', 'link-25');">name</a></tt> <tt class="py-op">=</tt> <tt class="py-name">pn_ssl_get_protocol_name</tt><tt class="py-op">(</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_ssl</tt><tt class="py-op">,</tt> <tt class="py-number">128</tt> <tt class="py-op">)</tt> </tt>
<a name="L3632"></a><tt class="py-lineno">3632</tt> <tt class="py-line"> <tt class="py-keyword">if</tt> <tt class="py-name">rc</tt><tt class="py-op">:</tt> </tt>
<a name="L3633"></a><tt class="py-lineno">3633</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt id="link-868" class="py-name"><a title="proton.Link.name
proton.Messenger.name" class="py-name" href="#" onclick="return doclink('link-868', 'name', 'link-25');">name</a></tt> </tt>
<a name="L3634"></a><tt class="py-lineno">3634</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt class="py-name">None</tt> </tt>
</div><a name="L3635"></a><tt class="py-lineno">3635</tt> <tt class="py-line"> </tt>
<a name="L3636"></a><tt class="py-lineno">3636</tt> <tt class="py-line"> <tt id="link-869" class="py-name" targets="Variable proton.SSL.SHA1=proton.SSL-class.html#SHA1"><a title="proton.SSL.SHA1" class="py-name" href="#" onclick="return doclink('link-869', 'SHA1', 'link-869');">SHA1</a></tt> <tt class="py-op">=</tt> <tt class="py-name">PN_SSL_SHA1</tt> </tt>
<a name="L3637"></a><tt class="py-lineno">3637</tt> <tt class="py-line"> <tt id="link-870" class="py-name" targets="Variable proton.SSL.SHA256=proton.SSL-class.html#SHA256"><a title="proton.SSL.SHA256" class="py-name" href="#" onclick="return doclink('link-870', 'SHA256', 'link-870');">SHA256</a></tt> <tt class="py-op">=</tt> <tt class="py-name">PN_SSL_SHA256</tt> </tt>
<a name="L3638"></a><tt class="py-lineno">3638</tt> <tt class="py-line"> <tt id="link-871" class="py-name" targets="Variable proton.SSL.SHA512=proton.SSL-class.html#SHA512"><a title="proton.SSL.SHA512" class="py-name" href="#" onclick="return doclink('link-871', 'SHA512', 'link-871');">SHA512</a></tt> <tt class="py-op">=</tt> <tt class="py-name">PN_SSL_SHA512</tt> </tt>
<a name="L3639"></a><tt class="py-lineno">3639</tt> <tt class="py-line"> <tt id="link-872" class="py-name" targets="Variable proton.SSL.MD5=proton.SSL-class.html#MD5"><a title="proton.SSL.MD5" class="py-name" href="#" onclick="return doclink('link-872', 'MD5', 'link-872');">MD5</a></tt> <tt class="py-op">=</tt> <tt class="py-name">PN_SSL_MD5</tt> </tt>
<a name="L3640"></a><tt class="py-lineno">3640</tt> <tt class="py-line"> </tt>
<a name="L3641"></a><tt class="py-lineno">3641</tt> <tt class="py-line"> <tt id="link-873" class="py-name" targets="Variable proton.SSL.CERT_COUNTRY_NAME=proton.SSL-class.html#CERT_COUNTRY_NAME"><a title="proton.SSL.CERT_COUNTRY_NAME" class="py-name" href="#" onclick="return doclink('link-873', 'CERT_COUNTRY_NAME', 'link-873');">CERT_COUNTRY_NAME</a></tt> <tt class="py-op">=</tt> <tt class="py-name">PN_SSL_CERT_SUBJECT_COUNTRY_NAME</tt> </tt>
<a name="L3642"></a><tt class="py-lineno">3642</tt> <tt class="py-line"> <tt id="link-874" class="py-name" targets="Variable proton.SSL.CERT_STATE_OR_PROVINCE=proton.SSL-class.html#CERT_STATE_OR_PROVINCE"><a title="proton.SSL.CERT_STATE_OR_PROVINCE" class="py-name" href="#" onclick="return doclink('link-874', 'CERT_STATE_OR_PROVINCE', 'link-874');">CERT_STATE_OR_PROVINCE</a></tt> <tt class="py-op">=</tt> <tt class="py-name">PN_SSL_CERT_SUBJECT_STATE_OR_PROVINCE</tt> </tt>
<a name="L3643"></a><tt class="py-lineno">3643</tt> <tt class="py-line"> <tt id="link-875" class="py-name" targets="Variable proton.SSL.CERT_CITY_OR_LOCALITY=proton.SSL-class.html#CERT_CITY_OR_LOCALITY"><a title="proton.SSL.CERT_CITY_OR_LOCALITY" class="py-name" href="#" onclick="return doclink('link-875', 'CERT_CITY_OR_LOCALITY', 'link-875');">CERT_CITY_OR_LOCALITY</a></tt> <tt class="py-op">=</tt> <tt class="py-name">PN_SSL_CERT_SUBJECT_CITY_OR_LOCALITY</tt> </tt>
<a name="L3644"></a><tt class="py-lineno">3644</tt> <tt class="py-line"> <tt id="link-876" class="py-name" targets="Variable proton.SSL.CERT_ORGANIZATION_NAME=proton.SSL-class.html#CERT_ORGANIZATION_NAME"><a title="proton.SSL.CERT_ORGANIZATION_NAME" class="py-name" href="#" onclick="return doclink('link-876', 'CERT_ORGANIZATION_NAME', 'link-876');">CERT_ORGANIZATION_NAME</a></tt> <tt class="py-op">=</tt> <tt class="py-name">PN_SSL_CERT_SUBJECT_ORGANIZATION_NAME</tt> </tt>
<a name="L3645"></a><tt class="py-lineno">3645</tt> <tt class="py-line"> <tt id="link-877" class="py-name" targets="Variable proton.SSL.CERT_ORGANIZATION_UNIT=proton.SSL-class.html#CERT_ORGANIZATION_UNIT"><a title="proton.SSL.CERT_ORGANIZATION_UNIT" class="py-name" href="#" onclick="return doclink('link-877', 'CERT_ORGANIZATION_UNIT', 'link-877');">CERT_ORGANIZATION_UNIT</a></tt> <tt class="py-op">=</tt> <tt class="py-name">PN_SSL_CERT_SUBJECT_ORGANIZATION_UNIT</tt> </tt>
<a name="L3646"></a><tt class="py-lineno">3646</tt> <tt class="py-line"> <tt id="link-878" class="py-name" targets="Variable proton.SSL.CERT_COMMON_NAME=proton.SSL-class.html#CERT_COMMON_NAME"><a title="proton.SSL.CERT_COMMON_NAME" class="py-name" href="#" onclick="return doclink('link-878', 'CERT_COMMON_NAME', 'link-878');">CERT_COMMON_NAME</a></tt> <tt class="py-op">=</tt> <tt class="py-name">PN_SSL_CERT_SUBJECT_COMMON_NAME</tt> </tt>
<a name="L3647"></a><tt class="py-lineno">3647</tt> <tt class="py-line"> </tt>
<a name="SSL.get_cert_subject_subfield"></a><div id="SSL.get_cert_subject_subfield-def"><a name="L3648"></a><tt class="py-lineno">3648</tt> <a class="py-toggle" href="#" id="SSL.get_cert_subject_subfield-toggle" onclick="return toggle('SSL.get_cert_subject_subfield');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.SSL-class.html#get_cert_subject_subfield">get_cert_subject_subfield</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">subfield_name</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="SSL.get_cert_subject_subfield-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="SSL.get_cert_subject_subfield-expanded"><a name="L3649"></a><tt class="py-lineno">3649</tt> <tt class="py-line"> <tt class="py-name">subfield_value</tt> <tt class="py-op">=</tt> <tt class="py-name">pn_ssl_get_remote_subject_subfield</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_ssl</tt><tt class="py-op">,</tt> <tt class="py-name">subfield_name</tt><tt class="py-op">)</tt> </tt>
<a name="L3650"></a><tt class="py-lineno">3650</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt class="py-name">subfield_value</tt> </tt>
</div><a name="L3651"></a><tt class="py-lineno">3651</tt> <tt class="py-line"> </tt>
<a name="SSL.get_cert_subject"></a><div id="SSL.get_cert_subject-def"><a name="L3652"></a><tt class="py-lineno">3652</tt> <a class="py-toggle" href="#" id="SSL.get_cert_subject-toggle" onclick="return toggle('SSL.get_cert_subject');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.SSL-class.html#get_cert_subject">get_cert_subject</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="SSL.get_cert_subject-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="SSL.get_cert_subject-expanded"><a name="L3653"></a><tt class="py-lineno">3653</tt> <tt class="py-line"> <tt id="link-879" class="py-name"><a title="proton.Message.subject" class="py-name" href="#" onclick="return doclink('link-879', 'subject', 'link-167');">subject</a></tt> <tt class="py-op">=</tt> <tt class="py-name">pn_ssl_get_remote_subject</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_ssl</tt><tt class="py-op">)</tt> </tt>
<a name="L3654"></a><tt class="py-lineno">3654</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt id="link-880" class="py-name"><a title="proton.Message.subject" class="py-name" href="#" onclick="return doclink('link-880', 'subject', 'link-167');">subject</a></tt> </tt>
</div><a name="L3655"></a><tt class="py-lineno">3655</tt> <tt class="py-line"> </tt>
<a name="SSL._get_cert_subject_unknown_subfield"></a><div id="SSL._get_cert_subject_unknown_subfield-def"><a name="L3656"></a><tt class="py-lineno">3656</tt> <a class="py-toggle" href="#" id="SSL._get_cert_subject_unknown_subfield-toggle" onclick="return toggle('SSL._get_cert_subject_unknown_subfield');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.SSL-class.html#_get_cert_subject_unknown_subfield">_get_cert_subject_unknown_subfield</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="SSL._get_cert_subject_unknown_subfield-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="SSL._get_cert_subject_unknown_subfield-expanded"><a name="L3657"></a><tt class="py-lineno">3657</tt> <tt class="py-line"> <tt class="py-comment"># Pass in an unhandled enum</tt> </tt>
<a name="L3658"></a><tt class="py-lineno">3658</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-881" class="py-name" targets="Method proton.SSL.get_cert_subject_subfield()=proton.SSL-class.html#get_cert_subject_subfield"><a title="proton.SSL.get_cert_subject_subfield" class="py-name" href="#" onclick="return doclink('link-881', 'get_cert_subject_subfield', 'link-881');">get_cert_subject_subfield</a></tt><tt class="py-op">(</tt><tt class="py-number">10</tt><tt class="py-op">)</tt> </tt>
</div><a name="L3659"></a><tt class="py-lineno">3659</tt> <tt class="py-line"> </tt>
<a name="L3660"></a><tt class="py-lineno">3660</tt> <tt class="py-line"> <tt class="py-comment"># Convenience functions for obtaining the subfields of the subject field.</tt> </tt>
<a name="SSL.get_cert_common_name"></a><div id="SSL.get_cert_common_name-def"><a name="L3661"></a><tt class="py-lineno">3661</tt> <a class="py-toggle" href="#" id="SSL.get_cert_common_name-toggle" onclick="return toggle('SSL.get_cert_common_name');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.SSL-class.html#get_cert_common_name">get_cert_common_name</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="SSL.get_cert_common_name-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="SSL.get_cert_common_name-expanded"><a name="L3662"></a><tt class="py-lineno">3662</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-882" class="py-name"><a title="proton.SSL.get_cert_subject_subfield" class="py-name" href="#" onclick="return doclink('link-882', 'get_cert_subject_subfield', 'link-881');">get_cert_subject_subfield</a></tt><tt class="py-op">(</tt><tt id="link-883" class="py-name"><a title="proton.SSL" class="py-name" href="#" onclick="return doclink('link-883', 'SSL', 'link-816');">SSL</a></tt><tt class="py-op">.</tt><tt id="link-884" class="py-name"><a title="proton.SSL.CERT_COMMON_NAME" class="py-name" href="#" onclick="return doclink('link-884', 'CERT_COMMON_NAME', 'link-878');">CERT_COMMON_NAME</a></tt><tt class="py-op">)</tt> </tt>
</div><a name="L3663"></a><tt class="py-lineno">3663</tt> <tt class="py-line"> </tt>
<a name="SSL.get_cert_organization"></a><div id="SSL.get_cert_organization-def"><a name="L3664"></a><tt class="py-lineno">3664</tt> <a class="py-toggle" href="#" id="SSL.get_cert_organization-toggle" onclick="return toggle('SSL.get_cert_organization');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.SSL-class.html#get_cert_organization">get_cert_organization</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="SSL.get_cert_organization-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="SSL.get_cert_organization-expanded"><a name="L3665"></a><tt class="py-lineno">3665</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-885" class="py-name"><a title="proton.SSL.get_cert_subject_subfield" class="py-name" href="#" onclick="return doclink('link-885', 'get_cert_subject_subfield', 'link-881');">get_cert_subject_subfield</a></tt><tt class="py-op">(</tt><tt id="link-886" class="py-name"><a title="proton.SSL" class="py-name" href="#" onclick="return doclink('link-886', 'SSL', 'link-816');">SSL</a></tt><tt class="py-op">.</tt><tt id="link-887" class="py-name"><a title="proton.SSL.CERT_ORGANIZATION_NAME" class="py-name" href="#" onclick="return doclink('link-887', 'CERT_ORGANIZATION_NAME', 'link-876');">CERT_ORGANIZATION_NAME</a></tt><tt class="py-op">)</tt> </tt>
</div><a name="L3666"></a><tt class="py-lineno">3666</tt> <tt class="py-line"> </tt>
<a name="SSL.get_cert_organization_unit"></a><div id="SSL.get_cert_organization_unit-def"><a name="L3667"></a><tt class="py-lineno">3667</tt> <a class="py-toggle" href="#" id="SSL.get_cert_organization_unit-toggle" onclick="return toggle('SSL.get_cert_organization_unit');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.SSL-class.html#get_cert_organization_unit">get_cert_organization_unit</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="SSL.get_cert_organization_unit-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="SSL.get_cert_organization_unit-expanded"><a name="L3668"></a><tt class="py-lineno">3668</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-888" class="py-name"><a title="proton.SSL.get_cert_subject_subfield" class="py-name" href="#" onclick="return doclink('link-888', 'get_cert_subject_subfield', 'link-881');">get_cert_subject_subfield</a></tt><tt class="py-op">(</tt><tt id="link-889" class="py-name"><a title="proton.SSL" class="py-name" href="#" onclick="return doclink('link-889', 'SSL', 'link-816');">SSL</a></tt><tt class="py-op">.</tt><tt id="link-890" class="py-name"><a title="proton.SSL.CERT_ORGANIZATION_UNIT" class="py-name" href="#" onclick="return doclink('link-890', 'CERT_ORGANIZATION_UNIT', 'link-877');">CERT_ORGANIZATION_UNIT</a></tt><tt class="py-op">)</tt> </tt>
</div><a name="L3669"></a><tt class="py-lineno">3669</tt> <tt class="py-line"> </tt>
<a name="SSL.get_cert_locality_or_city"></a><div id="SSL.get_cert_locality_or_city-def"><a name="L3670"></a><tt class="py-lineno">3670</tt> <a class="py-toggle" href="#" id="SSL.get_cert_locality_or_city-toggle" onclick="return toggle('SSL.get_cert_locality_or_city');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.SSL-class.html#get_cert_locality_or_city">get_cert_locality_or_city</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="SSL.get_cert_locality_or_city-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="SSL.get_cert_locality_or_city-expanded"><a name="L3671"></a><tt class="py-lineno">3671</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-891" class="py-name"><a title="proton.SSL.get_cert_subject_subfield" class="py-name" href="#" onclick="return doclink('link-891', 'get_cert_subject_subfield', 'link-881');">get_cert_subject_subfield</a></tt><tt class="py-op">(</tt><tt id="link-892" class="py-name"><a title="proton.SSL" class="py-name" href="#" onclick="return doclink('link-892', 'SSL', 'link-816');">SSL</a></tt><tt class="py-op">.</tt><tt id="link-893" class="py-name"><a title="proton.SSL.CERT_CITY_OR_LOCALITY" class="py-name" href="#" onclick="return doclink('link-893', 'CERT_CITY_OR_LOCALITY', 'link-875');">CERT_CITY_OR_LOCALITY</a></tt><tt class="py-op">)</tt> </tt>
</div><a name="L3672"></a><tt class="py-lineno">3672</tt> <tt class="py-line"> </tt>
<a name="SSL.get_cert_country"></a><div id="SSL.get_cert_country-def"><a name="L3673"></a><tt class="py-lineno">3673</tt> <a class="py-toggle" href="#" id="SSL.get_cert_country-toggle" onclick="return toggle('SSL.get_cert_country');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.SSL-class.html#get_cert_country">get_cert_country</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="SSL.get_cert_country-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="SSL.get_cert_country-expanded"><a name="L3674"></a><tt class="py-lineno">3674</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-894" class="py-name"><a title="proton.SSL.get_cert_subject_subfield" class="py-name" href="#" onclick="return doclink('link-894', 'get_cert_subject_subfield', 'link-881');">get_cert_subject_subfield</a></tt><tt class="py-op">(</tt><tt id="link-895" class="py-name"><a title="proton.SSL" class="py-name" href="#" onclick="return doclink('link-895', 'SSL', 'link-816');">SSL</a></tt><tt class="py-op">.</tt><tt id="link-896" class="py-name"><a title="proton.SSL.CERT_COUNTRY_NAME" class="py-name" href="#" onclick="return doclink('link-896', 'CERT_COUNTRY_NAME', 'link-873');">CERT_COUNTRY_NAME</a></tt><tt class="py-op">)</tt> </tt>
</div><a name="L3675"></a><tt class="py-lineno">3675</tt> <tt class="py-line"> </tt>
<a name="SSL.get_cert_state_or_province"></a><div id="SSL.get_cert_state_or_province-def"><a name="L3676"></a><tt class="py-lineno">3676</tt> <a class="py-toggle" href="#" id="SSL.get_cert_state_or_province-toggle" onclick="return toggle('SSL.get_cert_state_or_province');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.SSL-class.html#get_cert_state_or_province">get_cert_state_or_province</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="SSL.get_cert_state_or_province-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="SSL.get_cert_state_or_province-expanded"><a name="L3677"></a><tt class="py-lineno">3677</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-897" class="py-name"><a title="proton.SSL.get_cert_subject_subfield" class="py-name" href="#" onclick="return doclink('link-897', 'get_cert_subject_subfield', 'link-881');">get_cert_subject_subfield</a></tt><tt class="py-op">(</tt><tt id="link-898" class="py-name"><a title="proton.SSL" class="py-name" href="#" onclick="return doclink('link-898', 'SSL', 'link-816');">SSL</a></tt><tt class="py-op">.</tt><tt id="link-899" class="py-name"><a title="proton.SSL.CERT_STATE_OR_PROVINCE" class="py-name" href="#" onclick="return doclink('link-899', 'CERT_STATE_OR_PROVINCE', 'link-874');">CERT_STATE_OR_PROVINCE</a></tt><tt class="py-op">)</tt> </tt>
</div><a name="L3678"></a><tt class="py-lineno">3678</tt> <tt class="py-line"> </tt>
<a name="SSL.get_cert_fingerprint"></a><div id="SSL.get_cert_fingerprint-def"><a name="L3679"></a><tt class="py-lineno">3679</tt> <a class="py-toggle" href="#" id="SSL.get_cert_fingerprint-toggle" onclick="return toggle('SSL.get_cert_fingerprint');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.SSL-class.html#get_cert_fingerprint">get_cert_fingerprint</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">fingerprint_length</tt><tt class="py-op">,</tt> <tt class="py-param">digest_name</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="SSL.get_cert_fingerprint-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="SSL.get_cert_fingerprint-expanded"><a name="L3680"></a><tt class="py-lineno">3680</tt> <tt class="py-line"> <tt class="py-name">rc</tt><tt class="py-op">,</tt> <tt class="py-name">fingerprint_str</tt> <tt class="py-op">=</tt> <tt class="py-name">pn_ssl_get_cert_fingerprint</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_ssl</tt><tt class="py-op">,</tt> <tt class="py-name">fingerprint_length</tt><tt class="py-op">,</tt> <tt class="py-name">digest_name</tt><tt class="py-op">)</tt> </tt>
<a name="L3681"></a><tt class="py-lineno">3681</tt> <tt class="py-line"> <tt class="py-keyword">if</tt> <tt class="py-name">rc</tt> <tt class="py-op">==</tt> <tt class="py-name">PN_OK</tt><tt class="py-op">:</tt> </tt>
<a name="L3682"></a><tt class="py-lineno">3682</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt class="py-name">fingerprint_str</tt> </tt>
<a name="L3683"></a><tt class="py-lineno">3683</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt class="py-name">None</tt> </tt>
</div><a name="L3684"></a><tt class="py-lineno">3684</tt> <tt class="py-line"> </tt>
<a name="L3685"></a><tt class="py-lineno">3685</tt> <tt class="py-line"> <tt class="py-comment"># Convenience functions for obtaining fingerprint for specific hashing algorithms</tt> </tt>
<a name="SSL._get_cert_fingerprint_unknown_hash_alg"></a><div id="SSL._get_cert_fingerprint_unknown_hash_alg-def"><a name="L3686"></a><tt class="py-lineno">3686</tt> <a class="py-toggle" href="#" id="SSL._get_cert_fingerprint_unknown_hash_alg-toggle" onclick="return toggle('SSL._get_cert_fingerprint_unknown_hash_alg');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.SSL-class.html#_get_cert_fingerprint_unknown_hash_alg">_get_cert_fingerprint_unknown_hash_alg</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="SSL._get_cert_fingerprint_unknown_hash_alg-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="SSL._get_cert_fingerprint_unknown_hash_alg-expanded"><a name="L3687"></a><tt class="py-lineno">3687</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-900" class="py-name" targets="Method proton.SSL.get_cert_fingerprint()=proton.SSL-class.html#get_cert_fingerprint"><a title="proton.SSL.get_cert_fingerprint" class="py-name" href="#" onclick="return doclink('link-900', 'get_cert_fingerprint', 'link-900');">get_cert_fingerprint</a></tt><tt class="py-op">(</tt><tt class="py-number">41</tt><tt class="py-op">,</tt> <tt class="py-number">10</tt><tt class="py-op">)</tt> </tt>
</div><a name="L3688"></a><tt class="py-lineno">3688</tt> <tt class="py-line"> </tt>
<a name="SSL.get_cert_fingerprint_sha1"></a><div id="SSL.get_cert_fingerprint_sha1-def"><a name="L3689"></a><tt class="py-lineno">3689</tt> <a class="py-toggle" href="#" id="SSL.get_cert_fingerprint_sha1-toggle" onclick="return toggle('SSL.get_cert_fingerprint_sha1');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.SSL-class.html#get_cert_fingerprint_sha1">get_cert_fingerprint_sha1</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="SSL.get_cert_fingerprint_sha1-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="SSL.get_cert_fingerprint_sha1-expanded"><a name="L3690"></a><tt class="py-lineno">3690</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-901" class="py-name"><a title="proton.SSL.get_cert_fingerprint" class="py-name" href="#" onclick="return doclink('link-901', 'get_cert_fingerprint', 'link-900');">get_cert_fingerprint</a></tt><tt class="py-op">(</tt><tt class="py-number">41</tt><tt class="py-op">,</tt> <tt id="link-902" class="py-name"><a title="proton.SSL" class="py-name" href="#" onclick="return doclink('link-902', 'SSL', 'link-816');">SSL</a></tt><tt class="py-op">.</tt><tt id="link-903" class="py-name"><a title="proton.SSL.SHA1" class="py-name" href="#" onclick="return doclink('link-903', 'SHA1', 'link-869');">SHA1</a></tt><tt class="py-op">)</tt> </tt>
</div><a name="L3691"></a><tt class="py-lineno">3691</tt> <tt class="py-line"> </tt>
<a name="SSL.get_cert_fingerprint_sha256"></a><div id="SSL.get_cert_fingerprint_sha256-def"><a name="L3692"></a><tt class="py-lineno">3692</tt> <a class="py-toggle" href="#" id="SSL.get_cert_fingerprint_sha256-toggle" onclick="return toggle('SSL.get_cert_fingerprint_sha256');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.SSL-class.html#get_cert_fingerprint_sha256">get_cert_fingerprint_sha256</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="SSL.get_cert_fingerprint_sha256-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="SSL.get_cert_fingerprint_sha256-expanded"><a name="L3693"></a><tt class="py-lineno">3693</tt> <tt class="py-line"> <tt class="py-comment"># sha256 produces a fingerprint that is 64 characters long</tt> </tt>
<a name="L3694"></a><tt class="py-lineno">3694</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-904" class="py-name"><a title="proton.SSL.get_cert_fingerprint" class="py-name" href="#" onclick="return doclink('link-904', 'get_cert_fingerprint', 'link-900');">get_cert_fingerprint</a></tt><tt class="py-op">(</tt><tt class="py-number">65</tt><tt class="py-op">,</tt> <tt id="link-905" class="py-name"><a title="proton.SSL" class="py-name" href="#" onclick="return doclink('link-905', 'SSL', 'link-816');">SSL</a></tt><tt class="py-op">.</tt><tt id="link-906" class="py-name"><a title="proton.SSL.SHA256" class="py-name" href="#" onclick="return doclink('link-906', 'SHA256', 'link-870');">SHA256</a></tt><tt class="py-op">)</tt> </tt>
</div><a name="L3695"></a><tt class="py-lineno">3695</tt> <tt class="py-line"> </tt>
<a name="SSL.get_cert_fingerprint_sha512"></a><div id="SSL.get_cert_fingerprint_sha512-def"><a name="L3696"></a><tt class="py-lineno">3696</tt> <a class="py-toggle" href="#" id="SSL.get_cert_fingerprint_sha512-toggle" onclick="return toggle('SSL.get_cert_fingerprint_sha512');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.SSL-class.html#get_cert_fingerprint_sha512">get_cert_fingerprint_sha512</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="SSL.get_cert_fingerprint_sha512-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="SSL.get_cert_fingerprint_sha512-expanded"><a name="L3697"></a><tt class="py-lineno">3697</tt> <tt class="py-line"> <tt class="py-comment"># sha512 produces a fingerprint that is 128 characters long</tt> </tt>
<a name="L3698"></a><tt class="py-lineno">3698</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-907" class="py-name"><a title="proton.SSL.get_cert_fingerprint" class="py-name" href="#" onclick="return doclink('link-907', 'get_cert_fingerprint', 'link-900');">get_cert_fingerprint</a></tt><tt class="py-op">(</tt><tt class="py-number">129</tt><tt class="py-op">,</tt> <tt id="link-908" class="py-name"><a title="proton.SSL" class="py-name" href="#" onclick="return doclink('link-908', 'SSL', 'link-816');">SSL</a></tt><tt class="py-op">.</tt><tt id="link-909" class="py-name"><a title="proton.SSL.SHA512" class="py-name" href="#" onclick="return doclink('link-909', 'SHA512', 'link-871');">SHA512</a></tt><tt class="py-op">)</tt> </tt>
</div><a name="L3699"></a><tt class="py-lineno">3699</tt> <tt class="py-line"> </tt>
<a name="SSL.get_cert_fingerprint_md5"></a><div id="SSL.get_cert_fingerprint_md5-def"><a name="L3700"></a><tt class="py-lineno">3700</tt> <a class="py-toggle" href="#" id="SSL.get_cert_fingerprint_md5-toggle" onclick="return toggle('SSL.get_cert_fingerprint_md5');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.SSL-class.html#get_cert_fingerprint_md5">get_cert_fingerprint_md5</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="SSL.get_cert_fingerprint_md5-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="SSL.get_cert_fingerprint_md5-expanded"><a name="L3701"></a><tt class="py-lineno">3701</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-910" class="py-name"><a title="proton.SSL.get_cert_fingerprint" class="py-name" href="#" onclick="return doclink('link-910', 'get_cert_fingerprint', 'link-900');">get_cert_fingerprint</a></tt><tt class="py-op">(</tt><tt class="py-number">33</tt><tt class="py-op">,</tt> <tt id="link-911" class="py-name"><a title="proton.SSL" class="py-name" href="#" onclick="return doclink('link-911', 'SSL', 'link-816');">SSL</a></tt><tt class="py-op">.</tt><tt id="link-912" class="py-name"><a title="proton.SSL.MD5" class="py-name" href="#" onclick="return doclink('link-912', 'MD5', 'link-872');">MD5</a></tt><tt class="py-op">)</tt> </tt>
</div><a name="L3702"></a><tt class="py-lineno">3702</tt> <tt class="py-line"> </tt>
<a name="L3703"></a><tt class="py-lineno">3703</tt> <tt class="py-line"> <tt class="py-decorator">@</tt><tt class="py-decorator">property</tt> </tt>
<a name="SSL.remote_subject"></a><div id="SSL.remote_subject-def"><a name="L3704"></a><tt class="py-lineno">3704</tt> <a class="py-toggle" href="#" id="SSL.remote_subject-toggle" onclick="return toggle('SSL.remote_subject');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.SSL-class.html#remote_subject">remote_subject</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="SSL.remote_subject-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="SSL.remote_subject-expanded"><a name="L3705"></a><tt class="py-lineno">3705</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt class="py-name">pn_ssl_get_remote_subject</tt><tt class="py-op">(</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_ssl</tt> <tt class="py-op">)</tt> </tt>
</div><a name="L3706"></a><tt class="py-lineno">3706</tt> <tt class="py-line"> </tt>
<a name="L3707"></a><tt class="py-lineno">3707</tt> <tt class="py-line"> <tt id="link-913" class="py-name" targets="Variable proton.SSL.RESUME_UNKNOWN=proton.SSL-class.html#RESUME_UNKNOWN"><a title="proton.SSL.RESUME_UNKNOWN" class="py-name" href="#" onclick="return doclink('link-913', 'RESUME_UNKNOWN', 'link-913');">RESUME_UNKNOWN</a></tt> <tt class="py-op">=</tt> <tt class="py-name">PN_SSL_RESUME_UNKNOWN</tt> </tt>
<a name="L3708"></a><tt class="py-lineno">3708</tt> <tt class="py-line"> <tt id="link-914" class="py-name" targets="Variable proton.SSL.RESUME_NEW=proton.SSL-class.html#RESUME_NEW"><a title="proton.SSL.RESUME_NEW" class="py-name" href="#" onclick="return doclink('link-914', 'RESUME_NEW', 'link-914');">RESUME_NEW</a></tt> <tt class="py-op">=</tt> <tt class="py-name">PN_SSL_RESUME_NEW</tt> </tt>
<a name="L3709"></a><tt class="py-lineno">3709</tt> <tt class="py-line"> <tt id="link-915" class="py-name" targets="Variable proton.SSL.RESUME_REUSED=proton.SSL-class.html#RESUME_REUSED"><a title="proton.SSL.RESUME_REUSED" class="py-name" href="#" onclick="return doclink('link-915', 'RESUME_REUSED', 'link-915');">RESUME_REUSED</a></tt> <tt class="py-op">=</tt> <tt class="py-name">PN_SSL_RESUME_REUSED</tt> </tt>
<a name="L3710"></a><tt class="py-lineno">3710</tt> <tt class="py-line"> </tt>
<a name="SSL.resume_status"></a><div id="SSL.resume_status-def"><a name="L3711"></a><tt class="py-lineno">3711</tt> <a class="py-toggle" href="#" id="SSL.resume_status-toggle" onclick="return toggle('SSL.resume_status');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.SSL-class.html#resume_status">resume_status</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="SSL.resume_status-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="SSL.resume_status-expanded"><a name="L3712"></a><tt class="py-lineno">3712</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt class="py-name">pn_ssl_resume_status</tt><tt class="py-op">(</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_ssl</tt> <tt class="py-op">)</tt> </tt>
</div><a name="L3713"></a><tt class="py-lineno">3713</tt> <tt class="py-line"> </tt>
<a name="SSL._set_peer_hostname"></a><div id="SSL._set_peer_hostname-def"><a name="L3714"></a><tt class="py-lineno">3714</tt> <a class="py-toggle" href="#" id="SSL._set_peer_hostname-toggle" onclick="return toggle('SSL._set_peer_hostname');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.SSL-class.html#_set_peer_hostname">_set_peer_hostname</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">hostname</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="SSL._set_peer_hostname-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="SSL._set_peer_hostname-expanded"><a name="L3715"></a><tt class="py-lineno">3715</tt> <tt class="py-line"> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_check</tt><tt class="py-op">(</tt><tt class="py-name">pn_ssl_set_peer_hostname</tt><tt class="py-op">(</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_ssl</tt><tt class="py-op">,</tt> <tt class="py-name">unicode2utf8</tt><tt class="py-op">(</tt><tt id="link-916" class="py-name"><a title="proton.Connection.hostname" class="py-name" href="#" onclick="return doclink('link-916', 'hostname', 'link-589');">hostname</a></tt><tt class="py-op">)</tt> <tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
</div><a name="SSL._get_peer_hostname"></a><div id="SSL._get_peer_hostname-def"><a name="L3716"></a><tt class="py-lineno">3716</tt> <a class="py-toggle" href="#" id="SSL._get_peer_hostname-toggle" onclick="return toggle('SSL._get_peer_hostname');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.SSL-class.html#_get_peer_hostname">_get_peer_hostname</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="SSL._get_peer_hostname-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="SSL._get_peer_hostname-expanded"><a name="L3717"></a><tt class="py-lineno">3717</tt> <tt class="py-line"> <tt class="py-name">err</tt><tt class="py-op">,</tt> <tt id="link-917" class="py-name"><a title="proton.Link.name
proton.Messenger.name" class="py-name" href="#" onclick="return doclink('link-917', 'name', 'link-25');">name</a></tt> <tt class="py-op">=</tt> <tt class="py-name">pn_ssl_get_peer_hostname</tt><tt class="py-op">(</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_ssl</tt><tt class="py-op">,</tt> <tt class="py-number">1024</tt> <tt class="py-op">)</tt> </tt>
<a name="L3718"></a><tt class="py-lineno">3718</tt> <tt class="py-line"> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_check</tt><tt class="py-op">(</tt><tt class="py-name">err</tt><tt class="py-op">)</tt> </tt>
<a name="L3719"></a><tt class="py-lineno">3719</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt class="py-name">utf82unicode</tt><tt class="py-op">(</tt><tt id="link-918" class="py-name"><a title="proton.Link.name
proton.Messenger.name" class="py-name" href="#" onclick="return doclink('link-918', 'name', 'link-25');">name</a></tt><tt class="py-op">)</tt> </tt>
</div><a name="L3720"></a><tt class="py-lineno">3720</tt> <tt class="py-line"> <tt id="link-919" class="py-name" targets="Variable proton.SSL.peer_hostname=proton.SSL-class.html#peer_hostname"><a title="proton.SSL.peer_hostname" class="py-name" href="#" onclick="return doclink('link-919', 'peer_hostname', 'link-919');">peer_hostname</a></tt> <tt class="py-op">=</tt> <tt class="py-name">property</tt><tt class="py-op">(</tt><tt id="link-920" class="py-name" targets="Method proton.SSL._get_peer_hostname()=proton.SSL-class.html#_get_peer_hostname"><a title="proton.SSL._get_peer_hostname" class="py-name" href="#" onclick="return doclink('link-920', '_get_peer_hostname', 'link-920');">_get_peer_hostname</a></tt><tt class="py-op">,</tt> <tt id="link-921" class="py-name" targets="Method proton.SSL._set_peer_hostname()=proton.SSL-class.html#_set_peer_hostname"><a title="proton.SSL._set_peer_hostname" class="py-name" href="#" onclick="return doclink('link-921', '_set_peer_hostname', 'link-921');">_set_peer_hostname</a></tt><tt class="py-op">,</tt> </tt>
<a name="L3721"></a><tt class="py-lineno">3721</tt> <tt class="py-line"> <tt class="py-name">doc</tt><tt class="py-op">=</tt><tt class="py-string">"""</tt> </tt>
<a name="L3722"></a><tt class="py-lineno">3722</tt> <tt class="py-line"><tt class="py-string">Manage the expected name of the remote peer. Used to authenticate the remote.</tt> </tt>
<a name="L3723"></a><tt class="py-lineno">3723</tt> <tt class="py-line"><tt class="py-string">"""</tt><tt class="py-op">)</tt> </tt>
</div><a name="L3724"></a><tt class="py-lineno">3724</tt> <tt class="py-line"> </tt>
<a name="SSLSessionDetails"></a><div id="SSLSessionDetails-def"><a name="L3725"></a><tt class="py-lineno">3725</tt> <tt class="py-line"> </tt>
<a name="L3726"></a><tt class="py-lineno">3726</tt> <a class="py-toggle" href="#" id="SSLSessionDetails-toggle" onclick="return toggle('SSLSessionDetails');">-</a><tt class="py-line"><tt class="py-keyword">class</tt> <a class="py-def-name" href="proton.SSLSessionDetails-class.html">SSLSessionDetails</a><tt class="py-op">(</tt><tt class="py-base-class">object</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="SSLSessionDetails-collapsed" style="display:none;" pad="++++" indent="++++"></div><div id="SSLSessionDetails-expanded"><a name="L3727"></a><tt class="py-lineno">3727</tt> <tt class="py-line"> <tt class="py-docstring">""" Unique identifier for the SSL session. Used to resume previous session on a new</tt> </tt>
<a name="L3728"></a><tt class="py-lineno">3728</tt> <tt class="py-line"><tt class="py-docstring"> SSL connection.</tt> </tt>
<a name="L3729"></a><tt class="py-lineno">3729</tt> <tt class="py-line"><tt class="py-docstring"> """</tt> </tt>
<a name="L3730"></a><tt class="py-lineno">3730</tt> <tt class="py-line"> </tt>
<a name="SSLSessionDetails.__init__"></a><div id="SSLSessionDetails.__init__-def"><a name="L3731"></a><tt class="py-lineno">3731</tt> <a class="py-toggle" href="#" id="SSLSessionDetails.__init__-toggle" onclick="return toggle('SSLSessionDetails.__init__');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.SSLSessionDetails-class.html#__init__">__init__</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">session_id</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="SSLSessionDetails.__init__-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="SSLSessionDetails.__init__-expanded"><a name="L3732"></a><tt class="py-lineno">3732</tt> <tt class="py-line"> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_session_id</tt> <tt class="py-op">=</tt> <tt class="py-name">session_id</tt> </tt>
</div><a name="L3733"></a><tt class="py-lineno">3733</tt> <tt class="py-line"> </tt>
<a name="SSLSessionDetails.get_session_id"></a><div id="SSLSessionDetails.get_session_id-def"><a name="L3734"></a><tt class="py-lineno">3734</tt> <a class="py-toggle" href="#" id="SSLSessionDetails.get_session_id-toggle" onclick="return toggle('SSLSessionDetails.get_session_id');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.SSLSessionDetails-class.html#get_session_id">get_session_id</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="SSLSessionDetails.get_session_id-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="SSLSessionDetails.get_session_id-expanded"><a name="L3735"></a><tt class="py-lineno">3735</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_session_id</tt> </tt>
</div></div><a name="L3736"></a><tt class="py-lineno">3736</tt> <tt class="py-line"> </tt>
<a name="L3737"></a><tt class="py-lineno">3737</tt> <tt class="py-line"> </tt>
<a name="L3738"></a><tt class="py-lineno">3738</tt> <tt class="py-line"><tt id="link-922" class="py-name" targets="Variable proton.wrappers=proton-module.html#wrappers"><a title="proton.wrappers" class="py-name" href="#" onclick="return doclink('link-922', 'wrappers', 'link-922');">wrappers</a></tt> <tt class="py-op">=</tt> <tt class="py-op">{</tt> </tt>
<a name="L3739"></a><tt class="py-lineno">3739</tt> <tt class="py-line"> <tt class="py-string">"pn_void"</tt><tt class="py-op">:</tt> <tt class="py-keyword">lambda</tt> <tt class="py-name">x</tt><tt class="py-op">:</tt> <tt class="py-name">pn_void2py</tt><tt class="py-op">(</tt><tt class="py-name">x</tt><tt class="py-op">)</tt><tt class="py-op">,</tt> </tt>
<a name="L3740"></a><tt class="py-lineno">3740</tt> <tt class="py-line"> <tt class="py-string">"pn_pyref"</tt><tt class="py-op">:</tt> <tt class="py-keyword">lambda</tt> <tt class="py-name">x</tt><tt class="py-op">:</tt> <tt class="py-name">pn_void2py</tt><tt class="py-op">(</tt><tt class="py-name">x</tt><tt class="py-op">)</tt><tt class="py-op">,</tt> </tt>
<a name="L3741"></a><tt class="py-lineno">3741</tt> <tt class="py-line"> <tt class="py-string">"pn_connection"</tt><tt class="py-op">:</tt> <tt class="py-keyword">lambda</tt> <tt class="py-name">x</tt><tt class="py-op">:</tt> <tt id="link-923" class="py-name"><a title="proton.Connection" class="py-name" href="#" onclick="return doclink('link-923', 'Connection', 'link-575');">Connection</a></tt><tt class="py-op">.</tt><tt id="link-924" class="py-name"><a title="proton.Connection.wrap
proton.Delivery.wrap
proton.Event.wrap
proton.Link.wrap
proton.Session.wrap
proton.Transport.wrap
proton.reactor.Reactor.wrap
proton.reactor.Task.wrap" class="py-name" href="#" onclick="return doclink('link-924', 'wrap', 'link-88');">wrap</a></tt><tt class="py-op">(</tt><tt class="py-name">pn_cast_pn_connection</tt><tt class="py-op">(</tt><tt class="py-name">x</tt><tt class="py-op">)</tt><tt class="py-op">)</tt><tt class="py-op">,</tt> </tt>
<a name="L3742"></a><tt class="py-lineno">3742</tt> <tt class="py-line"> <tt class="py-string">"pn_session"</tt><tt class="py-op">:</tt> <tt class="py-keyword">lambda</tt> <tt class="py-name">x</tt><tt class="py-op">:</tt> <tt id="link-925" class="py-name"><a title="proton.Session" class="py-name" href="#" onclick="return doclink('link-925', 'Session', 'link-602');">Session</a></tt><tt class="py-op">.</tt><tt id="link-926" class="py-name"><a title="proton.Connection.wrap
proton.Delivery.wrap
proton.Event.wrap
proton.Link.wrap
proton.Session.wrap
proton.Transport.wrap
proton.reactor.Reactor.wrap
proton.reactor.Task.wrap" class="py-name" href="#" onclick="return doclink('link-926', 'wrap', 'link-88');">wrap</a></tt><tt class="py-op">(</tt><tt class="py-name">pn_cast_pn_session</tt><tt class="py-op">(</tt><tt class="py-name">x</tt><tt class="py-op">)</tt><tt class="py-op">)</tt><tt class="py-op">,</tt> </tt>
<a name="L3743"></a><tt class="py-lineno">3743</tt> <tt class="py-line"> <tt class="py-string">"pn_link"</tt><tt class="py-op">:</tt> <tt class="py-keyword">lambda</tt> <tt class="py-name">x</tt><tt class="py-op">:</tt> <tt id="link-927" class="py-name"><a title="proton.Link" class="py-name" href="#" onclick="return doclink('link-927', 'Link', 'link-221');">Link</a></tt><tt class="py-op">.</tt><tt id="link-928" class="py-name"><a title="proton.Connection.wrap
proton.Delivery.wrap
proton.Event.wrap
proton.Link.wrap
proton.Session.wrap
proton.Transport.wrap
proton.reactor.Reactor.wrap
proton.reactor.Task.wrap" class="py-name" href="#" onclick="return doclink('link-928', 'wrap', 'link-88');">wrap</a></tt><tt class="py-op">(</tt><tt class="py-name">pn_cast_pn_link</tt><tt class="py-op">(</tt><tt class="py-name">x</tt><tt class="py-op">)</tt><tt class="py-op">)</tt><tt class="py-op">,</tt> </tt>
<a name="L3744"></a><tt class="py-lineno">3744</tt> <tt class="py-line"> <tt class="py-string">"pn_delivery"</tt><tt class="py-op">:</tt> <tt class="py-keyword">lambda</tt> <tt class="py-name">x</tt><tt class="py-op">:</tt> <tt id="link-929" class="py-name"><a title="proton.Delivery" class="py-name" href="#" onclick="return doclink('link-929', 'Delivery', 'link-607');">Delivery</a></tt><tt class="py-op">.</tt><tt id="link-930" class="py-name"><a title="proton.Connection.wrap
proton.Delivery.wrap
proton.Event.wrap
proton.Link.wrap
proton.Session.wrap
proton.Transport.wrap
proton.reactor.Reactor.wrap
proton.reactor.Task.wrap" class="py-name" href="#" onclick="return doclink('link-930', 'wrap', 'link-88');">wrap</a></tt><tt class="py-op">(</tt><tt class="py-name">pn_cast_pn_delivery</tt><tt class="py-op">(</tt><tt class="py-name">x</tt><tt class="py-op">)</tt><tt class="py-op">)</tt><tt class="py-op">,</tt> </tt>
<a name="L3745"></a><tt class="py-lineno">3745</tt> <tt class="py-line"> <tt class="py-string">"pn_transport"</tt><tt class="py-op">:</tt> <tt class="py-keyword">lambda</tt> <tt class="py-name">x</tt><tt class="py-op">:</tt> <tt id="link-931" class="py-name"><a title="proton.Transport" class="py-name" href="#" onclick="return doclink('link-931', 'Transport', 'link-580');">Transport</a></tt><tt class="py-op">.</tt><tt id="link-932" class="py-name"><a title="proton.Connection.wrap
proton.Delivery.wrap
proton.Event.wrap
proton.Link.wrap
proton.Session.wrap
proton.Transport.wrap
proton.reactor.Reactor.wrap
proton.reactor.Task.wrap" class="py-name" href="#" onclick="return doclink('link-932', 'wrap', 'link-88');">wrap</a></tt><tt class="py-op">(</tt><tt class="py-name">pn_cast_pn_transport</tt><tt class="py-op">(</tt><tt class="py-name">x</tt><tt class="py-op">)</tt><tt class="py-op">)</tt><tt class="py-op">,</tt> </tt>
<a name="L3746"></a><tt class="py-lineno">3746</tt> <tt class="py-line"> <tt class="py-string">"pn_selectable"</tt><tt class="py-op">:</tt> <tt class="py-keyword">lambda</tt> <tt class="py-name">x</tt><tt class="py-op">:</tt> <tt class="py-name">Selectable</tt><tt class="py-op">.</tt><tt id="link-933" class="py-name"><a title="proton.Connection.wrap
proton.Delivery.wrap
proton.Event.wrap
proton.Link.wrap
proton.Session.wrap
proton.Transport.wrap
proton.reactor.Reactor.wrap
proton.reactor.Task.wrap" class="py-name" href="#" onclick="return doclink('link-933', 'wrap', 'link-88');">wrap</a></tt><tt class="py-op">(</tt><tt class="py-name">pn_cast_pn_selectable</tt><tt class="py-op">(</tt><tt class="py-name">x</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
<a name="L3747"></a><tt class="py-lineno">3747</tt> <tt class="py-line"><tt class="py-op">}</tt> </tt>
<a name="Collector"></a><div id="Collector-def"><a name="L3748"></a><tt class="py-lineno">3748</tt> <tt class="py-line"> </tt>
<a name="L3749"></a><tt class="py-lineno">3749</tt> <a class="py-toggle" href="#" id="Collector-toggle" onclick="return toggle('Collector');">-</a><tt class="py-line"><tt class="py-keyword">class</tt> <a class="py-def-name" href="proton.Collector-class.html">Collector</a><tt class="py-op">:</tt> </tt>
</div><div id="Collector-collapsed" style="display:none;" pad="++++" indent="++++"></div><div id="Collector-expanded"><a name="L3750"></a><tt class="py-lineno">3750</tt> <tt class="py-line"> </tt>
<a name="Collector.__init__"></a><div id="Collector.__init__-def"><a name="L3751"></a><tt class="py-lineno">3751</tt> <a class="py-toggle" href="#" id="Collector.__init__-toggle" onclick="return toggle('Collector.__init__');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Collector-class.html#__init__">__init__</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Collector.__init__-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Collector.__init__-expanded"><a name="L3752"></a><tt class="py-lineno">3752</tt> <tt class="py-line"> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_impl</tt> <tt class="py-op">=</tt> <tt class="py-name">pn_collector</tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
</div><a name="L3753"></a><tt class="py-lineno">3753</tt> <tt class="py-line"> </tt>
<a name="Collector.put"></a><div id="Collector.put-def"><a name="L3754"></a><tt class="py-lineno">3754</tt> <a class="py-toggle" href="#" id="Collector.put-toggle" onclick="return toggle('Collector.put');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Collector-class.html#put">put</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">obj</tt><tt class="py-op">,</tt> <tt class="py-param">etype</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Collector.put-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Collector.put-expanded"><a name="L3755"></a><tt class="py-lineno">3755</tt> <tt class="py-line"> <tt class="py-name">pn_collector_put</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_impl</tt><tt class="py-op">,</tt> <tt class="py-name">PN_PYREF</tt><tt class="py-op">,</tt> <tt class="py-name">pn_py2void</tt><tt class="py-op">(</tt><tt class="py-name">obj</tt><tt class="py-op">)</tt><tt class="py-op">,</tt> <tt class="py-name">etype</tt><tt class="py-op">.</tt><tt class="py-name">number</tt><tt class="py-op">)</tt> </tt>
</div><a name="L3756"></a><tt class="py-lineno">3756</tt> <tt class="py-line"> </tt>
<a name="Collector.peek"></a><div id="Collector.peek-def"><a name="L3757"></a><tt class="py-lineno">3757</tt> <a class="py-toggle" href="#" id="Collector.peek-toggle" onclick="return toggle('Collector.peek');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Collector-class.html#peek">peek</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Collector.peek-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Collector.peek-expanded"><a name="L3758"></a><tt class="py-lineno">3758</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt id="link-934" class="py-name" targets="Class proton.Event=proton.Event-class.html"><a title="proton.Event" class="py-name" href="#" onclick="return doclink('link-934', 'Event', 'link-934');">Event</a></tt><tt class="py-op">.</tt><tt id="link-935" class="py-name"><a title="proton.Connection.wrap
proton.Delivery.wrap
proton.Event.wrap
proton.Link.wrap
proton.Session.wrap
proton.Transport.wrap
proton.reactor.Reactor.wrap
proton.reactor.Task.wrap" class="py-name" href="#" onclick="return doclink('link-935', 'wrap', 'link-88');">wrap</a></tt><tt class="py-op">(</tt><tt class="py-name">pn_collector_peek</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_impl</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
</div><a name="L3759"></a><tt class="py-lineno">3759</tt> <tt class="py-line"> </tt>
<a name="Collector.pop"></a><div id="Collector.pop-def"><a name="L3760"></a><tt class="py-lineno">3760</tt> <a class="py-toggle" href="#" id="Collector.pop-toggle" onclick="return toggle('Collector.pop');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Collector-class.html#pop">pop</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Collector.pop-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Collector.pop-expanded"><a name="L3761"></a><tt class="py-lineno">3761</tt> <tt class="py-line"> <tt class="py-name">ev</tt> <tt class="py-op">=</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-936" class="py-name" targets="Method proton.Collector.peek()=proton.Collector-class.html#peek,Method proton.Transport.peek()=proton.Transport-class.html#peek"><a title="proton.Collector.peek
proton.Transport.peek" class="py-name" href="#" onclick="return doclink('link-936', 'peek', 'link-936');">peek</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L3762"></a><tt class="py-lineno">3762</tt> <tt class="py-line"> <tt class="py-name">pn_collector_pop</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_impl</tt><tt class="py-op">)</tt> </tt>
</div><a name="L3763"></a><tt class="py-lineno">3763</tt> <tt class="py-line"> </tt>
<a name="Collector.__del__"></a><div id="Collector.__del__-def"><a name="L3764"></a><tt class="py-lineno">3764</tt> <a class="py-toggle" href="#" id="Collector.__del__-toggle" onclick="return toggle('Collector.__del__');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Collector-class.html#__del__">__del__</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Collector.__del__-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Collector.__del__-expanded"><a name="L3765"></a><tt class="py-lineno">3765</tt> <tt class="py-line"> <tt class="py-name">pn_collector_free</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_impl</tt><tt class="py-op">)</tt> </tt>
<a name="L3766"></a><tt class="py-lineno">3766</tt> <tt class="py-line"> <tt class="py-keyword">del</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_impl</tt> </tt>
</div></div><a name="L3767"></a><tt class="py-lineno">3767</tt> <tt class="py-line"> </tt>
<a name="L3768"></a><tt class="py-lineno">3768</tt> <tt class="py-line"><tt class="py-keyword">if</tt> <tt class="py-string">"TypeExtender"</tt> <tt class="py-keyword">not</tt> <tt class="py-keyword">in</tt> <tt class="py-name">globals</tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
<a name="TypeExtender"></a><div id="TypeExtender-def"><a name="L3769"></a><tt class="py-lineno">3769</tt> <a class="py-toggle" href="#" id="TypeExtender-toggle" onclick="return toggle('TypeExtender');">-</a><tt class="py-line"> <tt class="py-keyword">class</tt> <a class="py-def-name" href="proton.TypeExtender-class.html">TypeExtender</a><tt class="py-op">:</tt> </tt>
</div><div id="TypeExtender-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="TypeExtender-expanded"><a name="TypeExtender.__init__"></a><div id="TypeExtender.__init__-def"><a name="L3770"></a><tt class="py-lineno">3770</tt> <a class="py-toggle" href="#" id="TypeExtender.__init__-toggle" onclick="return toggle('TypeExtender.__init__');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.TypeExtender-class.html#__init__">__init__</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">number</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="TypeExtender.__init__-collapsed" style="display:none;" pad="++++" indent="++++++++++"></div><div id="TypeExtender.__init__-expanded"><a name="L3771"></a><tt class="py-lineno">3771</tt> <tt class="py-line"> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">number</tt> <tt class="py-op">=</tt> <tt class="py-name">number</tt> </tt>
</div><a name="TypeExtender.next"></a><div id="TypeExtender.next-def"><a name="L3772"></a><tt class="py-lineno">3772</tt> <a class="py-toggle" href="#" id="TypeExtender.next-toggle" onclick="return toggle('TypeExtender.next');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.TypeExtender-class.html#next">next</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="TypeExtender.next-collapsed" style="display:none;" pad="++++" indent="++++++++++"></div><div id="TypeExtender.next-expanded"><a name="L3773"></a><tt class="py-lineno">3773</tt> <tt class="py-line"> <tt class="py-keyword">try</tt><tt class="py-op">:</tt> </tt>
<a name="L3774"></a><tt class="py-lineno">3774</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">number</tt> </tt>
<a name="L3775"></a><tt class="py-lineno">3775</tt> <tt class="py-line"> <tt class="py-keyword">finally</tt><tt class="py-op">:</tt> </tt>
<a name="L3776"></a><tt class="py-lineno">3776</tt> <tt class="py-line"> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">number</tt> <tt class="py-op">+=</tt> <tt class="py-number">1</tt> </tt>
</div></div><a name="L3777"></a><tt class="py-lineno">3777</tt> <tt class="py-line"> </tt>
<a name="EventType"></a><div id="EventType-def"><a name="L3778"></a><tt class="py-lineno">3778</tt> <a class="py-toggle" href="#" id="EventType-toggle" onclick="return toggle('EventType');">-</a><tt class="py-line"><tt class="py-keyword">class</tt> <a class="py-def-name" href="proton.EventType-class.html">EventType</a><tt class="py-op">(</tt><tt class="py-base-class">object</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="EventType-collapsed" style="display:none;" pad="++++" indent="++++"></div><div id="EventType-expanded"><a name="L3779"></a><tt class="py-lineno">3779</tt> <tt class="py-line"> </tt>
<a name="L3780"></a><tt class="py-lineno">3780</tt> <tt class="py-line"> <tt id="link-937" class="py-name" targets="Variable proton.EventType._lock=proton.EventType-class.html#_lock"><a title="proton.EventType._lock" class="py-name" href="#" onclick="return doclink('link-937', '_lock', 'link-937');">_lock</a></tt> <tt class="py-op">=</tt> <tt class="py-name">threading</tt><tt class="py-op">.</tt><tt class="py-name">Lock</tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L3781"></a><tt class="py-lineno">3781</tt> <tt class="py-line"> <tt id="link-938" class="py-name" targets="Variable proton.EventType._extended=proton.EventType-class.html#_extended"><a title="proton.EventType._extended" class="py-name" href="#" onclick="return doclink('link-938', '_extended', 'link-938');">_extended</a></tt> <tt class="py-op">=</tt> <tt class="py-name">TypeExtender</tt><tt class="py-op">(</tt><tt class="py-number">10000</tt><tt class="py-op">)</tt> </tt>
<a name="L3782"></a><tt class="py-lineno">3782</tt> <tt class="py-line"> <tt id="link-939" class="py-name" targets="Variable proton.EventType.TYPES=proton.EventType-class.html#TYPES"><a title="proton.EventType.TYPES" class="py-name" href="#" onclick="return doclink('link-939', 'TYPES', 'link-939');">TYPES</a></tt> <tt class="py-op">=</tt> <tt class="py-op">{</tt><tt class="py-op">}</tt> </tt>
<a name="L3783"></a><tt class="py-lineno">3783</tt> <tt class="py-line"> </tt>
<a name="EventType.__init__"></a><div id="EventType.__init__-def"><a name="L3784"></a><tt class="py-lineno">3784</tt> <a class="py-toggle" href="#" id="EventType.__init__-toggle" onclick="return toggle('EventType.__init__');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.EventType-class.html#__init__">__init__</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">name</tt><tt class="py-op">=</tt><tt class="py-name">None</tt><tt class="py-op">,</tt> <tt class="py-param">number</tt><tt class="py-op">=</tt><tt class="py-name">None</tt><tt class="py-op">,</tt> <tt class="py-param">method</tt><tt class="py-op">=</tt><tt class="py-name">None</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="EventType.__init__-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="EventType.__init__-expanded"><a name="L3785"></a><tt class="py-lineno">3785</tt> <tt class="py-line"> <tt class="py-keyword">if</tt> <tt id="link-940" class="py-name"><a title="proton.Link.name
proton.Messenger.name" class="py-name" href="#" onclick="return doclink('link-940', 'name', 'link-25');">name</a></tt> <tt class="py-keyword">is</tt> <tt class="py-name">None</tt> <tt class="py-keyword">and</tt> <tt class="py-name">number</tt> <tt class="py-keyword">is</tt> <tt class="py-name">None</tt><tt class="py-op">:</tt> </tt>
<a name="L3786"></a><tt class="py-lineno">3786</tt> <tt class="py-line"> <tt class="py-keyword">raise</tt> <tt class="py-name">TypeError</tt><tt class="py-op">(</tt><tt class="py-string">"extended events require a name"</tt><tt class="py-op">)</tt> </tt>
<a name="L3787"></a><tt class="py-lineno">3787</tt> <tt class="py-line"> <tt class="py-keyword">try</tt><tt class="py-op">:</tt> </tt>
<a name="L3788"></a><tt class="py-lineno">3788</tt> <tt class="py-line"> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-941" class="py-name"><a title="proton.EventType._lock" class="py-name" href="#" onclick="return doclink('link-941', '_lock', 'link-937');">_lock</a></tt><tt class="py-op">.</tt><tt class="py-name">acquire</tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L3789"></a><tt class="py-lineno">3789</tt> <tt class="py-line"> <tt class="py-keyword">if</tt> <tt id="link-942" class="py-name"><a title="proton.Link.name
proton.Messenger.name" class="py-name" href="#" onclick="return doclink('link-942', 'name', 'link-25');">name</a></tt> <tt class="py-keyword">is</tt> <tt class="py-name">None</tt><tt class="py-op">:</tt> </tt>
<a name="L3790"></a><tt class="py-lineno">3790</tt> <tt class="py-line"> <tt id="link-943" class="py-name"><a title="proton.Link.name
proton.Messenger.name" class="py-name" href="#" onclick="return doclink('link-943', 'name', 'link-25');">name</a></tt> <tt class="py-op">=</tt> <tt class="py-name">pn_event_type_name</tt><tt class="py-op">(</tt><tt class="py-name">number</tt><tt class="py-op">)</tt> </tt>
<a name="L3791"></a><tt class="py-lineno">3791</tt> <tt class="py-line"> </tt>
<a name="L3792"></a><tt class="py-lineno">3792</tt> <tt class="py-line"> <tt class="py-keyword">if</tt> <tt class="py-name">number</tt> <tt class="py-keyword">is</tt> <tt class="py-name">None</tt><tt class="py-op">:</tt> </tt>
<a name="L3793"></a><tt class="py-lineno">3793</tt> <tt class="py-line"> <tt class="py-name">number</tt> <tt class="py-op">=</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-944" class="py-name"><a title="proton.EventType._extended" class="py-name" href="#" onclick="return doclink('link-944', '_extended', 'link-938');">_extended</a></tt><tt class="py-op">.</tt><tt id="link-945" class="py-name"><a title="proton.Data.next
proton.Link.next
proton.Session.next
proton.reactor.Backoff.next
proton.reactor.Urls.next
proton.utils.AtomicCount.next" class="py-name" href="#" onclick="return doclink('link-945', 'next', 'link-119');">next</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L3794"></a><tt class="py-lineno">3794</tt> <tt class="py-line"> </tt>
<a name="L3795"></a><tt class="py-lineno">3795</tt> <tt class="py-line"> <tt class="py-keyword">if</tt> <tt class="py-name">method</tt> <tt class="py-keyword">is</tt> <tt class="py-name">None</tt><tt class="py-op">:</tt> </tt>
<a name="L3796"></a><tt class="py-lineno">3796</tt> <tt class="py-line"> <tt class="py-name">method</tt> <tt class="py-op">=</tt> <tt class="py-string">"on_%s"</tt> <tt class="py-op">%</tt> <tt id="link-946" class="py-name"><a title="proton.Link.name
proton.Messenger.name" class="py-name" href="#" onclick="return doclink('link-946', 'name', 'link-25');">name</a></tt> </tt>
<a name="L3797"></a><tt class="py-lineno">3797</tt> <tt class="py-line"> </tt>
<a name="L3798"></a><tt class="py-lineno">3798</tt> <tt class="py-line"> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-947" class="py-name"><a title="proton.Link.name
proton.Messenger.name" class="py-name" href="#" onclick="return doclink('link-947', 'name', 'link-25');">name</a></tt> <tt class="py-op">=</tt> <tt id="link-948" class="py-name"><a title="proton.Link.name
proton.Messenger.name" class="py-name" href="#" onclick="return doclink('link-948', 'name', 'link-25');">name</a></tt> </tt>
<a name="L3799"></a><tt class="py-lineno">3799</tt> <tt class="py-line"> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">number</tt> <tt class="py-op">=</tt> <tt class="py-name">number</tt> </tt>
<a name="L3800"></a><tt class="py-lineno">3800</tt> <tt class="py-line"> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">method</tt> <tt class="py-op">=</tt> <tt class="py-name">method</tt> </tt>
<a name="L3801"></a><tt class="py-lineno">3801</tt> <tt class="py-line"> </tt>
<a name="L3802"></a><tt class="py-lineno">3802</tt> <tt class="py-line"> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-949" class="py-name"><a title="proton.EventType.TYPES" class="py-name" href="#" onclick="return doclink('link-949', 'TYPES', 'link-939');">TYPES</a></tt><tt class="py-op">[</tt><tt class="py-name">number</tt><tt class="py-op">]</tt> <tt class="py-op">=</tt> <tt class="py-name">self</tt> </tt>
<a name="L3803"></a><tt class="py-lineno">3803</tt> <tt class="py-line"> <tt class="py-keyword">finally</tt><tt class="py-op">:</tt> </tt>
<a name="L3804"></a><tt class="py-lineno">3804</tt> <tt class="py-line"> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-950" class="py-name"><a title="proton.EventType._lock" class="py-name" href="#" onclick="return doclink('link-950', '_lock', 'link-937');">_lock</a></tt><tt class="py-op">.</tt><tt id="link-951" class="py-name" targets="Method proton.handlers.Acking.release()=proton.handlers.Acking-class.html#release,Method proton.utils.BlockingReceiver.release()=proton.utils.BlockingReceiver-class.html#release"><a title="proton.handlers.Acking.release
proton.utils.BlockingReceiver.release" class="py-name" href="#" onclick="return doclink('link-951', 'release', 'link-951');">release</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
</div><a name="L3805"></a><tt class="py-lineno">3805</tt> <tt class="py-line"> </tt>
<a name="EventType.__repr__"></a><div id="EventType.__repr__-def"><a name="L3806"></a><tt class="py-lineno">3806</tt> <a class="py-toggle" href="#" id="EventType.__repr__-toggle" onclick="return toggle('EventType.__repr__');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.EventType-class.html#__repr__">__repr__</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="EventType.__repr__-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="EventType.__repr__-expanded"><a name="L3807"></a><tt class="py-lineno">3807</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-952" class="py-name"><a title="proton.Link.name
proton.Messenger.name" class="py-name" href="#" onclick="return doclink('link-952', 'name', 'link-25');">name</a></tt> </tt>
</div></div><a name="L3808"></a><tt class="py-lineno">3808</tt> <tt class="py-line"> </tt>
<a name="dispatch"></a><div id="dispatch-def"><a name="L3809"></a><tt class="py-lineno">3809</tt> <a class="py-toggle" href="#" id="dispatch-toggle" onclick="return toggle('dispatch');">-</a><tt class="py-line"><tt class="py-keyword">def</tt> <a class="py-def-name" href="proton-module.html#dispatch">dispatch</a><tt class="py-op">(</tt><tt class="py-param">handler</tt><tt class="py-op">,</tt> <tt class="py-param">method</tt><tt class="py-op">,</tt> <tt class="py-op">*</tt><tt class="py-param">args</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="dispatch-collapsed" style="display:none;" pad="++++" indent="++++"></div><div id="dispatch-expanded"><a name="L3810"></a><tt class="py-lineno">3810</tt> <tt class="py-line"> <tt class="py-name">m</tt> <tt class="py-op">=</tt> <tt class="py-name">getattr</tt><tt class="py-op">(</tt><tt id="link-953" class="py-name"><a title="proton.Endpoint.handler
proton.reactor.Reactor.handler" class="py-name" href="#" onclick="return doclink('link-953', 'handler', 'link-540');">handler</a></tt><tt class="py-op">,</tt> <tt class="py-name">method</tt><tt class="py-op">,</tt> <tt class="py-name">None</tt><tt class="py-op">)</tt> </tt>
<a name="L3811"></a><tt class="py-lineno">3811</tt> <tt class="py-line"> <tt class="py-keyword">if</tt> <tt class="py-name">m</tt><tt class="py-op">:</tt> </tt>
<a name="L3812"></a><tt class="py-lineno">3812</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt class="py-name">m</tt><tt class="py-op">(</tt><tt class="py-op">*</tt><tt class="py-name">args</tt><tt class="py-op">)</tt> </tt>
<a name="L3813"></a><tt class="py-lineno">3813</tt> <tt class="py-line"> <tt class="py-keyword">elif</tt> <tt class="py-name">hasattr</tt><tt class="py-op">(</tt><tt id="link-954" class="py-name"><a title="proton.Endpoint.handler
proton.reactor.Reactor.handler" class="py-name" href="#" onclick="return doclink('link-954', 'handler', 'link-540');">handler</a></tt><tt class="py-op">,</tt> <tt class="py-string">"on_unhandled"</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
<a name="L3814"></a><tt class="py-lineno">3814</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt id="link-955" class="py-name"><a title="proton.Endpoint.handler
proton.reactor.Reactor.handler" class="py-name" href="#" onclick="return doclink('link-955', 'handler', 'link-540');">handler</a></tt><tt class="py-op">.</tt><tt id="link-956" class="py-name" targets="Method proton.Handler.on_unhandled()=proton.Handler-class.html#on_unhandled,Method proton.handlers.PythonIO.on_unhandled()=proton.handlers.PythonIO-class.html#on_unhandled,Method proton.reactor.GlobalOverrides.on_unhandled()=proton.reactor.GlobalOverrides-class.html#on_unhandled"><a title="proton.Handler.on_unhandled
proton.handlers.PythonIO.on_unhandled
proton.reactor.GlobalOverrides.on_unhandled" class="py-name" href="#" onclick="return doclink('link-956', 'on_unhandled', 'link-956');">on_unhandled</a></tt><tt class="py-op">(</tt><tt class="py-name">method</tt><tt class="py-op">,</tt> <tt class="py-op">*</tt><tt class="py-name">args</tt><tt class="py-op">)</tt> </tt>
</div><a name="L3815"></a><tt class="py-lineno">3815</tt> <tt class="py-line"> </tt>
<a name="EventBase"></a><div id="EventBase-def"><a name="L3816"></a><tt class="py-lineno">3816</tt> <a class="py-toggle" href="#" id="EventBase-toggle" onclick="return toggle('EventBase');">-</a><tt class="py-line"><tt class="py-keyword">class</tt> <a class="py-def-name" href="proton.EventBase-class.html">EventBase</a><tt class="py-op">(</tt><tt class="py-base-class">object</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="EventBase-collapsed" style="display:none;" pad="++++" indent="++++"></div><div id="EventBase-expanded"><a name="L3817"></a><tt class="py-lineno">3817</tt> <tt class="py-line"> </tt>
<a name="EventBase.__init__"></a><div id="EventBase.__init__-def"><a name="L3818"></a><tt class="py-lineno">3818</tt> <a class="py-toggle" href="#" id="EventBase.__init__-toggle" onclick="return toggle('EventBase.__init__');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.EventBase-class.html#__init__">__init__</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">clazz</tt><tt class="py-op">,</tt> <tt class="py-param">context</tt><tt class="py-op">,</tt> <tt class="py-param">type</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="EventBase.__init__-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="EventBase.__init__-expanded"><a name="L3819"></a><tt class="py-lineno">3819</tt> <tt class="py-line"> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-957" class="py-name" targets="Variable proton.Event.clazz=proton.Event-class.html#clazz"><a title="proton.Event.clazz" class="py-name" href="#" onclick="return doclink('link-957', 'clazz', 'link-957');">clazz</a></tt> <tt class="py-op">=</tt> <tt id="link-958" class="py-name"><a title="proton.Event.clazz" class="py-name" href="#" onclick="return doclink('link-958', 'clazz', 'link-957');">clazz</a></tt> </tt>
<a name="L3820"></a><tt class="py-lineno">3820</tt> <tt class="py-line"> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-959" class="py-name" targets="Variable proton.Event.context=proton.Event-class.html#context"><a title="proton.Event.context" class="py-name" href="#" onclick="return doclink('link-959', 'context', 'link-959');">context</a></tt> <tt class="py-op">=</tt> <tt id="link-960" class="py-name"><a title="proton.Event.context" class="py-name" href="#" onclick="return doclink('link-960', 'context', 'link-959');">context</a></tt> </tt>
<a name="L3821"></a><tt class="py-lineno">3821</tt> <tt class="py-line"> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-961" class="py-name"><a title="proton.Data.type
proton.Disposition.type
proton.Terminus.type" class="py-name" href="#" onclick="return doclink('link-961', 'type', 'link-152');">type</a></tt> <tt class="py-op">=</tt> <tt id="link-962" class="py-name"><a title="proton.Data.type
proton.Disposition.type
proton.Terminus.type" class="py-name" href="#" onclick="return doclink('link-962', 'type', 'link-152');">type</a></tt> </tt>
</div><a name="L3822"></a><tt class="py-lineno">3822</tt> <tt class="py-line"> </tt>
<a name="EventBase.dispatch"></a><div id="EventBase.dispatch-def"><a name="L3823"></a><tt class="py-lineno">3823</tt> <a class="py-toggle" href="#" id="EventBase.dispatch-toggle" onclick="return toggle('EventBase.dispatch');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.EventBase-class.html#dispatch">dispatch</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">handler</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="EventBase.dispatch-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="EventBase.dispatch-expanded"><a name="L3824"></a><tt class="py-lineno">3824</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt id="link-963" class="py-name" targets="Method proton.Event.dispatch()=proton.Event-class.html#dispatch,Function proton.dispatch()=proton-module.html#dispatch"><a title="proton.Event.dispatch
proton.dispatch" class="py-name" href="#" onclick="return doclink('link-963', 'dispatch', 'link-963');">dispatch</a></tt><tt class="py-op">(</tt><tt id="link-964" class="py-name"><a title="proton.Endpoint.handler
proton.reactor.Reactor.handler" class="py-name" href="#" onclick="return doclink('link-964', 'handler', 'link-540');">handler</a></tt><tt class="py-op">,</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-965" class="py-name"><a title="proton.Data.type
proton.Disposition.type
proton.Terminus.type" class="py-name" href="#" onclick="return doclink('link-965', 'type', 'link-152');">type</a></tt><tt class="py-op">.</tt><tt class="py-name">method</tt><tt class="py-op">,</tt> <tt class="py-name">self</tt><tt class="py-op">)</tt> </tt>
</div></div><a name="L3825"></a><tt class="py-lineno">3825</tt> <tt class="py-line"> </tt>
<a name="_none"></a><div id="_none-def"><a name="L3826"></a><tt class="py-lineno">3826</tt> <a class="py-toggle" href="#" id="_none-toggle" onclick="return toggle('_none');">-</a><tt class="py-line"><tt class="py-keyword">def</tt> <a class="py-def-name" href="proton-module.html#_none">_none</a><tt class="py-op">(</tt><tt class="py-param">x</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> <tt class="py-keyword">return</tt> <tt class="py-name">None</tt> </tt>
</div><a name="L3827"></a><tt class="py-lineno">3827</tt> <tt class="py-line"> </tt>
<a name="L3828"></a><tt class="py-lineno">3828</tt> <tt class="py-line"><tt id="link-966" class="py-name" targets="Variable proton.DELEGATED=proton-module.html#DELEGATED"><a title="proton.DELEGATED" class="py-name" href="#" onclick="return doclink('link-966', 'DELEGATED', 'link-966');">DELEGATED</a></tt> <tt class="py-op">=</tt> <tt class="py-name">Constant</tt><tt class="py-op">(</tt><tt class="py-string">"DELEGATED"</tt><tt class="py-op">)</tt> </tt>
<a name="_core"></a><div id="_core-def"><a name="L3829"></a><tt class="py-lineno">3829</tt> <tt class="py-line"> </tt>
<a name="L3830"></a><tt class="py-lineno">3830</tt> <a class="py-toggle" href="#" id="_core-toggle" onclick="return toggle('_core');">-</a><tt class="py-line"><tt class="py-keyword">def</tt> <a class="py-def-name" href="proton-module.html#_core">_core</a><tt class="py-op">(</tt><tt class="py-param">number</tt><tt class="py-op">,</tt> <tt class="py-param">method</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="_core-collapsed" style="display:none;" pad="++++" indent="++++"></div><div id="_core-expanded"><a name="L3831"></a><tt class="py-lineno">3831</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt id="link-967" class="py-name" targets="Class proton.EventType=proton.EventType-class.html"><a title="proton.EventType" class="py-name" href="#" onclick="return doclink('link-967', 'EventType', 'link-967');">EventType</a></tt><tt class="py-op">(</tt><tt class="py-name">number</tt><tt class="py-op">=</tt><tt class="py-name">number</tt><tt class="py-op">,</tt> <tt class="py-name">method</tt><tt class="py-op">=</tt><tt class="py-name">method</tt><tt class="py-op">)</tt> </tt>
</div><a name="L3832"></a><tt class="py-lineno">3832</tt> <tt class="py-line"> </tt>
<a name="Event"></a><div id="Event-def"><a name="L3833"></a><tt class="py-lineno">3833</tt> <a class="py-toggle" href="#" id="Event-toggle" onclick="return toggle('Event');">-</a><tt class="py-line"><tt class="py-keyword">class</tt> <a class="py-def-name" href="proton.Event-class.html">Event</a><tt class="py-op">(</tt><tt class="py-base-class">Wrapper</tt><tt class="py-op">,</tt> <tt class="py-base-class">EventBase</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Event-collapsed" style="display:none;" pad="++++" indent="++++"></div><div id="Event-expanded"><a name="L3834"></a><tt class="py-lineno">3834</tt> <tt class="py-line"> </tt>
<a name="L3835"></a><tt class="py-lineno">3835</tt> <tt class="py-line"> <tt id="link-968" class="py-name" targets="Variable proton.Event.REACTOR_INIT=proton.Event-class.html#REACTOR_INIT"><a title="proton.Event.REACTOR_INIT" class="py-name" href="#" onclick="return doclink('link-968', 'REACTOR_INIT', 'link-968');">REACTOR_INIT</a></tt> <tt class="py-op">=</tt> <tt class="py-name">_core</tt><tt class="py-op">(</tt><tt class="py-name">PN_REACTOR_INIT</tt><tt class="py-op">,</tt> <tt class="py-string">"on_reactor_init"</tt><tt class="py-op">)</tt> </tt>
<a name="L3836"></a><tt class="py-lineno">3836</tt> <tt class="py-line"> <tt id="link-969" class="py-name" targets="Variable proton.Event.REACTOR_QUIESCED=proton.Event-class.html#REACTOR_QUIESCED"><a title="proton.Event.REACTOR_QUIESCED" class="py-name" href="#" onclick="return doclink('link-969', 'REACTOR_QUIESCED', 'link-969');">REACTOR_QUIESCED</a></tt> <tt class="py-op">=</tt> <tt class="py-name">_core</tt><tt class="py-op">(</tt><tt class="py-name">PN_REACTOR_QUIESCED</tt><tt class="py-op">,</tt> <tt class="py-string">"on_reactor_quiesced"</tt><tt class="py-op">)</tt> </tt>
<a name="L3837"></a><tt class="py-lineno">3837</tt> <tt class="py-line"> <tt id="link-970" class="py-name" targets="Variable proton.Event.REACTOR_FINAL=proton.Event-class.html#REACTOR_FINAL"><a title="proton.Event.REACTOR_FINAL" class="py-name" href="#" onclick="return doclink('link-970', 'REACTOR_FINAL', 'link-970');">REACTOR_FINAL</a></tt> <tt class="py-op">=</tt> <tt class="py-name">_core</tt><tt class="py-op">(</tt><tt class="py-name">PN_REACTOR_FINAL</tt><tt class="py-op">,</tt> <tt class="py-string">"on_reactor_final"</tt><tt class="py-op">)</tt> </tt>
<a name="L3838"></a><tt class="py-lineno">3838</tt> <tt class="py-line"> </tt>
<a name="L3839"></a><tt class="py-lineno">3839</tt> <tt class="py-line"> <tt id="link-971" class="py-name" targets="Variable proton.Event.TIMER_TASK=proton.Event-class.html#TIMER_TASK"><a title="proton.Event.TIMER_TASK" class="py-name" href="#" onclick="return doclink('link-971', 'TIMER_TASK', 'link-971');">TIMER_TASK</a></tt> <tt class="py-op">=</tt> <tt class="py-name">_core</tt><tt class="py-op">(</tt><tt class="py-name">PN_TIMER_TASK</tt><tt class="py-op">,</tt> <tt class="py-string">"on_timer_task"</tt><tt class="py-op">)</tt> </tt>
<a name="L3840"></a><tt class="py-lineno">3840</tt> <tt class="py-line"> </tt>
<a name="L3841"></a><tt class="py-lineno">3841</tt> <tt class="py-line"> <tt id="link-972" class="py-name" targets="Variable proton.Event.CONNECTION_INIT=proton.Event-class.html#CONNECTION_INIT"><a title="proton.Event.CONNECTION_INIT" class="py-name" href="#" onclick="return doclink('link-972', 'CONNECTION_INIT', 'link-972');">CONNECTION_INIT</a></tt> <tt class="py-op">=</tt> <tt class="py-name">_core</tt><tt class="py-op">(</tt><tt class="py-name">PN_CONNECTION_INIT</tt><tt class="py-op">,</tt> <tt class="py-string">"on_connection_init"</tt><tt class="py-op">)</tt> </tt>
<a name="L3842"></a><tt class="py-lineno">3842</tt> <tt class="py-line"> <tt id="link-973" class="py-name" targets="Variable proton.Event.CONNECTION_BOUND=proton.Event-class.html#CONNECTION_BOUND"><a title="proton.Event.CONNECTION_BOUND" class="py-name" href="#" onclick="return doclink('link-973', 'CONNECTION_BOUND', 'link-973');">CONNECTION_BOUND</a></tt> <tt class="py-op">=</tt> <tt class="py-name">_core</tt><tt class="py-op">(</tt><tt class="py-name">PN_CONNECTION_BOUND</tt><tt class="py-op">,</tt> <tt class="py-string">"on_connection_bound"</tt><tt class="py-op">)</tt> </tt>
<a name="L3843"></a><tt class="py-lineno">3843</tt> <tt class="py-line"> <tt id="link-974" class="py-name" targets="Variable proton.Event.CONNECTION_UNBOUND=proton.Event-class.html#CONNECTION_UNBOUND"><a title="proton.Event.CONNECTION_UNBOUND" class="py-name" href="#" onclick="return doclink('link-974', 'CONNECTION_UNBOUND', 'link-974');">CONNECTION_UNBOUND</a></tt> <tt class="py-op">=</tt> <tt class="py-name">_core</tt><tt class="py-op">(</tt><tt class="py-name">PN_CONNECTION_UNBOUND</tt><tt class="py-op">,</tt> <tt class="py-string">"on_connection_unbound"</tt><tt class="py-op">)</tt> </tt>
<a name="L3844"></a><tt class="py-lineno">3844</tt> <tt class="py-line"> <tt id="link-975" class="py-name" targets="Variable proton.Event.CONNECTION_LOCAL_OPEN=proton.Event-class.html#CONNECTION_LOCAL_OPEN"><a title="proton.Event.CONNECTION_LOCAL_OPEN" class="py-name" href="#" onclick="return doclink('link-975', 'CONNECTION_LOCAL_OPEN', 'link-975');">CONNECTION_LOCAL_OPEN</a></tt> <tt class="py-op">=</tt> <tt class="py-name">_core</tt><tt class="py-op">(</tt><tt class="py-name">PN_CONNECTION_LOCAL_OPEN</tt><tt class="py-op">,</tt> <tt class="py-string">"on_connection_local_open"</tt><tt class="py-op">)</tt> </tt>
<a name="L3845"></a><tt class="py-lineno">3845</tt> <tt class="py-line"> <tt id="link-976" class="py-name" targets="Variable proton.Event.CONNECTION_LOCAL_CLOSE=proton.Event-class.html#CONNECTION_LOCAL_CLOSE"><a title="proton.Event.CONNECTION_LOCAL_CLOSE" class="py-name" href="#" onclick="return doclink('link-976', 'CONNECTION_LOCAL_CLOSE', 'link-976');">CONNECTION_LOCAL_CLOSE</a></tt> <tt class="py-op">=</tt> <tt class="py-name">_core</tt><tt class="py-op">(</tt><tt class="py-name">PN_CONNECTION_LOCAL_CLOSE</tt><tt class="py-op">,</tt> <tt class="py-string">"on_connection_local_close"</tt><tt class="py-op">)</tt> </tt>
<a name="L3846"></a><tt class="py-lineno">3846</tt> <tt class="py-line"> <tt id="link-977" class="py-name" targets="Variable proton.Event.CONNECTION_REMOTE_OPEN=proton.Event-class.html#CONNECTION_REMOTE_OPEN"><a title="proton.Event.CONNECTION_REMOTE_OPEN" class="py-name" href="#" onclick="return doclink('link-977', 'CONNECTION_REMOTE_OPEN', 'link-977');">CONNECTION_REMOTE_OPEN</a></tt> <tt class="py-op">=</tt> <tt class="py-name">_core</tt><tt class="py-op">(</tt><tt class="py-name">PN_CONNECTION_REMOTE_OPEN</tt><tt class="py-op">,</tt> <tt class="py-string">"on_connection_remote_open"</tt><tt class="py-op">)</tt> </tt>
<a name="L3847"></a><tt class="py-lineno">3847</tt> <tt class="py-line"> <tt id="link-978" class="py-name" targets="Variable proton.Event.CONNECTION_REMOTE_CLOSE=proton.Event-class.html#CONNECTION_REMOTE_CLOSE"><a title="proton.Event.CONNECTION_REMOTE_CLOSE" class="py-name" href="#" onclick="return doclink('link-978', 'CONNECTION_REMOTE_CLOSE', 'link-978');">CONNECTION_REMOTE_CLOSE</a></tt> <tt class="py-op">=</tt> <tt class="py-name">_core</tt><tt class="py-op">(</tt><tt class="py-name">PN_CONNECTION_REMOTE_CLOSE</tt><tt class="py-op">,</tt> <tt class="py-string">"on_connection_remote_close"</tt><tt class="py-op">)</tt> </tt>
<a name="L3848"></a><tt class="py-lineno">3848</tt> <tt class="py-line"> <tt id="link-979" class="py-name" targets="Variable proton.Event.CONNECTION_FINAL=proton.Event-class.html#CONNECTION_FINAL"><a title="proton.Event.CONNECTION_FINAL" class="py-name" href="#" onclick="return doclink('link-979', 'CONNECTION_FINAL', 'link-979');">CONNECTION_FINAL</a></tt> <tt class="py-op">=</tt> <tt class="py-name">_core</tt><tt class="py-op">(</tt><tt class="py-name">PN_CONNECTION_FINAL</tt><tt class="py-op">,</tt> <tt class="py-string">"on_connection_final"</tt><tt class="py-op">)</tt> </tt>
<a name="L3849"></a><tt class="py-lineno">3849</tt> <tt class="py-line"> </tt>
<a name="L3850"></a><tt class="py-lineno">3850</tt> <tt class="py-line"> <tt id="link-980" class="py-name" targets="Variable proton.Event.SESSION_INIT=proton.Event-class.html#SESSION_INIT"><a title="proton.Event.SESSION_INIT" class="py-name" href="#" onclick="return doclink('link-980', 'SESSION_INIT', 'link-980');">SESSION_INIT</a></tt> <tt class="py-op">=</tt> <tt class="py-name">_core</tt><tt class="py-op">(</tt><tt class="py-name">PN_SESSION_INIT</tt><tt class="py-op">,</tt> <tt class="py-string">"on_session_init"</tt><tt class="py-op">)</tt> </tt>
<a name="L3851"></a><tt class="py-lineno">3851</tt> <tt class="py-line"> <tt id="link-981" class="py-name" targets="Variable proton.Event.SESSION_LOCAL_OPEN=proton.Event-class.html#SESSION_LOCAL_OPEN"><a title="proton.Event.SESSION_LOCAL_OPEN" class="py-name" href="#" onclick="return doclink('link-981', 'SESSION_LOCAL_OPEN', 'link-981');">SESSION_LOCAL_OPEN</a></tt> <tt class="py-op">=</tt> <tt class="py-name">_core</tt><tt class="py-op">(</tt><tt class="py-name">PN_SESSION_LOCAL_OPEN</tt><tt class="py-op">,</tt> <tt class="py-string">"on_session_local_open"</tt><tt class="py-op">)</tt> </tt>
<a name="L3852"></a><tt class="py-lineno">3852</tt> <tt class="py-line"> <tt id="link-982" class="py-name" targets="Variable proton.Event.SESSION_LOCAL_CLOSE=proton.Event-class.html#SESSION_LOCAL_CLOSE"><a title="proton.Event.SESSION_LOCAL_CLOSE" class="py-name" href="#" onclick="return doclink('link-982', 'SESSION_LOCAL_CLOSE', 'link-982');">SESSION_LOCAL_CLOSE</a></tt> <tt class="py-op">=</tt> <tt class="py-name">_core</tt><tt class="py-op">(</tt><tt class="py-name">PN_SESSION_LOCAL_CLOSE</tt><tt class="py-op">,</tt> <tt class="py-string">"on_session_local_close"</tt><tt class="py-op">)</tt> </tt>
<a name="L3853"></a><tt class="py-lineno">3853</tt> <tt class="py-line"> <tt id="link-983" class="py-name" targets="Variable proton.Event.SESSION_REMOTE_OPEN=proton.Event-class.html#SESSION_REMOTE_OPEN"><a title="proton.Event.SESSION_REMOTE_OPEN" class="py-name" href="#" onclick="return doclink('link-983', 'SESSION_REMOTE_OPEN', 'link-983');">SESSION_REMOTE_OPEN</a></tt> <tt class="py-op">=</tt> <tt class="py-name">_core</tt><tt class="py-op">(</tt><tt class="py-name">PN_SESSION_REMOTE_OPEN</tt><tt class="py-op">,</tt> <tt class="py-string">"on_session_remote_open"</tt><tt class="py-op">)</tt> </tt>
<a name="L3854"></a><tt class="py-lineno">3854</tt> <tt class="py-line"> <tt id="link-984" class="py-name" targets="Variable proton.Event.SESSION_REMOTE_CLOSE=proton.Event-class.html#SESSION_REMOTE_CLOSE"><a title="proton.Event.SESSION_REMOTE_CLOSE" class="py-name" href="#" onclick="return doclink('link-984', 'SESSION_REMOTE_CLOSE', 'link-984');">SESSION_REMOTE_CLOSE</a></tt> <tt class="py-op">=</tt> <tt class="py-name">_core</tt><tt class="py-op">(</tt><tt class="py-name">PN_SESSION_REMOTE_CLOSE</tt><tt class="py-op">,</tt> <tt class="py-string">"on_session_remote_close"</tt><tt class="py-op">)</tt> </tt>
<a name="L3855"></a><tt class="py-lineno">3855</tt> <tt class="py-line"> <tt id="link-985" class="py-name" targets="Variable proton.Event.SESSION_FINAL=proton.Event-class.html#SESSION_FINAL"><a title="proton.Event.SESSION_FINAL" class="py-name" href="#" onclick="return doclink('link-985', 'SESSION_FINAL', 'link-985');">SESSION_FINAL</a></tt> <tt class="py-op">=</tt> <tt class="py-name">_core</tt><tt class="py-op">(</tt><tt class="py-name">PN_SESSION_FINAL</tt><tt class="py-op">,</tt> <tt class="py-string">"on_session_final"</tt><tt class="py-op">)</tt> </tt>
<a name="L3856"></a><tt class="py-lineno">3856</tt> <tt class="py-line"> </tt>
<a name="L3857"></a><tt class="py-lineno">3857</tt> <tt class="py-line"> <tt id="link-986" class="py-name" targets="Variable proton.Event.LINK_INIT=proton.Event-class.html#LINK_INIT"><a title="proton.Event.LINK_INIT" class="py-name" href="#" onclick="return doclink('link-986', 'LINK_INIT', 'link-986');">LINK_INIT</a></tt> <tt class="py-op">=</tt> <tt class="py-name">_core</tt><tt class="py-op">(</tt><tt class="py-name">PN_LINK_INIT</tt><tt class="py-op">,</tt> <tt class="py-string">"on_link_init"</tt><tt class="py-op">)</tt> </tt>
<a name="L3858"></a><tt class="py-lineno">3858</tt> <tt class="py-line"> <tt id="link-987" class="py-name" targets="Variable proton.Event.LINK_LOCAL_OPEN=proton.Event-class.html#LINK_LOCAL_OPEN"><a title="proton.Event.LINK_LOCAL_OPEN" class="py-name" href="#" onclick="return doclink('link-987', 'LINK_LOCAL_OPEN', 'link-987');">LINK_LOCAL_OPEN</a></tt> <tt class="py-op">=</tt> <tt class="py-name">_core</tt><tt class="py-op">(</tt><tt class="py-name">PN_LINK_LOCAL_OPEN</tt><tt class="py-op">,</tt> <tt class="py-string">"on_link_local_open"</tt><tt class="py-op">)</tt> </tt>
<a name="L3859"></a><tt class="py-lineno">3859</tt> <tt class="py-line"> <tt id="link-988" class="py-name" targets="Variable proton.Event.LINK_LOCAL_CLOSE=proton.Event-class.html#LINK_LOCAL_CLOSE"><a title="proton.Event.LINK_LOCAL_CLOSE" class="py-name" href="#" onclick="return doclink('link-988', 'LINK_LOCAL_CLOSE', 'link-988');">LINK_LOCAL_CLOSE</a></tt> <tt class="py-op">=</tt> <tt class="py-name">_core</tt><tt class="py-op">(</tt><tt class="py-name">PN_LINK_LOCAL_CLOSE</tt><tt class="py-op">,</tt> <tt class="py-string">"on_link_local_close"</tt><tt class="py-op">)</tt> </tt>
<a name="L3860"></a><tt class="py-lineno">3860</tt> <tt class="py-line"> <tt id="link-989" class="py-name" targets="Variable proton.Event.LINK_LOCAL_DETACH=proton.Event-class.html#LINK_LOCAL_DETACH"><a title="proton.Event.LINK_LOCAL_DETACH" class="py-name" href="#" onclick="return doclink('link-989', 'LINK_LOCAL_DETACH', 'link-989');">LINK_LOCAL_DETACH</a></tt> <tt class="py-op">=</tt> <tt class="py-name">_core</tt><tt class="py-op">(</tt><tt class="py-name">PN_LINK_LOCAL_DETACH</tt><tt class="py-op">,</tt> <tt class="py-string">"on_link_local_detach"</tt><tt class="py-op">)</tt> </tt>
<a name="L3861"></a><tt class="py-lineno">3861</tt> <tt class="py-line"> <tt id="link-990" class="py-name" targets="Variable proton.Event.LINK_REMOTE_OPEN=proton.Event-class.html#LINK_REMOTE_OPEN"><a title="proton.Event.LINK_REMOTE_OPEN" class="py-name" href="#" onclick="return doclink('link-990', 'LINK_REMOTE_OPEN', 'link-990');">LINK_REMOTE_OPEN</a></tt> <tt class="py-op">=</tt> <tt class="py-name">_core</tt><tt class="py-op">(</tt><tt class="py-name">PN_LINK_REMOTE_OPEN</tt><tt class="py-op">,</tt> <tt class="py-string">"on_link_remote_open"</tt><tt class="py-op">)</tt> </tt>
<a name="L3862"></a><tt class="py-lineno">3862</tt> <tt class="py-line"> <tt id="link-991" class="py-name" targets="Variable proton.Event.LINK_REMOTE_CLOSE=proton.Event-class.html#LINK_REMOTE_CLOSE"><a title="proton.Event.LINK_REMOTE_CLOSE" class="py-name" href="#" onclick="return doclink('link-991', 'LINK_REMOTE_CLOSE', 'link-991');">LINK_REMOTE_CLOSE</a></tt> <tt class="py-op">=</tt> <tt class="py-name">_core</tt><tt class="py-op">(</tt><tt class="py-name">PN_LINK_REMOTE_CLOSE</tt><tt class="py-op">,</tt> <tt class="py-string">"on_link_remote_close"</tt><tt class="py-op">)</tt> </tt>
<a name="L3863"></a><tt class="py-lineno">3863</tt> <tt class="py-line"> <tt id="link-992" class="py-name" targets="Variable proton.Event.LINK_REMOTE_DETACH=proton.Event-class.html#LINK_REMOTE_DETACH"><a title="proton.Event.LINK_REMOTE_DETACH" class="py-name" href="#" onclick="return doclink('link-992', 'LINK_REMOTE_DETACH', 'link-992');">LINK_REMOTE_DETACH</a></tt> <tt class="py-op">=</tt> <tt class="py-name">_core</tt><tt class="py-op">(</tt><tt class="py-name">PN_LINK_REMOTE_DETACH</tt><tt class="py-op">,</tt> <tt class="py-string">"on_link_remote_detach"</tt><tt class="py-op">)</tt> </tt>
<a name="L3864"></a><tt class="py-lineno">3864</tt> <tt class="py-line"> <tt id="link-993" class="py-name" targets="Variable proton.Event.LINK_FLOW=proton.Event-class.html#LINK_FLOW"><a title="proton.Event.LINK_FLOW" class="py-name" href="#" onclick="return doclink('link-993', 'LINK_FLOW', 'link-993');">LINK_FLOW</a></tt> <tt class="py-op">=</tt> <tt class="py-name">_core</tt><tt class="py-op">(</tt><tt class="py-name">PN_LINK_FLOW</tt><tt class="py-op">,</tt> <tt class="py-string">"on_link_flow"</tt><tt class="py-op">)</tt> </tt>
<a name="L3865"></a><tt class="py-lineno">3865</tt> <tt class="py-line"> <tt id="link-994" class="py-name" targets="Variable proton.Event.LINK_FINAL=proton.Event-class.html#LINK_FINAL"><a title="proton.Event.LINK_FINAL" class="py-name" href="#" onclick="return doclink('link-994', 'LINK_FINAL', 'link-994');">LINK_FINAL</a></tt> <tt class="py-op">=</tt> <tt class="py-name">_core</tt><tt class="py-op">(</tt><tt class="py-name">PN_LINK_FINAL</tt><tt class="py-op">,</tt> <tt class="py-string">"on_link_final"</tt><tt class="py-op">)</tt> </tt>
<a name="L3866"></a><tt class="py-lineno">3866</tt> <tt class="py-line"> </tt>
<a name="L3867"></a><tt class="py-lineno">3867</tt> <tt class="py-line"> <tt id="link-995" class="py-name" targets="Variable proton.Event.DELIVERY=proton.Event-class.html#DELIVERY"><a title="proton.Event.DELIVERY" class="py-name" href="#" onclick="return doclink('link-995', 'DELIVERY', 'link-995');">DELIVERY</a></tt> <tt class="py-op">=</tt> <tt class="py-name">_core</tt><tt class="py-op">(</tt><tt class="py-name">PN_DELIVERY</tt><tt class="py-op">,</tt> <tt class="py-string">"on_delivery"</tt><tt class="py-op">)</tt> </tt>
<a name="L3868"></a><tt class="py-lineno">3868</tt> <tt class="py-line"> </tt>
<a name="L3869"></a><tt class="py-lineno">3869</tt> <tt class="py-line"> <tt id="link-996" class="py-name" targets="Variable proton.Event.TRANSPORT=proton.Event-class.html#TRANSPORT"><a title="proton.Event.TRANSPORT" class="py-name" href="#" onclick="return doclink('link-996', 'TRANSPORT', 'link-996');">TRANSPORT</a></tt> <tt class="py-op">=</tt> <tt class="py-name">_core</tt><tt class="py-op">(</tt><tt class="py-name">PN_TRANSPORT</tt><tt class="py-op">,</tt> <tt class="py-string">"on_transport"</tt><tt class="py-op">)</tt> </tt>
<a name="L3870"></a><tt class="py-lineno">3870</tt> <tt class="py-line"> <tt id="link-997" class="py-name" targets="Variable proton.Event.TRANSPORT_ERROR=proton.Event-class.html#TRANSPORT_ERROR"><a title="proton.Event.TRANSPORT_ERROR" class="py-name" href="#" onclick="return doclink('link-997', 'TRANSPORT_ERROR', 'link-997');">TRANSPORT_ERROR</a></tt> <tt class="py-op">=</tt> <tt class="py-name">_core</tt><tt class="py-op">(</tt><tt class="py-name">PN_TRANSPORT_ERROR</tt><tt class="py-op">,</tt> <tt class="py-string">"on_transport_error"</tt><tt class="py-op">)</tt> </tt>
<a name="L3871"></a><tt class="py-lineno">3871</tt> <tt class="py-line"> <tt id="link-998" class="py-name" targets="Variable proton.Event.TRANSPORT_HEAD_CLOSED=proton.Event-class.html#TRANSPORT_HEAD_CLOSED"><a title="proton.Event.TRANSPORT_HEAD_CLOSED" class="py-name" href="#" onclick="return doclink('link-998', 'TRANSPORT_HEAD_CLOSED', 'link-998');">TRANSPORT_HEAD_CLOSED</a></tt> <tt class="py-op">=</tt> <tt class="py-name">_core</tt><tt class="py-op">(</tt><tt class="py-name">PN_TRANSPORT_HEAD_CLOSED</tt><tt class="py-op">,</tt> <tt class="py-string">"on_transport_head_closed"</tt><tt class="py-op">)</tt> </tt>
<a name="L3872"></a><tt class="py-lineno">3872</tt> <tt class="py-line"> <tt id="link-999" class="py-name" targets="Variable proton.Event.TRANSPORT_TAIL_CLOSED=proton.Event-class.html#TRANSPORT_TAIL_CLOSED"><a title="proton.Event.TRANSPORT_TAIL_CLOSED" class="py-name" href="#" onclick="return doclink('link-999', 'TRANSPORT_TAIL_CLOSED', 'link-999');">TRANSPORT_TAIL_CLOSED</a></tt> <tt class="py-op">=</tt> <tt class="py-name">_core</tt><tt class="py-op">(</tt><tt class="py-name">PN_TRANSPORT_TAIL_CLOSED</tt><tt class="py-op">,</tt> <tt class="py-string">"on_transport_tail_closed"</tt><tt class="py-op">)</tt> </tt>
<a name="L3873"></a><tt class="py-lineno">3873</tt> <tt class="py-line"> <tt id="link-1000" class="py-name" targets="Variable proton.Event.TRANSPORT_CLOSED=proton.Event-class.html#TRANSPORT_CLOSED"><a title="proton.Event.TRANSPORT_CLOSED" class="py-name" href="#" onclick="return doclink('link-1000', 'TRANSPORT_CLOSED', 'link-1000');">TRANSPORT_CLOSED</a></tt> <tt class="py-op">=</tt> <tt class="py-name">_core</tt><tt class="py-op">(</tt><tt class="py-name">PN_TRANSPORT_CLOSED</tt><tt class="py-op">,</tt> <tt class="py-string">"on_transport_closed"</tt><tt class="py-op">)</tt> </tt>
<a name="L3874"></a><tt class="py-lineno">3874</tt> <tt class="py-line"> </tt>
<a name="L3875"></a><tt class="py-lineno">3875</tt> <tt class="py-line"> <tt id="link-1001" class="py-name" targets="Variable proton.Event.SELECTABLE_INIT=proton.Event-class.html#SELECTABLE_INIT"><a title="proton.Event.SELECTABLE_INIT" class="py-name" href="#" onclick="return doclink('link-1001', 'SELECTABLE_INIT', 'link-1001');">SELECTABLE_INIT</a></tt> <tt class="py-op">=</tt> <tt class="py-name">_core</tt><tt class="py-op">(</tt><tt class="py-name">PN_SELECTABLE_INIT</tt><tt class="py-op">,</tt> <tt class="py-string">"on_selectable_init"</tt><tt class="py-op">)</tt> </tt>
<a name="L3876"></a><tt class="py-lineno">3876</tt> <tt class="py-line"> <tt id="link-1002" class="py-name" targets="Variable proton.Event.SELECTABLE_UPDATED=proton.Event-class.html#SELECTABLE_UPDATED"><a title="proton.Event.SELECTABLE_UPDATED" class="py-name" href="#" onclick="return doclink('link-1002', 'SELECTABLE_UPDATED', 'link-1002');">SELECTABLE_UPDATED</a></tt> <tt class="py-op">=</tt> <tt class="py-name">_core</tt><tt class="py-op">(</tt><tt class="py-name">PN_SELECTABLE_UPDATED</tt><tt class="py-op">,</tt> <tt class="py-string">"on_selectable_updated"</tt><tt class="py-op">)</tt> </tt>
<a name="L3877"></a><tt class="py-lineno">3877</tt> <tt class="py-line"> <tt id="link-1003" class="py-name" targets="Variable proton.Event.SELECTABLE_READABLE=proton.Event-class.html#SELECTABLE_READABLE"><a title="proton.Event.SELECTABLE_READABLE" class="py-name" href="#" onclick="return doclink('link-1003', 'SELECTABLE_READABLE', 'link-1003');">SELECTABLE_READABLE</a></tt> <tt class="py-op">=</tt> <tt class="py-name">_core</tt><tt class="py-op">(</tt><tt class="py-name">PN_SELECTABLE_READABLE</tt><tt class="py-op">,</tt> <tt class="py-string">"on_selectable_readable"</tt><tt class="py-op">)</tt> </tt>
<a name="L3878"></a><tt class="py-lineno">3878</tt> <tt class="py-line"> <tt id="link-1004" class="py-name" targets="Variable proton.Event.SELECTABLE_WRITABLE=proton.Event-class.html#SELECTABLE_WRITABLE"><a title="proton.Event.SELECTABLE_WRITABLE" class="py-name" href="#" onclick="return doclink('link-1004', 'SELECTABLE_WRITABLE', 'link-1004');">SELECTABLE_WRITABLE</a></tt> <tt class="py-op">=</tt> <tt class="py-name">_core</tt><tt class="py-op">(</tt><tt class="py-name">PN_SELECTABLE_WRITABLE</tt><tt class="py-op">,</tt> <tt class="py-string">"on_selectable_writable"</tt><tt class="py-op">)</tt> </tt>
<a name="L3879"></a><tt class="py-lineno">3879</tt> <tt class="py-line"> <tt id="link-1005" class="py-name" targets="Variable proton.Event.SELECTABLE_EXPIRED=proton.Event-class.html#SELECTABLE_EXPIRED"><a title="proton.Event.SELECTABLE_EXPIRED" class="py-name" href="#" onclick="return doclink('link-1005', 'SELECTABLE_EXPIRED', 'link-1005');">SELECTABLE_EXPIRED</a></tt> <tt class="py-op">=</tt> <tt class="py-name">_core</tt><tt class="py-op">(</tt><tt class="py-name">PN_SELECTABLE_EXPIRED</tt><tt class="py-op">,</tt> <tt class="py-string">"on_selectable_expired"</tt><tt class="py-op">)</tt> </tt>
<a name="L3880"></a><tt class="py-lineno">3880</tt> <tt class="py-line"> <tt id="link-1006" class="py-name" targets="Variable proton.Event.SELECTABLE_ERROR=proton.Event-class.html#SELECTABLE_ERROR"><a title="proton.Event.SELECTABLE_ERROR" class="py-name" href="#" onclick="return doclink('link-1006', 'SELECTABLE_ERROR', 'link-1006');">SELECTABLE_ERROR</a></tt> <tt class="py-op">=</tt> <tt class="py-name">_core</tt><tt class="py-op">(</tt><tt class="py-name">PN_SELECTABLE_ERROR</tt><tt class="py-op">,</tt> <tt class="py-string">"on_selectable_error"</tt><tt class="py-op">)</tt> </tt>
<a name="L3881"></a><tt class="py-lineno">3881</tt> <tt class="py-line"> <tt id="link-1007" class="py-name" targets="Variable proton.Event.SELECTABLE_FINAL=proton.Event-class.html#SELECTABLE_FINAL"><a title="proton.Event.SELECTABLE_FINAL" class="py-name" href="#" onclick="return doclink('link-1007', 'SELECTABLE_FINAL', 'link-1007');">SELECTABLE_FINAL</a></tt> <tt class="py-op">=</tt> <tt class="py-name">_core</tt><tt class="py-op">(</tt><tt class="py-name">PN_SELECTABLE_FINAL</tt><tt class="py-op">,</tt> <tt class="py-string">"on_selectable_final"</tt><tt class="py-op">)</tt> </tt>
<a name="L3882"></a><tt class="py-lineno">3882</tt> <tt class="py-line"> </tt>
<a name="L3883"></a><tt class="py-lineno">3883</tt> <tt class="py-line"> <tt class="py-decorator">@</tt><tt class="py-decorator">staticmethod</tt> </tt>
<a name="Event.wrap"></a><div id="Event.wrap-def"><a name="L3884"></a><tt class="py-lineno">3884</tt> <a class="py-toggle" href="#" id="Event.wrap-toggle" onclick="return toggle('Event.wrap');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Event-class.html#wrap">wrap</a><tt class="py-op">(</tt><tt class="py-param">impl</tt><tt class="py-op">,</tt> <tt class="py-param">number</tt><tt class="py-op">=</tt><tt class="py-name">None</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Event.wrap-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Event.wrap-expanded"><a name="L3885"></a><tt class="py-lineno">3885</tt> <tt class="py-line"> <tt class="py-keyword">if</tt> <tt class="py-name">impl</tt> <tt class="py-keyword">is</tt> <tt class="py-name">None</tt><tt class="py-op">:</tt> </tt>
<a name="L3886"></a><tt class="py-lineno">3886</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt class="py-name">None</tt> </tt>
<a name="L3887"></a><tt class="py-lineno">3887</tt> <tt class="py-line"> </tt>
<a name="L3888"></a><tt class="py-lineno">3888</tt> <tt class="py-line"> <tt class="py-keyword">if</tt> <tt class="py-name">number</tt> <tt class="py-keyword">is</tt> <tt class="py-name">None</tt><tt class="py-op">:</tt> </tt>
<a name="L3889"></a><tt class="py-lineno">3889</tt> <tt class="py-line"> <tt class="py-name">number</tt> <tt class="py-op">=</tt> <tt class="py-name">pn_event_type</tt><tt class="py-op">(</tt><tt class="py-name">impl</tt><tt class="py-op">)</tt> </tt>
<a name="L3890"></a><tt class="py-lineno">3890</tt> <tt class="py-line"> </tt>
<a name="L3891"></a><tt class="py-lineno">3891</tt> <tt class="py-line"> <tt class="py-name">event</tt> <tt class="py-op">=</tt> <tt id="link-1008" class="py-name"><a title="proton.Event" class="py-name" href="#" onclick="return doclink('link-1008', 'Event', 'link-934');">Event</a></tt><tt class="py-op">(</tt><tt class="py-name">impl</tt><tt class="py-op">,</tt> <tt class="py-name">number</tt><tt class="py-op">)</tt> </tt>
<a name="L3892"></a><tt class="py-lineno">3892</tt> <tt class="py-line"> </tt>
<a name="L3893"></a><tt class="py-lineno">3893</tt> <tt class="py-line"> <tt class="py-keyword">if</tt> <tt class="py-name">isinstance</tt><tt class="py-op">(</tt><tt class="py-name">event</tt><tt class="py-op">.</tt><tt id="link-1009" class="py-name"><a title="proton.Event.context" class="py-name" href="#" onclick="return doclink('link-1009', 'context', 'link-959');">context</a></tt><tt class="py-op">,</tt> <tt class="py-name">EventBase</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
<a name="L3894"></a><tt class="py-lineno">3894</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt class="py-name">event</tt><tt class="py-op">.</tt><tt id="link-1010" class="py-name"><a title="proton.Event.context" class="py-name" href="#" onclick="return doclink('link-1010', 'context', 'link-959');">context</a></tt> </tt>
<a name="L3895"></a><tt class="py-lineno">3895</tt> <tt class="py-line"> <tt class="py-keyword">else</tt><tt class="py-op">:</tt> </tt>
<a name="L3896"></a><tt class="py-lineno">3896</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt class="py-name">event</tt> </tt>
</div><a name="L3897"></a><tt class="py-lineno">3897</tt> <tt class="py-line"> </tt>
<a name="Event.__init__"></a><div id="Event.__init__-def"><a name="L3898"></a><tt class="py-lineno">3898</tt> <a class="py-toggle" href="#" id="Event.__init__-toggle" onclick="return toggle('Event.__init__');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Event-class.html#__init__">__init__</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">impl</tt><tt class="py-op">,</tt> <tt class="py-param">number</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Event.__init__-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Event.__init__-expanded"><a name="L3899"></a><tt class="py-lineno">3899</tt> <tt class="py-line"> <tt id="link-1011" class="py-name"><a title="proton.wrapper.Wrapper" class="py-name" href="#" onclick="return doclink('link-1011', 'Wrapper', 'link-1');">Wrapper</a></tt><tt class="py-op">.</tt><tt id="link-1012" class="py-name"><a title="proton.Array.__init__
proton.Collector.__init__
proton.Condition.__init__
proton.Connection.__init__
proton.Data.__init__
proton.Delivery.__init__
proton.Described.__init__
proton.Disposition.__init__
proton.Event.__init__
proton.EventType.__init__
proton.Link.__init__
proton.Message.__init__
proton.Messenger.__init__
proton.SASL.__init__
proton.SSLDomain.__init__
proton.SSLSessionDetails.__init__
proton.Session.__init__
proton.Terminus.__init__
proton.Transport.__init__
proton.Url.PartDescriptor.__init__
proton.Url.__init__
proton.handlers.CFlowController.__init__
proton.handlers.CHandshaker.__init__
proton.handlers.EndpointStateHandler.__init__
proton.handlers.IOHandler.__init__
proton.handlers.IncomingMessageHandler.__init__
proton.handlers.MessagingHandler.__init__
proton.handlers.OutgoingMessageHandler.__init__
proton.handlers.PythonIO.__init__
proton.handlers.TransactionalClientHandler.__init__
proton.reactor.Acceptor.__init__
proton.reactor.ApplicationEvent.__init__
proton.reactor.Backoff.__init__
proton.reactor.Connector.__init__
proton.reactor.Container.__init__
proton.reactor.DynamicNodeProperties.__init__
proton.reactor.EventInjector.__init__
proton.reactor.Filter.__init__
proton.reactor.GlobalOverrides.__init__
proton.reactor.Reactor.__init__
proton.reactor.SSLConfig.__init__
proton.reactor.Selector.__init__
proton.reactor.SessionPerConnection.__init__
proton.reactor.Task.__init__
proton.reactor.Transaction.__init__
proton.reactor.Urls.__init__
proton.utils.AtomicCount.__init__
proton.utils.BlockingConnection.__init__
proton.utils.BlockingLink.__init__
proton.utils.BlockingReceiver.__init__
proton.utils.BlockingSender.__init__
proton.utils.ConnectionClosed.__init__
proton.utils.Fetcher.__init__
proton.utils.LinkDetached.__init__
proton.utils.SendException.__init__
proton.utils.SyncRequestResponse.__init__
proton.wrapper.Wrapper.__init__" class="py-name" href="#" onclick="return doclink('link-1012', '__init__', 'link-242');">__init__</a></tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">,</tt> <tt class="py-name">impl</tt><tt class="py-op">,</tt> <tt class="py-name">pn_event_attachments</tt><tt class="py-op">)</tt> </tt>
<a name="L3900"></a><tt class="py-lineno">3900</tt> <tt class="py-line"> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">__dict__</tt><tt class="py-op">[</tt><tt class="py-string">"type"</tt><tt class="py-op">]</tt> <tt class="py-op">=</tt> <tt id="link-1013" class="py-name"><a title="proton.EventType" class="py-name" href="#" onclick="return doclink('link-1013', 'EventType', 'link-967');">EventType</a></tt><tt class="py-op">.</tt><tt id="link-1014" class="py-name"><a title="proton.EventType.TYPES" class="py-name" href="#" onclick="return doclink('link-1014', 'TYPES', 'link-939');">TYPES</a></tt><tt class="py-op">[</tt><tt class="py-name">number</tt><tt class="py-op">]</tt> </tt>
</div><a name="L3901"></a><tt class="py-lineno">3901</tt> <tt class="py-line"> </tt>
<a name="Event._init"></a><div id="Event._init-def"><a name="L3902"></a><tt class="py-lineno">3902</tt> <a class="py-toggle" href="#" id="Event._init-toggle" onclick="return toggle('Event._init');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Event-class.html#_init">_init</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Event._init-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Event._init-expanded"><a name="L3903"></a><tt class="py-lineno">3903</tt> <tt class="py-line"> <tt class="py-keyword">pass</tt> </tt>
</div><a name="L3904"></a><tt class="py-lineno">3904</tt> <tt class="py-line"> </tt>
<a name="Event.copy"></a><div id="Event.copy-def"><a name="L3905"></a><tt class="py-lineno">3905</tt> <a class="py-toggle" href="#" id="Event.copy-toggle" onclick="return toggle('Event.copy');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Event-class.html#copy">copy</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Event.copy-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Event.copy-expanded"><a name="L3906"></a><tt class="py-lineno">3906</tt> <tt class="py-line"> <tt id="link-1015" class="py-name" targets="Method proton.Data.copy()=proton.Data-class.html#copy,Method proton.Event.copy()=proton.Event-class.html#copy,Method proton.Terminus.copy()=proton.Terminus-class.html#copy"><a title="proton.Data.copy
proton.Event.copy
proton.Terminus.copy" class="py-name" href="#" onclick="return doclink('link-1015', 'copy', 'link-1015');">copy</a></tt> <tt class="py-op">=</tt> <tt class="py-name">pn_event_copy</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_impl</tt><tt class="py-op">)</tt> </tt>
<a name="L3907"></a><tt class="py-lineno">3907</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt id="link-1016" class="py-name"><a title="proton.Event" class="py-name" href="#" onclick="return doclink('link-1016', 'Event', 'link-934');">Event</a></tt><tt class="py-op">.</tt><tt id="link-1017" class="py-name"><a title="proton.Connection.wrap
proton.Delivery.wrap
proton.Event.wrap
proton.Link.wrap
proton.Session.wrap
proton.Transport.wrap
proton.reactor.Reactor.wrap
proton.reactor.Task.wrap" class="py-name" href="#" onclick="return doclink('link-1017', 'wrap', 'link-88');">wrap</a></tt><tt class="py-op">(</tt><tt id="link-1018" class="py-name"><a title="proton.Data.copy
proton.Event.copy
proton.Terminus.copy" class="py-name" href="#" onclick="return doclink('link-1018', 'copy', 'link-1015');">copy</a></tt><tt class="py-op">)</tt> </tt>
</div><a name="L3908"></a><tt class="py-lineno">3908</tt> <tt class="py-line"> </tt>
<a name="L3909"></a><tt class="py-lineno">3909</tt> <tt class="py-line"> <tt class="py-decorator">@</tt><tt class="py-decorator">property</tt> </tt>
<a name="Event.clazz"></a><div id="Event.clazz-def"><a name="L3910"></a><tt class="py-lineno">3910</tt> <a class="py-toggle" href="#" id="Event.clazz-toggle" onclick="return toggle('Event.clazz');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Event-class.html#clazz">clazz</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Event.clazz-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Event.clazz-expanded"><a name="L3911"></a><tt class="py-lineno">3911</tt> <tt class="py-line"> <tt class="py-name">cls</tt> <tt class="py-op">=</tt> <tt class="py-name">pn_event_class</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_impl</tt><tt class="py-op">)</tt> </tt>
<a name="L3912"></a><tt class="py-lineno">3912</tt> <tt class="py-line"> <tt class="py-keyword">if</tt> <tt class="py-name">cls</tt><tt class="py-op">:</tt> </tt>
<a name="L3913"></a><tt class="py-lineno">3913</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt class="py-name">pn_class_name</tt><tt class="py-op">(</tt><tt class="py-name">cls</tt><tt class="py-op">)</tt> </tt>
<a name="L3914"></a><tt class="py-lineno">3914</tt> <tt class="py-line"> <tt class="py-keyword">else</tt><tt class="py-op">:</tt> </tt>
<a name="L3915"></a><tt class="py-lineno">3915</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt class="py-name">None</tt> </tt>
</div><a name="L3916"></a><tt class="py-lineno">3916</tt> <tt class="py-line"> </tt>
<a name="L3917"></a><tt class="py-lineno">3917</tt> <tt class="py-line"> <tt class="py-decorator">@</tt><tt class="py-decorator">property</tt> </tt>
<a name="Event.root"></a><div id="Event.root-def"><a name="L3918"></a><tt class="py-lineno">3918</tt> <a class="py-toggle" href="#" id="Event.root-toggle" onclick="return toggle('Event.root');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Event-class.html#root">root</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Event.root-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Event.root-expanded"><a name="L3919"></a><tt class="py-lineno">3919</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt class="py-name">WrappedHandler</tt><tt class="py-op">.</tt><tt id="link-1019" class="py-name"><a title="proton.Connection.wrap
proton.Delivery.wrap
proton.Event.wrap
proton.Link.wrap
proton.Session.wrap
proton.Transport.wrap
proton.reactor.Reactor.wrap
proton.reactor.Task.wrap" class="py-name" href="#" onclick="return doclink('link-1019', 'wrap', 'link-88');">wrap</a></tt><tt class="py-op">(</tt><tt class="py-name">pn_event_root</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_impl</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
</div><a name="L3920"></a><tt class="py-lineno">3920</tt> <tt class="py-line"> </tt>
<a name="L3921"></a><tt class="py-lineno">3921</tt> <tt class="py-line"> <tt class="py-decorator">@</tt><tt class="py-decorator">property</tt> </tt>
<a name="Event.context"></a><div id="Event.context-def"><a name="L3922"></a><tt class="py-lineno">3922</tt> <a class="py-toggle" href="#" id="Event.context-toggle" onclick="return toggle('Event.context');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Event-class.html#context">context</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Event.context-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Event.context-expanded"><a name="L3923"></a><tt class="py-lineno">3923</tt> <tt class="py-line"> <tt class="py-docstring">"""Returns the context object associated with the event. The type of this depend on the type of event."""</tt> </tt>
<a name="L3924"></a><tt class="py-lineno">3924</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt id="link-1020" class="py-name"><a title="proton.wrappers" class="py-name" href="#" onclick="return doclink('link-1020', 'wrappers', 'link-922');">wrappers</a></tt><tt class="py-op">[</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-1021" class="py-name"><a title="proton.Event.clazz" class="py-name" href="#" onclick="return doclink('link-1021', 'clazz', 'link-957');">clazz</a></tt><tt class="py-op">]</tt><tt class="py-op">(</tt><tt class="py-name">pn_event_context</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_impl</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
</div><a name="L3925"></a><tt class="py-lineno">3925</tt> <tt class="py-line"> </tt>
<a name="Event.dispatch"></a><div id="Event.dispatch-def"><a name="L3926"></a><tt class="py-lineno">3926</tt> <a class="py-toggle" href="#" id="Event.dispatch-toggle" onclick="return toggle('Event.dispatch');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Event-class.html#dispatch">dispatch</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">handler</tt><tt class="py-op">,</tt> <tt class="py-param">type</tt><tt class="py-op">=</tt><tt class="py-name">None</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Event.dispatch-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Event.dispatch-expanded"><a name="L3927"></a><tt class="py-lineno">3927</tt> <tt class="py-line"> <tt id="link-1022" class="py-name"><a title="proton.Data.type
proton.Disposition.type
proton.Terminus.type" class="py-name" href="#" onclick="return doclink('link-1022', 'type', 'link-152');">type</a></tt> <tt class="py-op">=</tt> <tt id="link-1023" class="py-name"><a title="proton.Data.type
proton.Disposition.type
proton.Terminus.type" class="py-name" href="#" onclick="return doclink('link-1023', 'type', 'link-152');">type</a></tt> <tt class="py-keyword">or</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-1024" class="py-name"><a title="proton.Data.type
proton.Disposition.type
proton.Terminus.type" class="py-name" href="#" onclick="return doclink('link-1024', 'type', 'link-152');">type</a></tt> </tt>
<a name="L3928"></a><tt class="py-lineno">3928</tt> <tt class="py-line"> <tt class="py-keyword">if</tt> <tt class="py-name">isinstance</tt><tt class="py-op">(</tt><tt id="link-1025" class="py-name"><a title="proton.Endpoint.handler
proton.reactor.Reactor.handler" class="py-name" href="#" onclick="return doclink('link-1025', 'handler', 'link-540');">handler</a></tt><tt class="py-op">,</tt> <tt class="py-name">WrappedHandler</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
<a name="L3929"></a><tt class="py-lineno">3929</tt> <tt class="py-line"> <tt class="py-name">pn_handler_dispatch</tt><tt class="py-op">(</tt><tt id="link-1026" class="py-name"><a title="proton.Endpoint.handler
proton.reactor.Reactor.handler" class="py-name" href="#" onclick="return doclink('link-1026', 'handler', 'link-540');">handler</a></tt><tt class="py-op">.</tt><tt class="py-name">_impl</tt><tt class="py-op">,</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_impl</tt><tt class="py-op">,</tt> <tt id="link-1027" class="py-name"><a title="proton.Data.type
proton.Disposition.type
proton.Terminus.type" class="py-name" href="#" onclick="return doclink('link-1027', 'type', 'link-152');">type</a></tt><tt class="py-op">.</tt><tt class="py-name">number</tt><tt class="py-op">)</tt> </tt>
<a name="L3930"></a><tt class="py-lineno">3930</tt> <tt class="py-line"> <tt class="py-keyword">else</tt><tt class="py-op">:</tt> </tt>
<a name="L3931"></a><tt class="py-lineno">3931</tt> <tt class="py-line"> <tt class="py-name">result</tt> <tt class="py-op">=</tt> <tt id="link-1028" class="py-name"><a title="proton.Event.dispatch
proton.dispatch" class="py-name" href="#" onclick="return doclink('link-1028', 'dispatch', 'link-963');">dispatch</a></tt><tt class="py-op">(</tt><tt id="link-1029" class="py-name"><a title="proton.Endpoint.handler
proton.reactor.Reactor.handler" class="py-name" href="#" onclick="return doclink('link-1029', 'handler', 'link-540');">handler</a></tt><tt class="py-op">,</tt> <tt id="link-1030" class="py-name"><a title="proton.Data.type
proton.Disposition.type
proton.Terminus.type" class="py-name" href="#" onclick="return doclink('link-1030', 'type', 'link-152');">type</a></tt><tt class="py-op">.</tt><tt class="py-name">method</tt><tt class="py-op">,</tt> <tt class="py-name">self</tt><tt class="py-op">)</tt> </tt>
<a name="L3932"></a><tt class="py-lineno">3932</tt> <tt class="py-line"> <tt class="py-keyword">if</tt> <tt class="py-name">result</tt> <tt class="py-op">!=</tt> <tt id="link-1031" class="py-name"><a title="proton.DELEGATED" class="py-name" href="#" onclick="return doclink('link-1031', 'DELEGATED', 'link-966');">DELEGATED</a></tt> <tt class="py-keyword">and</tt> <tt class="py-name">hasattr</tt><tt class="py-op">(</tt><tt id="link-1032" class="py-name"><a title="proton.Endpoint.handler
proton.reactor.Reactor.handler" class="py-name" href="#" onclick="return doclink('link-1032', 'handler', 'link-540');">handler</a></tt><tt class="py-op">,</tt> <tt class="py-string">"handlers"</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
<a name="L3933"></a><tt class="py-lineno">3933</tt> <tt class="py-line"> <tt class="py-keyword">for</tt> <tt class="py-name">h</tt> <tt class="py-keyword">in</tt> <tt id="link-1033" class="py-name"><a title="proton.Endpoint.handler
proton.reactor.Reactor.handler" class="py-name" href="#" onclick="return doclink('link-1033', 'handler', 'link-540');">handler</a></tt><tt class="py-op">.</tt><tt id="link-1034" class="py-name" targets="Method proton.Handler.handlers()=proton.Handler-class.html#handlers,Module proton.handlers=proton.handlers-module.html"><a title="proton.Handler.handlers
proton.handlers" class="py-name" href="#" onclick="return doclink('link-1034', 'handlers', 'link-1034');">handlers</a></tt><tt class="py-op">:</tt> </tt>
<a name="L3934"></a><tt class="py-lineno">3934</tt> <tt class="py-line"> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-1035" class="py-name"><a title="proton.Event.dispatch
proton.dispatch" class="py-name" href="#" onclick="return doclink('link-1035', 'dispatch', 'link-963');">dispatch</a></tt><tt class="py-op">(</tt><tt class="py-name">h</tt><tt class="py-op">,</tt> <tt id="link-1036" class="py-name"><a title="proton.Data.type
proton.Disposition.type
proton.Terminus.type" class="py-name" href="#" onclick="return doclink('link-1036', 'type', 'link-152');">type</a></tt><tt class="py-op">)</tt> </tt>
</div><a name="L3935"></a><tt class="py-lineno">3935</tt> <tt class="py-line"> </tt>
<a name="L3936"></a><tt class="py-lineno">3936</tt> <tt class="py-line"> </tt>
<a name="L3937"></a><tt class="py-lineno">3937</tt> <tt class="py-line"> <tt class="py-decorator">@</tt><tt class="py-decorator">property</tt> </tt>
<a name="Event.reactor"></a><div id="Event.reactor-def"><a name="L3938"></a><tt class="py-lineno">3938</tt> <a class="py-toggle" href="#" id="Event.reactor-toggle" onclick="return toggle('Event.reactor');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Event-class.html#reactor">reactor</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Event.reactor-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Event.reactor-expanded"><a name="L3939"></a><tt class="py-lineno">3939</tt> <tt class="py-line"> <tt class="py-docstring">"""Returns the reactor associated with the event."""</tt> </tt>
<a name="L3940"></a><tt class="py-lineno">3940</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt id="link-1037" class="py-name"><a title="proton.wrappers" class="py-name" href="#" onclick="return doclink('link-1037', 'wrappers', 'link-922');">wrappers</a></tt><tt class="py-op">.</tt><tt id="link-1038" class="py-name"><a title="proton.Messenger.get" class="py-name" href="#" onclick="return doclink('link-1038', 'get', 'link-50');">get</a></tt><tt class="py-op">(</tt><tt class="py-string">"pn_reactor"</tt><tt class="py-op">,</tt> <tt class="py-name">_none</tt><tt class="py-op">)</tt><tt class="py-op">(</tt><tt class="py-name">pn_event_reactor</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_impl</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
</div><a name="L3941"></a><tt class="py-lineno">3941</tt> <tt class="py-line"> </tt>
<a name="Event.__getattr__"></a><div id="Event.__getattr__-def"><a name="L3942"></a><tt class="py-lineno">3942</tt> <a class="py-toggle" href="#" id="Event.__getattr__-toggle" onclick="return toggle('Event.__getattr__');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Event-class.html#__getattr__">__getattr__</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">name</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Event.__getattr__-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Event.__getattr__-expanded"><a name="L3943"></a><tt class="py-lineno">3943</tt> <tt class="py-line"> <tt class="py-name">r</tt> <tt class="py-op">=</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-1039" class="py-name"><a title="proton.Event.reactor
proton.reactor" class="py-name" href="#" onclick="return doclink('link-1039', 'reactor', 'link-524');">reactor</a></tt> </tt>
<a name="L3944"></a><tt class="py-lineno">3944</tt> <tt class="py-line"> <tt class="py-keyword">if</tt> <tt class="py-name">r</tt> <tt class="py-keyword">and</tt> <tt class="py-name">hasattr</tt><tt class="py-op">(</tt><tt class="py-name">r</tt><tt class="py-op">,</tt> <tt class="py-string">'subclass'</tt><tt class="py-op">)</tt> <tt class="py-keyword">and</tt> <tt class="py-name">r</tt><tt class="py-op">.</tt><tt class="py-name">subclass</tt><tt class="py-op">.</tt><tt class="py-name">__name__</tt><tt class="py-op">.</tt><tt class="py-name">lower</tt><tt class="py-op">(</tt><tt class="py-op">)</tt> <tt class="py-op">==</tt> <tt id="link-1040" class="py-name"><a title="proton.Link.name
proton.Messenger.name" class="py-name" href="#" onclick="return doclink('link-1040', 'name', 'link-25');">name</a></tt><tt class="py-op">:</tt> </tt>
<a name="L3945"></a><tt class="py-lineno">3945</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt class="py-name">r</tt> </tt>
<a name="L3946"></a><tt class="py-lineno">3946</tt> <tt class="py-line"> <tt class="py-keyword">else</tt><tt class="py-op">:</tt> </tt>
<a name="L3947"></a><tt class="py-lineno">3947</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt class="py-name">super</tt><tt class="py-op">(</tt><tt id="link-1041" class="py-name"><a title="proton.Event" class="py-name" href="#" onclick="return doclink('link-1041', 'Event', 'link-934');">Event</a></tt><tt class="py-op">,</tt> <tt class="py-name">self</tt><tt class="py-op">)</tt><tt class="py-op">.</tt><tt id="link-1042" class="py-name" targets="Method proton.Event.__getattr__()=proton.Event-class.html#__getattr__,Method proton.utils.BlockingLink.__getattr__()=proton.utils.BlockingLink-class.html#__getattr__,Method proton.wrapper.Wrapper.__getattr__()=proton.wrapper.Wrapper-class.html#__getattr__"><a title="proton.Event.__getattr__
proton.utils.BlockingLink.__getattr__
proton.wrapper.Wrapper.__getattr__" class="py-name" href="#" onclick="return doclink('link-1042', '__getattr__', 'link-1042');">__getattr__</a></tt><tt class="py-op">(</tt><tt id="link-1043" class="py-name"><a title="proton.Link.name
proton.Messenger.name" class="py-name" href="#" onclick="return doclink('link-1043', 'name', 'link-25');">name</a></tt><tt class="py-op">)</tt> </tt>
</div><a name="L3948"></a><tt class="py-lineno">3948</tt> <tt class="py-line"> </tt>
<a name="L3949"></a><tt class="py-lineno">3949</tt> <tt class="py-line"> <tt class="py-decorator">@</tt><tt class="py-decorator">property</tt> </tt>
<a name="Event.transport"></a><div id="Event.transport-def"><a name="L3950"></a><tt class="py-lineno">3950</tt> <a class="py-toggle" href="#" id="Event.transport-toggle" onclick="return toggle('Event.transport');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Event-class.html#transport">transport</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Event.transport-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Event.transport-expanded"><a name="L3951"></a><tt class="py-lineno">3951</tt> <tt class="py-line"> <tt class="py-docstring">"""Returns the transport associated with the event, or null if none is associated with it."""</tt> </tt>
<a name="L3952"></a><tt class="py-lineno">3952</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt id="link-1044" class="py-name"><a title="proton.Transport" class="py-name" href="#" onclick="return doclink('link-1044', 'Transport', 'link-580');">Transport</a></tt><tt class="py-op">.</tt><tt id="link-1045" class="py-name"><a title="proton.Connection.wrap
proton.Delivery.wrap
proton.Event.wrap
proton.Link.wrap
proton.Session.wrap
proton.Transport.wrap
proton.reactor.Reactor.wrap
proton.reactor.Task.wrap" class="py-name" href="#" onclick="return doclink('link-1045', 'wrap', 'link-88');">wrap</a></tt><tt class="py-op">(</tt><tt class="py-name">pn_event_transport</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_impl</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
</div><a name="L3953"></a><tt class="py-lineno">3953</tt> <tt class="py-line"> </tt>
<a name="L3954"></a><tt class="py-lineno">3954</tt> <tt class="py-line"> <tt class="py-decorator">@</tt><tt class="py-decorator">property</tt> </tt>
<a name="Event.connection"></a><div id="Event.connection-def"><a name="L3955"></a><tt class="py-lineno">3955</tt> <a class="py-toggle" href="#" id="Event.connection-toggle" onclick="return toggle('Event.connection');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Event-class.html#connection">connection</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Event.connection-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Event.connection-expanded"><a name="L3956"></a><tt class="py-lineno">3956</tt> <tt class="py-line"> <tt class="py-docstring">"""Returns the connection associated with the event, or null if none is associated with it."""</tt> </tt>
<a name="L3957"></a><tt class="py-lineno">3957</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt id="link-1046" class="py-name"><a title="proton.Connection" class="py-name" href="#" onclick="return doclink('link-1046', 'Connection', 'link-575');">Connection</a></tt><tt class="py-op">.</tt><tt id="link-1047" class="py-name"><a title="proton.Connection.wrap
proton.Delivery.wrap
proton.Event.wrap
proton.Link.wrap
proton.Session.wrap
proton.Transport.wrap
proton.reactor.Reactor.wrap
proton.reactor.Task.wrap" class="py-name" href="#" onclick="return doclink('link-1047', 'wrap', 'link-88');">wrap</a></tt><tt class="py-op">(</tt><tt class="py-name">pn_event_connection</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_impl</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
</div><a name="L3958"></a><tt class="py-lineno">3958</tt> <tt class="py-line"> </tt>
<a name="L3959"></a><tt class="py-lineno">3959</tt> <tt class="py-line"> <tt class="py-decorator">@</tt><tt class="py-decorator">property</tt> </tt>
<a name="Event.session"></a><div id="Event.session-def"><a name="L3960"></a><tt class="py-lineno">3960</tt> <a class="py-toggle" href="#" id="Event.session-toggle" onclick="return toggle('Event.session');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Event-class.html#session">session</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Event.session-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Event.session-expanded"><a name="L3961"></a><tt class="py-lineno">3961</tt> <tt class="py-line"> <tt class="py-docstring">"""Returns the session associated with the event, or null if none is associated with it."""</tt> </tt>
<a name="L3962"></a><tt class="py-lineno">3962</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt id="link-1048" class="py-name"><a title="proton.Session" class="py-name" href="#" onclick="return doclink('link-1048', 'Session', 'link-602');">Session</a></tt><tt class="py-op">.</tt><tt id="link-1049" class="py-name"><a title="proton.Connection.wrap
proton.Delivery.wrap
proton.Event.wrap
proton.Link.wrap
proton.Session.wrap
proton.Transport.wrap
proton.reactor.Reactor.wrap
proton.reactor.Task.wrap" class="py-name" href="#" onclick="return doclink('link-1049', 'wrap', 'link-88');">wrap</a></tt><tt class="py-op">(</tt><tt class="py-name">pn_event_session</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_impl</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
</div><a name="L3963"></a><tt class="py-lineno">3963</tt> <tt class="py-line"> </tt>
<a name="L3964"></a><tt class="py-lineno">3964</tt> <tt class="py-line"> <tt class="py-decorator">@</tt><tt class="py-decorator">property</tt> </tt>
<a name="Event.link"></a><div id="Event.link-def"><a name="L3965"></a><tt class="py-lineno">3965</tt> <a class="py-toggle" href="#" id="Event.link-toggle" onclick="return toggle('Event.link');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Event-class.html#link">link</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Event.link-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Event.link-expanded"><a name="L3966"></a><tt class="py-lineno">3966</tt> <tt class="py-line"> <tt class="py-docstring">"""Returns the link associated with the event, or null if none is associated with it."""</tt> </tt>
<a name="L3967"></a><tt class="py-lineno">3967</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt id="link-1050" class="py-name"><a title="proton.Link" class="py-name" href="#" onclick="return doclink('link-1050', 'Link', 'link-221');">Link</a></tt><tt class="py-op">.</tt><tt id="link-1051" class="py-name"><a title="proton.Connection.wrap
proton.Delivery.wrap
proton.Event.wrap
proton.Link.wrap
proton.Session.wrap
proton.Transport.wrap
proton.reactor.Reactor.wrap
proton.reactor.Task.wrap" class="py-name" href="#" onclick="return doclink('link-1051', 'wrap', 'link-88');">wrap</a></tt><tt class="py-op">(</tt><tt class="py-name">pn_event_link</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_impl</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
</div><a name="L3968"></a><tt class="py-lineno">3968</tt> <tt class="py-line"> </tt>
<a name="L3969"></a><tt class="py-lineno">3969</tt> <tt class="py-line"> <tt class="py-decorator">@</tt><tt class="py-decorator">property</tt> </tt>
<a name="Event.sender"></a><div id="Event.sender-def"><a name="L3970"></a><tt class="py-lineno">3970</tt> <a class="py-toggle" href="#" id="Event.sender-toggle" onclick="return toggle('Event.sender');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Event-class.html#sender">sender</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Event.sender-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Event.sender-expanded"><a name="L3971"></a><tt class="py-lineno">3971</tt> <tt class="py-line"> <tt class="py-docstring">"""Returns the sender link associated with the event, or null if</tt> </tt>
<a name="L3972"></a><tt class="py-lineno">3972</tt> <tt class="py-line"><tt class="py-docstring"> none is associated with it. This is essentially an alias for</tt> </tt>
<a name="L3973"></a><tt class="py-lineno">3973</tt> <tt class="py-line"><tt class="py-docstring"> link(), that does an additional checkon the type of the</tt> </tt>
<a name="L3974"></a><tt class="py-lineno">3974</tt> <tt class="py-line"><tt class="py-docstring"> link."""</tt> </tt>
<a name="L3975"></a><tt class="py-lineno">3975</tt> <tt class="py-line"> <tt class="py-name">l</tt> <tt class="py-op">=</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-1052" class="py-name"><a title="proton.Delivery.link
proton.Event.link" class="py-name" href="#" onclick="return doclink('link-1052', 'link', 'link-224');">link</a></tt> </tt>
<a name="L3976"></a><tt class="py-lineno">3976</tt> <tt class="py-line"> <tt class="py-keyword">if</tt> <tt class="py-name">l</tt> <tt class="py-keyword">and</tt> <tt class="py-name">l</tt><tt class="py-op">.</tt><tt id="link-1053" class="py-name"><a title="proton.Link.is_sender" class="py-name" href="#" onclick="return doclink('link-1053', 'is_sender', 'link-225');">is_sender</a></tt><tt class="py-op">:</tt> </tt>
<a name="L3977"></a><tt class="py-lineno">3977</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt class="py-name">l</tt> </tt>
<a name="L3978"></a><tt class="py-lineno">3978</tt> <tt class="py-line"> <tt class="py-keyword">else</tt><tt class="py-op">:</tt> </tt>
<a name="L3979"></a><tt class="py-lineno">3979</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt class="py-name">None</tt> </tt>
</div><a name="L3980"></a><tt class="py-lineno">3980</tt> <tt class="py-line"> </tt>
<a name="L3981"></a><tt class="py-lineno">3981</tt> <tt class="py-line"> <tt class="py-decorator">@</tt><tt class="py-decorator">property</tt> </tt>
<a name="Event.receiver"></a><div id="Event.receiver-def"><a name="L3982"></a><tt class="py-lineno">3982</tt> <a class="py-toggle" href="#" id="Event.receiver-toggle" onclick="return toggle('Event.receiver');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Event-class.html#receiver">receiver</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Event.receiver-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Event.receiver-expanded"><a name="L3983"></a><tt class="py-lineno">3983</tt> <tt class="py-line"> <tt class="py-docstring">"""Returns the receiver link associated with the event, or null if</tt> </tt>
<a name="L3984"></a><tt class="py-lineno">3984</tt> <tt class="py-line"><tt class="py-docstring"> none is associated with it. This is essentially an alias for</tt> </tt>
<a name="L3985"></a><tt class="py-lineno">3985</tt> <tt class="py-line"><tt class="py-docstring"> link(), that does an additional checkon the type of the link."""</tt> </tt>
<a name="L3986"></a><tt class="py-lineno">3986</tt> <tt class="py-line"> <tt class="py-name">l</tt> <tt class="py-op">=</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-1054" class="py-name"><a title="proton.Delivery.link
proton.Event.link" class="py-name" href="#" onclick="return doclink('link-1054', 'link', 'link-224');">link</a></tt> </tt>
<a name="L3987"></a><tt class="py-lineno">3987</tt> <tt class="py-line"> <tt class="py-keyword">if</tt> <tt class="py-name">l</tt> <tt class="py-keyword">and</tt> <tt class="py-name">l</tt><tt class="py-op">.</tt><tt id="link-1055" class="py-name" targets="Variable proton.Link.is_receiver=proton.Link-class.html#is_receiver"><a title="proton.Link.is_receiver" class="py-name" href="#" onclick="return doclink('link-1055', 'is_receiver', 'link-1055');">is_receiver</a></tt><tt class="py-op">:</tt> </tt>
<a name="L3988"></a><tt class="py-lineno">3988</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt class="py-name">l</tt> </tt>
<a name="L3989"></a><tt class="py-lineno">3989</tt> <tt class="py-line"> <tt class="py-keyword">else</tt><tt class="py-op">:</tt> </tt>
<a name="L3990"></a><tt class="py-lineno">3990</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt class="py-name">None</tt> </tt>
</div><a name="L3991"></a><tt class="py-lineno">3991</tt> <tt class="py-line"> </tt>
<a name="L3992"></a><tt class="py-lineno">3992</tt> <tt class="py-line"> <tt class="py-decorator">@</tt><tt class="py-decorator">property</tt> </tt>
<a name="Event.delivery"></a><div id="Event.delivery-def"><a name="L3993"></a><tt class="py-lineno">3993</tt> <a class="py-toggle" href="#" id="Event.delivery-toggle" onclick="return toggle('Event.delivery');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Event-class.html#delivery">delivery</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Event.delivery-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Event.delivery-expanded"><a name="L3994"></a><tt class="py-lineno">3994</tt> <tt class="py-line"> <tt class="py-docstring">"""Returns the delivery associated with the event, or null if none is associated with it."""</tt> </tt>
<a name="L3995"></a><tt class="py-lineno">3995</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt id="link-1056" class="py-name"><a title="proton.Delivery" class="py-name" href="#" onclick="return doclink('link-1056', 'Delivery', 'link-607');">Delivery</a></tt><tt class="py-op">.</tt><tt id="link-1057" class="py-name"><a title="proton.Connection.wrap
proton.Delivery.wrap
proton.Event.wrap
proton.Link.wrap
proton.Session.wrap
proton.Transport.wrap
proton.reactor.Reactor.wrap
proton.reactor.Task.wrap" class="py-name" href="#" onclick="return doclink('link-1057', 'wrap', 'link-88');">wrap</a></tt><tt class="py-op">(</tt><tt class="py-name">pn_event_delivery</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_impl</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
</div><a name="L3996"></a><tt class="py-lineno">3996</tt> <tt class="py-line"> </tt>
<a name="Event.__repr__"></a><div id="Event.__repr__-def"><a name="L3997"></a><tt class="py-lineno">3997</tt> <a class="py-toggle" href="#" id="Event.__repr__-toggle" onclick="return toggle('Event.__repr__');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Event-class.html#__repr__">__repr__</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Event.__repr__-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Event.__repr__-expanded"><a name="L3998"></a><tt class="py-lineno">3998</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt class="py-string">"%s(%s)"</tt> <tt class="py-op">%</tt> <tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-1058" class="py-name"><a title="proton.Data.type
proton.Disposition.type
proton.Terminus.type" class="py-name" href="#" onclick="return doclink('link-1058', 'type', 'link-152');">type</a></tt><tt class="py-op">,</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-1059" class="py-name"><a title="proton.Event.context" class="py-name" href="#" onclick="return doclink('link-1059', 'context', 'link-959');">context</a></tt><tt class="py-op">)</tt> </tt>
</div></div><a name="L3999"></a><tt class="py-lineno">3999</tt> <tt class="py-line"> </tt>
<a name="LazyHandlers"></a><div id="LazyHandlers-def"><a name="L4000"></a><tt class="py-lineno">4000</tt> <a class="py-toggle" href="#" id="LazyHandlers-toggle" onclick="return toggle('LazyHandlers');">-</a><tt class="py-line"><tt class="py-keyword">class</tt> <a class="py-def-name" href="proton.LazyHandlers-class.html">LazyHandlers</a><tt class="py-op">(</tt><tt class="py-base-class">object</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="LazyHandlers-collapsed" style="display:none;" pad="++++" indent="++++"></div><div id="LazyHandlers-expanded"><a name="LazyHandlers.__get__"></a><div id="LazyHandlers.__get__-def"><a name="L4001"></a><tt class="py-lineno">4001</tt> <a class="py-toggle" href="#" id="LazyHandlers.__get__-toggle" onclick="return toggle('LazyHandlers.__get__');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.LazyHandlers-class.html#__get__">__get__</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">obj</tt><tt class="py-op">,</tt> <tt class="py-param">clazz</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="LazyHandlers.__get__-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="LazyHandlers.__get__-expanded"><a name="L4002"></a><tt class="py-lineno">4002</tt> <tt class="py-line"> <tt class="py-keyword">if</tt> <tt class="py-name">obj</tt> <tt class="py-keyword">is</tt> <tt class="py-name">None</tt><tt class="py-op">:</tt> </tt>
<a name="L4003"></a><tt class="py-lineno">4003</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt class="py-name">self</tt> </tt>
<a name="L4004"></a><tt class="py-lineno">4004</tt> <tt class="py-line"> <tt class="py-name">ret</tt> <tt class="py-op">=</tt> <tt class="py-op">[</tt><tt class="py-op">]</tt> </tt>
<a name="L4005"></a><tt class="py-lineno">4005</tt> <tt class="py-line"> <tt class="py-name">obj</tt><tt class="py-op">.</tt><tt class="py-name">__dict__</tt><tt class="py-op">[</tt><tt class="py-string">'handlers'</tt><tt class="py-op">]</tt> <tt class="py-op">=</tt> <tt class="py-name">ret</tt> </tt>
<a name="L4006"></a><tt class="py-lineno">4006</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt class="py-name">ret</tt> </tt>
</div></div><a name="L4007"></a><tt class="py-lineno">4007</tt> <tt class="py-line"> </tt>
<a name="Handler"></a><div id="Handler-def"><a name="L4008"></a><tt class="py-lineno">4008</tt> <a class="py-toggle" href="#" id="Handler-toggle" onclick="return toggle('Handler');">-</a><tt class="py-line"><tt class="py-keyword">class</tt> <a class="py-def-name" href="proton.Handler-class.html">Handler</a><tt class="py-op">(</tt><tt class="py-base-class">object</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Handler-collapsed" style="display:none;" pad="++++" indent="++++"></div><div id="Handler-expanded"><a name="L4009"></a><tt class="py-lineno">4009</tt> <tt class="py-line"> <tt id="link-1060" class="py-name"><a title="proton.Handler.handlers
proton.handlers" class="py-name" href="#" onclick="return doclink('link-1060', 'handlers', 'link-1034');">handlers</a></tt> <tt class="py-op">=</tt> <tt class="py-name">LazyHandlers</tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L4010"></a><tt class="py-lineno">4010</tt> <tt class="py-line"> </tt>
<a name="Handler.on_unhandled"></a><div id="Handler.on_unhandled-def"><a name="L4011"></a><tt class="py-lineno">4011</tt> <a class="py-toggle" href="#" id="Handler.on_unhandled-toggle" onclick="return toggle('Handler.on_unhandled');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Handler-class.html#on_unhandled">on_unhandled</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">method</tt><tt class="py-op">,</tt> <tt class="py-op">*</tt><tt class="py-param">args</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Handler.on_unhandled-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Handler.on_unhandled-expanded"><a name="L4012"></a><tt class="py-lineno">4012</tt> <tt class="py-line"> <tt class="py-keyword">pass</tt> </tt>
</div></div><a name="L4013"></a><tt class="py-lineno">4013</tt> <tt class="py-line"> </tt>
<a name="_cadapter"></a><div id="_cadapter-def"><a name="L4014"></a><tt class="py-lineno">4014</tt> <a class="py-toggle" href="#" id="_cadapter-toggle" onclick="return toggle('_cadapter');">-</a><tt class="py-line"><tt class="py-keyword">class</tt> <a class="py-def-name" href="proton._cadapter-class.html">_cadapter</a><tt class="py-op">:</tt> </tt>
</div><div id="_cadapter-collapsed" style="display:none;" pad="++++" indent="++++"></div><div id="_cadapter-expanded"><a name="L4015"></a><tt class="py-lineno">4015</tt> <tt class="py-line"> </tt>
<a name="_cadapter.__init__"></a><div id="_cadapter.__init__-def"><a name="L4016"></a><tt class="py-lineno">4016</tt> <a class="py-toggle" href="#" id="_cadapter.__init__-toggle" onclick="return toggle('_cadapter.__init__');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton._cadapter-class.html#__init__">__init__</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">handler</tt><tt class="py-op">,</tt> <tt class="py-param">on_error</tt><tt class="py-op">=</tt><tt class="py-name">None</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="_cadapter.__init__-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="_cadapter.__init__-expanded"><a name="L4017"></a><tt class="py-lineno">4017</tt> <tt class="py-line"> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-1061" class="py-name"><a title="proton.Endpoint.handler
proton.reactor.Reactor.handler" class="py-name" href="#" onclick="return doclink('link-1061', 'handler', 'link-540');">handler</a></tt> <tt class="py-op">=</tt> <tt id="link-1062" class="py-name"><a title="proton.Endpoint.handler
proton.reactor.Reactor.handler" class="py-name" href="#" onclick="return doclink('link-1062', 'handler', 'link-540');">handler</a></tt> </tt>
<a name="L4018"></a><tt class="py-lineno">4018</tt> <tt class="py-line"> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-1063" class="py-name"><a title="proton.reactor.Reactor.on_error" class="py-name" href="#" onclick="return doclink('link-1063', 'on_error', 'link-528');">on_error</a></tt> <tt class="py-op">=</tt> <tt id="link-1064" class="py-name"><a title="proton.reactor.Reactor.on_error" class="py-name" href="#" onclick="return doclink('link-1064', 'on_error', 'link-528');">on_error</a></tt> </tt>
</div><a name="L4019"></a><tt class="py-lineno">4019</tt> <tt class="py-line"> </tt>
<a name="_cadapter.dispatch"></a><div id="_cadapter.dispatch-def"><a name="L4020"></a><tt class="py-lineno">4020</tt> <a class="py-toggle" href="#" id="_cadapter.dispatch-toggle" onclick="return toggle('_cadapter.dispatch');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton._cadapter-class.html#dispatch">dispatch</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">cevent</tt><tt class="py-op">,</tt> <tt class="py-param">ctype</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="_cadapter.dispatch-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="_cadapter.dispatch-expanded"><a name="L4021"></a><tt class="py-lineno">4021</tt> <tt class="py-line"> <tt class="py-name">ev</tt> <tt class="py-op">=</tt> <tt id="link-1065" class="py-name"><a title="proton.Event" class="py-name" href="#" onclick="return doclink('link-1065', 'Event', 'link-934');">Event</a></tt><tt class="py-op">.</tt><tt id="link-1066" class="py-name"><a title="proton.Connection.wrap
proton.Delivery.wrap
proton.Event.wrap
proton.Link.wrap
proton.Session.wrap
proton.Transport.wrap
proton.reactor.Reactor.wrap
proton.reactor.Task.wrap" class="py-name" href="#" onclick="return doclink('link-1066', 'wrap', 'link-88');">wrap</a></tt><tt class="py-op">(</tt><tt class="py-name">cevent</tt><tt class="py-op">,</tt> <tt class="py-name">ctype</tt><tt class="py-op">)</tt> </tt>
<a name="L4022"></a><tt class="py-lineno">4022</tt> <tt class="py-line"> <tt class="py-name">ev</tt><tt class="py-op">.</tt><tt id="link-1067" class="py-name"><a title="proton.Event.dispatch
proton.dispatch" class="py-name" href="#" onclick="return doclink('link-1067', 'dispatch', 'link-963');">dispatch</a></tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-1068" class="py-name"><a title="proton.Endpoint.handler
proton.reactor.Reactor.handler" class="py-name" href="#" onclick="return doclink('link-1068', 'handler', 'link-540');">handler</a></tt><tt class="py-op">)</tt> </tt>
</div><a name="L4023"></a><tt class="py-lineno">4023</tt> <tt class="py-line"> </tt>
<a name="_cadapter.exception"></a><div id="_cadapter.exception-def"><a name="L4024"></a><tt class="py-lineno">4024</tt> <a class="py-toggle" href="#" id="_cadapter.exception-toggle" onclick="return toggle('_cadapter.exception');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton._cadapter-class.html#exception">exception</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">exc</tt><tt class="py-op">,</tt> <tt class="py-param">val</tt><tt class="py-op">,</tt> <tt class="py-param">tb</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="_cadapter.exception-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="_cadapter.exception-expanded"><a name="L4025"></a><tt class="py-lineno">4025</tt> <tt class="py-line"> <tt class="py-keyword">if</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-1069" class="py-name"><a title="proton.reactor.Reactor.on_error" class="py-name" href="#" onclick="return doclink('link-1069', 'on_error', 'link-528');">on_error</a></tt> <tt class="py-keyword">is</tt> <tt class="py-name">None</tt><tt class="py-op">:</tt> </tt>
<a name="L4026"></a><tt class="py-lineno">4026</tt> <tt class="py-line"> <tt id="link-1070" class="py-name"><a title="proton._compat" class="py-name" href="#" onclick="return doclink('link-1070', '_compat', 'link-3');">_compat</a></tt><tt class="py-op">.</tt><tt id="link-1071" class="py-name" targets="Function proton._compat.raise_()=proton._compat-module.html#raise_"><a title="proton._compat.raise_" class="py-name" href="#" onclick="return doclink('link-1071', 'raise_', 'link-1071');">raise_</a></tt><tt class="py-op">(</tt><tt class="py-name">exc</tt><tt class="py-op">,</tt> <tt class="py-name">val</tt><tt class="py-op">,</tt> <tt class="py-name">tb</tt><tt class="py-op">)</tt> </tt>
<a name="L4027"></a><tt class="py-lineno">4027</tt> <tt class="py-line"> <tt class="py-keyword">else</tt><tt class="py-op">:</tt> </tt>
<a name="L4028"></a><tt class="py-lineno">4028</tt> <tt class="py-line"> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-1072" class="py-name"><a title="proton.reactor.Reactor.on_error" class="py-name" href="#" onclick="return doclink('link-1072', 'on_error', 'link-528');">on_error</a></tt><tt class="py-op">(</tt><tt class="py-op">(</tt><tt class="py-name">exc</tt><tt class="py-op">,</tt> <tt class="py-name">val</tt><tt class="py-op">,</tt> <tt class="py-name">tb</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
</div></div><a name="L4029"></a><tt class="py-lineno">4029</tt> <tt class="py-line"> </tt>
<a name="WrappedHandlersChildSurrogate"></a><div id="WrappedHandlersChildSurrogate-def"><a name="L4030"></a><tt class="py-lineno">4030</tt> <a class="py-toggle" href="#" id="WrappedHandlersChildSurrogate-toggle" onclick="return toggle('WrappedHandlersChildSurrogate');">-</a><tt class="py-line"><tt class="py-keyword">class</tt> <a class="py-def-name" href="proton.WrappedHandlersChildSurrogate-class.html">WrappedHandlersChildSurrogate</a><tt class="py-op">:</tt> </tt>
</div><div id="WrappedHandlersChildSurrogate-collapsed" style="display:none;" pad="++++" indent="++++"></div><div id="WrappedHandlersChildSurrogate-expanded"><a name="WrappedHandlersChildSurrogate.__init__"></a><div id="WrappedHandlersChildSurrogate.__init__-def"><a name="L4031"></a><tt class="py-lineno">4031</tt> <a class="py-toggle" href="#" id="WrappedHandlersChildSurrogate.__init__-toggle" onclick="return toggle('WrappedHandlersChildSurrogate.__init__');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.WrappedHandlersChildSurrogate-class.html#__init__">__init__</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">delegate</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="WrappedHandlersChildSurrogate.__init__-collapsed" style="display:none;" pad="++++" indent="++++++++"></div><div id="WrappedHandlersChildSurrogate.__init__-expanded"><a name="L4032"></a><tt class="py-lineno">4032</tt> <tt class="py-line"> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-1073" class="py-name"><a title="proton.Handler.handlers
proton.handlers" class="py-name" href="#" onclick="return doclink('link-1073', 'handlers', 'link-1034');">handlers</a></tt> <tt class="py-op">=</tt> <tt class="py-op">[</tt><tt class="py-op">]</tt> </tt>
<a name="L4033"></a><tt class="py-lineno">4033</tt> <tt class="py-line"> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">delegate</tt> <tt class="py-op">=</tt> <tt class="py-name">weakref</tt><tt class="py-op">.</tt><tt class="py-name">ref</tt><tt class="py-op">(</tt><tt class="py-name">delegate</tt><tt class="py-op">)</tt> </tt>
</div><a name="L4034"></a><tt class="py-lineno">4034</tt> <tt class="py-line"> </tt>
<a name="WrappedHandlersChildSurrogate.on_unhandled"></a><div id="WrappedHandlersChildSurrogate.on_unhandled-def"><a name="L4035"></a><tt class="py-lineno">4035</tt> <a class="py-toggle" href="#" id="WrappedHandlersChildSurrogate.on_unhandled-toggle" onclick="return toggle('WrappedHandlersChildSurrogate.on_unhandled');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.WrappedHandlersChildSurrogate-class.html#on_unhandled">on_unhandled</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">method</tt><tt class="py-op">,</tt> <tt class="py-param">event</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="WrappedHandlersChildSurrogate.on_unhandled-collapsed" style="display:none;" pad="++++" indent="++++++++"></div><div id="WrappedHandlersChildSurrogate.on_unhandled-expanded"><a name="L4036"></a><tt class="py-lineno">4036</tt> <tt class="py-line"> <tt class="py-name">delegate</tt> <tt class="py-op">=</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">delegate</tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L4037"></a><tt class="py-lineno">4037</tt> <tt class="py-line"> <tt class="py-keyword">if</tt> <tt class="py-name">delegate</tt><tt class="py-op">:</tt> </tt>
<a name="L4038"></a><tt class="py-lineno">4038</tt> <tt class="py-line"> <tt id="link-1074" class="py-name"><a title="proton.Event.dispatch
proton.dispatch" class="py-name" href="#" onclick="return doclink('link-1074', 'dispatch', 'link-963');">dispatch</a></tt><tt class="py-op">(</tt><tt class="py-name">delegate</tt><tt class="py-op">,</tt> <tt class="py-name">method</tt><tt class="py-op">,</tt> <tt class="py-name">event</tt><tt class="py-op">)</tt> </tt>
</div></div><a name="L4039"></a><tt class="py-lineno">4039</tt> <tt class="py-line"> </tt>
<a name="WrappedHandlersProperty"></a><div id="WrappedHandlersProperty-def"><a name="L4040"></a><tt class="py-lineno">4040</tt> <tt class="py-line"> </tt>
<a name="L4041"></a><tt class="py-lineno">4041</tt> <a class="py-toggle" href="#" id="WrappedHandlersProperty-toggle" onclick="return toggle('WrappedHandlersProperty');">-</a><tt class="py-line"><tt class="py-keyword">class</tt> <a class="py-def-name" href="proton.WrappedHandlersProperty-class.html">WrappedHandlersProperty</a><tt class="py-op">(</tt><tt class="py-base-class">object</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="WrappedHandlersProperty-collapsed" style="display:none;" pad="++++" indent="++++"></div><div id="WrappedHandlersProperty-expanded"><a name="WrappedHandlersProperty.__get__"></a><div id="WrappedHandlersProperty.__get__-def"><a name="L4042"></a><tt class="py-lineno">4042</tt> <a class="py-toggle" href="#" id="WrappedHandlersProperty.__get__-toggle" onclick="return toggle('WrappedHandlersProperty.__get__');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.WrappedHandlersProperty-class.html#__get__">__get__</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">obj</tt><tt class="py-op">,</tt> <tt class="py-param">clazz</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="WrappedHandlersProperty.__get__-collapsed" style="display:none;" pad="++++" indent="++++++++"></div><div id="WrappedHandlersProperty.__get__-expanded"><a name="L4043"></a><tt class="py-lineno">4043</tt> <tt class="py-line"> <tt class="py-keyword">if</tt> <tt class="py-name">obj</tt> <tt class="py-keyword">is</tt> <tt class="py-name">None</tt><tt class="py-op">:</tt> </tt>
<a name="L4044"></a><tt class="py-lineno">4044</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt class="py-name">None</tt> </tt>
<a name="L4045"></a><tt class="py-lineno">4045</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">surrogate</tt><tt class="py-op">(</tt><tt class="py-name">obj</tt><tt class="py-op">)</tt><tt class="py-op">.</tt><tt id="link-1075" class="py-name"><a title="proton.Handler.handlers
proton.handlers" class="py-name" href="#" onclick="return doclink('link-1075', 'handlers', 'link-1034');">handlers</a></tt> </tt>
</div><a name="L4046"></a><tt class="py-lineno">4046</tt> <tt class="py-line"> </tt>
<a name="WrappedHandlersProperty.__set__"></a><div id="WrappedHandlersProperty.__set__-def"><a name="L4047"></a><tt class="py-lineno">4047</tt> <a class="py-toggle" href="#" id="WrappedHandlersProperty.__set__-toggle" onclick="return toggle('WrappedHandlersProperty.__set__');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.WrappedHandlersProperty-class.html#__set__">__set__</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">obj</tt><tt class="py-op">,</tt> <tt class="py-param">value</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="WrappedHandlersProperty.__set__-collapsed" style="display:none;" pad="++++" indent="++++++++"></div><div id="WrappedHandlersProperty.__set__-expanded"><a name="L4048"></a><tt class="py-lineno">4048</tt> <tt class="py-line"> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">surrogate</tt><tt class="py-op">(</tt><tt class="py-name">obj</tt><tt class="py-op">)</tt><tt class="py-op">.</tt><tt id="link-1076" class="py-name"><a title="proton.Handler.handlers
proton.handlers" class="py-name" href="#" onclick="return doclink('link-1076', 'handlers', 'link-1034');">handlers</a></tt> <tt class="py-op">=</tt> <tt class="py-name">value</tt> </tt>
</div><a name="L4049"></a><tt class="py-lineno">4049</tt> <tt class="py-line"> </tt>
<a name="WrappedHandlersProperty.surrogate"></a><div id="WrappedHandlersProperty.surrogate-def"><a name="L4050"></a><tt class="py-lineno">4050</tt> <a class="py-toggle" href="#" id="WrappedHandlersProperty.surrogate-toggle" onclick="return toggle('WrappedHandlersProperty.surrogate');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.WrappedHandlersProperty-class.html#surrogate">surrogate</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">obj</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="WrappedHandlersProperty.surrogate-collapsed" style="display:none;" pad="++++" indent="++++++++"></div><div id="WrappedHandlersProperty.surrogate-expanded"><a name="L4051"></a><tt class="py-lineno">4051</tt> <tt class="py-line"> <tt class="py-name">key</tt> <tt class="py-op">=</tt> <tt class="py-string">"_surrogate"</tt> </tt>
<a name="L4052"></a><tt class="py-lineno">4052</tt> <tt class="py-line"> <tt class="py-name">objdict</tt> <tt class="py-op">=</tt> <tt class="py-name">obj</tt><tt class="py-op">.</tt><tt class="py-name">__dict__</tt> </tt>
<a name="L4053"></a><tt class="py-lineno">4053</tt> <tt class="py-line"> <tt class="py-name">surrogate</tt> <tt class="py-op">=</tt> <tt class="py-name">objdict</tt><tt class="py-op">.</tt><tt id="link-1077" class="py-name"><a title="proton.Messenger.get" class="py-name" href="#" onclick="return doclink('link-1077', 'get', 'link-50');">get</a></tt><tt class="py-op">(</tt><tt class="py-name">key</tt><tt class="py-op">,</tt> <tt class="py-name">None</tt><tt class="py-op">)</tt> </tt>
<a name="L4054"></a><tt class="py-lineno">4054</tt> <tt class="py-line"> <tt class="py-keyword">if</tt> <tt class="py-name">surrogate</tt> <tt class="py-keyword">is</tt> <tt class="py-name">None</tt><tt class="py-op">:</tt> </tt>
<a name="L4055"></a><tt class="py-lineno">4055</tt> <tt class="py-line"> <tt class="py-name">objdict</tt><tt class="py-op">[</tt><tt class="py-name">key</tt><tt class="py-op">]</tt> <tt class="py-op">=</tt> <tt class="py-name">surrogate</tt> <tt class="py-op">=</tt> <tt class="py-name">WrappedHandlersChildSurrogate</tt><tt class="py-op">(</tt><tt class="py-name">obj</tt><tt class="py-op">)</tt> </tt>
<a name="L4056"></a><tt class="py-lineno">4056</tt> <tt class="py-line"> <tt class="py-name">obj</tt><tt class="py-op">.</tt><tt class="py-name">add</tt><tt class="py-op">(</tt><tt class="py-name">surrogate</tt><tt class="py-op">)</tt> </tt>
<a name="L4057"></a><tt class="py-lineno">4057</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt class="py-name">surrogate</tt> </tt>
</div></div><a name="L4058"></a><tt class="py-lineno">4058</tt> <tt class="py-line"> </tt>
<a name="WrappedHandler"></a><div id="WrappedHandler-def"><a name="L4059"></a><tt class="py-lineno">4059</tt> <a class="py-toggle" href="#" id="WrappedHandler-toggle" onclick="return toggle('WrappedHandler');">-</a><tt class="py-line"><tt class="py-keyword">class</tt> <a class="py-def-name" href="proton.WrappedHandler-class.html">WrappedHandler</a><tt class="py-op">(</tt><tt class="py-base-class">Wrapper</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="WrappedHandler-collapsed" style="display:none;" pad="++++" indent="++++"></div><div id="WrappedHandler-expanded"><a name="L4060"></a><tt class="py-lineno">4060</tt> <tt class="py-line"> </tt>
<a name="L4061"></a><tt class="py-lineno">4061</tt> <tt class="py-line"> <tt id="link-1078" class="py-name"><a title="proton.Handler.handlers
proton.handlers" class="py-name" href="#" onclick="return doclink('link-1078', 'handlers', 'link-1034');">handlers</a></tt> <tt class="py-op">=</tt> <tt class="py-name">WrappedHandlersProperty</tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L4062"></a><tt class="py-lineno">4062</tt> <tt class="py-line"> </tt>
<a name="L4063"></a><tt class="py-lineno">4063</tt> <tt class="py-line"> <tt class="py-decorator">@</tt><tt class="py-decorator">classmethod</tt> </tt>
<a name="WrappedHandler.wrap"></a><div id="WrappedHandler.wrap-def"><a name="L4064"></a><tt class="py-lineno">4064</tt> <a class="py-toggle" href="#" id="WrappedHandler.wrap-toggle" onclick="return toggle('WrappedHandler.wrap');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.WrappedHandler-class.html#wrap">wrap</a><tt class="py-op">(</tt><tt class="py-param">cls</tt><tt class="py-op">,</tt> <tt class="py-param">impl</tt><tt class="py-op">,</tt> <tt class="py-param">on_error</tt><tt class="py-op">=</tt><tt class="py-name">None</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="WrappedHandler.wrap-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="WrappedHandler.wrap-expanded"><a name="L4065"></a><tt class="py-lineno">4065</tt> <tt class="py-line"> <tt class="py-keyword">if</tt> <tt class="py-name">impl</tt> <tt class="py-keyword">is</tt> <tt class="py-name">None</tt><tt class="py-op">:</tt> </tt>
<a name="L4066"></a><tt class="py-lineno">4066</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt class="py-name">None</tt> </tt>
<a name="L4067"></a><tt class="py-lineno">4067</tt> <tt class="py-line"> <tt class="py-keyword">else</tt><tt class="py-op">:</tt> </tt>
<a name="L4068"></a><tt class="py-lineno">4068</tt> <tt class="py-line"> <tt id="link-1079" class="py-name"><a title="proton.Endpoint.handler
proton.reactor.Reactor.handler" class="py-name" href="#" onclick="return doclink('link-1079', 'handler', 'link-540');">handler</a></tt> <tt class="py-op">=</tt> <tt class="py-name">cls</tt><tt class="py-op">(</tt><tt class="py-name">impl</tt><tt class="py-op">)</tt> </tt>
<a name="L4069"></a><tt class="py-lineno">4069</tt> <tt class="py-line"> <tt id="link-1080" class="py-name"><a title="proton.Endpoint.handler
proton.reactor.Reactor.handler" class="py-name" href="#" onclick="return doclink('link-1080', 'handler', 'link-540');">handler</a></tt><tt class="py-op">.</tt><tt class="py-name">__dict__</tt><tt class="py-op">[</tt><tt class="py-string">"on_error"</tt><tt class="py-op">]</tt> <tt class="py-op">=</tt> <tt id="link-1081" class="py-name"><a title="proton.reactor.Reactor.on_error" class="py-name" href="#" onclick="return doclink('link-1081', 'on_error', 'link-528');">on_error</a></tt> </tt>
<a name="L4070"></a><tt class="py-lineno">4070</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt id="link-1082" class="py-name"><a title="proton.Endpoint.handler
proton.reactor.Reactor.handler" class="py-name" href="#" onclick="return doclink('link-1082', 'handler', 'link-540');">handler</a></tt> </tt>
</div><a name="L4071"></a><tt class="py-lineno">4071</tt> <tt class="py-line"> </tt>
<a name="WrappedHandler.__init__"></a><div id="WrappedHandler.__init__-def"><a name="L4072"></a><tt class="py-lineno">4072</tt> <a class="py-toggle" href="#" id="WrappedHandler.__init__-toggle" onclick="return toggle('WrappedHandler.__init__');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.WrappedHandler-class.html#__init__">__init__</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">impl_or_constructor</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="WrappedHandler.__init__-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="WrappedHandler.__init__-expanded"><a name="L4073"></a><tt class="py-lineno">4073</tt> <tt class="py-line"> <tt id="link-1083" class="py-name"><a title="proton.wrapper.Wrapper" class="py-name" href="#" onclick="return doclink('link-1083', 'Wrapper', 'link-1');">Wrapper</a></tt><tt class="py-op">.</tt><tt id="link-1084" class="py-name"><a title="proton.Array.__init__
proton.Collector.__init__
proton.Condition.__init__
proton.Connection.__init__
proton.Data.__init__
proton.Delivery.__init__
proton.Described.__init__
proton.Disposition.__init__
proton.Event.__init__
proton.EventType.__init__
proton.Link.__init__
proton.Message.__init__
proton.Messenger.__init__
proton.SASL.__init__
proton.SSLDomain.__init__
proton.SSLSessionDetails.__init__
proton.Session.__init__
proton.Terminus.__init__
proton.Transport.__init__
proton.Url.PartDescriptor.__init__
proton.Url.__init__
proton.handlers.CFlowController.__init__
proton.handlers.CHandshaker.__init__
proton.handlers.EndpointStateHandler.__init__
proton.handlers.IOHandler.__init__
proton.handlers.IncomingMessageHandler.__init__
proton.handlers.MessagingHandler.__init__
proton.handlers.OutgoingMessageHandler.__init__
proton.handlers.PythonIO.__init__
proton.handlers.TransactionalClientHandler.__init__
proton.reactor.Acceptor.__init__
proton.reactor.ApplicationEvent.__init__
proton.reactor.Backoff.__init__
proton.reactor.Connector.__init__
proton.reactor.Container.__init__
proton.reactor.DynamicNodeProperties.__init__
proton.reactor.EventInjector.__init__
proton.reactor.Filter.__init__
proton.reactor.GlobalOverrides.__init__
proton.reactor.Reactor.__init__
proton.reactor.SSLConfig.__init__
proton.reactor.Selector.__init__
proton.reactor.SessionPerConnection.__init__
proton.reactor.Task.__init__
proton.reactor.Transaction.__init__
proton.reactor.Urls.__init__
proton.utils.AtomicCount.__init__
proton.utils.BlockingConnection.__init__
proton.utils.BlockingLink.__init__
proton.utils.BlockingReceiver.__init__
proton.utils.BlockingSender.__init__
proton.utils.ConnectionClosed.__init__
proton.utils.Fetcher.__init__
proton.utils.LinkDetached.__init__
proton.utils.SendException.__init__
proton.utils.SyncRequestResponse.__init__
proton.wrapper.Wrapper.__init__" class="py-name" href="#" onclick="return doclink('link-1084', '__init__', 'link-242');">__init__</a></tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">,</tt> <tt class="py-name">impl_or_constructor</tt><tt class="py-op">)</tt> </tt>
<a name="L4074"></a><tt class="py-lineno">4074</tt> <tt class="py-line"> <tt class="py-keyword">if</tt> <tt class="py-name">list</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">__class__</tt><tt class="py-op">.</tt><tt class="py-name">__mro__</tt><tt class="py-op">)</tt><tt class="py-op">.</tt><tt class="py-name">index</tt><tt class="py-op">(</tt><tt class="py-name">WrappedHandler</tt><tt class="py-op">)</tt> <tt class="py-op">></tt> <tt class="py-number">1</tt><tt class="py-op">:</tt> </tt>
<a name="L4075"></a><tt class="py-lineno">4075</tt> <tt class="py-line"> <tt class="py-comment"># instantiate the surrogate</tt> </tt>
<a name="L4076"></a><tt class="py-lineno">4076</tt> <tt class="py-line"> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-1085" class="py-name"><a title="proton.Handler.handlers
proton.handlers" class="py-name" href="#" onclick="return doclink('link-1085', 'handlers', 'link-1034');">handlers</a></tt><tt class="py-op">.</tt><tt class="py-name">extend</tt><tt class="py-op">(</tt><tt class="py-op">[</tt><tt class="py-op">]</tt><tt class="py-op">)</tt> </tt>
</div><a name="L4077"></a><tt class="py-lineno">4077</tt> <tt class="py-line"> </tt>
<a name="WrappedHandler._on_error"></a><div id="WrappedHandler._on_error-def"><a name="L4078"></a><tt class="py-lineno">4078</tt> <a class="py-toggle" href="#" id="WrappedHandler._on_error-toggle" onclick="return toggle('WrappedHandler._on_error');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.WrappedHandler-class.html#_on_error">_on_error</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">info</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="WrappedHandler._on_error-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="WrappedHandler._on_error-expanded"><a name="L4079"></a><tt class="py-lineno">4079</tt> <tt class="py-line"> <tt id="link-1086" class="py-name"><a title="proton.reactor.Reactor.on_error" class="py-name" href="#" onclick="return doclink('link-1086', 'on_error', 'link-528');">on_error</a></tt> <tt class="py-op">=</tt> <tt class="py-name">getattr</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">,</tt> <tt class="py-string">"on_error"</tt><tt class="py-op">,</tt> <tt class="py-name">None</tt><tt class="py-op">)</tt> </tt>
<a name="L4080"></a><tt class="py-lineno">4080</tt> <tt class="py-line"> <tt class="py-keyword">if</tt> <tt id="link-1087" class="py-name"><a title="proton.reactor.Reactor.on_error" class="py-name" href="#" onclick="return doclink('link-1087', 'on_error', 'link-528');">on_error</a></tt> <tt class="py-keyword">is</tt> <tt class="py-name">None</tt><tt class="py-op">:</tt> </tt>
<a name="L4081"></a><tt class="py-lineno">4081</tt> <tt class="py-line"> <tt id="link-1088" class="py-name"><a title="proton._compat" class="py-name" href="#" onclick="return doclink('link-1088', '_compat', 'link-3');">_compat</a></tt><tt class="py-op">.</tt><tt id="link-1089" class="py-name"><a title="proton._compat.raise_" class="py-name" href="#" onclick="return doclink('link-1089', 'raise_', 'link-1071');">raise_</a></tt><tt class="py-op">(</tt><tt class="py-name">info</tt><tt class="py-op">[</tt><tt class="py-number">0</tt><tt class="py-op">]</tt><tt class="py-op">,</tt> <tt class="py-name">info</tt><tt class="py-op">[</tt><tt class="py-number">1</tt><tt class="py-op">]</tt><tt class="py-op">,</tt> <tt class="py-name">info</tt><tt class="py-op">[</tt><tt class="py-number">2</tt><tt class="py-op">]</tt><tt class="py-op">)</tt> </tt>
<a name="L4082"></a><tt class="py-lineno">4082</tt> <tt class="py-line"> <tt class="py-keyword">else</tt><tt class="py-op">:</tt> </tt>
<a name="L4083"></a><tt class="py-lineno">4083</tt> <tt class="py-line"> <tt id="link-1090" class="py-name"><a title="proton.reactor.Reactor.on_error" class="py-name" href="#" onclick="return doclink('link-1090', 'on_error', 'link-528');">on_error</a></tt><tt class="py-op">(</tt><tt class="py-name">info</tt><tt class="py-op">)</tt> </tt>
</div><a name="L4084"></a><tt class="py-lineno">4084</tt> <tt class="py-line"> </tt>
<a name="WrappedHandler.add"></a><div id="WrappedHandler.add-def"><a name="L4085"></a><tt class="py-lineno">4085</tt> <a class="py-toggle" href="#" id="WrappedHandler.add-toggle" onclick="return toggle('WrappedHandler.add');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.WrappedHandler-class.html#add">add</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">handler</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="WrappedHandler.add-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="WrappedHandler.add-expanded"><a name="L4086"></a><tt class="py-lineno">4086</tt> <tt class="py-line"> <tt class="py-keyword">if</tt> <tt id="link-1091" class="py-name"><a title="proton.Endpoint.handler
proton.reactor.Reactor.handler" class="py-name" href="#" onclick="return doclink('link-1091', 'handler', 'link-540');">handler</a></tt> <tt class="py-keyword">is</tt> <tt class="py-name">None</tt><tt class="py-op">:</tt> <tt class="py-keyword">return</tt> </tt>
<a name="L4087"></a><tt class="py-lineno">4087</tt> <tt class="py-line"> <tt class="py-name">impl</tt> <tt class="py-op">=</tt> <tt class="py-name">_chandler</tt><tt class="py-op">(</tt><tt id="link-1092" class="py-name"><a title="proton.Endpoint.handler
proton.reactor.Reactor.handler" class="py-name" href="#" onclick="return doclink('link-1092', 'handler', 'link-540');">handler</a></tt><tt class="py-op">,</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_on_error</tt><tt class="py-op">)</tt> </tt>
<a name="L4088"></a><tt class="py-lineno">4088</tt> <tt class="py-line"> <tt class="py-name">pn_handler_add</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_impl</tt><tt class="py-op">,</tt> <tt class="py-name">impl</tt><tt class="py-op">)</tt> </tt>
<a name="L4089"></a><tt class="py-lineno">4089</tt> <tt class="py-line"> <tt class="py-name">pn_decref</tt><tt class="py-op">(</tt><tt class="py-name">impl</tt><tt class="py-op">)</tt> </tt>
</div><a name="L4090"></a><tt class="py-lineno">4090</tt> <tt class="py-line"> </tt>
<a name="WrappedHandler.clear"></a><div id="WrappedHandler.clear-def"><a name="L4091"></a><tt class="py-lineno">4091</tt> <a class="py-toggle" href="#" id="WrappedHandler.clear-toggle" onclick="return toggle('WrappedHandler.clear');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.WrappedHandler-class.html#clear">clear</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="WrappedHandler.clear-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="WrappedHandler.clear-expanded"><a name="L4092"></a><tt class="py-lineno">4092</tt> <tt class="py-line"> <tt class="py-name">pn_handler_clear</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_impl</tt><tt class="py-op">)</tt> </tt>
</div></div><a name="L4093"></a><tt class="py-lineno">4093</tt> <tt class="py-line"> </tt>
<a name="_chandler"></a><div id="_chandler-def"><a name="L4094"></a><tt class="py-lineno">4094</tt> <a class="py-toggle" href="#" id="_chandler-toggle" onclick="return toggle('_chandler');">-</a><tt class="py-line"><tt class="py-keyword">def</tt> <a class="py-def-name" href="proton-module.html#_chandler">_chandler</a><tt class="py-op">(</tt><tt class="py-param">obj</tt><tt class="py-op">,</tt> <tt class="py-param">on_error</tt><tt class="py-op">=</tt><tt class="py-name">None</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="_chandler-collapsed" style="display:none;" pad="++++" indent="++++"></div><div id="_chandler-expanded"><a name="L4095"></a><tt class="py-lineno">4095</tt> <tt class="py-line"> <tt class="py-keyword">if</tt> <tt class="py-name">obj</tt> <tt class="py-keyword">is</tt> <tt class="py-name">None</tt><tt class="py-op">:</tt> </tt>
<a name="L4096"></a><tt class="py-lineno">4096</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt class="py-name">None</tt> </tt>
<a name="L4097"></a><tt class="py-lineno">4097</tt> <tt class="py-line"> <tt class="py-keyword">elif</tt> <tt class="py-name">isinstance</tt><tt class="py-op">(</tt><tt class="py-name">obj</tt><tt class="py-op">,</tt> <tt class="py-name">WrappedHandler</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
<a name="L4098"></a><tt class="py-lineno">4098</tt> <tt class="py-line"> <tt class="py-name">impl</tt> <tt class="py-op">=</tt> <tt class="py-name">obj</tt><tt class="py-op">.</tt><tt class="py-name">_impl</tt> </tt>
<a name="L4099"></a><tt class="py-lineno">4099</tt> <tt class="py-line"> <tt class="py-name">pn_incref</tt><tt class="py-op">(</tt><tt class="py-name">impl</tt><tt class="py-op">)</tt> </tt>
<a name="L4100"></a><tt class="py-lineno">4100</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt class="py-name">impl</tt> </tt>
<a name="L4101"></a><tt class="py-lineno">4101</tt> <tt class="py-line"> <tt class="py-keyword">else</tt><tt class="py-op">:</tt> </tt>
<a name="L4102"></a><tt class="py-lineno">4102</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt class="py-name">pn_pyhandler</tt><tt class="py-op">(</tt><tt class="py-name">_cadapter</tt><tt class="py-op">(</tt><tt class="py-name">obj</tt><tt class="py-op">,</tt> <tt id="link-1093" class="py-name"><a title="proton.reactor.Reactor.on_error" class="py-name" href="#" onclick="return doclink('link-1093', 'on_error', 'link-528');">on_error</a></tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
</div><a name="L4103"></a><tt class="py-lineno">4103</tt> <tt class="py-line"> </tt>
<a name="Url"></a><div id="Url-def"><a name="L4104"></a><tt class="py-lineno">4104</tt> <a class="py-toggle" href="#" id="Url-toggle" onclick="return toggle('Url');">-</a><tt class="py-line"><tt class="py-keyword">class</tt> <a class="py-def-name" href="proton.Url-class.html">Url</a><tt class="py-op">(</tt><tt class="py-base-class">object</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Url-collapsed" style="display:none;" pad="++++" indent="++++"></div><div id="Url-expanded"><a name="L4105"></a><tt class="py-lineno">4105</tt> <tt class="py-line"> <tt class="py-docstring">"""</tt> </tt>
<a name="L4106"></a><tt class="py-lineno">4106</tt> <tt class="py-line"><tt class="py-docstring"> Simple URL parser/constructor, handles URLs of the form:</tt> </tt>
<a name="L4107"></a><tt class="py-lineno">4107</tt> <tt class="py-line"><tt class="py-docstring"></tt> </tt>
<a name="L4108"></a><tt class="py-lineno">4108</tt> <tt class="py-line"><tt class="py-docstring"> <scheme>://<user>:<password>@<host>:<port>/<path></tt> </tt>
<a name="L4109"></a><tt class="py-lineno">4109</tt> <tt class="py-line"><tt class="py-docstring"></tt> </tt>
<a name="L4110"></a><tt class="py-lineno">4110</tt> <tt class="py-line"><tt class="py-docstring"> All components can be None if not specifeid in the URL string.</tt> </tt>
<a name="L4111"></a><tt class="py-lineno">4111</tt> <tt class="py-line"><tt class="py-docstring"></tt> </tt>
<a name="L4112"></a><tt class="py-lineno">4112</tt> <tt class="py-line"><tt class="py-docstring"> The port can be specified as a service name, e.g. 'amqp' in the</tt> </tt>
<a name="L4113"></a><tt class="py-lineno">4113</tt> <tt class="py-line"><tt class="py-docstring"> URL string but Url.port always gives the integer value.</tt> </tt>
<a name="L4114"></a><tt class="py-lineno">4114</tt> <tt class="py-line"><tt class="py-docstring"></tt> </tt>
<a name="L4115"></a><tt class="py-lineno">4115</tt> <tt class="py-line"><tt class="py-docstring"> @ivar scheme: Url scheme e.g. 'amqp' or 'amqps'</tt> </tt>
<a name="L4116"></a><tt class="py-lineno">4116</tt> <tt class="py-line"><tt class="py-docstring"> @ivar user: Username</tt> </tt>
<a name="L4117"></a><tt class="py-lineno">4117</tt> <tt class="py-line"><tt class="py-docstring"> @ivar password: Password</tt> </tt>
<a name="L4118"></a><tt class="py-lineno">4118</tt> <tt class="py-line"><tt class="py-docstring"> @ivar host: Host name, ipv6 literal or ipv4 dotted quad.</tt> </tt>
<a name="L4119"></a><tt class="py-lineno">4119</tt> <tt class="py-line"><tt class="py-docstring"> @ivar port: Integer port.</tt> </tt>
<a name="L4120"></a><tt class="py-lineno">4120</tt> <tt class="py-line"><tt class="py-docstring"> @ivar host_port: Returns host:port</tt> </tt>
<a name="L4121"></a><tt class="py-lineno">4121</tt> <tt class="py-line"><tt class="py-docstring"> """</tt> </tt>
<a name="L4122"></a><tt class="py-lineno">4122</tt> <tt class="py-line"> </tt>
<a name="L4123"></a><tt class="py-lineno">4123</tt> <tt class="py-line"> <tt id="link-1094" class="py-name" targets="Variable proton.Url.AMQPS=proton.Url-class.html#AMQPS"><a title="proton.Url.AMQPS" class="py-name" href="#" onclick="return doclink('link-1094', 'AMQPS', 'link-1094');">AMQPS</a></tt> <tt class="py-op">=</tt> <tt class="py-string">"amqps"</tt> </tt>
<a name="L4124"></a><tt class="py-lineno">4124</tt> <tt class="py-line"> <tt id="link-1095" class="py-name" targets="Variable proton.Url.AMQP=proton.Url-class.html#AMQP"><a title="proton.Url.AMQP" class="py-name" href="#" onclick="return doclink('link-1095', 'AMQP', 'link-1095');">AMQP</a></tt> <tt class="py-op">=</tt> <tt class="py-string">"amqp"</tt> </tt>
<a name="L4125"></a><tt class="py-lineno">4125</tt> <tt class="py-line"> </tt>
<a name="Url.Port"></a><div id="Url.Port-def"><a name="L4126"></a><tt class="py-lineno">4126</tt> <a class="py-toggle" href="#" id="Url.Port-toggle" onclick="return toggle('Url.Port');">-</a><tt class="py-line"> <tt class="py-keyword">class</tt> <a class="py-def-name" href="proton.Url.Port-class.html">Port</a><tt class="py-op">(</tt><tt class="py-base-class">int</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Url.Port-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Url.Port-expanded"><a name="L4127"></a><tt class="py-lineno">4127</tt> <tt class="py-line"> <tt class="py-docstring">"""An integer port number that can be constructed from a service name string"""</tt> </tt>
<a name="L4128"></a><tt class="py-lineno">4128</tt> <tt class="py-line"> </tt>
<a name="Url.Port.__new__"></a><div id="Url.Port.__new__-def"><a name="L4129"></a><tt class="py-lineno">4129</tt> <a class="py-toggle" href="#" id="Url.Port.__new__-toggle" onclick="return toggle('Url.Port.__new__');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Url.Port-class.html#__new__">__new__</a><tt class="py-op">(</tt><tt class="py-param">cls</tt><tt class="py-op">,</tt> <tt class="py-param">value</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Url.Port.__new__-collapsed" style="display:none;" pad="++++" indent="++++++++++"></div><div id="Url.Port.__new__-expanded"><a name="L4130"></a><tt class="py-lineno">4130</tt> <tt class="py-line"> <tt class="py-docstring">"""@param value: integer port number or string service name."""</tt> </tt>
<a name="L4131"></a><tt class="py-lineno">4131</tt> <tt class="py-line"> <tt id="link-1096" class="py-name" targets="Variable proton.Url.port=proton.Url-class.html#port"><a title="proton.Url.port" class="py-name" href="#" onclick="return doclink('link-1096', 'port', 'link-1096');">port</a></tt> <tt class="py-op">=</tt> <tt class="py-name">super</tt><tt class="py-op">(</tt><tt id="link-1097" class="py-name" targets="Class proton.Url=proton.Url-class.html"><a title="proton.Url" class="py-name" href="#" onclick="return doclink('link-1097', 'Url', 'link-1097');">Url</a></tt><tt class="py-op">.</tt><tt id="link-1098" class="py-name" targets="Class proton.Url.Port=proton.Url.Port-class.html"><a title="proton.Url.Port" class="py-name" href="#" onclick="return doclink('link-1098', 'Port', 'link-1098');">Port</a></tt><tt class="py-op">,</tt> <tt class="py-name">cls</tt><tt class="py-op">)</tt><tt class="py-op">.</tt><tt id="link-1099" class="py-name"><a title="proton.SSL.__new__
proton.Url.Port.__new__" class="py-name" href="#" onclick="return doclink('link-1099', '__new__', 'link-711');">__new__</a></tt><tt class="py-op">(</tt><tt class="py-name">cls</tt><tt class="py-op">,</tt> <tt class="py-name">cls</tt><tt class="py-op">.</tt><tt class="py-name">_port_int</tt><tt class="py-op">(</tt><tt class="py-name">value</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
<a name="L4132"></a><tt class="py-lineno">4132</tt> <tt class="py-line"> <tt class="py-name">setattr</tt><tt class="py-op">(</tt><tt id="link-1100" class="py-name"><a title="proton.Url.port" class="py-name" href="#" onclick="return doclink('link-1100', 'port', 'link-1096');">port</a></tt><tt class="py-op">,</tt> <tt class="py-string">'name'</tt><tt class="py-op">,</tt> <tt class="py-name">str</tt><tt class="py-op">(</tt><tt class="py-name">value</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
<a name="L4133"></a><tt class="py-lineno">4133</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt id="link-1101" class="py-name"><a title="proton.Url.port" class="py-name" href="#" onclick="return doclink('link-1101', 'port', 'link-1096');">port</a></tt> </tt>
</div><a name="L4134"></a><tt class="py-lineno">4134</tt> <tt class="py-line"> </tt>
<a name="Url.Port.__eq__"></a><div id="Url.Port.__eq__-def"><a name="L4135"></a><tt class="py-lineno">4135</tt> <a class="py-toggle" href="#" id="Url.Port.__eq__-toggle" onclick="return toggle('Url.Port.__eq__');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Url.Port-class.html#__eq__">__eq__</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">x</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> <tt class="py-keyword">return</tt> <tt class="py-name">str</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">)</tt> <tt class="py-op">==</tt> <tt class="py-name">x</tt> <tt class="py-keyword">or</tt> <tt class="py-name">int</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">)</tt> <tt class="py-op">==</tt> <tt class="py-name">x</tt> </tt>
</div><a name="Url.Port.__ne__"></a><div id="Url.Port.__ne__-def"><a name="L4136"></a><tt class="py-lineno">4136</tt> <a class="py-toggle" href="#" id="Url.Port.__ne__-toggle" onclick="return toggle('Url.Port.__ne__');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Url.Port-class.html#__ne__">__ne__</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">x</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> <tt class="py-keyword">return</tt> <tt class="py-keyword">not</tt> <tt class="py-name">self</tt> <tt class="py-op">==</tt> <tt class="py-name">x</tt> </tt>
</div><a name="Url.Port.__str__"></a><div id="Url.Port.__str__-def"><a name="L4137"></a><tt class="py-lineno">4137</tt> <a class="py-toggle" href="#" id="Url.Port.__str__-toggle" onclick="return toggle('Url.Port.__str__');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Url.Port-class.html#__str__">__str__</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> <tt class="py-keyword">return</tt> <tt class="py-name">str</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-1102" class="py-name"><a title="proton.Link.name
proton.Messenger.name" class="py-name" href="#" onclick="return doclink('link-1102', 'name', 'link-25');">name</a></tt><tt class="py-op">)</tt> </tt>
</div><a name="L4138"></a><tt class="py-lineno">4138</tt> <tt class="py-line"> </tt>
<a name="L4139"></a><tt class="py-lineno">4139</tt> <tt class="py-line"> <tt class="py-decorator">@</tt><tt class="py-decorator">staticmethod</tt> </tt>
<a name="Url.Port._port_int"></a><div id="Url.Port._port_int-def"><a name="L4140"></a><tt class="py-lineno">4140</tt> <a class="py-toggle" href="#" id="Url.Port._port_int-toggle" onclick="return toggle('Url.Port._port_int');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Url.Port-class.html#_port_int">_port_int</a><tt class="py-op">(</tt><tt class="py-param">value</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Url.Port._port_int-collapsed" style="display:none;" pad="++++" indent="++++++++++"></div><div id="Url.Port._port_int-expanded"><a name="L4141"></a><tt class="py-lineno">4141</tt> <tt class="py-line"> <tt class="py-docstring">"""Convert service, an integer or a service name, into an integer port number."""</tt> </tt>
<a name="L4142"></a><tt class="py-lineno">4142</tt> <tt class="py-line"> <tt class="py-keyword">try</tt><tt class="py-op">:</tt> </tt>
<a name="L4143"></a><tt class="py-lineno">4143</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt class="py-name">int</tt><tt class="py-op">(</tt><tt class="py-name">value</tt><tt class="py-op">)</tt> </tt>
<a name="L4144"></a><tt class="py-lineno">4144</tt> <tt class="py-line"> <tt class="py-keyword">except</tt> <tt class="py-name">ValueError</tt><tt class="py-op">:</tt> </tt>
<a name="L4145"></a><tt class="py-lineno">4145</tt> <tt class="py-line"> <tt class="py-keyword">try</tt><tt class="py-op">:</tt> </tt>
<a name="L4146"></a><tt class="py-lineno">4146</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt class="py-name">socket</tt><tt class="py-op">.</tt><tt class="py-name">getservbyname</tt><tt class="py-op">(</tt><tt class="py-name">value</tt><tt class="py-op">)</tt> </tt>
<a name="L4147"></a><tt class="py-lineno">4147</tt> <tt class="py-line"> <tt class="py-keyword">except</tt> <tt class="py-name">socket</tt><tt class="py-op">.</tt><tt id="link-1103" class="py-name" targets="Variable proton.Connection.error=proton.Connection-class.html#error"><a title="proton.Connection.error" class="py-name" href="#" onclick="return doclink('link-1103', 'error', 'link-1103');">error</a></tt><tt class="py-op">:</tt> </tt>
<a name="L4148"></a><tt class="py-lineno">4148</tt> <tt class="py-line"> <tt class="py-comment"># Not every system has amqp/amqps defined as a service</tt> </tt>
<a name="L4149"></a><tt class="py-lineno">4149</tt> <tt class="py-line"> <tt class="py-keyword">if</tt> <tt class="py-name">value</tt> <tt class="py-op">==</tt> <tt id="link-1104" class="py-name"><a title="proton.Url" class="py-name" href="#" onclick="return doclink('link-1104', 'Url', 'link-1097');">Url</a></tt><tt class="py-op">.</tt><tt id="link-1105" class="py-name"><a title="proton.Url.AMQPS" class="py-name" href="#" onclick="return doclink('link-1105', 'AMQPS', 'link-1094');">AMQPS</a></tt><tt class="py-op">:</tt> <tt class="py-keyword">return</tt> <tt class="py-number">5671</tt> </tt>
<a name="L4150"></a><tt class="py-lineno">4150</tt> <tt class="py-line"> <tt class="py-keyword">elif</tt> <tt class="py-name">value</tt> <tt class="py-op">==</tt> <tt id="link-1106" class="py-name"><a title="proton.Url" class="py-name" href="#" onclick="return doclink('link-1106', 'Url', 'link-1097');">Url</a></tt><tt class="py-op">.</tt><tt id="link-1107" class="py-name"><a title="proton.Url.AMQP" class="py-name" href="#" onclick="return doclink('link-1107', 'AMQP', 'link-1095');">AMQP</a></tt><tt class="py-op">:</tt> <tt class="py-keyword">return</tt> <tt class="py-number">5672</tt> </tt>
<a name="L4151"></a><tt class="py-lineno">4151</tt> <tt class="py-line"> <tt class="py-keyword">else</tt><tt class="py-op">:</tt> </tt>
<a name="L4152"></a><tt class="py-lineno">4152</tt> <tt class="py-line"> <tt class="py-keyword">raise</tt> <tt class="py-name">ValueError</tt><tt class="py-op">(</tt><tt class="py-string">"Not a valid port number or service name: '%s'"</tt> <tt class="py-op">%</tt> <tt class="py-name">value</tt><tt class="py-op">)</tt> </tt>
</div></div><a name="L4153"></a><tt class="py-lineno">4153</tt> <tt class="py-line"> </tt>
<a name="Url.__init__"></a><div id="Url.__init__-def"><a name="L4154"></a><tt class="py-lineno">4154</tt> <a class="py-toggle" href="#" id="Url.__init__-toggle" onclick="return toggle('Url.__init__');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Url-class.html#__init__">__init__</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">url</tt><tt class="py-op">=</tt><tt class="py-name">None</tt><tt class="py-op">,</tt> <tt class="py-param">defaults</tt><tt class="py-op">=</tt><tt class="py-name">True</tt><tt class="py-op">,</tt> <tt class="py-op">**</tt><tt class="py-param">kwargs</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Url.__init__-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Url.__init__-expanded"><a name="L4155"></a><tt class="py-lineno">4155</tt> <tt class="py-line"> <tt class="py-docstring">"""</tt> </tt>
<a name="L4156"></a><tt class="py-lineno">4156</tt> <tt class="py-line"><tt class="py-docstring"> @param url: URL string to parse.</tt> </tt>
<a name="L4157"></a><tt class="py-lineno">4157</tt> <tt class="py-line"><tt class="py-docstring"> @param defaults: If true, fill in missing default values in the URL.</tt> </tt>
<a name="L4158"></a><tt class="py-lineno">4158</tt> <tt class="py-line"><tt class="py-docstring"> If false, you can fill them in later by calling self.defaults()</tt> </tt>
<a name="L4159"></a><tt class="py-lineno">4159</tt> <tt class="py-line"><tt class="py-docstring"> @param kwargs: scheme, user, password, host, port, path.</tt> </tt>
<a name="L4160"></a><tt class="py-lineno">4160</tt> <tt class="py-line"><tt class="py-docstring"> If specified, replaces corresponding part in url string.</tt> </tt>
<a name="L4161"></a><tt class="py-lineno">4161</tt> <tt class="py-line"><tt class="py-docstring"> """</tt> </tt>
<a name="L4162"></a><tt class="py-lineno">4162</tt> <tt class="py-line"> <tt class="py-keyword">if</tt> <tt class="py-name">url</tt><tt class="py-op">:</tt> </tt>
<a name="L4163"></a><tt class="py-lineno">4163</tt> <tt class="py-line"> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_url</tt> <tt class="py-op">=</tt> <tt class="py-name">pn_url_parse</tt><tt class="py-op">(</tt><tt class="py-name">unicode2utf8</tt><tt class="py-op">(</tt><tt class="py-name">str</tt><tt class="py-op">(</tt><tt class="py-name">url</tt><tt class="py-op">)</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
<a name="L4164"></a><tt class="py-lineno">4164</tt> <tt class="py-line"> <tt class="py-keyword">if</tt> <tt class="py-keyword">not</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_url</tt><tt class="py-op">:</tt> <tt class="py-keyword">raise</tt> <tt class="py-name">ValueError</tt><tt class="py-op">(</tt><tt class="py-string">"Invalid URL '%s'"</tt> <tt class="py-op">%</tt> <tt class="py-name">url</tt><tt class="py-op">)</tt> </tt>
<a name="L4165"></a><tt class="py-lineno">4165</tt> <tt class="py-line"> <tt class="py-keyword">else</tt><tt class="py-op">:</tt> </tt>
<a name="L4166"></a><tt class="py-lineno">4166</tt> <tt class="py-line"> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_url</tt> <tt class="py-op">=</tt> <tt class="py-name">pn_url</tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L4167"></a><tt class="py-lineno">4167</tt> <tt class="py-line"> <tt class="py-keyword">for</tt> <tt class="py-name">k</tt> <tt class="py-keyword">in</tt> <tt class="py-name">kwargs</tt><tt class="py-op">:</tt> <tt class="py-comment"># Let kwargs override values parsed from url</tt> </tt>
<a name="L4168"></a><tt class="py-lineno">4168</tt> <tt class="py-line"> <tt class="py-name">getattr</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">,</tt> <tt class="py-name">k</tt><tt class="py-op">)</tt> <tt class="py-comment"># Check for invalid kwargs</tt> </tt>
<a name="L4169"></a><tt class="py-lineno">4169</tt> <tt class="py-line"> <tt class="py-name">setattr</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">,</tt> <tt class="py-name">k</tt><tt class="py-op">,</tt> <tt class="py-name">kwargs</tt><tt class="py-op">[</tt><tt class="py-name">k</tt><tt class="py-op">]</tt><tt class="py-op">)</tt> </tt>
<a name="L4170"></a><tt class="py-lineno">4170</tt> <tt class="py-line"> <tt class="py-keyword">if</tt> <tt id="link-1108" class="py-name" targets="Method proton.Url.defaults()=proton.Url-class.html#defaults"><a title="proton.Url.defaults" class="py-name" href="#" onclick="return doclink('link-1108', 'defaults', 'link-1108');">defaults</a></tt><tt class="py-op">:</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-1109" class="py-name"><a title="proton.Url.defaults" class="py-name" href="#" onclick="return doclink('link-1109', 'defaults', 'link-1108');">defaults</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
</div><a name="L4171"></a><tt class="py-lineno">4171</tt> <tt class="py-line"> </tt>
<a name="Url.PartDescriptor"></a><div id="Url.PartDescriptor-def"><a name="L4172"></a><tt class="py-lineno">4172</tt> <a class="py-toggle" href="#" id="Url.PartDescriptor-toggle" onclick="return toggle('Url.PartDescriptor');">-</a><tt class="py-line"> <tt class="py-keyword">class</tt> <a class="py-def-name" href="proton.Url.PartDescriptor-class.html">PartDescriptor</a><tt class="py-op">(</tt><tt class="py-base-class">object</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Url.PartDescriptor-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Url.PartDescriptor-expanded"><a name="Url.PartDescriptor.__init__"></a><div id="Url.PartDescriptor.__init__-def"><a name="L4173"></a><tt class="py-lineno">4173</tt> <a class="py-toggle" href="#" id="Url.PartDescriptor.__init__-toggle" onclick="return toggle('Url.PartDescriptor.__init__');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Url.PartDescriptor-class.html#__init__">__init__</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">part</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Url.PartDescriptor.__init__-collapsed" style="display:none;" pad="++++" indent="++++++++++"></div><div id="Url.PartDescriptor.__init__-expanded"><a name="L4174"></a><tt class="py-lineno">4174</tt> <tt class="py-line"> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">getter</tt> <tt class="py-op">=</tt> <tt class="py-name">globals</tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">[</tt><tt class="py-string">"pn_url_get_%s"</tt> <tt class="py-op">%</tt> <tt class="py-name">part</tt><tt class="py-op">]</tt> </tt>
<a name="L4175"></a><tt class="py-lineno">4175</tt> <tt class="py-line"> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">setter</tt> <tt class="py-op">=</tt> <tt class="py-name">globals</tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">[</tt><tt class="py-string">"pn_url_set_%s"</tt> <tt class="py-op">%</tt> <tt class="py-name">part</tt><tt class="py-op">]</tt> </tt>
</div><a name="Url.PartDescriptor.__get__"></a><div id="Url.PartDescriptor.__get__-def"><a name="L4176"></a><tt class="py-lineno">4176</tt> <a class="py-toggle" href="#" id="Url.PartDescriptor.__get__-toggle" onclick="return toggle('Url.PartDescriptor.__get__');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Url.PartDescriptor-class.html#__get__">__get__</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">obj</tt><tt class="py-op">,</tt> <tt class="py-param">type</tt><tt class="py-op">=</tt><tt class="py-name">None</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> <tt class="py-keyword">return</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">getter</tt><tt class="py-op">(</tt><tt class="py-name">obj</tt><tt class="py-op">.</tt><tt class="py-name">_url</tt><tt class="py-op">)</tt> </tt>
</div><a name="Url.PartDescriptor.__set__"></a><div id="Url.PartDescriptor.__set__-def"><a name="L4177"></a><tt class="py-lineno">4177</tt> <a class="py-toggle" href="#" id="Url.PartDescriptor.__set__-toggle" onclick="return toggle('Url.PartDescriptor.__set__');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Url.PartDescriptor-class.html#__set__">__set__</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">obj</tt><tt class="py-op">,</tt> <tt class="py-param">value</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> <tt class="py-keyword">return</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">setter</tt><tt class="py-op">(</tt><tt class="py-name">obj</tt><tt class="py-op">.</tt><tt class="py-name">_url</tt><tt class="py-op">,</tt> <tt class="py-name">str</tt><tt class="py-op">(</tt><tt class="py-name">value</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
</div></div><a name="L4178"></a><tt class="py-lineno">4178</tt> <tt class="py-line"> </tt>
<a name="L4179"></a><tt class="py-lineno">4179</tt> <tt class="py-line"> <tt id="link-1110" class="py-name" targets="Variable proton.Url.scheme=proton.Url-class.html#scheme"><a title="proton.Url.scheme" class="py-name" href="#" onclick="return doclink('link-1110', 'scheme', 'link-1110');">scheme</a></tt> <tt class="py-op">=</tt> <tt id="link-1111" class="py-name" targets="Class proton.Url.PartDescriptor=proton.Url.PartDescriptor-class.html"><a title="proton.Url.PartDescriptor" class="py-name" href="#" onclick="return doclink('link-1111', 'PartDescriptor', 'link-1111');">PartDescriptor</a></tt><tt class="py-op">(</tt><tt class="py-string">'scheme'</tt><tt class="py-op">)</tt> </tt>
<a name="L4180"></a><tt class="py-lineno">4180</tt> <tt class="py-line"> <tt id="link-1112" class="py-name" targets="Variable proton.Url.username=proton.Url-class.html#username"><a title="proton.Url.username" class="py-name" href="#" onclick="return doclink('link-1112', 'username', 'link-1112');">username</a></tt> <tt class="py-op">=</tt> <tt id="link-1113" class="py-name"><a title="proton.Url.PartDescriptor" class="py-name" href="#" onclick="return doclink('link-1113', 'PartDescriptor', 'link-1111');">PartDescriptor</a></tt><tt class="py-op">(</tt><tt class="py-string">'username'</tt><tt class="py-op">)</tt> </tt>
<a name="L4181"></a><tt class="py-lineno">4181</tt> <tt class="py-line"> <tt id="link-1114" class="py-name"><a title="proton.Connection.password
proton.Messenger.password
proton.Url.password" class="py-name" href="#" onclick="return doclink('link-1114', 'password', 'link-58');">password</a></tt> <tt class="py-op">=</tt> <tt id="link-1115" class="py-name"><a title="proton.Url.PartDescriptor" class="py-name" href="#" onclick="return doclink('link-1115', 'PartDescriptor', 'link-1111');">PartDescriptor</a></tt><tt class="py-op">(</tt><tt class="py-string">'password'</tt><tt class="py-op">)</tt> </tt>
<a name="L4182"></a><tt class="py-lineno">4182</tt> <tt class="py-line"> <tt id="link-1116" class="py-name" targets="Variable proton.Url.host=proton.Url-class.html#host"><a title="proton.Url.host" class="py-name" href="#" onclick="return doclink('link-1116', 'host', 'link-1116');">host</a></tt> <tt class="py-op">=</tt> <tt id="link-1117" class="py-name"><a title="proton.Url.PartDescriptor" class="py-name" href="#" onclick="return doclink('link-1117', 'PartDescriptor', 'link-1111');">PartDescriptor</a></tt><tt class="py-op">(</tt><tt class="py-string">'host'</tt><tt class="py-op">)</tt> </tt>
<a name="L4183"></a><tt class="py-lineno">4183</tt> <tt class="py-line"> <tt id="link-1118" class="py-name"><a title="proton.Url.path" class="py-name" href="#" onclick="return doclink('link-1118', 'path', 'link-838');">path</a></tt> <tt class="py-op">=</tt> <tt id="link-1119" class="py-name"><a title="proton.Url.PartDescriptor" class="py-name" href="#" onclick="return doclink('link-1119', 'PartDescriptor', 'link-1111');">PartDescriptor</a></tt><tt class="py-op">(</tt><tt class="py-string">'path'</tt><tt class="py-op">)</tt> </tt>
<a name="L4184"></a><tt class="py-lineno">4184</tt> <tt class="py-line"> </tt>
<a name="Url._get_port"></a><div id="Url._get_port-def"><a name="L4185"></a><tt class="py-lineno">4185</tt> <a class="py-toggle" href="#" id="Url._get_port-toggle" onclick="return toggle('Url._get_port');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Url-class.html#_get_port">_get_port</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Url._get_port-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Url._get_port-expanded"><a name="L4186"></a><tt class="py-lineno">4186</tt> <tt class="py-line"> <tt class="py-name">portstr</tt> <tt class="py-op">=</tt> <tt class="py-name">pn_url_get_port</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_url</tt><tt class="py-op">)</tt> </tt>
<a name="L4187"></a><tt class="py-lineno">4187</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt class="py-name">portstr</tt> <tt class="py-keyword">and</tt> <tt id="link-1120" class="py-name"><a title="proton.Url" class="py-name" href="#" onclick="return doclink('link-1120', 'Url', 'link-1097');">Url</a></tt><tt class="py-op">.</tt><tt id="link-1121" class="py-name"><a title="proton.Url.Port" class="py-name" href="#" onclick="return doclink('link-1121', 'Port', 'link-1098');">Port</a></tt><tt class="py-op">(</tt><tt class="py-name">portstr</tt><tt class="py-op">)</tt> </tt>
</div><a name="L4188"></a><tt class="py-lineno">4188</tt> <tt class="py-line"> </tt>
<a name="Url._set_port"></a><div id="Url._set_port-def"><a name="L4189"></a><tt class="py-lineno">4189</tt> <a class="py-toggle" href="#" id="Url._set_port-toggle" onclick="return toggle('Url._set_port');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Url-class.html#_set_port">_set_port</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">value</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Url._set_port-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Url._set_port-expanded"><a name="L4190"></a><tt class="py-lineno">4190</tt> <tt class="py-line"> <tt class="py-keyword">if</tt> <tt class="py-name">value</tt> <tt class="py-keyword">is</tt> <tt class="py-name">None</tt><tt class="py-op">:</tt> <tt class="py-name">pn_url_set_port</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_url</tt><tt class="py-op">,</tt> <tt class="py-name">None</tt><tt class="py-op">)</tt> </tt>
<a name="L4191"></a><tt class="py-lineno">4191</tt> <tt class="py-line"> <tt class="py-keyword">else</tt><tt class="py-op">:</tt> <tt class="py-name">pn_url_set_port</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_url</tt><tt class="py-op">,</tt> <tt class="py-name">str</tt><tt class="py-op">(</tt><tt id="link-1122" class="py-name"><a title="proton.Url" class="py-name" href="#" onclick="return doclink('link-1122', 'Url', 'link-1097');">Url</a></tt><tt class="py-op">.</tt><tt id="link-1123" class="py-name"><a title="proton.Url.Port" class="py-name" href="#" onclick="return doclink('link-1123', 'Port', 'link-1098');">Port</a></tt><tt class="py-op">(</tt><tt class="py-name">value</tt><tt class="py-op">)</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
</div><a name="L4192"></a><tt class="py-lineno">4192</tt> <tt class="py-line"> </tt>
<a name="L4193"></a><tt class="py-lineno">4193</tt> <tt class="py-line"> <tt id="link-1124" class="py-name"><a title="proton.Url.port" class="py-name" href="#" onclick="return doclink('link-1124', 'port', 'link-1096');">port</a></tt> <tt class="py-op">=</tt> <tt class="py-name">property</tt><tt class="py-op">(</tt><tt id="link-1125" class="py-name" targets="Method proton.Url._get_port()=proton.Url-class.html#_get_port"><a title="proton.Url._get_port" class="py-name" href="#" onclick="return doclink('link-1125', '_get_port', 'link-1125');">_get_port</a></tt><tt class="py-op">,</tt> <tt id="link-1126" class="py-name" targets="Method proton.Url._set_port()=proton.Url-class.html#_set_port"><a title="proton.Url._set_port" class="py-name" href="#" onclick="return doclink('link-1126', '_set_port', 'link-1126');">_set_port</a></tt><tt class="py-op">)</tt> </tt>
<a name="L4194"></a><tt class="py-lineno">4194</tt> <tt class="py-line"> </tt>
<a name="Url.__str__"></a><div id="Url.__str__-def"><a name="L4195"></a><tt class="py-lineno">4195</tt> <a class="py-toggle" href="#" id="Url.__str__-toggle" onclick="return toggle('Url.__str__');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Url-class.html#__str__">__str__</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> <tt class="py-keyword">return</tt> <tt class="py-name">pn_url_str</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_url</tt><tt class="py-op">)</tt> </tt>
</div><a name="L4196"></a><tt class="py-lineno">4196</tt> <tt class="py-line"> </tt>
<a name="Url.__repr__"></a><div id="Url.__repr__-def"><a name="L4197"></a><tt class="py-lineno">4197</tt> <a class="py-toggle" href="#" id="Url.__repr__-toggle" onclick="return toggle('Url.__repr__');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Url-class.html#__repr__">__repr__</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> <tt class="py-keyword">return</tt> <tt class="py-string">"Url(%r)"</tt> <tt class="py-op">%</tt> <tt class="py-name">str</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">)</tt> </tt>
</div><a name="L4198"></a><tt class="py-lineno">4198</tt> <tt class="py-line"> </tt>
<a name="Url.__eq__"></a><div id="Url.__eq__-def"><a name="L4199"></a><tt class="py-lineno">4199</tt> <a class="py-toggle" href="#" id="Url.__eq__-toggle" onclick="return toggle('Url.__eq__');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Url-class.html#__eq__">__eq__</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">x</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> <tt class="py-keyword">return</tt> <tt class="py-name">str</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">)</tt> <tt class="py-op">==</tt> <tt class="py-name">str</tt><tt class="py-op">(</tt><tt class="py-name">x</tt><tt class="py-op">)</tt> </tt>
</div><a name="Url.__ne__"></a><div id="Url.__ne__-def"><a name="L4200"></a><tt class="py-lineno">4200</tt> <a class="py-toggle" href="#" id="Url.__ne__-toggle" onclick="return toggle('Url.__ne__');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Url-class.html#__ne__">__ne__</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">x</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> <tt class="py-keyword">return</tt> <tt class="py-keyword">not</tt> <tt class="py-name">self</tt> <tt class="py-op">==</tt> <tt class="py-name">x</tt> </tt>
</div><a name="L4201"></a><tt class="py-lineno">4201</tt> <tt class="py-line"> </tt>
<a name="Url.__del__"></a><div id="Url.__del__-def"><a name="L4202"></a><tt class="py-lineno">4202</tt> <a class="py-toggle" href="#" id="Url.__del__-toggle" onclick="return toggle('Url.__del__');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Url-class.html#__del__">__del__</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Url.__del__-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Url.__del__-expanded"><a name="L4203"></a><tt class="py-lineno">4203</tt> <tt class="py-line"> <tt class="py-name">pn_url_free</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_url</tt><tt class="py-op">)</tt><tt class="py-op">;</tt> </tt>
<a name="L4204"></a><tt class="py-lineno">4204</tt> <tt class="py-line"> <tt class="py-keyword">del</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_url</tt> </tt>
</div><a name="L4205"></a><tt class="py-lineno">4205</tt> <tt class="py-line"> </tt>
<a name="Url.defaults"></a><div id="Url.defaults-def"><a name="L4206"></a><tt class="py-lineno">4206</tt> <a class="py-toggle" href="#" id="Url.defaults-toggle" onclick="return toggle('Url.defaults');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.Url-class.html#defaults">defaults</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Url.defaults-collapsed" style="display:none;" pad="++++" indent="++++++"></div><div id="Url.defaults-expanded"><a name="L4207"></a><tt class="py-lineno">4207</tt> <tt class="py-line"> <tt class="py-docstring">"""</tt> </tt>
<a name="L4208"></a><tt class="py-lineno">4208</tt> <tt class="py-line"><tt class="py-docstring"> Fill in missing values (scheme, host or port) with defaults</tt> </tt>
<a name="L4209"></a><tt class="py-lineno">4209</tt> <tt class="py-line"><tt class="py-docstring"> @return: self</tt> </tt>
<a name="L4210"></a><tt class="py-lineno">4210</tt> <tt class="py-line"><tt class="py-docstring"> """</tt> </tt>
<a name="L4211"></a><tt class="py-lineno">4211</tt> <tt class="py-line"> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-1127" class="py-name"><a title="proton.Url.scheme" class="py-name" href="#" onclick="return doclink('link-1127', 'scheme', 'link-1110');">scheme</a></tt> <tt class="py-op">=</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-1128" class="py-name"><a title="proton.Url.scheme" class="py-name" href="#" onclick="return doclink('link-1128', 'scheme', 'link-1110');">scheme</a></tt> <tt class="py-keyword">or</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-1129" class="py-name"><a title="proton.Url.AMQP" class="py-name" href="#" onclick="return doclink('link-1129', 'AMQP', 'link-1095');">AMQP</a></tt> </tt>
<a name="L4212"></a><tt class="py-lineno">4212</tt> <tt class="py-line"> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-1130" class="py-name"><a title="proton.Url.host" class="py-name" href="#" onclick="return doclink('link-1130', 'host', 'link-1116');">host</a></tt> <tt class="py-op">=</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-1131" class="py-name"><a title="proton.Url.host" class="py-name" href="#" onclick="return doclink('link-1131', 'host', 'link-1116');">host</a></tt> <tt class="py-keyword">or</tt> <tt class="py-string">'0.0.0.0'</tt> </tt>
<a name="L4213"></a><tt class="py-lineno">4213</tt> <tt class="py-line"> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-1132" class="py-name"><a title="proton.Url.port" class="py-name" href="#" onclick="return doclink('link-1132', 'port', 'link-1096');">port</a></tt> <tt class="py-op">=</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-1133" class="py-name"><a title="proton.Url.port" class="py-name" href="#" onclick="return doclink('link-1133', 'port', 'link-1096');">port</a></tt> <tt class="py-keyword">or</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-1134" class="py-name"><a title="proton.Url.Port" class="py-name" href="#" onclick="return doclink('link-1134', 'Port', 'link-1098');">Port</a></tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-1135" class="py-name"><a title="proton.Url.scheme" class="py-name" href="#" onclick="return doclink('link-1135', 'scheme', 'link-1110');">scheme</a></tt><tt class="py-op">)</tt> </tt>
<a name="L4214"></a><tt class="py-lineno">4214</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt class="py-name">self</tt> </tt>
</div></div><a name="L4215"></a><tt class="py-lineno">4215</tt> <tt class="py-line"> </tt>
<a name="L4216"></a><tt class="py-lineno">4216</tt> <tt class="py-line"><tt class="py-name">__all__</tt> <tt class="py-op">=</tt> <tt class="py-op">[</tt> </tt>
<a name="L4217"></a><tt class="py-lineno">4217</tt> <tt class="py-line"> <tt class="py-string">"API_LANGUAGE"</tt><tt class="py-op">,</tt> </tt>
<a name="L4218"></a><tt class="py-lineno">4218</tt> <tt class="py-line"> <tt class="py-string">"IMPLEMENTATION_LANGUAGE"</tt><tt class="py-op">,</tt> </tt>
<a name="L4219"></a><tt class="py-lineno">4219</tt> <tt class="py-line"> <tt class="py-string">"ABORTED"</tt><tt class="py-op">,</tt> </tt>
<a name="L4220"></a><tt class="py-lineno">4220</tt> <tt class="py-line"> <tt class="py-string">"ACCEPTED"</tt><tt class="py-op">,</tt> </tt>
<a name="L4221"></a><tt class="py-lineno">4221</tt> <tt class="py-line"> <tt class="py-string">"AUTOMATIC"</tt><tt class="py-op">,</tt> </tt>
<a name="L4222"></a><tt class="py-lineno">4222</tt> <tt class="py-line"> <tt class="py-string">"PENDING"</tt><tt class="py-op">,</tt> </tt>
<a name="L4223"></a><tt class="py-lineno">4223</tt> <tt class="py-line"> <tt class="py-string">"MANUAL"</tt><tt class="py-op">,</tt> </tt>
<a name="L4224"></a><tt class="py-lineno">4224</tt> <tt class="py-line"> <tt class="py-string">"REJECTED"</tt><tt class="py-op">,</tt> </tt>
<a name="L4225"></a><tt class="py-lineno">4225</tt> <tt class="py-line"> <tt class="py-string">"RELEASED"</tt><tt class="py-op">,</tt> </tt>
<a name="L4226"></a><tt class="py-lineno">4226</tt> <tt class="py-line"> <tt class="py-string">"MODIFIED"</tt><tt class="py-op">,</tt> </tt>
<a name="L4227"></a><tt class="py-lineno">4227</tt> <tt class="py-line"> <tt class="py-string">"SETTLED"</tt><tt class="py-op">,</tt> </tt>
<a name="L4228"></a><tt class="py-lineno">4228</tt> <tt class="py-line"> <tt class="py-string">"UNDESCRIBED"</tt><tt class="py-op">,</tt> </tt>
<a name="L4229"></a><tt class="py-lineno">4229</tt> <tt class="py-line"> <tt class="py-string">"Array"</tt><tt class="py-op">,</tt> </tt>
<a name="L4230"></a><tt class="py-lineno">4230</tt> <tt class="py-line"> <tt class="py-string">"Collector"</tt><tt class="py-op">,</tt> </tt>
<a name="L4231"></a><tt class="py-lineno">4231</tt> <tt class="py-line"> <tt class="py-string">"Condition"</tt><tt class="py-op">,</tt> </tt>
<a name="L4232"></a><tt class="py-lineno">4232</tt> <tt class="py-line"> <tt class="py-string">"Connection"</tt><tt class="py-op">,</tt> </tt>
<a name="L4233"></a><tt class="py-lineno">4233</tt> <tt class="py-line"> <tt class="py-string">"Data"</tt><tt class="py-op">,</tt> </tt>
<a name="L4234"></a><tt class="py-lineno">4234</tt> <tt class="py-line"> <tt class="py-string">"Delivery"</tt><tt class="py-op">,</tt> </tt>
<a name="L4235"></a><tt class="py-lineno">4235</tt> <tt class="py-line"> <tt class="py-string">"Disposition"</tt><tt class="py-op">,</tt> </tt>
<a name="L4236"></a><tt class="py-lineno">4236</tt> <tt class="py-line"> <tt class="py-string">"Described"</tt><tt class="py-op">,</tt> </tt>
<a name="L4237"></a><tt class="py-lineno">4237</tt> <tt class="py-line"> <tt class="py-string">"Endpoint"</tt><tt class="py-op">,</tt> </tt>
<a name="L4238"></a><tt class="py-lineno">4238</tt> <tt class="py-line"> <tt class="py-string">"Event"</tt><tt class="py-op">,</tt> </tt>
<a name="L4239"></a><tt class="py-lineno">4239</tt> <tt class="py-line"> <tt class="py-string">"EventType"</tt><tt class="py-op">,</tt> </tt>
<a name="L4240"></a><tt class="py-lineno">4240</tt> <tt class="py-line"> <tt class="py-string">"Handler"</tt><tt class="py-op">,</tt> </tt>
<a name="L4241"></a><tt class="py-lineno">4241</tt> <tt class="py-line"> <tt class="py-string">"Link"</tt><tt class="py-op">,</tt> </tt>
<a name="L4242"></a><tt class="py-lineno">4242</tt> <tt class="py-line"> <tt class="py-string">"Message"</tt><tt class="py-op">,</tt> </tt>
<a name="L4243"></a><tt class="py-lineno">4243</tt> <tt class="py-line"> <tt class="py-string">"MessageException"</tt><tt class="py-op">,</tt> </tt>
<a name="L4244"></a><tt class="py-lineno">4244</tt> <tt class="py-line"> <tt class="py-string">"Messenger"</tt><tt class="py-op">,</tt> </tt>
<a name="L4245"></a><tt class="py-lineno">4245</tt> <tt class="py-line"> <tt class="py-string">"MessengerException"</tt><tt class="py-op">,</tt> </tt>
<a name="L4246"></a><tt class="py-lineno">4246</tt> <tt class="py-line"> <tt class="py-string">"ProtonException"</tt><tt class="py-op">,</tt> </tt>
<a name="L4247"></a><tt class="py-lineno">4247</tt> <tt class="py-line"> <tt class="py-string">"VERSION_MAJOR"</tt><tt class="py-op">,</tt> </tt>
<a name="L4248"></a><tt class="py-lineno">4248</tt> <tt class="py-line"> <tt class="py-string">"VERSION_MINOR"</tt><tt class="py-op">,</tt> </tt>
<a name="L4249"></a><tt class="py-lineno">4249</tt> <tt class="py-line"> <tt class="py-string">"Receiver"</tt><tt class="py-op">,</tt> </tt>
<a name="L4250"></a><tt class="py-lineno">4250</tt> <tt class="py-line"> <tt class="py-string">"SASL"</tt><tt class="py-op">,</tt> </tt>
<a name="L4251"></a><tt class="py-lineno">4251</tt> <tt class="py-line"> <tt class="py-string">"Sender"</tt><tt class="py-op">,</tt> </tt>
<a name="L4252"></a><tt class="py-lineno">4252</tt> <tt class="py-line"> <tt class="py-string">"Session"</tt><tt class="py-op">,</tt> </tt>
<a name="L4253"></a><tt class="py-lineno">4253</tt> <tt class="py-line"> <tt class="py-string">"SessionException"</tt><tt class="py-op">,</tt> </tt>
<a name="L4254"></a><tt class="py-lineno">4254</tt> <tt class="py-line"> <tt class="py-string">"SSL"</tt><tt class="py-op">,</tt> </tt>
<a name="L4255"></a><tt class="py-lineno">4255</tt> <tt class="py-line"> <tt class="py-string">"SSLDomain"</tt><tt class="py-op">,</tt> </tt>
<a name="L4256"></a><tt class="py-lineno">4256</tt> <tt class="py-line"> <tt class="py-string">"SSLSessionDetails"</tt><tt class="py-op">,</tt> </tt>
<a name="L4257"></a><tt class="py-lineno">4257</tt> <tt class="py-line"> <tt class="py-string">"SSLUnavailable"</tt><tt class="py-op">,</tt> </tt>
<a name="L4258"></a><tt class="py-lineno">4258</tt> <tt class="py-line"> <tt class="py-string">"SSLException"</tt><tt class="py-op">,</tt> </tt>
<a name="L4259"></a><tt class="py-lineno">4259</tt> <tt class="py-line"> <tt class="py-string">"Terminus"</tt><tt class="py-op">,</tt> </tt>
<a name="L4260"></a><tt class="py-lineno">4260</tt> <tt class="py-line"> <tt class="py-string">"Timeout"</tt><tt class="py-op">,</tt> </tt>
<a name="L4261"></a><tt class="py-lineno">4261</tt> <tt class="py-line"> <tt class="py-string">"Interrupt"</tt><tt class="py-op">,</tt> </tt>
<a name="L4262"></a><tt class="py-lineno">4262</tt> <tt class="py-line"> <tt class="py-string">"Transport"</tt><tt class="py-op">,</tt> </tt>
<a name="L4263"></a><tt class="py-lineno">4263</tt> <tt class="py-line"> <tt class="py-string">"TransportException"</tt><tt class="py-op">,</tt> </tt>
<a name="L4264"></a><tt class="py-lineno">4264</tt> <tt class="py-line"> <tt class="py-string">"Url"</tt><tt class="py-op">,</tt> </tt>
<a name="L4265"></a><tt class="py-lineno">4265</tt> <tt class="py-line"> <tt class="py-string">"char"</tt><tt class="py-op">,</tt> </tt>
<a name="L4266"></a><tt class="py-lineno">4266</tt> <tt class="py-line"> <tt class="py-string">"dispatch"</tt><tt class="py-op">,</tt> </tt>
<a name="L4267"></a><tt class="py-lineno">4267</tt> <tt class="py-line"> <tt class="py-string">"symbol"</tt><tt class="py-op">,</tt> </tt>
<a name="L4268"></a><tt class="py-lineno">4268</tt> <tt class="py-line"> <tt class="py-string">"timestamp"</tt><tt class="py-op">,</tt> </tt>
<a name="L4269"></a><tt class="py-lineno">4269</tt> <tt class="py-line"> <tt class="py-string">"ulong"</tt><tt class="py-op">,</tt> </tt>
<a name="L4270"></a><tt class="py-lineno">4270</tt> <tt class="py-line"> <tt class="py-string">"byte"</tt><tt class="py-op">,</tt> </tt>
<a name="L4271"></a><tt class="py-lineno">4271</tt> <tt class="py-line"> <tt class="py-string">"short"</tt><tt class="py-op">,</tt> </tt>
<a name="L4272"></a><tt class="py-lineno">4272</tt> <tt class="py-line"> <tt class="py-string">"int32"</tt><tt class="py-op">,</tt> </tt>
<a name="L4273"></a><tt class="py-lineno">4273</tt> <tt class="py-line"> <tt class="py-string">"ubyte"</tt><tt class="py-op">,</tt> </tt>
<a name="L4274"></a><tt class="py-lineno">4274</tt> <tt class="py-line"> <tt class="py-string">"ushort"</tt><tt class="py-op">,</tt> </tt>
<a name="L4275"></a><tt class="py-lineno">4275</tt> <tt class="py-line"> <tt class="py-string">"uint"</tt><tt class="py-op">,</tt> </tt>
<a name="L4276"></a><tt class="py-lineno">4276</tt> <tt class="py-line"> <tt class="py-string">"float32"</tt><tt class="py-op">,</tt> </tt>
<a name="L4277"></a><tt class="py-lineno">4277</tt> <tt class="py-line"> <tt class="py-string">"decimal32"</tt><tt class="py-op">,</tt> </tt>
<a name="L4278"></a><tt class="py-lineno">4278</tt> <tt class="py-line"> <tt class="py-string">"decimal64"</tt><tt class="py-op">,</tt> </tt>
<a name="L4279"></a><tt class="py-lineno">4279</tt> <tt class="py-line"> <tt class="py-string">"decimal128"</tt> </tt>
<a name="L4280"></a><tt class="py-lineno">4280</tt> <tt class="py-line"> <tt class="py-op">]</tt> </tt>
<a name="L4281"></a><tt class="py-lineno">4281</tt> <tt class="py-line"> </tt><script type="text/javascript">
<!--
expandto(location.href);
// -->
</script>
</pre>
<br />
<!-- ==================== NAVIGATION BAR ==================== -->
<table class="navbar" border="0" width="100%" cellpadding="0"
bgcolor="#a0c0ff" cellspacing="0">
<tr valign="middle">
<!-- Home link -->
<th bgcolor="#70b0f0" class="navbar-select"
> Home </th>
<!-- Tree link -->
<th> <a
href="module-tree.html">Trees</a> </th>
<!-- Index link -->
<th> <a
href="identifier-index.html">Indices</a> </th>
<!-- Help link -->
<th> <a
href="help.html">Help</a> </th>
<th class="navbar" width="100%"></th>
</tr>
</table>
<table border="0" cellpadding="0" cellspacing="0" width="100%%">
<tr>
<td align="left" class="footer">
Generated by Epydoc 3.0.1
on Sun Feb 4 22:16:50 2018
</td>
<td align="right" class="footer">
<a target="mainFrame" href="http://epydoc.sourceforge.net"
>http://epydoc.sourceforge.net</a>
</td>
</tr>
</table>
<script type="text/javascript">
<!--
// Private objects are initially displayed (because if
// javascript is turned off then we want them to be
// visible); but by default, we want to hide them. So hide
// them unless we have a cookie that says to show them.
checkCookie();
// -->
</script>
</body>
</html>
|