working commit
This commit is contained in:
+2
-2
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user