mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-01-22 13:27:17 +01:00
I2CP added
This commit is contained in:
parent
c49fdf1233
commit
67f1e07508
|
@ -16,7 +16,7 @@ namespace client
|
|||
|
||||
ClientContext::ClientContext (): m_SharedLocalDestination (nullptr),
|
||||
m_HttpProxy (nullptr), m_SocksProxy (nullptr), m_SamBridge (nullptr),
|
||||
m_BOBCommandChannel (nullptr)
|
||||
m_BOBCommandChannel (nullptr), m_I2CPServer (nullptr)
|
||||
{
|
||||
}
|
||||
|
||||
|
@ -26,6 +26,7 @@ namespace client
|
|||
delete m_SocksProxy;
|
||||
delete m_SamBridge;
|
||||
delete m_BOBCommandChannel;
|
||||
delete m_I2CPServer;
|
||||
}
|
||||
|
||||
void ClientContext::Start ()
|
||||
|
|
|
@ -11,6 +11,7 @@
|
|||
#include "I2PTunnel.h"
|
||||
#include "SAM.h"
|
||||
#include "BOB.h"
|
||||
#include "I2CP.h"
|
||||
#include "AddressBook.h"
|
||||
|
||||
namespace i2p
|
||||
|
@ -84,6 +85,7 @@ namespace client
|
|||
std::map<std::pair<i2p::data::IdentHash, int>, std::unique_ptr<I2PServerTunnel> > m_ServerTunnels; // <destination,port>->tunnel
|
||||
SAMBridge * m_SamBridge;
|
||||
BOBCommandChannel * m_BOBCommandChannel;
|
||||
I2CPServer * m_I2CPServer;
|
||||
|
||||
public:
|
||||
// for HTTP
|
||||
|
|
13
I2CP.cpp
Normal file
13
I2CP.cpp
Normal file
|
@ -0,0 +1,13 @@
|
|||
#include "I2CP.h"
|
||||
|
||||
|
||||
namespace i2p
|
||||
{
|
||||
namespace client
|
||||
{
|
||||
I2CPServer::I2CPServer (const std::string& interface, int port)
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
|
21
I2CP.h
Normal file
21
I2CP.h
Normal file
|
@ -0,0 +1,21 @@
|
|||
#ifndef I2CP_H__
|
||||
#define I2CP_H__
|
||||
|
||||
#include <string>
|
||||
#include <boost/asio.hpp>
|
||||
|
||||
namespace i2p
|
||||
{
|
||||
namespace client
|
||||
{
|
||||
class I2CPServer
|
||||
{
|
||||
public:
|
||||
|
||||
I2CPServer (const std::string& interface, int port);
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
#endif
|
||||
|
|
@ -76,6 +76,7 @@ set (CLIENT_SRC
|
|||
"${CMAKE_SOURCE_DIR}/SOCKS.cpp"
|
||||
"${CMAKE_SOURCE_DIR}/HTTP.cpp"
|
||||
"${CMAKE_SOURCE_DIR}/HTTPProxy.cpp"
|
||||
"${CMAKE_SOURCE_DIR}/I2CP.cpp"
|
||||
)
|
||||
|
||||
add_library(i2pdclient ${CLIENT_SRC})
|
||||
|
|
|
@ -9,7 +9,7 @@ LIB_SRC = \
|
|||
|
||||
LIB_CLIENT_SRC = \
|
||||
AddressBook.cpp BOB.cpp ClientContext.cpp I2PTunnel.cpp I2PService.cpp \
|
||||
SAM.cpp SOCKS.cpp HTTP.cpp HTTPProxy.cpp
|
||||
SAM.cpp SOCKS.cpp HTTP.cpp HTTPProxy.cpp I2CP.cpp
|
||||
|
||||
# also: Daemon{Linux,Win32}.cpp will be added later
|
||||
DAEMON_SRC = \
|
||||
|
|
Loading…
Reference in a new issue