diff options
Diffstat (limited to 'imap/proxy.h')
| -rw-r--r-- | imap/proxy.h | 34 | 
1 files changed, 34 insertions, 0 deletions
| diff --git a/imap/proxy.h b/imap/proxy.h new file mode 100644 index 0000000..85566b5 --- /dev/null +++ b/imap/proxy.h @@ -0,0 +1,34 @@ +#ifndef	proxy_h +#define	proxy_h + +/* +** Copyright 2004 Double Precision, Inc. +** See COPYING for distribution information. +*/ + + +struct proxyinfo { +	const char *host; +	int port; + +	int (*connected_func)(int, const char *, void *); +	void *void_arg; +}; + +int connect_proxy(struct proxyinfo *); +void proxyloop(int); + +struct proxybuf { +	char buffer[256]; +	char *bufptr; +	size_t bufleft; +}; + +int proxy_readline(int fd, struct proxybuf *pb, +		   char *linebuf, +		   size_t linebuflen, +		   int imapmode); +int proxy_write(int fd, const char *hostname, +		const char *buf, size_t buf_len); + +#endif | 
