473,385 Members | 1,326 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

You're good if you can answer this one.....

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!

Oct 4 '06 #1
10 1820
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!

Oct 4 '06 #2
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!

Oct 4 '06 #3
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
Oct 4 '06 #4
Great links Dana!

Unfortunately Hamachi has sold out to LogMeIn and the server is no longer
available publicly....

The app we are adding to allready has a UDP connection between peers. The
thought behind tunneling TCP through it was to allow other apps to
successfully use the same tunnel (like Hamachi) and to take advantage of the
features of TCP when transferring files (making sure everything gets there
and in the proper order).

"Dana" <ra*****@yahoo.comwrote in message
news:12*************@corp.supernews.com...
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!


Oct 4 '06 #5
The app we are adding to allready has a UDP connection between peers. The
thought behind tunneling TCP through it was to allow other apps to
successfully use the same tunnel (like Hamachi) and to take advantage of the
features of TCP when transferring files (making sure everything gets there
and in the proper order).

If we could tunnel TCP thru UDP, our issue would be solved.

(We really need a newsgroup devoted to application programming questions -
design patterns, actual code swapping, etc. - ....not just languages.)

"Lau Lei Cheong" <le****@yehoo.com.hkwrote in message
news:%2****************@TK2MSFTNGP05.phx.gbl...
Errata. :P

"Lau Lei Cheong" <le****@yehoo.com.hk>
¼¶¼g©ó¶l¥ó·s»D:uN**************@TK2MSFTNGP03.phx.g bl...
>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

Oct 4 '06 #6
"smerf" <sm***@shroom.comwrote in message
news:TK*******************@bignews5.bellsouth.net. ..
Great links Dana!

Unfortunately Hamachi has sold out to LogMeIn and the server is no longer
available publicly....

The app we are adding to allready has a UDP connection between peers. The
thought behind tunneling TCP through it was to allow other apps to
successfully use the same tunnel (like Hamachi) and to take advantage of
the
features of TCP when transferring files (making sure everything gets there
and in the proper order).
You original post got me interested so I did a little search and that is
what I found.
I found some forum type boards where people were discussing doing what you
are trying to do, and that led me to Hamachi. You may want to do a search
for Hamachi and see if you find any help that way.
Sorry that is all I can offer.
>
"Dana" <ra*****@yahoo.comwrote in message
news:12*************@corp.supernews.com...
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!


Oct 4 '06 #7
"smerf" <sm***@shroom.comwrote in message
news:mM******************@bignews5.bellsouth.net.. .
(We really need a newsgroup devoted to application programming questions -
design patterns, actual code swapping, etc. - ....not just languages.)
There are, in fact, newsgroups dedicated to algorithm and coding issues, as
well as newsgroups dedicated to the use of TCP/IP. For the most part,
you're not going to find those newsgroups under the
microsoft.public.dotnet.* hierarchy.

I agree that your question is not on-topic here. IMHO, the solution is just
to find the right newsgroup and use that one, rather than cross-posting over
a number of wrong newsgroups.

Just because you're coding using .NET, C#, VB.NET or whatever, that doesn't
mean all programming questions you might have are .NET, C#, VB.NET or
whatever newsgroups.

Hope that helps...for what it's worth, while you may find an answer through
your excessive cross-posting to unrelated newsgroups, you are much more
likely to get exactly the advice you want if you take the time to find the
right newsgroup and post your question there. This isn't just about being
nice to the newsgroups...you will also have more personal success by being
nice to the newsgroups.

Pete
Oct 4 '06 #8

"Lau Lei Cheong" <le****@yehoo.com.hkwrote in message
news:uN**************@TK2MSFTNGP03.phx.gbl...
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)
Which is exactly what the existing TCP/IP networking stack already does.

I would look at the winpcap library, which I know several programs use to
implement software ethernet bridging (in the days before XP, when Windows
didn't have that built in).
>
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.bell south.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!


Oct 10 '06 #9
Smerf,

You can still easily find the Hamachi software on any of the
peer-to-peer file sharing networks, with eMule, Kazaa, Morpheus, etc.

Oct 11 '06 #10
Not the server side. Hamachi sold out to LogMeIn.

Not to worry though.....I'm almost ready to replace what Hamachi sold out.

<te******@hotmail.comwrote in message
news:11**********************@i3g2000cwc.googlegro ups.com...
Smerf,

You can still easily find the Hamachi software on any of the
peer-to-peer file sharing networks, with eMule, Kazaa, Morpheus, etc.

Oct 12 '06 #11

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
by: lawrence | last post by:
2 Questions: 1.) Can anyone think of a way to speed up this function? It is terribly slow. I plan to reduce the number of directories to 3, which I guess will speed it up in the end. 2.) This...
11
by: Kamus of Kadizhar | last post by:
I have the following function which generates MD5 hashes for files on a local and remote server. The remote server has a little applet that runs from inetd and generates an MD5 hash given the file...
11
by: Barney Norris | last post by:
Hi, The W3C validator tells me this page isn't valid HTML 4.01 Strict: http://www-student.cs.york.ac.uk/~jban100/wont_validate.html The reason it gives is I've closed meta tags with a '/'...
0
by: Lucky Carl | last post by:
DFS wrote: > You wiped XP but you're still obsessed with Windows. You need to wipe > your brain. Why does Microsoft pay this person to astroturf in COLA ?
354
by: Montrose... | last post by:
After working in c# for a year, the only conclusion I can come to is that I wish I knew c. All I need is Linux, the gnu c compiler and I can do anything. Web services are just open sockets...
6
by: MLH | last post by:
I'm tired of reading the fine print! Too many registrars out there. So I'm asking this group for a little help. I'm looking for a Registrar who will do an honest day's work for a fair price. I'm...
10
by: smerf | last post by:
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...
3
by: Rob | last post by:
Hi all, I have a bit of a complicated question, hope we have an SQL guru out there that can help us solve this killer problem. Due to the size of SQL Database we have (largest in the US), we...
2
by: When You Need to Tell Someone | last post by:
I saw a javascript popup that I just loved, and I'd like it on my new website. I think it involved CSS, but I have no clue. It was a rollover popup, with a "pop" sound, and the image that popped...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.