aboutsummaryrefslogtreecommitdiff
path: root/src/test/sock_tests.cpp
AgeCommit message (Collapse)Author
2022-07-20refactor: move compat.h into compat/fanquake
2022-06-22net: rename Sock::Reset() to Sock::Close() and make it privateVasil Dimov
Outside of `Sock`, `Sock::Reset()` was used in just one place (in `i2p.cpp`) which can use the assignment operator instead. This simplifies the public `Sock` API by having one method less.
2022-06-20net: remove now unused Sock::Release()Vasil Dimov
2021-04-13net: flag relevant Sock methods with [[nodiscard]]Vasil Dimov
2021-03-16test: add a test to ensure RecvUntilTerminator() limit worksVasil Dimov
2021-02-12test: fix sign comparison warning in socket testsfanquake
This fixes: ```bash In file included from test/sock_tests.cpp:10: In file included from /usr/local/include/boost/test/unit_test.hpp:18: In file included from /usr/local/include/boost/test/test_tools.hpp:46: /usr/local/include/boost/test/tools/old/impl.hpp:107:17: warning: comparison of integers of different signs: 'const long' and 'const unsigned long' [-Wsign-compare] return left == right; ~~~~ ^ ~~~~~ ``` which was introduced in #20788.
2021-02-11test: add Sock unit testsVasil Dimov