cache.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: cache.h,v 1.11 1997/06/16 15:29:45 steve Exp $
- */
- #ifndef CACHE_H
- #define CACHE_H
- extern void lsProxyCacheClean P(( lsSocksInfo *));
- extern void lsProxyCacheDel P(( lsSocksInfo *, lsProxyInfo *));
- extern lsProxyInfo *lsProxyCacheAdd P(( lsSocksInfo *, const S5NetAddr *, u_char));
- extern lsProxyInfo *lsProxyCacheFind P((const lsSocksInfo *, const S5NetAddr *, u_char, int));
- extern int lsConnectionDel P((S5IOHandle));
- extern int lsConnectionCached P((S5IOHandle));
- extern lsSocksInfo *lsConnectionAdd P((S5IOHandle));
- extern lsSocksInfo *lsConnectionFind P((S5IOHandle));
- extern lsSocksInfo *lsConList; /* list of known connections */
- extern lsSocksInfo *lsLastCon; /* last successful connect() */
- #define PROTO(cmd) ((cmd) == SOCKS_UDP?SOCK_DGRAM:SOCK_STREAM)
- #endif