summaryrefslogtreecommitdiff
path: root/pjnath/include
diff options
context:
space:
mode:
authorBenny Prijono <bennylp@teluu.com>2007-03-23 19:09:54 +0000
committerBenny Prijono <bennylp@teluu.com>2007-03-23 19:09:54 +0000
commit57921286f7577dd670b905f85a4ef0271cfb2028 (patch)
tree2d14cbbee45fc7df5d2dba49c3195cf06d595be9 /pjnath/include
parente3fd604ea862f68ad3ece248ca7d853899cbf48f (diff)
ICE (work in progress): implemented server reflexive candidate
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@1099 74dad513-b988-da41-8d7b-12977e46ad98
Diffstat (limited to 'pjnath/include')
-rw-r--r--pjnath/include/pjnath/errno.h5
-rw-r--r--pjnath/include/pjnath/ice_stream_transport.h26
2 files changed, 16 insertions, 15 deletions
diff --git a/pjnath/include/pjnath/errno.h b/pjnath/include/pjnath/errno.h
index 9f45bc86..7fbd9837 100644
--- a/pjnath/include/pjnath/errno.h
+++ b/pjnath/include/pjnath/errno.h
@@ -133,6 +133,11 @@
* STUN transaction terminates with failure.
*/
#define PJNATH_ESTUNTSXFAILED (PJNATH_ERRNO_START+126)/* 370126 */
+/**
+ * @hideinitializer
+ * STUN mapped address attribute not found
+ */
+#define PJNATH_ESTUNNOMAPPEDADDR (PJNATH_ERRNO_START+127)/* 370127 */
//#define PJ_STATUS_FROM_STUN_CODE(code) (PJNATH_ERRNO_START+code)
diff --git a/pjnath/include/pjnath/ice_stream_transport.h b/pjnath/include/pjnath/ice_stream_transport.h
index 37ff5686..59207324 100644
--- a/pjnath/include/pjnath/ice_stream_transport.h
+++ b/pjnath/include/pjnath/ice_stream_transport.h
@@ -48,13 +48,6 @@ typedef struct pj_ice_st_cb
void *pkt, pj_size_t size,
const pj_sockaddr_t *src_addr,
unsigned src_addr_len);
-
- void (*on_stun_srv_resolved)(pj_ice_st *ice_st,
- pj_status_t status);
- void (*on_interface_status)(pj_ice_st *ice_st,
- void *notify_data,
- pj_status_t status,
- int itf_id);
void (*on_ice_complete)(pj_ice_st *ice_st,
pj_status_t status);
@@ -85,6 +78,7 @@ typedef struct pj_ice_st_interface
pj_ioqueue_op_key_t write_op;
pj_sockaddr src_addr;
int src_addr_len;
+ pj_stun_session *stun_sess;
} pj_ice_st_interface;
@@ -133,19 +127,14 @@ PJ_DECL(pj_status_t) pj_ice_st_add_host_interface(pj_ice_st *ice_st,
unsigned comp_id,
pj_uint16_t local_pref,
const pj_sockaddr_in *addr,
- unsigned *p_itf_id,
- pj_bool_t notify,
- void *notify_data);
+ unsigned *p_itf_id);
PJ_DECL(pj_status_t) pj_ice_st_add_all_host_interfaces(pj_ice_st *ice_st,
unsigned comp_id,
- unsigned port,
- pj_bool_t notify,
- void *notify_data);
+ unsigned port);
PJ_DECL(pj_status_t) pj_ice_st_add_stun_interface(pj_ice_st *ice_st,
unsigned comp_id,
unsigned local_port,
- pj_bool_t notify,
- void *notify_data);
+ unsigned *p_itf_id);
PJ_DECL(pj_status_t) pj_ice_st_add_relay_interface(pj_ice_st *ice_st,
unsigned comp_id,
unsigned local_port,
@@ -171,6 +160,13 @@ PJ_DECL(pj_status_t) pj_ice_st_send_data(pj_ice_st *ice_st,
unsigned comp_id,
const void *data,
pj_size_t data_len);
+PJ_DECL(pj_status_t) pj_ice_st_sendto(pj_ice_st *ice_st,
+ unsigned comp_id,
+ unsigned itf_id,
+ const void *data,
+ pj_size_t data_len,
+ const pj_sockaddr_t *dst_addr,
+ int dst_addr_len);
/**