Browse Source

Created tunnel/

pull/239/head
EinMByte 10 years ago
parent
commit
d9bb09780f
  1. 2
      Daemon.cpp
  2. 2
      Datagram.cpp
  3. 2
      Destination.h
  4. 4
      Garlic.cpp
  5. 4
      HTTPServer.cpp
  6. 2
      I2NPProtocol.cpp
  7. 2
      I2PControl.cpp
  8. 2
      LeaseSet.cpp
  9. 3
      Makefile
  10. 2
      NetDb.cpp
  11. 4
      NetDb.h
  12. 2
      Streaming.cpp
  13. 2
      Streaming.h
  14. 2
      api.cpp
  15. 10
      build/CMakeLists.txt
  16. 2
      crypto/aes.cpp
  17. 5
      filelist.mk
  18. 0
      tunnel/TransitTunnel.cpp
  19. 0
      tunnel/TransitTunnel.h
  20. 0
      tunnel/Tunnel.cpp
  21. 0
      tunnel/Tunnel.h
  22. 0
      tunnel/TunnelBase.h
  23. 0
      tunnel/TunnelConfig.h
  24. 0
      tunnel/TunnelEndpoint.cpp
  25. 0
      tunnel/TunnelEndpoint.h
  26. 0
      tunnel/TunnelGateway.cpp
  27. 0
      tunnel/TunnelGateway.h
  28. 0
      tunnel/TunnelPool.cpp
  29. 0
      tunnel/TunnelPool.h

2
Daemon.cpp

@ -8,7 +8,7 @@ @@ -8,7 +8,7 @@
#include "transport/NTCPSession.h"
#include "RouterInfo.h"
#include "RouterContext.h"
#include "Tunnel.h"
#include "tunnel/Tunnel.h"
#include "NetDb.h"
#include "Garlic.h"
#include "util/util.h"

2
Datagram.cpp

@ -3,7 +3,7 @@ @@ -3,7 +3,7 @@
#include <cryptopp/sha.h>
#include <cryptopp/gzip.h>
#include "util/Log.h"
#include "TunnelBase.h"
#include "tunnel/TunnelBase.h"
#include "RouterContext.h"
#include "Destination.h"
#include "Datagram.h"

2
Destination.h

@ -10,7 +10,7 @@ @@ -10,7 +10,7 @@
#include <functional>
#include <boost/asio.hpp>
#include "Identity.h"
#include "TunnelPool.h"
#include "tunnel/TunnelPool.h"
#include "crypto/CryptoConst.h"
#include "LeaseSet.h"
#include "Garlic.h"

4
Garlic.cpp

@ -4,8 +4,8 @@ @@ -4,8 +4,8 @@
#include <string>
#include "RouterContext.h"
#include "I2NPProtocol.h"
#include "Tunnel.h"
#include "TunnelPool.h"
#include "tunnel/Tunnel.h"
#include "tunnel/TunnelPool.h"
#include "util/Timestamp.h"
#include "Destination.h"
#include "Garlic.h"

4
HTTPServer.cpp

@ -3,8 +3,8 @@ @@ -3,8 +3,8 @@
#include <boost/date_time/posix_time/posix_time.hpp>
#include "util/base64.h"
#include "util/Log.h"
#include "Tunnel.h"
#include "TransitTunnel.h"
#include "tunnel/Tunnel.h"
#include "tunnel/TransitTunnel.h"
#include "transport/Transports.h"
#include "NetDb.h"
#include "util/I2PEndian.h"

2
I2NPProtocol.cpp

@ -6,7 +6,7 @@ @@ -6,7 +6,7 @@
#include "util/Timestamp.h"
#include "RouterContext.h"
#include "NetDb.h"
#include "Tunnel.h"
#include "tunnel/Tunnel.h"
#include "transport/Transports.h"
#include "Garlic.h"
#include "I2NPProtocol.h"

2
I2PControl.cpp

@ -13,7 +13,7 @@ @@ -13,7 +13,7 @@
#include "NetDb.h"
#include "RouterContext.h"
#include "Daemon.h"
#include "Tunnel.h"
#include "tunnel/Tunnel.h"
#include "util/Timestamp.h"
#include "transport/Transports.h"
#include "version.h"

2
LeaseSet.cpp

@ -6,7 +6,7 @@ @@ -6,7 +6,7 @@
#include "util/Log.h"
#include "util/Timestamp.h"
#include "NetDb.h"
#include "TunnelPool.h"
#include "tunnel/TunnelPool.h"
#include "LeaseSet.h"
namespace i2p

3
Makefile

@ -31,6 +31,7 @@ mk_build_dir: @@ -31,6 +31,7 @@ mk_build_dir:
mkdir -p obj/transport
mkdir -p obj/util
mkdir -p obj/crypto
mkdir -p obj/tunnel
mk_build_test_dir:
mkdir -p obj/tests
@ -49,6 +50,7 @@ deps: @@ -49,6 +50,7 @@ deps:
@mkdir -p obj/tests
@mkdir -p obj/util
@mkdir -p obj/crypto
@mkdir -p obj/tunnel
$(CXX) $(CXXFLAGS) $(NEEDED_CXXFLAGS) -MM *.cpp > $(DEPS)
@sed -i -e '/\.o:/ s/^/obj\//' $(DEPS)
@ -58,6 +60,7 @@ obj/%.o : %.cpp @@ -58,6 +60,7 @@ obj/%.o : %.cpp
@mkdir -p obj/tests
@mkdir -p obj/util
@mkdir -p obj/crypto
@mkdir -p obj/tunnel
$(CXX) $(CXXFLAGS) $(NEEDED_CXXFLAGS) $(INCFLAGS) $(CPU_FLAGS) -c -o $@ $<
# '-' is 'ignore if missing' on first run

2
NetDb.cpp

@ -8,7 +8,7 @@ @@ -8,7 +8,7 @@
#include "util/Log.h"
#include "util/Timestamp.h"
#include "I2NPProtocol.h"
#include "Tunnel.h"
#include "tunnel/Tunnel.h"
#include "transport/Transports.h"
#include "RouterContext.h"
#include "Garlic.h"

4
NetDb.h

@ -13,8 +13,8 @@ @@ -13,8 +13,8 @@
#include "I2NPProtocol.h"
#include "RouterInfo.h"
#include "LeaseSet.h"
#include "Tunnel.h"
#include "TunnelPool.h"
#include "tunnel/Tunnel.h"
#include "tunnel/TunnelPool.h"
#include "Reseed.h"
#include "NetDbRequests.h"

2
Streaming.cpp

@ -2,7 +2,7 @@ @@ -2,7 +2,7 @@
#include "util/Log.h"
#include "RouterInfo.h"
#include "RouterContext.h"
#include "Tunnel.h"
#include "tunnel/Tunnel.h"
#include "util/Timestamp.h"
#include "Destination.h"
#include "Streaming.h"

2
Streaming.h

@ -16,7 +16,7 @@ @@ -16,7 +16,7 @@
#include "LeaseSet.h"
#include "I2NPProtocol.h"
#include "Garlic.h"
#include "Tunnel.h"
#include "tunnel/Tunnel.h"
namespace i2p
{

2
api.cpp

@ -3,7 +3,7 @@ @@ -3,7 +3,7 @@
#include "util/Log.h"
#include "NetDb.h"
#include "transport/Transports.h"
#include "Tunnel.h"
#include "tunnel/Tunnel.h"
#include "RouterContext.h"
#include "Identity.h"
#include "Destination.h"

10
build/CMakeLists.txt

@ -26,6 +26,11 @@ set (COMMON_SRC @@ -26,6 +26,11 @@ set (COMMON_SRC
"${CMAKE_SOURCE_DIR}/util/base64.cpp"
"${CMAKE_SOURCE_DIR}/util/util.cpp"
"${CMAKE_SOURCE_DIR}/util/Log.cpp"
"${CMAKE_SOURCE_DIR}/tunnel/TransitTunnel.cpp"
"${CMAKE_SOURCE_DIR}/tunnel/Tunnel.cpp"
"${CMAKE_SOURCE_DIR}/tunnel/TunnelGateway.cpp"
"${CMAKE_SOURCE_DIR}/tunnel/TunnelEndpoint.cpp"
"${CMAKE_SOURCE_DIR}/tunnel/TunnelPool.cpp"
"${CMAKE_SOURCE_DIR}/AddressBook.cpp"
"${CMAKE_SOURCE_DIR}/Garlic.cpp"
"${CMAKE_SOURCE_DIR}/I2NPProtocol.cpp"
@ -39,11 +44,6 @@ set (COMMON_SRC @@ -39,11 +44,6 @@ set (COMMON_SRC
"${CMAKE_SOURCE_DIR}/RouterInfo.cpp"
"${CMAKE_SOURCE_DIR}/Streaming.cpp"
"${CMAKE_SOURCE_DIR}/Destination.cpp"
"${CMAKE_SOURCE_DIR}/TransitTunnel.cpp"
"${CMAKE_SOURCE_DIR}/Tunnel.cpp"
"${CMAKE_SOURCE_DIR}/TunnelGateway.cpp"
"${CMAKE_SOURCE_DIR}/TunnelEndpoint.cpp"
"${CMAKE_SOURCE_DIR}/TunnelPool.cpp"
"${CMAKE_SOURCE_DIR}/Datagram.cpp"
"${CMAKE_SOURCE_DIR}/UPnP.cpp"
)

2
crypto/aes.cpp

@ -1,5 +1,5 @@ @@ -1,5 +1,5 @@
#include <stdlib.h>
#include "TunnelBase.h"
#include "tunnel/TunnelBase.h"
#include "aes.h"
namespace i2p

5
filelist.mk

@ -3,11 +3,12 @@ COMMON_SRC = \ @@ -3,11 +3,12 @@ COMMON_SRC = \
transport/SSUData.cpp transport/Transports.cpp \
util/util.cpp util/base64.cpp util/Log.cpp \
crypto/CryptoConst.cpp crypto/aes.cpp crypto/Signature.cpp \
tunnel/Tunnel.cpp tunnel/TransitTunnel.cpp tunnel/TunnelEndpoint.cpp \
tunnel/TunnelEndpoint.cpp tunnel/TunnelPool.cpp tunnel/TunnelGateway.cpp \
Datagram.cpp Garlic.cpp I2NPProtocol.cpp LeaseSet.cpp \
NetDb.cpp NetDbRequests.cpp Profiling.cpp Reseed.cpp \
RouterContext.cpp RouterInfo.cpp Streaming.cpp Identity.cpp \
TransitTunnel.cpp Tunnel.cpp TunnelEndpoint.cpp TunnelPool.cpp \
TunnelGateway.cpp Destination.cpp UPnP.cpp
Destination.cpp UPnP.cpp
ifeq ($(UNAME),Darwin)

0
TransitTunnel.cpp → tunnel/TransitTunnel.cpp

0
TransitTunnel.h → tunnel/TransitTunnel.h

0
Tunnel.cpp → tunnel/Tunnel.cpp

0
Tunnel.h → tunnel/Tunnel.h

0
TunnelBase.h → tunnel/TunnelBase.h

0
TunnelConfig.h → tunnel/TunnelConfig.h

0
TunnelEndpoint.cpp → tunnel/TunnelEndpoint.cpp

0
TunnelEndpoint.h → tunnel/TunnelEndpoint.h

0
TunnelGateway.cpp → tunnel/TunnelGateway.cpp

0
TunnelGateway.h → tunnel/TunnelGateway.h

0
TunnelPool.cpp → tunnel/TunnelPool.cpp

0
TunnelPool.h → tunnel/TunnelPool.h

Loading…
Cancel
Save