如果你能回答这个问题,你会很好..... [英] You're good if you can answer this one.....

查看:63
本文介绍了如果你能回答这个问题,你会很好.....的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

不要问为什么(它只会让你的头受伤 - 我知道我的确只是

想到我的经理为这个小小的搞砸的逻辑

项目)......但我需要能够通过UDP

连接隧道连接TCP


任何想法如何去做这个?我正在使用VB.Net 2005,但我或许可以按照一个简单的C#示例来接受



谢谢!

解决方案

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 just
thinking about the screwed up logic my manager has for this little
project)......but I need to be able to tunnel a TCP connection through a UDP
connection.

Any ideas how to do this? I am using VB.Net 2005 but I may be able to
follow 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 message
news:KR*******************@bignews8.bellsouth.net. ..

Don''t ask why (it''ll just make your head hurt - I know mine does just
thinking about the screwed up logic my manager has for this little
project)......but I need to be able to tunnel a TCP connection through a

UDP

connection.

Any ideas how to do this? I am using VB.Net 2005 but I may be able to
follow a simple C# example or two.

Thanks!



UDP does neither guarantee the packets arrive the destination in order, so
you''d have to create your packet with index, implement a buffer for
reordering of packet on receiver side, design both connection endpoints to
allow resending packet if one is found lost (the missing packet doesn''t
arrive before timeout) or after a full buffer condition is cleared (better
if you can signal the sending side to stop sending packet if the buffer is
full, but for the purpose of discussion, I think it''s ok if the receiver
side simply drop the packets and ask for resend when the buffer is has been
emptied)

In short, you have to implement all the Transport Controls provided by
TCP(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 just
thinking about the screwed up logic my manager has for this little
project)......but I need to be able to tunnel a TCP connection through a
UDP connection.

Any ideas how to do this? I am using VB.Net 2005 but I may be able to
follow 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, so

UDP does neither guarantee the packets arrive the destination nor garantee
the packets arrive in order


这篇关于如果你能回答这个问题,你会很好.....的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆