[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-developers] TCP transport layer
From: |
Christian Grothoff |
Subject: |
[GNUnet-developers] TCP transport layer |
Date: |
Sun, 15 Sep 2002 02:06:06 -0500 |
User-agent: |
KMail/1.4.1 |
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi all!
I've just had some first success playing with the new TCP transport layer.
This is the code to use TCP instead of UDP for peer-to-peer connections. TCP
may be a better way to get around certain firewalls and the retransmission
may also help on very flaky lines.
What I tried was this:
A knows UDP (!) address of B. A establishes UDP connection to B as usual, thus
B learns A's UDP (!) address and they exchange a sessionkey. After a while,
both nodes use the UDP connection to advertise their own addresses, notably
that they also offer TCP (potentially on a different port). The nodes probe
that the TCP address that was advertised via UDP is valid (ping-pong) and
store the additional TCP HELO in data/hosts. The ping-pong part confirms that
the TCP connection works in both directions.
While there may be bugs left, this should demonstrate that the basic design
works. Note that the tcp and the udp implementations of the transport layer
are each only about 600 lines of code.
Christian
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org
iD8DBQE9hDFg9tNtMeXQLkIRAgKqAJ0bXPburZKSJDUinhkZILkKw1zWuQCfVaHM
62k4/8wR110f60JnIPzpEhQ=
=3goF
-----END PGP SIGNATURE-----
- [GNUnet-developers] TCP transport layer,
Christian Grothoff <=