summaryrefslogtreecommitdiff
path: root/ot_udp.h
diff options
context:
space:
mode:
authorDirk Engling <erdgeist@erdgeist.org>2009-01-05 18:05:38 +0000
committerDirk Engling <erdgeist@erdgeist.org>2009-01-05 18:05:38 +0000
commitb2ca1649229ff3388fd71e713bdc133384fa2a05 (patch)
tree554d34dde6735d9d18baf4116a4aea0b84d64f91 /ot_udp.h
parent823f93a96f596b5e27cea61279b531e0a5c1547a (diff)
downloadopentracker-b2ca1649229ff3388fd71e713bdc133384fa2a05.tar.gz
opentracker-b2ca1649229ff3388fd71e713bdc133384fa2a05.zip
* http and udp routines now use thread local buffers passed in workstruct containers. In other words they do not use static_buffer anymore and are considered to be thread safe.
* the new workstruct also introduces a well defined buffer and result passing path * a new function scan_find_keywords is a wrapper around scan_urlencoded_query that maps keys in url to values passed in an array of ot_keywords structs * this new function cleans up much of url parameter parsing work, where read_ptr and write_ptr have been introduced rather than the confusing char *c, *data variables * I now use memcmp instead of byte_diff to allow compiler to optimize constant size string compares * got rid of UTORRENT_1600_WORKAROUND * livesync_ticker is now only called from one (currently main) thread to avoid race conditions
Diffstat (limited to 'ot_udp.h')
-rw-r--r--ot_udp.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/ot_udp.h b/ot_udp.h
index c5f3959..c146392 100644
--- a/ot_udp.h
+++ b/ot_udp.h
@@ -6,6 +6,6 @@
#ifndef __OT_UDP_H__
#define __OT_UDP_H__
-void handle_udp4( int64 serversocket );
+void handle_udp4( int64 serversocket, struct ot_workstruct *ws );
#endif