Commit f2c7c365 authored by aymeric's avatar aymeric

Update stun to latest RFC.

Start TURN & ICE extensions.
Keep most old STUN capabilities.
Start changing/adding API for STUN/TURN

git-svn-id: svn+ssh://svn.savannah.nongnu.org/linphone/trunk@230 3f6dc0c8-ddfe-455d-9043-3cd528dc4637
parent 9e1fe357
...@@ -462,10 +462,10 @@ stunGetSystemTimeSecs(void); ...@@ -462,10 +462,10 @@ stunGetSystemTimeSecs(void);
/* find the IP address of a the specified stun server - return false is fails parse */ /* find the IP address of a the specified stun server - return false is fails parse */
bool_t bool_t
stunParseServerName( char* serverName, StunAddress4 *stunServerAddr); stunParseServerName( const char* serverName, StunAddress4 *stunServerAddr);
bool_t bool_t
stunParseHostName( char* peerName, stunParseHostName( const char* peerName,
UInt32 *ip, UInt32 *ip,
UInt16 *portVal, UInt16 *portVal,
UInt16 defaultPort ); UInt16 defaultPort );
......
...@@ -1241,7 +1241,7 @@ stunGetSystemTimeSecs(void) ...@@ -1241,7 +1241,7 @@ stunGetSystemTimeSecs(void)
/* returns TRUE if it scucceeded */ /* returns TRUE if it scucceeded */
bool_t bool_t
stunParseHostName( char* peerName, stunParseHostName( const char* peerName,
UInt32* ip, UInt32* ip,
UInt16* portVal, UInt16* portVal,
UInt16 defaultPort ) UInt16 defaultPort )
...@@ -1347,7 +1347,7 @@ stunParseHostName( char* peerName, ...@@ -1347,7 +1347,7 @@ stunParseHostName( char* peerName,
bool_t bool_t
stunParseServerName( char* name, StunAddress4 *addr) stunParseServerName( const char* name, StunAddress4 *addr)
{ {
/* assert(name); */ /* assert(name); */
......
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