Updated to 1.4.13 ;)

This commit is contained in:
WolverinDEV
2020-04-16 14:05:56 +02:00
parent 16c2272fe4
commit c31cc9d0ee
4 changed files with 129 additions and 57 deletions
+12 -1
View File
@@ -175,8 +175,11 @@ struct A {
~A() = default;
};
#include <set>
#include <netinet/in.h>
#include <src/misc/net.h>
int main() {
#if 0
std::set<int> elements{};
if(!elements.empty()) {
auto it = elements.begin();
@@ -186,4 +189,12 @@ int main() {
const auto diff = last_element - now;
}
}
#endif
sockaddr_in addr{};
addr.sin_addr.s_addr = INADDR_ANY;
addr.sin_family = AF_INET;
addr.sin_port = htons(9987);
std::cout << "Result: " << (int) net::address_available(*(sockaddr_storage*) &addr, net::binding_type::TCP) << "\n";
std::cout << strerror(errno) << "\n";
}