working commit

This commit is contained in:
2026-04-22 15:02:00 +02:00
parent 468dc70d7c
commit 321232ae1d
14 changed files with 310 additions and 236 deletions
+2 -2
View File
@@ -31,7 +31,7 @@ Service::~Service() {
close(port);
}
std::expected<void, std::string> Service::Bind(void){
std::expected<void, std::string> Service::Bind(void) {
struct sockaddr_in address;
int srvsock;
if ((srvsock = socket(AF_INET, SOCK_STREAM, 0)) == 0) {
@@ -62,7 +62,7 @@ std::expected<void, std::string> Service::Bind(void){
return {};
}
std::expected<void, std::string> Service::Listen(Handler *handler){
std::expected<void, std::string> Service::Listen(Handler *handler) {
struct sockaddr_in address;
int addrlen = sizeof(address);
int newsock = 0;