diff options
author | Benny Prijono <bennylp@teluu.com> | 2007-03-23 00:42:47 +0000 |
---|---|---|
committer | Benny Prijono <bennylp@teluu.com> | 2007-03-23 00:42:47 +0000 |
commit | 05e7998ba4cbd7fb0b02b7f82c5b328cf203fbc9 (patch) | |
tree | 1455c2739bef6d65706be32f0ddadcf2d8063f2f /pjmedia/include/pjmedia/transport_ice.h | |
parent | f8d17a0d196e42dd886bcdd908085c810b3bba8d (diff) |
ICE (work in progress): implemented ICE media transport
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@1097 74dad513-b988-da41-8d7b-12977e46ad98
Diffstat (limited to 'pjmedia/include/pjmedia/transport_ice.h')
-rw-r--r-- | pjmedia/include/pjmedia/transport_ice.h | 78 |
1 files changed, 78 insertions, 0 deletions
diff --git a/pjmedia/include/pjmedia/transport_ice.h b/pjmedia/include/pjmedia/transport_ice.h new file mode 100644 index 00000000..fa4deebb --- /dev/null +++ b/pjmedia/include/pjmedia/transport_ice.h @@ -0,0 +1,78 @@ +/* $Id$ */ +/* + * Copyright (C) 2003-2007 Benny Prijono <benny@prijono.org> + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + */ +#ifndef __pjmedia_ice_H__ +#define __pjmedia_ice_H__ + + +/** + * @file transport_ice.h + * @brief Stream transport with ICE. + */ + +#include <pjmedia/stream.h> +#include <pjnath/ice_stream_transport.h> + + +/** + * @defgroup PJMEDIA_TRANSPORT_ICE ICE Socket Transport + * @ingroup PJMEDIA_TRANSPORT_H + * @brief Implementation of media transport with ICE. + * @{ + */ + +PJ_BEGIN_DECL + + +PJ_DECL(pj_status_t) pjmedia_ice_create(pjmedia_endpt *endpt, + const char *name, + pj_stun_config *stun_cfg, + pj_dns_resolver *resolver, + pj_bool_t enable_relay, + const pj_str_t *stun_name, + pjmedia_transport **p_tp); +PJ_DECL(pj_status_t) pjmedia_ice_destroy(pjmedia_transport *tp); + + +PJ_DECL(pj_status_t) pjmedia_ice_init_ice(pjmedia_transport *tp, + pj_ice_role role, + const pj_str_t *local_ufrag, + const pj_str_t *local_passwd); +PJ_DECL(pj_status_t) pjmedia_ice_build_sdp(pjmedia_transport *tp, + pj_pool_t *pool, + pjmedia_sdp_session *sdp); +PJ_DECL(pj_status_t) pjmedia_ice_start_ice(pjmedia_transport *tp, + pj_pool_t *pool, + pjmedia_sdp_session *rem_sdp); +PJ_DECL(pj_status_t) pjmedia_ice_stop_ice(pjmedia_transport *tp); + + + + + +PJ_END_DECL + + +/** + * @} + */ + + +#endif /* __pjmedia_ice_H__ */ + + |