working commit
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
|
||||
#include <expected>
|
||||
#include <string>
|
||||
#include <cstring>
|
||||
|
||||
#include <tservice.hpp>
|
||||
#include <uxlogger.hpp>
|
||||
|
||||
int main(int argc, char** argv) {
|
||||
TCPService service(1025);
|
||||
auto bindRes = service.Bind();
|
||||
if (!bindRes) {
|
||||
uxlogger.Log("Bind error: " + bindRes.error());
|
||||
return 1;
|
||||
}
|
||||
auto listenRes = service.Listen();
|
||||
if (!listenRes) {
|
||||
uxlogger.Log("Listen error: " + listenRes.error());
|
||||
return 1;
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
Reference in New Issue
Block a user