Commit 67f1cce7 authored by Simon Morlat's avatar Simon Morlat
Browse files

change ice prototype to make it more convenient.

parent 25d8fb44
...@@ -434,7 +434,7 @@ MS2_PUBLIC bool_t ice_session_candidates_gathered(const IceSession *session); ...@@ -434,7 +434,7 @@ MS2_PUBLIC bool_t ice_session_candidates_gathered(const IceSession *session);
* @param ss The STUN server address * @param ss The STUN server address
* @param ss_len The length of the STUN server address * @param ss_len The length of the STUN server address
*/ */
MS2_PUBLIC void ice_session_gather_candidates(IceSession *session, struct sockaddr_storage ss, socklen_t ss_len); MS2_PUBLIC void ice_session_gather_candidates(IceSession *session, const struct sockaddr * ss, socklen_t ss_len);
/** /**
* Tell the duration of the gathering process for an ICE session in ms. * Tell the duration of the gathering process for an ICE session in ms.
......
...@@ -859,12 +859,12 @@ static void ice_check_list_gather_candidates(IceCheckList *cl, Session_Index *si ...@@ -859,12 +859,12 @@ static void ice_check_list_gather_candidates(IceCheckList *cl, Session_Index *si
} }
} }
void ice_session_gather_candidates(IceSession *session, struct sockaddr_storage ss, socklen_t ss_len) void ice_session_gather_candidates(IceSession *session,const struct sockaddr* ss, socklen_t ss_len)
{ {
Session_Index si; Session_Index si;
OrtpEvent *ev; OrtpEvent *ev;
bool_t gathering_needed = FALSE; bool_t gathering_needed = FALSE;
session->ss = ss; memcpy(&session->ss,ss,ss_len);
session->ss_len = ss_len; session->ss_len = ss_len;
si.session = session; si.session = session;
si.index = 0; si.index = 0;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment