diff options
author | Christian Grothoff <christian@grothoff.org> | 2014-06-23 19:24:14 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2014-06-23 19:24:14 +0000 |
commit | f874eb3423cde2257d57c0f5d651297b303b3cff (patch) | |
tree | dbc7e59d4edcff24cd64b75cfdb78e1198347ac2 /src/transport/plugin_transport_http_common.h | |
parent | cb2ba3aea878701a9bf816892de389eb45ca9aa4 (diff) | |
download | gnunet-f874eb3423cde2257d57c0f5d651297b303b3cff.tar.gz gnunet-f874eb3423cde2257d57c0f5d651297b303b3cff.zip |
-minor code cleanup, indentation, doxygen
Diffstat (limited to 'src/transport/plugin_transport_http_common.h')
-rw-r--r-- | src/transport/plugin_transport_http_common.h | 24 |
1 files changed, 18 insertions, 6 deletions
diff --git a/src/transport/plugin_transport_http_common.h b/src/transport/plugin_transport_http_common.h index 04d3adc29..1fb1bd1ed 100644 --- a/src/transport/plugin_transport_http_common.h +++ b/src/transport/plugin_transport_http_common.h | |||
@@ -17,13 +17,11 @@ | |||
17 | Free Software Foundation, Inc., 59 Temple Place - Suite 330, | 17 | Free Software Foundation, Inc., 59 Temple Place - Suite 330, |
18 | Boston, MA 02111-1307, USA. | 18 | Boston, MA 02111-1307, USA. |
19 | */ | 19 | */ |
20 | |||
21 | /** | 20 | /** |
22 | * @file transport/plugin_transport_http_common.c | 21 | * @file transport/plugin_transport_http_common.c |
23 | * @brief functionality shared by http client and server transport service plugin | 22 | * @brief functionality shared by http client and server transport service plugin |
24 | * @author Matthias Wachs | 23 | * @author Matthias Wachs |
25 | */ | 24 | */ |
26 | |||
27 | #include "platform.h" | 25 | #include "platform.h" |
28 | #include "gnunet_common.h" | 26 | #include "gnunet_common.h" |
29 | #include "gnunet_transport_plugin.h" | 27 | #include "gnunet_transport_plugin.h" |
@@ -86,8 +84,22 @@ struct HttpAddress | |||
86 | 84 | ||
87 | GNUNET_NETWORK_STRUCT_END | 85 | GNUNET_NETWORK_STRUCT_END |
88 | 86 | ||
89 | struct SplittedHTTPAddress; | 87 | /** |
88 | * Representation of HTTP URL split into its components. | ||
89 | */ | ||
90 | struct SplittedHTTPAddress | ||
91 | { | ||
92 | char *protocol; | ||
93 | char *host; | ||
94 | char *path; | ||
95 | int port; | ||
96 | }; | ||
97 | |||
90 | 98 | ||
99 | /** | ||
100 | * Split an HTTP address into protocol, hostname, port | ||
101 | * and path components. | ||
102 | */ | ||
91 | struct SplittedHTTPAddress * | 103 | struct SplittedHTTPAddress * |
92 | http_split_address (const char *addr); | 104 | http_split_address (const char *addr); |
93 | 105 | ||
@@ -125,7 +137,7 @@ http_common_plugin_address_pretty_printer (void *cls, | |||
125 | * | 137 | * |
126 | * @param plugin name of the plugin | 138 | * @param plugin name of the plugin |
127 | * @param addr binary address | 139 | * @param addr binary address |
128 | * @param addrlen length of the address | 140 | * @param addrlen length of @a addr |
129 | * @return string representing the same address | 141 | * @return string representing the same address |
130 | */ | 142 | */ |
131 | const char * | 143 | const char * |
@@ -205,9 +217,9 @@ http_common_address_get_size (const struct HttpAddress * addr); | |||
205 | * Compare addr1 to addr2 | 217 | * Compare addr1 to addr2 |
206 | * | 218 | * |
207 | * @param addr1 address1 | 219 | * @param addr1 address1 |
208 | * @param addrlen1 address 1 length | 220 | * @param addrlen1 length of @a address1 |
209 | * @param addr2 address2 | 221 | * @param addr2 address2 |
210 | * @param addrlen2 address 2 length | 222 | * @param addrlen2 length of @a address2 |
211 | * @return #GNUNET_YES if equal, #GNUNET_NO else | 223 | * @return #GNUNET_YES if equal, #GNUNET_NO else |
212 | */ | 224 | */ |
213 | size_t | 225 | size_t |