Changes between Initial Version and Version 2 of Ticket #935


Ignore:
Timestamp:
Aug 12, 2009 10:53:48 AM (15 years ago)
Author:
bennylp
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #935

    • Property Summary changed from New PJLIB API pj_inetaddr_parse() to parse "HOSTPART[:PORT]" format into the correspondong hostpart and port to New PJLIB API pj_sockaddr_parse2() to parse "HOSTPART[:PORT]" format into the correspondong hostpart and port
  • Ticket #935 – Description

    initial v2  
     1The [http://www.pjsip.org/pjlib/docs/html/group__PJ__SOCK.htm#g1562332273aa3900dc549cffd5b5c4e4 pj_sockaddr_parse()] was added in version 1.3 to parse "HOSTPART[:PORT]" into a [http://www.pjsip.org/pjlib/docs/html/unionpj__sockaddr.htm pj_sockaddr] structure, possibly resolving the hostpart into IP address. 
     2 
     3The new API is [http://www.pjsip.org/pjlib/docs/html/group__PJ__SOCK.htm#g4c546729237b22ab4c8fcf5868d2b79b pj_sockaddr_parse2()], which just returns the hostpart as string and optional port number. This is useful if caller does not want to resolve the hostpart into IP address (for example, if caller wants to resolve the hostpart with DNS SRV).