diff options
author | Benny Prijono <bennylp@teluu.com> | 2005-12-26 12:52:19 +0000 |
---|---|---|
committer | Benny Prijono <bennylp@teluu.com> | 2005-12-26 12:52:19 +0000 |
commit | 9b86a2145e18cb843e69167b10f3c7414c11c634 (patch) | |
tree | af539d9ce30ccd8f1d60cca5916496c442499375 /pjsip/include/pjsip/sip_transport_udp.h | |
parent | 346427b7dc57954f772beb165ef320c1639ba223 (diff) |
Modify transport to use generic sockaddr address
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@105 74dad513-b988-da41-8d7b-12977e46ad98
Diffstat (limited to 'pjsip/include/pjsip/sip_transport_udp.h')
-rw-r--r-- | pjsip/include/pjsip/sip_transport_udp.h | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/pjsip/include/pjsip/sip_transport_udp.h b/pjsip/include/pjsip/sip_transport_udp.h index 99f5ab67..d3fd5d30 100644 --- a/pjsip/include/pjsip/sip_transport_udp.h +++ b/pjsip/include/pjsip/sip_transport_udp.h @@ -28,7 +28,9 @@ PJ_DECL * * @param endpt The SIP endpoint. * @param local Local address to bind. - * @param pub_addr Public address to advertise. + * @param a_name Published address (only the host and port portion is + * used). If this argument is NULL, then the bound address + * will be used as the published address. * @param async_cnt Number of simultaneous async operations. * @param p_transport Pointer to receive the transport. * @@ -38,7 +40,7 @@ PJ_DECL */ PJ_DECL(pj_status_t) pjsip_udp_transport_start(pjsip_endpoint *endpt, const pj_sockaddr_in *local, - const pj_sockaddr_in *pub_addr, + const pjsip_host_port *a_name, unsigned async_cnt, pjsip_transport **p_transport); @@ -47,7 +49,8 @@ PJ_DECL(pj_status_t) pjsip_udp_transport_start(pjsip_endpoint *endpt, * * @param endpt The SIP endpoint. * @param sock UDP socket to use. - * @param pub_addr Public address to advertise. + * @param a_name Published address (only the host and port portion is + * used). * @param async_cnt Number of simultaneous async operations. * @param p_transport Pointer to receive the transport. * @@ -57,7 +60,7 @@ PJ_DECL(pj_status_t) pjsip_udp_transport_start(pjsip_endpoint *endpt, */ PJ_DECL(pj_status_t) pjsip_udp_transport_attach(pjsip_endpoint *endpt, pj_sock_t sock, - const pj_sockaddr_in *pub_addr, + const pjsip_host_port *a_name, unsigned async_cnt, pjsip_transport **p_transport); |