This commit is contained in:
2024-06-07 16:59:27 +03:00
parent 1caf4223d2
commit 06959e8746
4 changed files with 374 additions and 257 deletions

View File

@@ -6,6 +6,7 @@
// #include "../common/adc_utils.h"
// #include "../net/adc_netmessage.h"
#include "../net/adc_endpoint.h"
#include "../net/adc_netmsg.h"
using namespace adc;
@@ -66,6 +67,19 @@ TEST_CASE("[ADC NET MESSAGE]")
std::cout << "[" << el << "]";
}
std::cout << "\n";
std::cout << "\n\n\n";
AdcEndpoint ept(AdcEndpoint::PROTO_ID_LOCAL, "SOCK");
std::cout << "EPT: [" << ept.endpoint() << "]\n";
std::cout << "EPT SZ: " << ept.endpoint().size() << "\n";
char ee[] = "tls://dewlkj.dwed.dwed:8012/dwelk";
ept.setEndpoint(ee);
std::cout << "EPT: [" << ept.endpoint() << "]\n";
}
/*