clsocket icon indicating copy to clipboard operation
clsocket copied to clipboard

SimpleSockets is a lightweight set of classes that allow developers to implement IP based network programs.

Results 9 clsocket issues
Sort by recently updated
recently updated
newest added

In `CSimpleSocket::Initialize` the `m_hWSAData` is initialised under Windows using `WSAStartup.` According to MSDN, each call to `WSAStartup` must have a matching call to `WSACleanup.` However, the entire library is lacking...

see source!, should be easier to use: PassiveSocket for Server things and SimpleSocket for everything else

``` #define EXPORT __declspec(dllexport) ``` is defined in Host.h include from other public headers (SimpleSocket.h), with guard ```#ifdef _MSC_VER```. however this definition might collide easily with user code using CLsocket....

On Windows, ``` SETSOCKOPT(m_socket, SOL_SOCKET, SO_REUSEADDR, (char*)&nReuse, sizeof(int32)); SETSOCKOPT(m_socket, IPPROTO_TCP, IP_TOS, &nReuse, sizeof(int32)); ``` is NOT executed, where especially setting SO_REUSEADDR leads to different behaviour, when closing listening socket .....

The install is failing on visual studio 2017, on windows 7. I get the following error: ``` [1/2] Linking CXX shared library clsocket-CMAKE\clsocket.dll FAILED: clsocket-CMAKE/clsocket.dll clsocket-CMAKE/clsocket.lib cmd.exe /C "cd ....

If You can add surpport IPv6, it will be awesome~

enhancement

https://github.com/DFHack/clsocket/blob/8cf949340e22001bee1ca25c9d6c1d6a89e8faf2/src/SimpleSocket.cpp#L404