Releases: NotMePipe/cross-socket
Releases · NotMePipe/cross-socket
CrossSocket v1.2
Version 1.2
- #include improvements
- Bug fixes
- Error messages return error numbers every time
- (1.0W2) has been resolved.
- (1.0W4) has been resolved.
- (1.0W7) has been resolved.
CrossSocketUtils.h
- Terrible macro redefinitions have been removed
- Wrappers for
ntohl()andhtonl()have been added - All error codes now have the
CSEprefix
Socket.h
Error()now requires an error code to be passed
Warnings
- (1.1W1) Extended:
CSECONNREFUSEDhas been determined to be safe, but it is still used in an inconvenient way inSocket::ConnectTo(). This is intended to be removed in the next version (1.2W1)
Socket::Error()shuts down CrossSocket whenever it is called. While this isn't a bug, it is not an intended behavior and will be removed in the next version (1.2W2)
- CrossSocket will be converting to implement RAII very soon. Functions which do not match that implementation may be removed without notice (1.2W3)
What's Changed
- v1.2 by @NotMePipe in #2
Full Changelog: v1.1...v1.2
https://github.com/NotMePipe/cross-socket/blob/main/Changelog.md
CrossSocket v1.1
Version 1.1
- Renamed
CrossSocket.htoSocket.h - Sockets are now shut down before they are closed
- Added Doxygen comments
- (1.0W8) has been resolved.
CrossSocketUtils.h
- Added
ECONNREFUSEDmacro close_socket()has been moved into theCS_Utilsclass for call safety- All
CS_Utilscontents have been made private for call safety- CrossSocket files have been marked as friends to this class
Socket.h
- Renamed
CloseSocket()toClose() - Added
Shutdown()for manual shutdown calls Close()now checks if thesocket_tis 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
- V1.1 by @NotMePipe in #1
Full Changelog: