CProxy/http.h
aixiao e6072984a2 Add SSL encoding
Add long option
Add Android NDK compilation
No longer use the iniparser to read configuration files
2020-03-24 11:46:32 +08:00

31 lines
549 B
C

#ifndef HTTP_H
#define HTTP_H
#include "conf.h"
#include "proxy.h"
#define HTTP_TYPE 0
#define OTHER_TYPE 1
int remote_port;
char remote_host[128];
extern int sslEncodeCode;
typedef struct conn_t {
int fd;
char *header_buffer;
int header_buffer_len, sent_len, timer;
} conn;
extern conn cts[MAX_CONNECTION];
extern void tcp_in(conn *in, conf *configure);
extern void tcp_out(conn *out);
extern void clienttoserver(conn *in);
extern void close_connection(conn *conn);
extern char *request_head(conn *in, conf *configure);
#endif