protocol.h
资源名称:socks5.zip [点击查看]
上传用户:sddyfurun
上传日期:2007-01-04
资源大小:525k
文件大小:1k
源码类别:
代理服务器
开发平台:
Unix_Linux
- /* Copyright (c) 1995,1996,1997 NEC Corporation. All rights reserved. */
- /* */
- /* The redistribution, use and modification in source or binary forms of */
- /* this software is subject to the conditions set forth in the copyright */
- /* document ("Copyright") included with this distribution. */
- /*
- * $Id: protocol.h,v 1.19 1997/06/16 15:29:48 steve Exp $
- */
- #ifndef __PROTOCOL_H_
- #define __PROTOCOL_H_
- extern char *lsEffUser P((void));
- extern int LIBPREFIX2(init) P((const char *));
- extern int lsSetProtoAddr P((u_char, char *, const S5NetAddr *));
- extern int lsGetProtoAddr P((u_char, const char *, S5NetAddr *));
- extern int lsGetProtoAddrLenFromAddr P((u_char, const S5NetAddr *));
- extern int lsGetProtoAddrLenFromBuf P((u_char, const char *));
- extern int lsProtoExchg P((S5IOHandle, S5IOInfo *, const S5NetAddr *, char *, u_char, u_char, u_char));
- extern int lsSendRequest P((S5IOHandle, S5IOInfo *, const S5NetAddr *, u_char, u_char, u_char, char *));
- extern int lsReadRequest P((S5IOHandle, S5IOInfo *, S5NetAddr *, u_char *, u_char *, u_char *));
- extern int lsSendResponse P((S5IOHandle, S5IOInfo *, const S5NetAddr *, u_char, u_char, u_char, char *));
- extern int lsReadResponse P((S5IOHandle, S5IOInfo *, S5NetAddr *, u_char, u_char *, u_char *));
- #endif /* __PROTOCOL_H_ */