Just wrapper around http://uriparser.sourceforge.net/.
More...
Just wrapper around http://uriparser.sourceforge.net/.
For more details about syntax of URL please take a look:
| socklen_t sockaddr_size |
( |
const struct sockaddr_storage * |
sa | ) |
|
Return real size of socket address.
- Parameters
-
| [in] | sa | pointer to socket address storage |
- Returns
- real size of socket address
| int url2sockaddr |
( |
struct url * |
u, |
|
|
struct sockaddr_storage * |
sa |
|
) |
| |
Set socket address according to URL.
- Parameters
-
| [in] | u | pointer to URL structure |
| [out] | sa | pointer to socket address structure |
- Returns
- on success, zero is returned
- Return values
-
Support next schemes:
http Internet sockets
unix sockets for local interprocess communication
local alias for unix sockets
| void url_free |
( |
struct url * |
u | ) |
|
Free memory used by URL structure.
- Parameters
-
| [in] | u | pointer to URL structure |
| struct url* url_parse |
( |
const char * |
s, |
|
|
struct url ** |
u |
|
) |
| |
Parse string as URL.
- Parameters
-
| [in] | s | URL string |
| [out] | u | pointer to URL parsed parts |
- Returns
- pointer to URL structure
- Return values
-
Parsed URL will be extracted to struct url.
For more details about syntax of URL please take a look: