GNUnet 0.22.2
GNUNET_Uri Struct Reference

Copyright (C) 2016 Jack Engqvist Johansson. More...

#include <gnunet_uri_lib.h>

Data Fields

char * scheme
 
char * username
 
char * password
 
char * host
 
int port
 
char * path
 
char * query
 
char * fragment
 

Detailed Description

Copyright (C) 2016 Jack Engqvist Johansson.

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. The struct where the parsed values will be stored:

scheme ":" [ "//" ] [ username ":" password "@" ] host [ ":" port ] [ "/" ] [ path ] [ "?" query ] [ "#" fragment ]

Note: to make sure that no strings are copied, the first slash "/" in the path will be used to null terminate the hostname if no port is supplied.

Definition at line 34 of file gnunet_uri_lib.h.

Field Documentation

◆ scheme

char* GNUNET_Uri::scheme

Definition at line 36 of file gnunet_uri_lib.h.

Referenced by GNUNET_uri_parse().

◆ username

char* GNUNET_Uri::username

Definition at line 37 of file gnunet_uri_lib.h.

Referenced by GNUNET_uri_parse().

◆ password

char* GNUNET_Uri::password

Definition at line 38 of file gnunet_uri_lib.h.

Referenced by GNUNET_uri_parse().

◆ host

char* GNUNET_Uri::host

Definition at line 39 of file gnunet_uri_lib.h.

Referenced by GNUNET_uri_parse().

◆ port

int GNUNET_Uri::port

Definition at line 40 of file gnunet_uri_lib.h.

Referenced by GNUNET_uri_parse().

◆ path

◆ query

char* GNUNET_Uri::query

◆ fragment

char* GNUNET_Uri::fragment

Definition at line 43 of file gnunet_uri_lib.h.

Referenced by GNUNET_uri_parse().


The documentation for this struct was generated from the following file: