mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-04-28 19:57:48 +02:00
single thread mode for SAM
This commit is contained in:
parent
d0e78be867
commit
9d891ab5dd
5 changed files with 64 additions and 19 deletions
|
@ -179,7 +179,7 @@ namespace client
|
|||
{
|
||||
public:
|
||||
|
||||
SAMBridge (const std::string& address, int port);
|
||||
SAMBridge (const std::string& address, int port, bool singleThread);
|
||||
~SAMBridge ();
|
||||
|
||||
void Start ();
|
||||
|
@ -210,6 +210,7 @@ namespace client
|
|||
|
||||
private:
|
||||
|
||||
bool m_IsSingleThread;
|
||||
boost::asio::ip::tcp::acceptor m_Acceptor;
|
||||
boost::asio::ip::udp::endpoint m_DatagramEndpoint, m_SenderEndpoint;
|
||||
boost::asio::ip::udp::socket m_DatagramSocket;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue