working commit

This commit is contained in:
2026-04-22 14:26:33 +02:00
parent e9a527b5de
commit fb080285c6
23 changed files with 1198 additions and 1739 deletions
+26
View File
@@ -0,0 +1,26 @@
#include <expected>
#include <iostream>
#include <format>
#include <udpclient.hpp>
int main(int argc, char** argv) {
UDPClient cli;
std::string message("Hello");
{
auto res = cli.Bind("www.gnu.org", 1025);
if (!res) {
std::cerr << std::format("Error: {}", res.error()) << std::endl;
return 1;
}
}
{
auto res = cli.Send(message);
if (!res) {
std::cerr << std::format("Error: {}", res.error()) << std::endl;
return 1;
}
}
return 0;
}