⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 readme.usage

📁 sock protocol ,it is useful!
💻 USAGE
字号:
$Id: README.usage,v 1.5 1999/12/22 09:29:17 karls Exp $The socks package can be used in two ways.Dynamically	The simplest way to add socks support to an already(dynamically) complied application is to use the LD_PRELOAD facilityto replace the standard library functions with socksified ones.  Thelibdsocks library is provided for this purpose.  See theREADME.socksify file for more information.  This will probably onlywork with non-setuid applications since LD_PRELOAD is usually ignoredotherwise.  If setting LD_PRELOAD is not possible, compilation isanother possibility.	If the application can be compiled dynamically socks supportcan be added explicitly by linking with libdsocks (usually done by adding'-ldsocks').  This will automagically give the application sockssupport without making any code changes.Static Compilation	If the source code for an application is available it can bechanged to use socks, even if it is not linked dynamically.Several systemcalls must be changed to use the socksified versionsinstead of the standard ones.  The application is then linked withthe libsocks library in the distribution (-lsocks, not -ldsocks).These system calls can be found in the socks library:RconnectRbind RgetsocknameRgetpeernameRacceptRrresvportRbindresvportRgethostbynameRgethostbyname2RsendtoRrecvfromRrecvfromRwriteRwritevRsendRsendmsgRreadRreadvRrecvRrecvmsgThese calls currently does nothing and are only provided forcompatibility with programs which use them.RlistenRselectSOCKSinitThe source can either be modified directly, or by using defines tochange the source during compilation.Either add this line to the command line:-Dconnect=Rconnect -Dbind=Rbind -Dgetsockname=Rgetsockname -Dgetpeername=Rgetpeername -Daccept=Raccept -Drresvport=Rrresvport -Dbindresvport=Rbindresvport -Dgethostbyname=Rgethostbyname -Dgethostbyname2=Rgethostbyname2 -Dsendto=Rsendto -Drecvfrom=Rrecvfrom -Drecvfrom=Rrecvfrom -Dwrite=Rwrite -Dwritev=Rwritev -Dsend=Rsend -Dsendmsg=Rsendmsg -Dread=Rread -Dreadv=Rreadv -Drecv=Rrecv -Drecvmsg=Rrecvmsgor these lines to an include file, which must be included in all source files.#define connect Rconnect#define bind Rbind#define getsockname Rgetsockname#define getpeername Rgetpeername#define accept Raccept#define rresvport Rrresvport#define bindresvport Rbindresvport#define gethostbyname Rgethostbyname#define gethostbyname2 Rgethostbyname2#define sendto Rsendto#define recvfrom Rrecvfrom#define recvfrom Rrecvfrom#define write Rwrite#define writev Rwritev#define send Rsend#define sendmsg Rsendmsg#define read Rread#define readv Rreadv#define recv Rrecv#define recvmsg RrecvmsgLibraries	In total there are three libraries distributed with this package: libsocks.so  - standard shared library, contains Rfoo type functions. libsocks.a   - static version of the above. libdsocks.so - shared library which does socksification through the		runtime linker.  Contains wrappers for standard I/O		calls.

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -