Changeset 1952
- Timestamp:
- May 11, 2008 6:11:32 PM (16 years ago)
- Location:
- pjproject/trunk/pjlib
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjlib/include/pj/sock.h
r1613 r1952 777 777 * @param dst Destination socket address. 778 778 * @param src Source socket address. 779 * 780 * @see @pj_sockaddr_cp() 779 781 */ 780 782 PJ_DECL(void) pj_sockaddr_copy_addr(pj_sockaddr *dst, 781 783 const pj_sockaddr *src); 784 /** 785 * Copy socket address. This will copy the whole structure depending 786 * on the address family of the source socket address. 787 * 788 * @param dst Destination socket address. 789 * @param src Source socket address. 790 * 791 * @see @pj_sockaddr_copy_addr() 792 */ 793 PJ_DECL(void) pj_sockaddr_cp(pj_sockaddr_t *dst, const pj_sockaddr_t *src); 794 782 795 /** 783 796 * Get the IP address of an IPv4 socket address. -
pjproject/trunk/pjlib/src/pj/sock_common.c
r1647 r1952 391 391 392 392 /* 393 * Copy socket address. 394 */ 395 PJ_DEF(void) pj_sockaddr_cp(pj_sockaddr_t *dst, const pj_sockaddr_t *src) 396 { 397 pj_memcpy(dst, src, pj_sockaddr_get_len(src)); 398 } 399 400 /* 393 401 * Set port number of pj_sockaddr_in 394 402 */
Note: See TracChangeset
for help on using the changeset viewer.