Skip to content

CrossSocket v1.1

Choose a tag to compare

@NotMePipe NotMePipe released this 09 Jul 12:43
· 22 commits to main since this release
225339e

Version 1.1

  • Renamed CrossSocket.h to Socket.h
  • Sockets are now shut down before they are closed
  • Added Doxygen comments
  • (1.0W8) has been resolved.

CrossSocketUtils.h

  • Added ECONNREFUSED macro
  • close_socket() has been moved into the CS_Utils class for call safety
  • All CS_Utils contents have been made private for call safety
    • CrossSocket files have been marked as friends to this class

Socket.h

  • Renamed CloseSocket() to Close()
  • Added Shutdown() for manual shutdown calls
  • Close() now checks if the socket_t is valid before trying to close it

SocketManager.h

  • Improved memory practices
  • Added CloseSockets() to close all Sockets handle by the SocketManager
  • Users should no longer close Sockets twice when using the SocketManager
    • CrossSocket now intelligently handles this. Closing a Socket twice will not cause any errors, but it is unnecessary and a bad practice

What's Changed

Full Changelog: