解决方案 http ://support.microsoft.com/kb/244474/ http: //www.hamachi.cc/ http:// en.wikipedia.org/wiki/Hamachi " smerf" < sm *** @ shroom.com写了留言 新闻:KR ******************* @ bignews8.bellsouth.net。 .. 不要问为什么(它只会让你的头部受伤 - 我知道我的确只是 在思考我的经理为这个小小的 项目搞砸了逻辑......但我需要能够通过 $ b $来隧道连接TCP连接b UDP 连接。 任何想法如何做到这一点?我正在使用VB.Net 2005,但我可以按照一个简单的C#示例来接受。 谢谢! UDP既不保证数据包按顺序到达目的地,所以 你必须用索引创建你的数据包,实现一个缓冲区,用于接收器端的数据包重新排序,将两个连接端点设计为 允许重发数据包(如果发现一个丢失)(丢失的数据包不是 在超时之前到达)或在完全缓冲条件被清除之后(更好 如果你可以发信号通知发送方停止发送数据包,如果缓冲区是 完全,但为了讨论的目的,我认为如果接收器 方面只是丢弃数据包并在缓冲区已经请求重新发送时没关系 清空) 简而言之,你必须实现 TCP提供的所有运输控制(或者我应该说...... OSI l ayer 4 - 传输层)... " smerf" < sm *** @ shroom.com?????????????:KR**************** ***@bignews8.bellsouth。 net ... 不要问为什么(它会让你的头部受伤 - 我知道我的确只是 考虑到我的经理为这个小小的b $ b项目搞砸了逻辑......但我需要能够通过 UDP隧道连接TCP连接连接。 任何想法如何做到这一点?我正在使用VB.Net 2005,但我可以按照一个简单的C#示例来接受。 谢谢! 勘误表。 :P 刘雷畅 < le **** @ yehoo.com.hk??????l¥ó·s?D:uN**************@TK2MSFTNGP03.phx.gbl。 .. UDP既不保证数据包按顺序到达目的地,所以 UDP既不会保证数据包到达目的地也不保证 数据包按顺序到达 Don''t ask why (it''ll just make your head hurt - I know mine does justthinking about the screwed up logic my manager has for this littleproject)......but I need to be able to tunnel a TCP connection through a UDPconnection.Any ideas how to do this? I am using VB.Net 2005 but I may be able tofollow a simple C# example or two.Thanks! 解决方案 http://support.microsoft.com/kb/244474/ http://www.hamachi.cc/ http://en.wikipedia.org/wiki/Hamachi"smerf" <sm***@shroom.comwrote in messagenews:KR*******************@bignews8.bellsouth.net. ..Don''t ask why (it''ll just make your head hurt - I know mine does justthinking about the screwed up logic my manager has for this littleproject)......but I need to be able to tunnel a TCP connection through aUDPconnection.Any ideas how to do this? I am using VB.Net 2005 but I may be able tofollow a simple C# example or two.Thanks! UDP does neither guarantee the packets arrive the destination in order, soyou''d have to create your packet with index, implement a buffer forreordering of packet on receiver side, design both connection endpoints toallow resending packet if one is found lost (the missing packet doesn''tarrive before timeout) or after a full buffer condition is cleared (betterif you can signal the sending side to stop sending packet if the buffer isfull, but for the purpose of discussion, I think it''s ok if the receiverside simply drop the packets and ask for resend when the buffer is has beenemptied)In short, you have to implement all the Transport Controls provided byTCP(or I should say... OSI layer 4 - transport layer)..."smerf" <sm***@shroom.com???g?ó?l¥ó·s?D:KR**************** ***@bignews8.bellsouth.net...Don''t ask why (it''ll just make your head hurt - I know mine does justthinking about the screwed up logic my manager has for this littleproject)......but I need to be able to tunnel a TCP connection through aUDP connection.Any ideas how to do this? I am using VB.Net 2005 but I may be able tofollow a simple C# example or two.Thanks! Errata. :P"Lau Lei Cheong" <le****@yehoo.com.hk???g?ó?l¥ó·s?D:uN************* *@TK2MSFTNGP03.phx.gbl...UDP does neither guarantee the packets arrive the destination in order, soUDP does neither guarantee the packets arrive the destination nor garanteethe packets arrive in order 这篇关于如果你能回答这个问题,你会很好.....的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 上岸,阿里云!
05-27 13:18
查看更多