summaryrefslogtreecommitdiff
path: root/pjmedia/include
diff options
context:
space:
mode:
authorBenny Prijono <bennylp@teluu.com>2007-12-03 14:38:25 +0000
committerBenny Prijono <bennylp@teluu.com>2007-12-03 14:38:25 +0000
commit24e131e2488d5da39ee191413742ed57a3f8394d (patch)
tree526af62367a4a26370f1162c4006ab0023d6707c /pjmedia/include
parentb1ab3152928f1c17596bf169ca0692044da105c3 (diff)
Ticket #420: updated pjmedia SDP and media UDP transport to support IPv6
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@1615 74dad513-b988-da41-8d7b-12977e46ad98
Diffstat (limited to 'pjmedia/include')
-rw-r--r--pjmedia/include/pjmedia/stream.h4
-rw-r--r--pjmedia/include/pjmedia/transport_udp.h26
-rw-r--r--pjmedia/include/pjmedia/types.h4
3 files changed, 30 insertions, 4 deletions
diff --git a/pjmedia/include/pjmedia/stream.h b/pjmedia/include/pjmedia/stream.h
index e951b0de..4967c380 100644
--- a/pjmedia/include/pjmedia/stream.h
+++ b/pjmedia/include/pjmedia/stream.h
@@ -90,8 +90,8 @@ struct pjmedia_stream_info
{
pjmedia_type type; /**< Media type (audio, video) */
pjmedia_dir dir; /**< Media direction. */
- pj_sockaddr_in rem_addr; /**< Remote RTP address */
- pj_sockaddr_in rem_rtcp; /**< Optional remote RTCP address. If
+ pj_sockaddr rem_addr; /**< Remote RTP address */
+ pj_sockaddr rem_rtcp; /**< Optional remote RTCP address. If
sin_family is zero, the RTP address
will be calculated from RTP. */
pjmedia_codec_info fmt; /**< Incoming codec format info. */
diff --git a/pjmedia/include/pjmedia/transport_udp.h b/pjmedia/include/pjmedia/transport_udp.h
index 745df46b..12f819d1 100644
--- a/pjmedia/include/pjmedia/transport_udp.h
+++ b/pjmedia/include/pjmedia/transport_udp.h
@@ -112,6 +112,32 @@ PJ_DECL(pj_status_t) pjmedia_transport_udp_create2(pjmedia_endpt *endpt,
pjmedia_transport **p_tp);
/**
+ * Another variant of #pjmedia_transport_udp_create() which allows
+ * the creation of IPv6 transport.
+ *
+ * @param endpt The media endpoint instance.
+ * @param af Address family, which can be pj_AF_INET() for IPv4 or
+ * pj_AF_INET6() for IPv6.
+ * @param name Optional name to be assigned to the transport.
+ * @param addr Optional local address to bind the sockets to. If this
+ * argument is NULL or empty, the sockets will be bound
+ * to all interface.
+ * @param port UDP port number for the RTP socket. The RTCP port number
+ * will be set to one above RTP port.
+ * @param options Options, bitmask of #pjmedia_transport_udp_options.
+ * @param p_tp Pointer to receive the transport instance.
+ *
+ * @return PJ_SUCCESS on success.
+ */
+PJ_DECL(pj_status_t) pjmedia_transport_udp_create3(pjmedia_endpt *endpt,
+ int af,
+ const char *name,
+ const pj_str_t *addr,
+ int port,
+ unsigned options,
+ pjmedia_transport **p_tp);
+
+/**
* Get media socket info from the specified UDP transport.
*
* @param tp The UDP transport interface.
diff --git a/pjmedia/include/pjmedia/types.h b/pjmedia/include/pjmedia/types.h
index 8ff8fe60..ed080d27 100644
--- a/pjmedia/include/pjmedia/types.h
+++ b/pjmedia/include/pjmedia/types.h
@@ -141,7 +141,7 @@ typedef struct pjmedia_sock_info
* address (for example, this address can be the address resolved
* with STUN).
*/
- pj_sockaddr_in rtp_addr_name;
+ pj_sockaddr rtp_addr_name;
/** The RTCP socket handle. */
pj_sock_t rtcp_sock;
@@ -151,7 +151,7 @@ typedef struct pjmedia_sock_info
* address (for example, this address can be the address resolved
* with STUN).
*/
- pj_sockaddr_in rtcp_addr_name;
+ pj_sockaddr rtcp_addr_name;
} pjmedia_sock_info;