An open and free bittorrent tracker https://erdgeist.org/gitweb/opentracker
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

30 lines
799 B

  1. /* This software was written by Dirk Engling <erdgeist@erdgeist.org>
  2. It is considered beerware. Prost. Skol. Cheers or whatever.
  3. $id$ */
  4. #ifndef OT_HTTP_H__
  5. #define OT_HTTP_H__
  6. typedef enum {
  7. STRUCT_HTTP_FLAG_WAITINGFORTASK = 1,
  8. STRUCT_HTTP_FLAG_GZIP = 2,
  9. STRUCT_HTTP_FLAG_BZIP2 = 4
  10. } STRUCT_HTTP_FLAG;
  11. struct http_data {
  12. array request;
  13. io_batch batch;
  14. ot_ip6 ip;
  15. STRUCT_HTTP_FLAG flag;
  16. };
  17. ssize_t http_handle_request( const int64 s, struct ot_workstruct *ws );
  18. ssize_t http_sendiovecdata( const int64 s, struct ot_workstruct *ws, int iovec_entries, struct iovec *iovector );
  19. ssize_t http_issue_error( const int64 s, struct ot_workstruct *ws, int code );
  20. extern char *g_stats_path;
  21. extern ssize_t g_stats_path_len;
  22. #endif