summaryrefslogtreecommitdiff
path: root/scan_urlencoded_query.h
diff options
context:
space:
mode:
authorerdgeist <>2007-01-03 05:11:48 +0000
committererdgeist <>2007-01-03 05:11:48 +0000
commite0a9c2a4aa4fc6b648ae20071c35797c4a103e42 (patch)
tree246048aacb395db5c747fc4da260d6abf1f9b99f /scan_urlencoded_query.h
parentf40b373c3b289687872269e4b931ada7044dc0d2 (diff)
Added option to get ip from query string + parser, fixed two bugs concerning grow/shrink of vectors. Now cleans up a torrent BEFORE trying to remove a peer -> this may remove peer already and must be done anyway.
Diffstat (limited to 'scan_urlencoded_query.h')
-rw-r--r--scan_urlencoded_query.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/scan_urlencoded_query.h b/scan_urlencoded_query.h
index c87dbee..5cc6630 100644
--- a/scan_urlencoded_query.h
+++ b/scan_urlencoded_query.h
@@ -15,6 +15,13 @@ size_t scan_urlencoded_query(char **string, char *deststring, int flags);
15// data pointer to len chars of string 15// data pointer to len chars of string
16// len length of chars in data to parse 16// len length of chars in data to parse
17// number number to receive result 17// number number to receive result
18// returns number of bytes not parsed, mostly !=0 means fail
18size_t scan_fixed_int( char *data, size_t len, int *number ); 19size_t scan_fixed_int( char *data, size_t len, int *number );
19 20
21// data pointer to len chars of string
22// len length of chars in data to parse
23// ip buffer to receive result
24// returns number of bytes not parsed, mostly !=0 means fail
25size_t scan_fixed_ip( char *data, size_t len, unsigned char ip[4] );
26
20#endif 27#endif