pbm with bind and sudo understood, next is port
This commit is contained in:
@@ -14,7 +14,8 @@ int main(void)
|
||||
{
|
||||
Webserv serv;
|
||||
|
||||
serv.bind(80);
|
||||
// https://security.stackexchange.com/questions/169213/how-to-chose-a-port-to-run-an-application-on-localhost
|
||||
serv.bind(8080);
|
||||
serv.listen(512); // 512 max connections arbitrary
|
||||
serv.start();
|
||||
}
|
||||
@@ -44,7 +45,7 @@ int main(void)
|
||||
# include <poll.h> // poll
|
||||
|
||||
# define INVALID -1
|
||||
# define PORT 80
|
||||
# define PORT 1025
|
||||
# define BACKLOG 20
|
||||
|
||||
int main()
|
||||
|
||||
Reference in New Issue
Block a user