async-sockets-cpp
async-sockets-cpp copied to clipboard
Simple thread-based asynchronous TCP & UDP Socket classes in C++.
```sh $ valgrind -q --leak-check=full ./tcp-client Connected to the server successfully. Message from the Server: OK! 123 Message from the Server: OK! 123 Message from the Server: OK! 123 Message...
https://github.com/eminfedar/async-sockets-cpp/blob/a17b3e157fba5d97f57c7b42f2d3e72de24d4a10/async-sockets/include/tcpserver.hpp#L67 For listen thread, we are reading it, but in the main thread, we may close it and write to it. Maybe we should use mutex or atomic bool instead.
Hello, I am trying to install under MacOS. The make command compiles and after I run `sudo ./install.sh`, the header files get copied as they should. But, the .so file...
`basesocket.hpp` ```cpp #if defined(__linux__) || defined(__APPLE__) || defined(__QNX__) #include #include #include #include #include #elif _WIN32 #include #endif ``` diff`defined(__QNX__)`
include the correct directory
New codes are added in between equal signs and the functionalities have been finely tested. ```c++ #pragma once #include #include #include #include "tcpsocket.hpp" using IP_MAP = std::map; template class TCPServer...