dermesser / libsocket

The ultimate socket library for C and C++, supporting TCP, UDP and Unix sockets (DGRAM and STREAM) on Linux, FreeBSD, Solaris. See also my uvco library for a refreshed version!
https://borgac.net/~lbo/doc/libsocket/
Other
797 stars 195 forks source link

Fix server.destroy() call before destructor #60

Closed BRMateus2 closed 5 years ago

BRMateus2 commented 5 years ago

Isn't the libsocket::inet_dgram_server function destroy() part of destructor? As from client example, and HTTP example, this causes inconsistency for a first reader.

BRMateus2 commented 5 years ago

Part of documentation

You don't have to destroy the sockets explicitly. The sockets are also destroyed when the destructor of socket (virtual, of course) is called.