const struct socket_function_table *fn;
/* the above variable absolutely *must* be the first in this structure */
- char * error;
+ const char *error;
Socket sub_socket;
Plug plug;
bufchain pending_oob_output_data;
int pending_flush;
bufchain pending_input_data;
+ int pending_eof;
#define PROXY_STATE_NEW -1
#define PROXY_STATE_ACTIVE 0
int sent_bufsize;
/* accepting */
- OSSocket accepting_sock;
+ accept_fn_t accepting_constructor;
+ accept_ctx_t accepting_ctx;
/* configuration, used to look up proxy settings */
Conf *conf;