Opened 15 years ago
Last modified 15 years ago
#935 closed enhancement
New PJLIB API pj_sockaddr_parse2() to parse "HOSTPART[:PORT]" format into the correspondong hostpart and port — at Version 2
Reported by: | bennylp | Owned by: | bennylp |
---|---|---|---|
Priority: | normal | Milestone: | release-1.4 |
Component: | pjlib | Version: | trunk |
Keywords: | Cc: | ||
Backport to 1.x milestone: | Backported: |
Description (last modified by bennylp)
The pj_sockaddr_parse() was added in version 1.3 to parse "HOSTPART[:PORT]" into a pj_sockaddr structure, possibly resolving the hostpart into IP address.
The new API is 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).
Change History (2)
comment:1 Changed 15 years ago by bennylp
- 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
comment:2 Changed 15 years ago by bennylp
- Description modified (diff)
Note: See
TracTickets for help on using
tickets.
The pj_sockaddr_parse() was added in version 1.3 to parse "HOSTPART[:PORT]" into a pj_sockaddr structure, possibly resolving the hostpart into IP address.
The new API is 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).