Browse Source

Move SSU and NTCP to transport/.

pull/239/head
EinMByte 9 years ago
parent
commit
18ca8b9b97
  1. 4
      Daemon.cpp
  2. 2
      HTTPServer.cpp
  3. 2
      I2NPProtocol.cpp
  4. 2
      I2PControl.cpp
  5. 3
      Makefile
  6. 2
      Makefile.bsd
  7. 2
      Makefile.linux
  8. 2
      Makefile.osx
  9. 2
      NetDb.cpp
  10. 2
      NetDbRequests.cpp
  11. 2
      TransitTunnel.cpp
  12. 2
      Tunnel.cpp
  13. 2
      TunnelEndpoint.cpp
  14. 2
      TunnelGateway.cpp
  15. 2
      TunnelPool.cpp
  16. 2
      api.cpp
  17. 11
      filelist.mk
  18. 0
      transport/NTCPSession.cpp
  19. 0
      transport/NTCPSession.h
  20. 0
      transport/SSU.cpp
  21. 0
      transport/SSU.h
  22. 0
      transport/SSUData.cpp
  23. 0
      transport/SSUData.h
  24. 0
      transport/SSUSession.cpp
  25. 0
      transport/SSUSession.h
  26. 0
      transport/TransportSession.h
  27. 0
      transport/Transports.cpp
  28. 0
      transport/Transports.h

4
Daemon.cpp

@ -5,8 +5,8 @@ @@ -5,8 +5,8 @@
#include "Log.h"
#include "base64.h"
#include "version.h"
#include "Transports.h"
#include "NTCPSession.h"
#include "transport/Transports.h"
#include "transport/NTCPSession.h"
#include "RouterInfo.h"
#include "RouterContext.h"
#include "Tunnel.h"

2
HTTPServer.cpp

@ -5,7 +5,7 @@ @@ -5,7 +5,7 @@
#include "Log.h"
#include "Tunnel.h"
#include "TransitTunnel.h"
#include "Transports.h"
#include "transport/Transports.h"
#include "NetDb.h"
#include "I2PEndian.h"
#include "Streaming.h"

2
I2NPProtocol.cpp

@ -8,7 +8,7 @@ @@ -8,7 +8,7 @@
#include "NetDb.h"
#include "Tunnel.h"
#include "base64.h"
#include "Transports.h"
#include "transport/Transports.h"
#include "Garlic.h"
#include "I2NPProtocol.h"

2
I2PControl.cpp

@ -15,7 +15,7 @@ @@ -15,7 +15,7 @@
#include "Daemon.h"
#include "Tunnel.h"
#include "Timestamp.h"
#include "Transports.h"
#include "transport/Transports.h"
#include "version.h"
namespace i2p

3
Makefile

@ -28,6 +28,7 @@ tests: mk_build_test_dir $(TESTS) @@ -28,6 +28,7 @@ tests: mk_build_test_dir $(TESTS)
mk_build_dir:
mkdir -p obj
mkdir -p obj/transport
mk_build_test_dir:
mkdir -p obj/tests
@ -42,12 +43,14 @@ api: $(SHLIB) @@ -42,12 +43,14 @@ api: $(SHLIB)
deps:
@mkdir -p obj
@mkdir -p obj/transport
@mkdir -p obj/tests
$(CXX) $(CXXFLAGS) $(NEEDED_CXXFLAGS) -MM *.cpp > $(DEPS)
@sed -i -e '/\.o:/ s/^/obj\//' $(DEPS)
obj/%.o : %.cpp
@mkdir -p obj
@mkdir -p obj/transport
@mkdir -p obj/tests
$(CXX) $(CXXFLAGS) $(NEEDED_CXXFLAGS) $(INCFLAGS) $(CPU_FLAGS) -c -o $@ $<

2
Makefile.bsd

@ -7,7 +7,7 @@ CXXFLAGS = -O2 @@ -7,7 +7,7 @@ CXXFLAGS = -O2
## -std=c++11. If you want to remove this variable please do so in a way that allows setting
## custom FLAGS to work at build-time.
NEEDED_CXXFLAGS = -std=c++11
INCFLAGS = -I/usr/include/ -I/usr/local/include/
INCFLAGS = -I/usr/include/ -I/usr/local/include/ -I.
LDFLAGS = -Wl,-rpath,/usr/local/lib -L/usr/local/lib
LDLIBS = -lcryptopp -lboost_system -lboost_date_time -lboost_filesystem -lboost_regex -lboost_program_options -lpthread
LDTESTLIBS = -lboost_unit_test_framework

2
Makefile.linux

@ -1,5 +1,5 @@ @@ -1,5 +1,5 @@
CXXFLAGS = -g -Wall
INCFLAGS =
INCFLAGS = -I.
## NOTE: The NEEDED_CXXFLAGS are here so that custom CXXFLAGS can be specified at build time
## **without** overwriting the CXXFLAGS which we need in order to build.

2
Makefile.osx vendored

@ -1,7 +1,7 @@ @@ -1,7 +1,7 @@
CXX = clang++
CXXFLAGS = -g -Wall -std=c++11 -DCRYPTOPP_DISABLE_ASM -DMAC_OSX
#CXXFLAGS = -g -O2 -Wall -std=c++11 -DCRYPTOPP_DISABLE_ASM
INCFLAGS = -I/usr/local/include
INCFLAGS = -I/usr/local/include -I.
LDFLAGS = -Wl,-rpath,/usr/local/lib -L/usr/local/lib
LDLIBS = -lcryptopp -lboost_system -lboost_date_time -lboost_filesystem -lboost_regex -lboost_program_options -lpthread
LDTESTLIBS = -lboost_unit_test_framework

2
NetDb.cpp

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

2
NetDbRequests.cpp

@ -1,6 +1,6 @@ @@ -1,6 +1,6 @@
#include "Log.h"
#include "I2NPProtocol.h"
#include "Transports.h"
#include "transport/Transports.h"
#include "NetDb.h"
#include "NetDbRequests.h"

2
TransitTunnel.cpp

@ -4,7 +4,7 @@ @@ -4,7 +4,7 @@
#include "RouterContext.h"
#include "I2NPProtocol.h"
#include "Tunnel.h"
#include "Transports.h"
#include "transport/Transports.h"
#include "TransitTunnel.h"
namespace i2p

2
Tunnel.cpp

@ -8,7 +8,7 @@ @@ -8,7 +8,7 @@
#include "Log.h"
#include "Timestamp.h"
#include "I2NPProtocol.h"
#include "Transports.h"
#include "transport/Transports.h"
#include "NetDb.h"
#include "Tunnel.h"

2
TunnelEndpoint.cpp

@ -3,7 +3,7 @@ @@ -3,7 +3,7 @@
#include "Log.h"
#include "NetDb.h"
#include "I2NPProtocol.h"
#include "Transports.h"
#include "transport/Transports.h"
#include "RouterContext.h"
#include "TunnelEndpoint.h"

2
TunnelGateway.cpp

@ -3,7 +3,7 @@ @@ -3,7 +3,7 @@
#include <cryptopp/sha.h>
#include "Log.h"
#include "RouterContext.h"
#include "Transports.h"
#include "transport/Transports.h"
#include "TunnelGateway.h"
namespace i2p

2
TunnelPool.cpp

@ -5,7 +5,7 @@ @@ -5,7 +5,7 @@
#include "NetDb.h"
#include "Timestamp.h"
#include "Garlic.h"
#include "Transports.h"
#include "transport/Transports.h"
#include "TunnelPool.h"
namespace i2p

2
api.cpp

@ -2,7 +2,7 @@ @@ -2,7 +2,7 @@
#include <map>
#include "Log.h"
#include "NetDb.h"
#include "Transports.h"
#include "transport/Transports.h"
#include "Tunnel.h"
#include "RouterContext.h"
#include "Identity.h"

11
filelist.mk

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

0
NTCPSession.cpp → transport/NTCPSession.cpp

0
NTCPSession.h → transport/NTCPSession.h

0
SSU.cpp → transport/SSU.cpp

0
SSU.h → transport/SSU.h

0
SSUData.cpp → transport/SSUData.cpp

0
SSUData.h → transport/SSUData.h

0
SSUSession.cpp → transport/SSUSession.cpp

0
SSUSession.h → transport/SSUSession.h

0
TransportSession.h → transport/TransportSession.h

0
Transports.cpp → transport/Transports.cpp

0
Transports.h → transport/Transports.h

Loading…
Cancel
Save