diff options
author | Adam Chlipala <adamc@hcoop.net> | 2009-06-27 17:50:31 -0400 |
---|---|---|
committer | Adam Chlipala <adamc@hcoop.net> | 2009-06-27 17:50:31 -0400 |
commit | b9fcbe3dc86323a4a64b419c589a1cc5eeb38749 (patch) | |
tree | fb74e59d4dc2a663499f25e692fac8f08e6cb266 /include | |
parent | e549f22abb97951897b9eaebee879addd66f2517 (diff) |
.msgs processing in FastCGI
Diffstat (limited to 'include')
-rw-r--r-- | include/request.h | 4 | ||||
-rw-r--r-- | include/urweb.h | 8 |
2 files changed, 8 insertions, 4 deletions
diff --git a/include/request.h b/include/request.h index e319e91a..73ee0468 100644 --- a/include/request.h +++ b/include/request.h @@ -18,7 +18,9 @@ request_result uw_request(uw_request_context, uw_context, char *body, size_t body_len, void (*on_success)(uw_context), void (*on_failure)(uw_context), void *logger_data, uw_logger log_error, uw_logger log_debug, - int sock); + int sock, + int (*send)(int sockfd, const void *buf, ssize_t len), + int (*close)(int fd)); uw_context uw_request_new_context(void *logger_data, uw_logger log_error, uw_logger log_debug); diff --git a/include/urweb.h b/include/urweb.h index 6adc8969..7b247f62 100644 --- a/include/urweb.h +++ b/include/urweb.h @@ -5,13 +5,15 @@ #include "types.h" -int uw_really_send(int sock, void *buf, ssize_t len); +int uw_really_send(int sock, const void *buf, ssize_t len); extern uw_unit uw_unit_v; void uw_global_init(void); -void uw_client_connect(unsigned id, int pass, int sock); +void uw_client_connect(unsigned id, int pass, int sock, + int (*send)(int sockfd, const void *buf, size_t len), + int (*close)(int fd)); void uw_prune_clients(uw_context); failure_kind uw_initialize(uw_context); @@ -43,7 +45,7 @@ void uw_memstats(uw_context); int uw_send(uw_context, int sock); int uw_print(uw_context, int fd); -int uw_output(uw_context ctx, int (*output)(void *data, char *buf, size_t len), void *data); +int uw_output(uw_context ctx, int (*output)(void *data, const char *buf, size_t len), void *data); int uw_set_input(uw_context, const char *name, char *value); int uw_set_file_input(uw_context, char *name, uw_Basis_file); |