Changeset 1613 for pjproject/trunk/pjlib/include/pj/sock.h
- Timestamp:
- Dec 3, 2007 2:33:39 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjlib/include/pj/sock.h
r1608 r1613 596 596 * This function converts a numeric address into a text string suitable 597 597 * for presentation. It supports both IPv4 and IPv6 address 598 * conversion. 598 * conversion. 599 * @see pj_sockaddr_print() 599 600 * 600 601 * @param af Specify the family of the address. This can be PJ_AF_INET … … 616 617 /** 617 618 * Converts numeric address into its text string representation. 619 * @see pj_sockaddr_print() 618 620 * 619 621 * @param af Specify the family of the address. This can be PJ_AF_INET … … 633 635 char *dst, int size); 634 636 637 /** 638 * Print socket address. 639 * 640 * @param addr The socket address. 641 * @param buf Text buffer. 642 * @param size Size of buffer. 643 * @param flags Bitmask combination of these value: 644 * - 1: port number is included. 645 * - 2: square bracket is included for IPv6 address. 646 * 647 * @return The address string. 648 */ 649 PJ_DECL(char*) pj_sockaddr_print(const pj_sockaddr_t *addr, 650 char *buf, int size, 651 unsigned flags); 635 652 636 653 /** … … 703 720 704 721 /** 722 * Compare two socket addresses. 723 * 724 * @param addr1 First address. 725 * @param addr2 Second address. 726 * 727 * @return Zero on equal, -1 if addr1 is less than addr2, 728 * and +1 if addr1 is more than addr2. 729 */ 730 PJ_DECL(int) pj_sockaddr_cmp(const pj_sockaddr_t *addr1, 731 const pj_sockaddr_t *addr2); 732 733 /** 705 734 * Get pointer to the address part of a socket address. 706 735 * … … 743 772 PJ_DECL(unsigned) pj_sockaddr_get_len(const pj_sockaddr_t *addr); 744 773 774 /** 775 * Copy only the address part (sin_addr/sin6_addr) of a socket address. 776 * 777 * @param dst Destination socket address. 778 * @param src Source socket address. 779 */ 780 PJ_DECL(void) pj_sockaddr_copy_addr(pj_sockaddr *dst, 781 const pj_sockaddr *src); 745 782 /** 746 783 * Get the IP address of an IPv4 socket address.
Note: See TracChangeset
for help on using the changeset viewer.