Home All Groups Group Topic Archive Search About

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

Author
4 Oct 2006 6:51 AM
smerf
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!

Author
4 Oct 2006 7:11 AM
Dana
http://support.microsoft.com/kb/244474/
http://www.hamachi.cc/
http://en.wikipedia.org/wiki/Hamachi

Show quote Hide quote
"smerf" <sm***@shroom.com> wrote in message
news:KRIUg.47052$vX5.27993@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!
>
>
>
Author
4 Oct 2006 2:41 PM
smerf
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).



Show quoteHide quote
"Dana" <raff***@yahoo.com> wrote in message
news:12i6nis3jnhhc40@corp.supernews.com...
> http://support.microsoft.com/kb/244474/
> http://www.hamachi.cc/
> http://en.wikipedia.org/wiki/Hamachi
>
> "smerf" <sm***@shroom.com> wrote in message
> news:KRIUg.47052$vX5.27993@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!
>>
>>
>>
>
>
Author
4 Oct 2006 6:37 PM
Dana
"smerf" <sm***@shroom.com> wrote in message
news:TKPUg.28750$eW5.14492@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.

Show quoteHide quote
>
>
>
> "Dana" <raff***@yahoo.com> wrote in message
> news:12i6nis3jnhhc40@corp.supernews.com...
> > http://support.microsoft.com/kb/244474/
> > http://www.hamachi.cc/
> > http://en.wikipedia.org/wiki/Hamachi
> >
> > "smerf" <sm***@shroom.com> wrote in message
> > news:KRIUg.47052$vX5.27993@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!
> >>
> >>
> >>
> >
> >
>
>
Author
11 Oct 2006 5:22 AM
teslar91
Smerf,

You can still easily find the Hamachi software on any of the
peer-to-peer file sharing networks, with eMule, Kazaa, Morpheus, etc.
Author
12 Oct 2006 1:57 AM
smerf
Not the server side.  Hamachi sold out to LogMeIn.

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

<tesla***@hotmail.com> wrote in message
Show quoteHide quote
news:1160544160.625658.138780@i3g2000cwc.googlegroups.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.
>
Author
4 Oct 2006 9:47 AM
Lau Lei Cheong
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)...

Show quoteHide quote
"smerf" <sm***@shroom.com> ¼¶¼g©ó¶l¥ó·s»D:KRIUg.47052$vX5.27***@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!
>
>
>
Author
4 Oct 2006 9:53 AM
Lau Lei Cheong
Errata. :P

"Lau Lei Cheong" <leu***@yehoo.com.hk> ¼¶¼g©ó¶l¥ó·s»D:uNT5oo55GHA.4***@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
Author
4 Oct 2006 2:43 PM
smerf
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.)

Show quoteHide quote
"Lau Lei Cheong" <leu***@yehoo.com.hk> wrote in message
news:%23vmh$r55GHA.3732@TK2MSFTNGP05.phx.gbl...
> Errata. :P
>
> "Lau Lei Cheong" <leu***@yehoo.com.hk>
> ¼¶¼g©ó¶l¥ó·s»D:uNT5oo55GHA.4***@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
>
Author
4 Oct 2006 11:06 PM
Peter Duniho
"smerf" <sm***@shroom.com> wrote in message
news:mMPUg.28752$eW5.5194@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
Author
10 Oct 2006 7:54 PM
Ben Voigt
"Lau Lei Cheong" <leu***@yehoo.com.hk> wrote in message
news:uNT5oo55GHA.4608@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).

Show quoteHide quote
>
> 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:KRIUg.47052$vX5.27***@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!
>>
>>
>>
>
>