single thread mode for SAM

This commit is contained in:
orignal 2020-02-04 15:31:04 -05:00
parent d0e78be867
commit 9d891ab5dd
5 changed files with 64 additions and 19 deletions

View file

@ -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;