<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<!-- saved from url=(0047)http://www.chinabyte.com/20030124/1649965.shtml -->
<HTML
xmlns="http://www.w3.org/TR/xhtml1/strict"><HEAD><TITLE>穿透Socks5 代理的UDP编程</TITLE>
<META http-equiv=Content-Type content="text/html; charset=GB2312"></META><LINK
href="穿透Socks5 代理的UDP编程1.files/cpcw.css" rel=stylesheet></LINK>
<STYLE>.nava {
FONT-SIZE: 9pt
}
</STYLE>
<META content="MSHTML 6.00.2800.1458" name=GENERATOR></META>
<SCRIPT language=JavaScript>function sendemail(){
OpenWindow = window.open('http://other.chinabyte.com/chinabyte/qin/sendemail.shtm?url=http%3A%2F%2Fwww.yesky.com/20030124/1649965.shtml&title=穿透Socks5 代理的UDP编程&channel=9','emailwin','toolbar=no,location=no,scrollbars=no,menubar=no,width=462,height=450')
}</SCRIPT>
</HEAD>
<BODY text=#000000 bgColor=#ffffff leftMargin=0 topMargin=2 marginheight="0"
marginwidth="0">
<DIV align=center>
<TABLE height=90 cellSpacing=0 cellPadding=0 width=760 border=0>
<TBODY>
<TR>
<TD width=149> </TD>
<TD colSpan=2><A href="http://www.yesky.com/">首页</A> ·<A
href="http://www.yesky.com/ServerIndex/77124143618719744/index.shtml"><FONT
class=zzz>硬件</FONT> </A>· <A
href="http://www.chinabyte.com/Enterprise/218706056904179712/index.shtml">E企业
</A>·<A href="http://price.yesky.com/"> 商情 </A>·<A
href="http://www.chinabyte.com/Fashion/73746443898191872/index.shtml">
数字电子 </A>·<A
href="http://www.chinabyte.com/SoftChannel/72339069014638592/index.shtml">
软件 </A>· <A
href="http://www.chinabyte.com/Gameall/73183493944770560/index.shtml">游戏
</A>·<A href="http://download.yesky.com/"> 下载 </A>· <A
href="http://www.chinabyte.com/Etimes/74872343805034496/index.shtml">E时代</A>·
<A href="http://bbs.yesky.com/">论坛</A></TD></TR>
<TR>
<TD vAlign=top align=middle width=149 height=70><IMG height=60
src="穿透Socks5 代理的UDP编程1.files/bz2.gif" width=110></TD>
<TD vAlign=top width=474><IFRAME
src="穿透Socks5 代理的UDP编程1.files/y-soft-column-s.htm" frameBorder=0 width=500
scrolling=no height=90></IFRAME></TD>
<TD vAlign=top width=137><IFRAME src="穿透Socks5 代理的UDP编程1.files/index.htm"
frameBorder=0 width=130 scrolling=no
height=60></IFRAME></TD></TR></TBODY></TABLE><IFRAME
src="穿透Socks5 代理的UDP编程1.files/y-soft-column-1.htm" frameBorder=0 width=766
scrolling=no height=96>
</IFRAME>
<TABLE cellSpacing=0 cellPadding=0 width=760 bgColor=#979797 border=0>
<TBODY>
<TR>
<TD width=10></TD>
<TD width=536><SPAN class=nava><FONT color=#ffffff>您现在的位置是: </FONT><A
href="http://www.chinabyte.com/72339069014638592/index.shtml"><FONT
color=#ffffff>软件</FONT></A><FONT color=#ffffff> > </FONT><A
href="http://www.chinabyte.com/72342367549521920/index.shtml"><FONT
color=#ffffff>开发者网络</FONT></A><FONT color=#ffffff> > </FONT><A
href="http://www.chinabyte.com/72342397614292992/index.shtml"><FONT
color=#ffffff>开发资源</FONT></A><FONT color=#ffffff> > </FONT><FONT
color=#ffffff>正文</FONT></SPAN></TD>
<TD width=214 bgColor=#f7f7f7><IMG height=22
src="穿透Socks5 代理的UDP编程1.files/content-1.gif"
width=214></IMG></TD></TR></TBODY></TABLE>
<TABLE cellSpacing=0 cellPadding=0 width=760 bgColor=#f7f7f7 border=0>
<TBODY>
<TR>
<TD width=149 height=10></TD>
<TD width=1 background="穿透Socks5 代理的UDP编程1.files/content-3.gif"
height=10></TD>
<TD width=610 height=10></TD></TR></TBODY></TABLE>
<TABLE cellSpacing=0 cellPadding=0 width=760 bgColor=#f7f7f7 border=0>
<TBODY>
<TR>
<TD vAlign=top align=middle width=149>·<A
href="http://www.chinabyte.com/20020731/1623017.shtml">速成电脑精英(包分配)白领高薪一族从这里开始</A></TD></TR>
<TR>
<TD vAlign=top align=middle width=149><IFRAME
src="穿透Socks5 代理的UDP编程1.files/softwaresv.html" frameBorder=0 width=120
scrolling=no height=500></IFRAME><BR><BR>
<SCRIPT src="穿透Socks5 代理的UDP编程1.files/140_250.js"></SCRIPT>
<BR>
<TABLE cellSpacing=0 cellPadding=0 width=135 border=0>
<TBODY>
<TR>
<TD width=30 bgColor=#3d7b7b><IMG height=17
src="穿透Socks5 代理的UDP编程1.files/content-2.gif" width=24
align=absMiddle></IMG></TD>
<TD class=nava align=middle width=105 bgColor=#a0d0d0><A class=A1
href="http://www.chinabyte.com/72348964619288576/index.shtml"><FONT
color=#000000>T O P 排 行</FONT></A></TD></TR>
<TR>
<TD vAlign=top align=middle width="6%" bgColor=#ebebeb>-</TD>
<TD width="94%" bgColor=#ebebeb><A
href="http://www.chinabyte.com/20030129/1650669.shtml">软件频道新春贺词</A><BR></TD></TR>
<TR>
<TD vAlign=top align=middle width="6%" bgColor=#ebebeb>-</TD>
<TD width="94%" bgColor=#ebebeb><A
href="http://www.chinabyte.com/20030129/1650670.shtml">选贺卡,赢大奖!</A><BR></TD></TR>
<TR>
<TD vAlign=top align=middle width="6%" bgColor=#ebebeb>-</TD>
<TD width="94%" bgColor=#ebebeb><A
href="http://www.chinabyte.com/20030127/1650309.shtml">与“蠕虫王”战斗到底</A><BR></TD></TR>
<TR>
<TD vAlign=top align=middle width="6%" bgColor=#ebebeb>-</TD>
<TD width="94%" bgColor=#ebebeb><A
href="http://www.chinabyte.com/20030126/1650161.shtml">三款资源访问辅助工具使用</A><BR></TD></TR></TBODY></TABLE><BR>
<TABLE cellSpacing=0 cellPadding=0 width=135 border=0>
<TBODY>
<TR>
<TD width=30 bgColor=#3d7b7b><IMG height=17
src="穿透Socks5 代理的UDP编程1.files/content-2.gif" width=24
align=absMiddle></IMG></TD>
<TD class=nava align=middle width=105 bgColor=#a0d0d0><A class=A1
href="http://training.yesky.com/"><FONT color=#000000>网 校 热
门</FONT></A></TD></TR></TBODY></TABLE>
<SCRIPT src="穿透Socks5 代理的UDP编程1.files/softyesky.js"></SCRIPT>
</TD>
<TD width=1 background="穿透Socks5 代理的UDP编程1.files/content-3.gif"></TD>
<TD vAlign=top align=middle>
<TABLE cellSpacing=2 cellPadding=0 width=550 border=0>
<TBODY>
<TR>
<TD align=middle><B><FONT class=BHEAD color=#333399>穿透Socks5
代理的UDP编程</FONT></B></TD></TR>
<TR>
<TD bgColor=#bbbbbb height=1></TD></TR>
<TR>
<TD align=middle><FONT face="Arial, Helvetica, sans-serif"><SPAN
class=nava>2003-01-31· · ··天极论坛<BR><BR></SPAN></FONT></TD></TR>
<TR>
<TD>
<P align=right><FONT color=red>1 <A
href="http://www.chinabyte.com/20030124/1649965_1.shtml">2</A>
<A
href="http://www.chinabyte.com/20030124/1649965_1.shtml">下一页</A></FONT></P><SPAN
class=txt><IFRAME align=right marginWidth=0 marginHeight=0
src="穿透Socks5 代理的UDP编程1.files/cont_flash_software.html"
frameBorder=0 width=360 scrolling=no
height=300></IFRAME> 网络编程中,对于数据传输实时性要求较高的场合,大家都会选择UDP来作为数据传输协议,在TCP/IP协议族中UDP协议较TCP协议需要的网络系统资源更少。然而在企业应用中,由于网络安全原因等会导致除了特定端口以外的IP数据无法通过专用的路由或网关。为了支持这类应用,制定了专门的支持Socks连接的socks4/socsk5协议。Socks协议允许实现此类功能的代理软件可以允许防火墙(本文以下内容中防火墙与代理的称谓可以等同视之)以内的客户通过防火墙实现对外部的访问,甚至可以允许等待外部的连接。对于防火墙内部的软件客户端,仅同防火墙协商,同防火墙的特定端口取得联系,然后交换数据,而防火墙外部的程序也直同防火墙进行数据交换,外部看不到防火墙的内部网情况,这样起到了防火墙的监护功能,也满足了大多数通过