Replaced the LogWorker thread with Boost ASIO
This commit is contained in:
1 parent
c24bf2f028
commit
d1594998f8
7 files changed
+31
-115
No files matched your search
@@ -37,9 +37,9 @@ public:
|
||||
_socket(ioService),
|
||||
_acceptor(ioService, tcp::endpoint(boost::asio::ip::address::from_string(bindIp), port))
|
||||
{
|
||||
AsyncAccept();
|
||||
_acceptor.set_option(boost::asio::ip::tcp::no_delay(tcpNoDelay));
|
||||
|
||||
_socket.set_option(boost::asio::ip::tcp::no_delay(tcpNoDelay));
|
||||
AsyncAccept();
|
||||
};
|
||||
|
||||
private:
|
||||
|
||||
Reference in new issue
Block a user