mirror of https://github.com/PurpleI2P/i2pd.git
orignal
11 years ago
2 changed files with 54 additions and 0 deletions
@ -0,0 +1,26 @@ |
|||||||
|
|
||||||
|
CC = g++ |
||||||
|
CFLAGS = -g -Wall -std=c++0x |
||||||
|
OBJECTS = i2p.o base64.o NTCPSession.o RouterInfo.o Transports.o RouterContext.o \
|
||||||
|
NetDb.o LeaseSet.o Tunnel.o TunnelEndpoint.o TunnelGateway.o TransitTunnel.o \
|
||||||
|
I2NPProtocol.o Log.o Garlic.o HTTPServer.o |
||||||
|
INCFLAGS = |
||||||
|
LDFLAGS = -Wl,-rpath,/usr/local/lib -lcryptopp -lboost_system -lboost_filesystem |
||||||
|
LIBS = |
||||||
|
|
||||||
|
all: i2p |
||||||
|
|
||||||
|
i2p: $(OBJECTS) |
||||||
|
$(CC) -o i2p $(OBJECTS) $(LDFLAGS) $(LIBS) |
||||||
|
|
||||||
|
.SUFFIXES: |
||||||
|
.SUFFIXES: .c .cc .C .cpp .o |
||||||
|
|
||||||
|
.cpp.o : |
||||||
|
$(CC) -o $@ -c $(CFLAGS) $< $(INCFLAGS) |
||||||
|
|
||||||
|
clean: |
||||||
|
rm -f *.o |
||||||
|
|
||||||
|
.PHONY: all |
||||||
|
.PHONY: clean |
@ -0,0 +1,28 @@ |
|||||||
|
#include <iostream> |
||||||
|
#include <cryptopp/integer.h> |
||||||
|
#include "Log.h" |
||||||
|
#include "base64.h" |
||||||
|
#include "Transports.h" |
||||||
|
#include "NTCPSession.h" |
||||||
|
#include "RouterInfo.h" |
||||||
|
#include "RouterContext.h" |
||||||
|
#include "Tunnel.h" |
||||||
|
#include "NetDb.h" |
||||||
|
#include "HTTPServer.h" |
||||||
|
|
||||||
|
int main( int, char** ) |
||||||
|
{ |
||||||
|
i2p::util::HTTPServer httpServer (7070); |
||||||
|
|
||||||
|
httpServer.Start (); |
||||||
|
i2p::data::netdb.Start (); |
||||||
|
i2p::transports.Start (); |
||||||
|
i2p::tunnel::tunnels.Start (); |
||||||
|
|
||||||
|
sleep (1000); |
||||||
|
i2p::tunnel::tunnels.Stop (); |
||||||
|
i2p::transports.Stop (); |
||||||
|
i2p::data::netdb.Stop (); |
||||||
|
httpServer.Stop (); |
||||||
|
return 0; |
||||||
|
} |
Loading…
Reference in new issue