From 779d6c235ff8fe5284fd10dc82a9b99e7fa38d06 Mon Sep 17 00:00:00 2001 From: erdgeist <> Date: Mon, 5 Jan 2009 18:05:39 +0000 Subject: * 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 --- ot_http.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'ot_http.h') diff --git a/ot_http.h b/ot_http.h index cd8c3cb..18e8156 100644 --- a/ot_http.h +++ b/ot_http.h @@ -23,8 +23,8 @@ struct http_data { STRUCT_HTTP_FLAG flag; }; -ssize_t http_handle_request( const int64 s, char *data, size_t l ); -ssize_t http_sendiovecdata( const int64 s, int iovec_entries, struct iovec *iovector ); -ssize_t http_issue_error( const int64 s, int code ); +ssize_t http_handle_request( const int64 s, struct ot_workstruct *ws ); +ssize_t http_sendiovecdata( const int64 s, struct ot_workstruct *ws, int iovec_entries, struct iovec *iovector ); +ssize_t http_issue_error( const int64 s, struct ot_workstruct *ws, int code ); #endif -- cgit v1.2.3