/usr/share/doc/libucommon-dev/a00152.html is in libucommon-doc 3.2.0-0ubuntu1.
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 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>UCommon: ucc::Socket::address Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<!-- Generated by Doxygen 1.6.3 -->
<div class="navigation" id="top">
<div class="tabs">
<ul>
<li><a href="main.html"><span>Main Page</span></a></li>
<li><a href="namespaces.html"><span>Namespaces</span></a></li>
<li class="current"><a href="annotated.html"><span>Data Structures</span></a></li>
<li><a href="files.html"><span>Files</span></a></li>
<li><a href="examples.html"><span>Examples</span></a></li>
</ul>
</div>
<div class="tabs">
<ul>
<li><a href="annotated.html"><span>Data Structures</span></a></li>
<li><a href="classes.html"><span>Data Structure Index</span></a></li>
<li><a href="hierarchy.html"><span>Class Hierarchy</span></a></li>
<li><a href="functions.html"><span>Data Fields</span></a></li>
</ul>
</div>
<div class="navpath"><a class="el" href="a00214.html">ucc</a>::<a class="el" href="a00151.html">Socket</a>::<a class="el" href="a00152.html">address</a>
</div>
</div>
<div class="contents">
<h1>ucc::Socket::address Class Reference</h1><!-- doxytag: class="ucc::Socket::address" -->
<p>A generic socket address class.
<a href="#_details">More...</a></p>
<p><code>#include <<a class="el" href="a00205_source.html">socket.h</a>></code></p>
<table border="0" cellpadding="0" cellspacing="0">
<tr><td colspan="2"><h2>Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="a00152.html#a417856319a9ddf71426e694cd6922da6">add</a> (sockaddr *<a class="el" href="a00152.html">address</a>)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Add an individual socket address to our address list. <a href="#a417856319a9ddf71426e694cd6922da6"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="a00152.html#af79805a5ac3333aa42ee91dc231b6c29">add</a> (const char *hostname, const char *service=NULL, int family=0, int type=SOCK_STREAM)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Append additional host addresses to our list. <a href="#af79805a5ac3333aa42ee91dc231b6c29"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="a00152.html#a5675824d10af96397a1d3ba67ba3afad">address</a> (const <a class="el" href="a00152.html">address</a> &reference)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Copy constructor. <a href="#a5675824d10af96397a1d3ba67ba3afad"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ae9cedeca88b1637541df465ade5b5af7"></a><!-- doxytag: member="ucc::Socket::address::address" ref="ae9cedeca88b1637541df465ade5b5af7" args="()" -->
</td><td class="memItemRight" valign="bottom"><a class="el" href="a00152.html#ae9cedeca88b1637541df465ade5b5af7">address</a> ()</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Construct an empty address. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="a00152.html#ae955895ffc3b3e1d5332d7981accd720">address</a> (const char *hostname, unsigned service=0, int family=DEFAULT_FAMILY)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Construct a socket address from host and service. <a href="#ae955895ffc3b3e1d5332d7981accd720"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="a00152.html#a3a4b02c5436825a3c1594cd961eed2c5">address</a> (socket_t <a class="el" href="a00151.html">socket</a>, const char *hostname, const char *service=NULL)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Construct a socket address for a socket descriptor. <a href="#a3a4b02c5436825a3c1594cd961eed2c5"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="a00152.html#a0a0d7fcc221f1ee9fbe5e24131b65af3">address</a> (<a class="el" href="a00151.html">Socket</a> &<a class="el" href="a00151.html">socket</a>, const char *hostname, const char *service=NULL)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Construct a socket address for an existing socket. <a href="#a0a0d7fcc221f1ee9fbe5e24131b65af3"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="a00152.html#ab38fe753da9a5c1415755ec174985b8e">address</a> (int family, const char *<a class="el" href="a00152.html">address</a>, int type=SOCK_STREAM, int protocol=0)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Construct a socket address. <a href="#ab38fe753da9a5c1415755ec174985b8e"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ac8be9a4714ab3b894b966c4da8f26ad6"></a><!-- doxytag: member="ucc::Socket::address::clear" ref="ac8be9a4714ab3b894b966c4da8f26ad6" args="(void)" -->
void </td><td class="memItemRight" valign="bottom"><a class="el" href="a00152.html#ac8be9a4714ab3b894b966c4da8f26ad6">clear</a> (void)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Clear current object. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="a00152.html#ac0447d7bb20dde9ab12c52f2f20424ea">copy</a> (const struct addrinfo *<a class="el" href="a00152.html">address</a>)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Copy an existing addrinfo into our object. <a href="#ac0447d7bb20dde9ab12c52f2f20424ea"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">struct sockaddr * </td><td class="memItemRight" valign="bottom"><a class="el" href="a00152.html#aca8d8cafae8e126329d04150ac498f6f">find</a> (struct sockaddr *addr) const </td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Find a specific socket address in our address list. <a href="#aca8d8cafae8e126329d04150ac498f6f"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">struct sockaddr * </td><td class="memItemRight" valign="bottom"><a class="el" href="a00152.html#a3d1b0f4ae5c43f95e788ecf516977a8f">get</a> (int family) const </td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Get the first socket address of specified family from our list. <a href="#a3d1b0f4ae5c43f95e788ecf516977a8f"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">struct sockaddr * </td><td class="memItemRight" valign="bottom"><a class="el" href="a00152.html#aa28b34434f89118f4b17b046c0c44315">getAddr</a> (void) const </td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Get the first socket address in our address list. <a href="#aa28b34434f89118f4b17b046c0c44315"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="a00152.html#a1fddee8b29dbdfd604464bb92b90163f">getfamily</a> (void) const </td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Get the family of a socket address by first entry. <a href="#a1fddee8b29dbdfd604464bb92b90163f"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">struct addrinfo * </td><td class="memItemRight" valign="bottom"><a class="el" href="a00152.html#ad2a274be9c6343447e1c2187a82e5821">getList</a> (void) const </td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Get the full socket address list from the object. <a href="#ad2a274be9c6343447e1c2187a82e5821"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">unsigned </td><td class="memItemRight" valign="bottom"><a class="el" href="a00152.html#a2da313a55874e071992bf66adc6e3b47">insert</a> (struct addrinfo *<a class="el" href="a00152.html">address</a>, int family=0)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Insert unique members from another socket address list to ours. <a href="#a2da313a55874e071992bf66adc6e3b47"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="a00152.html#a9a86ccac61c8a79e7cabfda0c7561589">insert</a> (struct sockaddr *<a class="el" href="a00152.html">address</a>)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Insert an individual socket address to our address list only if unique. <a href="#a9a86ccac61c8a79e7cabfda0c7561589"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="a00152.html#a7d03212d60c51749364f2e565c8f23bd">operator bool</a> () const </td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Test if the address list is valid. <a href="#a7d03212d60c51749364f2e565c8f23bd"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="a00152.html#ab7c027bfa12d44e1284437b814c2e800">operator struct addrinfo *</a> () const </td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Get the full socket address list by casted reference. <a href="#ab7c027bfa12d44e1284437b814c2e800"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="a00152.html#a1cd1455b6465da57c38104a83b62eea9">operator struct sockaddr *</a> () const </td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Get the first socket address by casted reference. <a href="#a1cd1455b6465da57c38104a83b62eea9"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="a00152.html#a2001390098acf2dafe981f8e6b0bd8ff">operator!</a> () const </td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Test if we have no address list. <a href="#a2001390098acf2dafe981f8e6b0bd8ff"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">struct addrinfo * </td><td class="memItemRight" valign="bottom"><a class="el" href="a00152.html#aedd308c2a7202346483c45d8ce488173">operator*</a> () const </td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Return the full socket address list by pointer reference. <a href="#aedd308c2a7202346483c45d8ce488173"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">unsigned </td><td class="memItemRight" valign="bottom"><a class="el" href="a00152.html#ad24f4920208d988aea1c1d3f8b4c64a5">remove</a> (struct addrinfo *<a class="el" href="a00152.html">address</a>, int family=0)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Remove members from another socket address list from ours. <a href="#ad24f4920208d988aea1c1d3f8b4c64a5"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="a00152.html#af7c608db647799cb3cb65fe8d4068ba4">remove</a> (struct sockaddr *<a class="el" href="a00152.html">address</a>)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Remove an individual socket address from our address list. <a href="#af7c608db647799cb3cb65fe8d4068ba4"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="a00152.html#a855556173bb08c117d21089f49a53ea9">set</a> (const char *hostname, unsigned service=0, int family=DEFAULT_FAMILY)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Set a socket address from host and service. <a href="#a855556173bb08c117d21089f49a53ea9"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="a00152.html#ad16cc0cad5266955ddaba70da987b740">set</a> (struct sockaddr *<a class="el" href="a00152.html">address</a>)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Set an individual socket address for our address list. <a href="#ad16cc0cad5266955ddaba70da987b740"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="a00152.html#ac69fd4ad64f7423dffd625e85d57ec73">set</a> (int family, const char *<a class="el" href="a00152.html">address</a>, int type=SOCK_STREAM, int protocol=0)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Set an entry for host binding. <a href="#ac69fd4ad64f7423dffd625e85d57ec73"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="a00152.html#a5ff4be8a4c8e90fd749636aae748d3ea">set</a> (const char *hostname, const char *service=NULL, int family=0, int type=SOCK_STREAM)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Set the host addresses to form a new list. <a href="#a5ff4be8a4c8e90fd749636aae748d3ea"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="a00152.html#ab4c50ba960724562767e84a05e382566">~address</a> ()</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Destroy address. <a href="#ab4c50ba960724562767e84a05e382566"></a><br/></td></tr>
<tr><td colspan="2"><h2>Static Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static struct sockaddr * </td><td class="memItemRight" valign="bottom"><a class="el" href="a00152.html#a174f133a04ce395866c7bc8da365cfd9">dup</a> (struct sockaddr *<a class="el" href="a00152.html">address</a>)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Duplicate a socket address. <a href="#a174f133a04ce395866c7bc8da365cfd9"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static struct sockaddr_in * </td><td class="memItemRight" valign="bottom"><a class="el" href="a00152.html#a99a2af58a275aebef462a5789d3fb1c7">ipv4</a> (struct sockaddr *<a class="el" href="a00152.html">address</a>)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Convert address object into ipv4 address. <a href="#a99a2af58a275aebef462a5789d3fb1c7"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static struct sockaddr_in6 * </td><td class="memItemRight" valign="bottom"><a class="el" href="a00152.html#a096a1d6c8d05f6b5ca7c399bff5f9816">ipv6</a> (struct sockaddr *<a class="el" href="a00152.html">address</a>)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Convert address object into ipv6 address. <a href="#a096a1d6c8d05f6b5ca7c399bff5f9816"></a><br/></td></tr>
<tr><td colspan="2"><h2>Protected Attributes</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a7a90f2fb922eca3da16c8c1f68b15148"></a><!-- doxytag: member="ucc::Socket::address::list" ref="a7a90f2fb922eca3da16c8c1f68b15148" args="" -->
struct addrinfo * </td><td class="memItemRight" valign="bottom"><b>list</b></td></tr>
</table>
<hr/><a name="_details"></a><h2>Detailed Description</h2>
<p>A generic socket address class. </p>
<p>This class uses the addrinfo list to store socket multiple addresses in a protocol and family independent manner. Hence, this address class can be used for ipv4 and ipv6 sockets, for assigning connections to multiple hosts, etc. The address class will call the resolver when passed host names. </p>
<dl class="author"><dt><b>Author:</b></dt><dd>David Sugar <<a href="mailto:dyfet@gnutelephony.org">dyfet@gnutelephony.org</a>> </dd></dl>
<p>Definition at line <a class="el" href="a00205_source.html#l00335">335</a> of file <a class="el" href="a00205_source.html">socket.h</a>.</p>
<hr/><h2>Constructor & Destructor Documentation</h2>
<a class="anchor" id="ab38fe753da9a5c1415755ec174985b8e"></a><!-- doxytag: member="ucc::Socket::address::address" ref="ab38fe753da9a5c1415755ec174985b8e" args="(int family, const char *address, int type=SOCK_STREAM, int protocol=0)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">ucc::Socket::address::address </td>
<td>(</td>
<td class="paramtype">int </td>
<td class="paramname"> <em>family</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const char * </td>
<td class="paramname"> <em>address</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int </td>
<td class="paramname"> <em>type</em> = <code>SOCK_STREAM</code>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int </td>
<td class="paramname"> <em>protocol</em> = <code>0</code></td><td> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td><td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Construct a socket address. </p>
<dl><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>address</em> </td><td>or hostname. </td></tr>
<tr><td valign="top"></td><td valign="top"><em>family</em> </td><td>of socket address. Needed when hostnames are used. </td></tr>
<tr><td valign="top"></td><td valign="top"><em>type</em> </td><td>of socket (stream, dgram, etc). </td></tr>
<tr><td valign="top"></td><td valign="top"><em>protocol</em> </td><td>number of socket. </td></tr>
</table>
</dd>
</dl>
</div>
</div>
<a class="anchor" id="a0a0d7fcc221f1ee9fbe5e24131b65af3"></a><!-- doxytag: member="ucc::Socket::address::address" ref="a0a0d7fcc221f1ee9fbe5e24131b65af3" args="(Socket &socket, const char *hostname, const char *service=NULL)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">ucc::Socket::address::address </td>
<td>(</td>
<td class="paramtype"><a class="el" href="a00151.html">Socket</a> & </td>
<td class="paramname"> <em>socket</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const char * </td>
<td class="paramname"> <em>hostname</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const char * </td>
<td class="paramname"> <em>service</em> = <code>NULL</code></td><td> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td><td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Construct a socket address for an existing socket. </p>
<dl><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>socket</em> </td><td>to use for family of socket address. </td></tr>
<tr><td valign="top"></td><td valign="top"><em>hostname</em> </td><td>or ip address. The socket family is used for hostnames. </td></tr>
<tr><td valign="top"></td><td valign="top"><em>service</em> </td><td>port or name we are referencing or NULL. </td></tr>
</table>
</dd>
</dl>
</div>
</div>
<a class="anchor" id="a3a4b02c5436825a3c1594cd961eed2c5"></a><!-- doxytag: member="ucc::Socket::address::address" ref="a3a4b02c5436825a3c1594cd961eed2c5" args="(socket_t socket, const char *hostname, const char *service=NULL)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">ucc::Socket::address::address </td>
<td>(</td>
<td class="paramtype">socket_t </td>
<td class="paramname"> <em>socket</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const char * </td>
<td class="paramname"> <em>hostname</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const char * </td>
<td class="paramname"> <em>service</em> = <code>NULL</code></td><td> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td><td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Construct a socket address for a socket descriptor. </p>
<dl><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>socket</em> </td><td>descriptor to use for family. </td></tr>
<tr><td valign="top"></td><td valign="top"><em>hostname</em> </td><td>or address to use. </td></tr>
<tr><td valign="top"></td><td valign="top"><em>service</em> </td><td>port or name we are referencing or NULL. </td></tr>
</table>
</dd>
</dl>
</div>
</div>
<a class="anchor" id="ae955895ffc3b3e1d5332d7981accd720"></a><!-- doxytag: member="ucc::Socket::address::address" ref="ae955895ffc3b3e1d5332d7981accd720" args="(const char *hostname, unsigned service=0, int family=DEFAULT_FAMILY)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">ucc::Socket::address::address </td>
<td>(</td>
<td class="paramtype">const char * </td>
<td class="paramname"> <em>hostname</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">unsigned </td>
<td class="paramname"> <em>service</em> = <code>0</code>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int </td>
<td class="paramname"> <em>family</em> = <code>DEFAULT_FAMILY</code></td><td> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td><td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Construct a socket address from host and service. </p>
<dl><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>hostname</em> </td><td>or address to use. </td></tr>
<tr><td valign="top"></td><td valign="top"><em>service</em> </td><td>port or 0. </td></tr>
<tr><td valign="top"></td><td valign="top"><em>family</em> </td><td>of socket address. </td></tr>
</table>
</dd>
</dl>
</div>
</div>
<a class="anchor" id="a5675824d10af96397a1d3ba67ba3afad"></a><!-- doxytag: member="ucc::Socket::address::address" ref="a5675824d10af96397a1d3ba67ba3afad" args="(const address &reference)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">ucc::Socket::address::address </td>
<td>(</td>
<td class="paramtype">const <a class="el" href="a00152.html">address</a> & </td>
<td class="paramname"> <em>reference</em></td>
<td> ) </td>
<td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Copy constructor. </p>
<dl><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>reference</em> </td><td>to object to copy from. </td></tr>
</table>
</dd>
</dl>
</div>
</div>
<a class="anchor" id="ab4c50ba960724562767e84a05e382566"></a><!-- doxytag: member="ucc::Socket::address::~address" ref="ab4c50ba960724562767e84a05e382566" args="()" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">ucc::Socket::address::~address </td>
<td>(</td>
<td class="paramname"></td>
<td> ) </td>
<td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Destroy address. </p>
<p>Deallocate addrinfo structure. </p>
</div>
</div>
<hr/><h2>Member Function Documentation</h2>
<a class="anchor" id="a417856319a9ddf71426e694cd6922da6"></a><!-- doxytag: member="ucc::Socket::address::add" ref="a417856319a9ddf71426e694cd6922da6" args="(sockaddr *address)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void ucc::Socket::address::add </td>
<td>(</td>
<td class="paramtype">sockaddr * </td>
<td class="paramname"> <em>address</em></td>
<td> ) </td>
<td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Add an individual socket address to our address list. </p>
<dl><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>address</em> </td><td>to add. </td></tr>
</table>
</dd>
</dl>
</div>
</div>
<a class="anchor" id="af79805a5ac3333aa42ee91dc231b6c29"></a><!-- doxytag: member="ucc::Socket::address::add" ref="af79805a5ac3333aa42ee91dc231b6c29" args="(const char *hostname, const char *service=NULL, int family=0, int type=SOCK_STREAM)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void ucc::Socket::address::add </td>
<td>(</td>
<td class="paramtype">const char * </td>
<td class="paramname"> <em>hostname</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const char * </td>
<td class="paramname"> <em>service</em> = <code>NULL</code>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int </td>
<td class="paramname"> <em>family</em> = <code>0</code>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int </td>
<td class="paramname"> <em>type</em> = <code>SOCK_STREAM</code></td><td> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td><td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Append additional host addresses to our list. </p>
<dl><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>hostname</em> </td><td>or address to resolve. </td></tr>
<tr><td valign="top"></td><td valign="top"><em>service</em> </td><td>name or port number, or NULL if not used. </td></tr>
<tr><td valign="top"></td><td valign="top"><em>family</em> </td><td>of hostname. </td></tr>
<tr><td valign="top"></td><td valign="top"><em>type</em> </td><td>of socket. </td></tr>
</table>
</dd>
</dl>
</div>
</div>
<a class="anchor" id="ac0447d7bb20dde9ab12c52f2f20424ea"></a><!-- doxytag: member="ucc::Socket::address::copy" ref="ac0447d7bb20dde9ab12c52f2f20424ea" args="(const struct addrinfo *address)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void ucc::Socket::address::copy </td>
<td>(</td>
<td class="paramtype">const struct addrinfo * </td>
<td class="paramname"> <em>address</em></td>
<td> ) </td>
<td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Copy an existing addrinfo into our object. </p>
<p>This is also used to support the copy constructor. </p>
<dl><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>address</em> </td><td>list to copy from. </td></tr>
</table>
</dd>
</dl>
</div>
</div>
<a class="anchor" id="a174f133a04ce395866c7bc8da365cfd9"></a><!-- doxytag: member="ucc::Socket::address::dup" ref="a174f133a04ce395866c7bc8da365cfd9" args="(struct sockaddr *address)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">static struct sockaddr* ucc::Socket::address::dup </td>
<td>(</td>
<td class="paramtype">struct sockaddr * </td>
<td class="paramname"> <em>address</em></td>
<td> ) </td>
<td><code> [static, read]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Duplicate a socket address. </p>
<dl><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>address</em> </td><td>to duplicate. </td></tr>
</table>
</dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>duplicate address object. </dd></dl>
</div>
</div>
<a class="anchor" id="aca8d8cafae8e126329d04150ac498f6f"></a><!-- doxytag: member="ucc::Socket::address::find" ref="aca8d8cafae8e126329d04150ac498f6f" args="(struct sockaddr *addr) const " -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">struct sockaddr* ucc::Socket::address::find </td>
<td>(</td>
<td class="paramtype">struct sockaddr * </td>
<td class="paramname"> <em>addr</em></td>
<td> ) </td>
<td> const<code> [read]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Find a specific socket address in our address list. </p>
<dl class="return"><dt><b>Returns:</b></dt><dd>matching address from list or NULL if not found. </dd></dl>
</div>
</div>
<a class="anchor" id="a3d1b0f4ae5c43f95e788ecf516977a8f"></a><!-- doxytag: member="ucc::Socket::address::get" ref="a3d1b0f4ae5c43f95e788ecf516977a8f" args="(int family) const " -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">struct sockaddr* ucc::Socket::address::get </td>
<td>(</td>
<td class="paramtype">int </td>
<td class="paramname"> <em>family</em></td>
<td> ) </td>
<td> const<code> [read]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Get the first socket address of specified family from our list. </p>
<dl><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>family</em> </td><td>to seek. </td></tr>
</table>
</dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>first socket address of family or NULL if none. </dd></dl>
</div>
</div>
<a class="anchor" id="aa28b34434f89118f4b17b046c0c44315"></a><!-- doxytag: member="ucc::Socket::address::getAddr" ref="aa28b34434f89118f4b17b046c0c44315" args="(void) const " -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">struct sockaddr* ucc::Socket::address::getAddr </td>
<td>(</td>
<td class="paramtype">void </td>
<td class="paramname"></td>
<td> ) </td>
<td> const<code> [read]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Get the first socket address in our address list. </p>
<dl class="return"><dt><b>Returns:</b></dt><dd>first socket address or NULL if none. </dd></dl>
</div>
</div>
<a class="anchor" id="a1fddee8b29dbdfd604464bb92b90163f"></a><!-- doxytag: member="ucc::Socket::address::getfamily" ref="a1fddee8b29dbdfd604464bb92b90163f" args="(void) const " -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">int ucc::Socket::address::getfamily </td>
<td>(</td>
<td class="paramtype">void </td>
<td class="paramname"></td>
<td> ) </td>
<td> const</td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Get the family of a socket address by first entry. </p>
<dl class="return"><dt><b>Returns:</b></dt><dd>family of first socket address or 0 if none. </dd></dl>
</div>
</div>
<a class="anchor" id="ad2a274be9c6343447e1c2187a82e5821"></a><!-- doxytag: member="ucc::Socket::address::getList" ref="ad2a274be9c6343447e1c2187a82e5821" args="(void) const " -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">struct addrinfo* ucc::Socket::address::getList </td>
<td>(</td>
<td class="paramtype">void </td>
<td class="paramname"></td>
<td> ) </td>
<td> const<code> [inline, read]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Get the full socket address list from the object. </p>
<dl class="return"><dt><b>Returns:</b></dt><dd>addrinfo list we resolved or NULL if none. </dd></dl>
<p>Definition at line <a class="el" href="a00205_source.html#l00419">419</a> of file <a class="el" href="a00205_source.html">socket.h</a>.</p>
</div>
</div>
<a class="anchor" id="a2da313a55874e071992bf66adc6e3b47"></a><!-- doxytag: member="ucc::Socket::address::insert" ref="a2da313a55874e071992bf66adc6e3b47" args="(struct addrinfo *address, int family=0)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">unsigned ucc::Socket::address::insert </td>
<td>(</td>
<td class="paramtype">struct addrinfo * </td>
<td class="paramname"> <em>address</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int </td>
<td class="paramname"> <em>family</em> = <code>0</code></td><td> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td><td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Insert unique members from another socket address list to ours. </p>
<dl><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>address</em> </td><td>list to insert into list. </td></tr>
<tr><td valign="top"></td><td valign="top"><em>family</em> </td><td>to scan for or 0 for all. </td></tr>
</table>
</dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>count of addresses added. </dd></dl>
</div>
</div>
<a class="anchor" id="a9a86ccac61c8a79e7cabfda0c7561589"></a><!-- doxytag: member="ucc::Socket::address::insert" ref="a9a86ccac61c8a79e7cabfda0c7561589" args="(struct sockaddr *address)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">bool ucc::Socket::address::insert </td>
<td>(</td>
<td class="paramtype">struct sockaddr * </td>
<td class="paramname"> <em>address</em></td>
<td> ) </td>
<td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Insert an individual socket address to our address list only if unique. </p>
<dl><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>address</em> </td><td>to insert into list. </td></tr>
</table>
</dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>true if inserted, false if duplicate. </dd></dl>
</div>
</div>
<a class="anchor" id="a99a2af58a275aebef462a5789d3fb1c7"></a><!-- doxytag: member="ucc::Socket::address::ipv4" ref="a99a2af58a275aebef462a5789d3fb1c7" args="(struct sockaddr *address)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">static struct sockaddr_in* ucc::Socket::address::ipv4 </td>
<td>(</td>
<td class="paramtype">struct sockaddr * </td>
<td class="paramname"> <em>address</em></td>
<td> ) </td>
<td><code> [static, read]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Convert address object into ipv4 address. </p>
<dl><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>address</em> </td><td>to convert. </td></tr>
</table>
</dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>new ipv4 address or NULL if not ipv4. </dd></dl>
</div>
</div>
<a class="anchor" id="a096a1d6c8d05f6b5ca7c399bff5f9816"></a><!-- doxytag: member="ucc::Socket::address::ipv6" ref="a096a1d6c8d05f6b5ca7c399bff5f9816" args="(struct sockaddr *address)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">static struct sockaddr_in6* ucc::Socket::address::ipv6 </td>
<td>(</td>
<td class="paramtype">struct sockaddr * </td>
<td class="paramname"> <em>address</em></td>
<td> ) </td>
<td><code> [static, read]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Convert address object into ipv6 address. </p>
<dl><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>address</em> </td><td>to convert. </td></tr>
</table>
</dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>new ipv6 address or NULL if not ipv6. </dd></dl>
</div>
</div>
<a class="anchor" id="a7d03212d60c51749364f2e565c8f23bd"></a><!-- doxytag: member="ucc::Socket::address::operator bool" ref="a7d03212d60c51749364f2e565c8f23bd" args="() const " -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">ucc::Socket::address::operator bool </td>
<td>(</td>
<td class="paramname"></td>
<td> ) </td>
<td> const<code> [inline]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Test if the address list is valid. </p>
<dl class="return"><dt><b>Returns:</b></dt><dd>true if we have an address list. </dd></dl>
<p>Definition at line <a class="el" href="a00205_source.html#l00440">440</a> of file <a class="el" href="a00205_source.html">socket.h</a>.</p>
</div>
</div>
<a class="anchor" id="ab7c027bfa12d44e1284437b814c2e800"></a><!-- doxytag: member="ucc::Socket::address::operator struct addrinfo *" ref="ab7c027bfa12d44e1284437b814c2e800" args="() const " -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">ucc::Socket::address::operator struct addrinfo * </td>
<td>(</td>
<td class="paramname"></td>
<td> ) </td>
<td> const<code> [inline]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Get the full socket address list by casted reference. </p>
<dl class="return"><dt><b>Returns:</b></dt><dd>addrinfo list we resolved or NULL if none. </dd></dl>
<p>Definition at line <a class="el" href="a00205_source.html#l00426">426</a> of file <a class="el" href="a00205_source.html">socket.h</a>.</p>
</div>
</div>
<a class="anchor" id="a1cd1455b6465da57c38104a83b62eea9"></a><!-- doxytag: member="ucc::Socket::address::operator struct sockaddr *" ref="a1cd1455b6465da57c38104a83b62eea9" args="() const " -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">ucc::Socket::address::operator struct sockaddr * </td>
<td>(</td>
<td class="paramname"></td>
<td> ) </td>
<td> const<code> [inline]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Get the first socket address by casted reference. </p>
<dl class="return"><dt><b>Returns:</b></dt><dd>first socket address we resolved or NULL if none. </dd></dl>
<p>Definition at line <a class="el" href="a00205_source.html#l00454">454</a> of file <a class="el" href="a00205_source.html">socket.h</a>.</p>
</div>
</div>
<a class="anchor" id="a2001390098acf2dafe981f8e6b0bd8ff"></a><!-- doxytag: member="ucc::Socket::address::operator!" ref="a2001390098acf2dafe981f8e6b0bd8ff" args="() const " -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">bool ucc::Socket::address::operator! </td>
<td>(</td>
<td class="paramname"></td>
<td> ) </td>
<td> const<code> [inline]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Test if we have no address list. </p>
<dl class="return"><dt><b>Returns:</b></dt><dd>true if we have no address list. </dd></dl>
<p>Definition at line <a class="el" href="a00205_source.html#l00447">447</a> of file <a class="el" href="a00205_source.html">socket.h</a>.</p>
</div>
</div>
<a class="anchor" id="aedd308c2a7202346483c45d8ce488173"></a><!-- doxytag: member="ucc::Socket::address::operator*" ref="aedd308c2a7202346483c45d8ce488173" args="() const " -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">struct addrinfo* ucc::Socket::address::operator* </td>
<td>(</td>
<td class="paramname"></td>
<td> ) </td>
<td> const<code> [inline, read]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Return the full socket address list by pointer reference. </p>
<dl class="return"><dt><b>Returns:</b></dt><dd>addrinfo list we resolved or NULL if none. </dd></dl>
<p>Definition at line <a class="el" href="a00205_source.html#l00433">433</a> of file <a class="el" href="a00205_source.html">socket.h</a>.</p>
</div>
</div>
<a class="anchor" id="ad24f4920208d988aea1c1d3f8b4c64a5"></a><!-- doxytag: member="ucc::Socket::address::remove" ref="ad24f4920208d988aea1c1d3f8b4c64a5" args="(struct addrinfo *address, int family=0)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">unsigned ucc::Socket::address::remove </td>
<td>(</td>
<td class="paramtype">struct addrinfo * </td>
<td class="paramname"> <em>address</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int </td>
<td class="paramname"> <em>family</em> = <code>0</code></td><td> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td><td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Remove members from another socket address list from ours. </p>
<dl><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>address</em> </td><td>list to remove from list. </td></tr>
<tr><td valign="top"></td><td valign="top"><em>family</em> </td><td>to scan for or 0 for all. </td></tr>
</table>
</dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>count of addresses removed. </dd></dl>
</div>
</div>
<a class="anchor" id="af7c608db647799cb3cb65fe8d4068ba4"></a><!-- doxytag: member="ucc::Socket::address::remove" ref="af7c608db647799cb3cb65fe8d4068ba4" args="(struct sockaddr *address)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">bool ucc::Socket::address::remove </td>
<td>(</td>
<td class="paramtype">struct sockaddr * </td>
<td class="paramname"> <em>address</em></td>
<td> ) </td>
<td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Remove an individual socket address from our address list. </p>
<dl><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>address</em> </td><td>to remove. </td></tr>
</table>
</dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>true if found and removed, false if not found. </dd></dl>
</div>
</div>
<a class="anchor" id="a855556173bb08c117d21089f49a53ea9"></a><!-- doxytag: member="ucc::Socket::address::set" ref="a855556173bb08c117d21089f49a53ea9" args="(const char *hostname, unsigned service=0, int family=DEFAULT_FAMILY)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void ucc::Socket::address::set </td>
<td>(</td>
<td class="paramtype">const char * </td>
<td class="paramname"> <em>hostname</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">unsigned </td>
<td class="paramname"> <em>service</em> = <code>0</code>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int </td>
<td class="paramname"> <em>family</em> = <code>DEFAULT_FAMILY</code></td><td> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td><td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Set a socket address from host and service. </p>
<dl><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>hostname</em> </td><td>or address to use. </td></tr>
<tr><td valign="top"></td><td valign="top"><em>service</em> </td><td>port or 0. </td></tr>
<tr><td valign="top"></td><td valign="top"><em>family</em> </td><td>of socket address. </td></tr>
</table>
</dd>
</dl>
</div>
</div>
<a class="anchor" id="ad16cc0cad5266955ddaba70da987b740"></a><!-- doxytag: member="ucc::Socket::address::set" ref="ad16cc0cad5266955ddaba70da987b740" args="(struct sockaddr *address)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void ucc::Socket::address::set </td>
<td>(</td>
<td class="paramtype">struct sockaddr * </td>
<td class="paramname"> <em>address</em></td>
<td> ) </td>
<td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Set an individual socket address for our address list. </p>
<dl><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>address</em> </td><td>to add. </td></tr>
</table>
</dd>
</dl>
</div>
</div>
<a class="anchor" id="ac69fd4ad64f7423dffd625e85d57ec73"></a><!-- doxytag: member="ucc::Socket::address::set" ref="ac69fd4ad64f7423dffd625e85d57ec73" args="(int family, const char *address, int type=SOCK_STREAM, int protocol=0)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void ucc::Socket::address::set </td>
<td>(</td>
<td class="paramtype">int </td>
<td class="paramname"> <em>family</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const char * </td>
<td class="paramname"> <em>address</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int </td>
<td class="paramname"> <em>type</em> = <code>SOCK_STREAM</code>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int </td>
<td class="paramname"> <em>protocol</em> = <code>0</code></td><td> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td><td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Set an entry for host binding. </p>
<dl><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>address</em> </td><td>or hostname. </td></tr>
<tr><td valign="top"></td><td valign="top"><em>family</em> </td><td>of socket address. Needed when hostnames are used. </td></tr>
<tr><td valign="top"></td><td valign="top"><em>type</em> </td><td>of socket (stream, dgram, etc). </td></tr>
<tr><td valign="top"></td><td valign="top"><em>protocol</em> </td><td>number of socket. </td></tr>
</table>
</dd>
</dl>
</div>
</div>
<a class="anchor" id="a5ff4be8a4c8e90fd749636aae748d3ea"></a><!-- doxytag: member="ucc::Socket::address::set" ref="a5ff4be8a4c8e90fd749636aae748d3ea" args="(const char *hostname, const char *service=NULL, int family=0, int type=SOCK_STREAM)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void ucc::Socket::address::set </td>
<td>(</td>
<td class="paramtype">const char * </td>
<td class="paramname"> <em>hostname</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const char * </td>
<td class="paramname"> <em>service</em> = <code>NULL</code>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int </td>
<td class="paramname"> <em>family</em> = <code>0</code>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int </td>
<td class="paramname"> <em>type</em> = <code>SOCK_STREAM</code></td><td> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td><td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Set the host addresses to form a new list. </p>
<dl><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>hostname</em> </td><td>or address to resolve. </td></tr>
<tr><td valign="top"></td><td valign="top"><em>service</em> </td><td>name or port number, or NULL if not used. </td></tr>
<tr><td valign="top"></td><td valign="top"><em>family</em> </td><td>of hostname. </td></tr>
<tr><td valign="top"></td><td valign="top"><em>type</em> </td><td>of socket. </td></tr>
</table>
</dd>
</dl>
</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li>ucommon/<a class="el" href="a00205_source.html">socket.h</a></li>
</ul>
</div>
<hr class="footer"/><address style="text-align: right;"><small>Generated on Tue Jul 6 08:22:49 2010 for UCommon by
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.6.3 </small></address>
</body>
</html>
|