diff options
author | Benny Prijono <bennylp@teluu.com> | 2007-12-01 08:59:25 +0000 |
---|---|---|
committer | Benny Prijono <bennylp@teluu.com> | 2007-12-01 08:59:25 +0000 |
commit | 223903c913565d00e54b55f9685a174f1f31ed49 (patch) | |
tree | c87466c8a333649fb6ca436199bd6f4f217d527c /pjsip/include/pjsip/sip_transport.h | |
parent | 2e6a62f43b622320d69971cfc07a68ab59e29f1b (diff) |
Ticket #421: initial IPv6 support: UDP transport
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@1602 74dad513-b988-da41-8d7b-12977e46ad98
Diffstat (limited to 'pjsip/include/pjsip/sip_transport.h')
-rw-r--r-- | pjsip/include/pjsip/sip_transport.h | 22 |
1 files changed, 20 insertions, 2 deletions
diff --git a/pjsip/include/pjsip/sip_transport.h b/pjsip/include/pjsip/sip_transport.h index 9f1ff044..6097abab 100644 --- a/pjsip/include/pjsip/sip_transport.h +++ b/pjsip/include/pjsip/sip_transport.h @@ -133,6 +133,15 @@ PJ_DECL(pjsip_transport_type_e) pjsip_transport_get_type_from_flag(unsigned flag); /** + * Get the socket address family of a given transport type. + * + * @param type Transport type. + * + * @return Transport type. + */ +PJ_DECL(int) pjsip_transport_type_get_af(pjsip_transport_type_e type); + +/** * Get transport flag from type. * * @param type Transport type. @@ -162,6 +171,15 @@ pjsip_transport_get_default_port_for_type(pjsip_transport_type_e type); */ PJ_DECL(const char*) pjsip_transport_get_type_name(pjsip_transport_type_e t); +/** + * Get longer description for the specified transport type. + * + * @param t Transport type. + * + * @return Transport description. + */ +PJ_DECL(const char*) pjsip_transport_get_type_desc(pjsip_transport_type_e t); + /***************************************************************************** @@ -307,7 +325,7 @@ struct pjsip_rx_data int src_addr_len; /** The IP source address string (NULL terminated). */ - char src_name[16]; + char src_name[PJ_INET6_ADDRSTRLEN]; /** The IP source port number. */ int src_port; @@ -506,7 +524,7 @@ struct pjsip_tx_data pjsip_transport *transport; /**< Transport being used. */ pj_sockaddr dst_addr; /**< Destination address. */ int dst_addr_len; /**< Length of address. */ - char dst_name[16]; /**< Destination address. */ + char dst_name[PJ_INET6_ADDRSTRLEN]; /**< Destination address. */ int dst_port; /**< Destination port. */ } tp_info; |