u413-284-si / webserv

This project is about setting up a http web server, providing a static website.
MIT License
0 stars 0 forks source link

core: remove fcntl()? #17

Closed gwolf-011235 closed 1 month ago

gwolf-011235 commented 2 months ago

The function fctnl() is listed in allowed functions. Later on in the subject it is only allowed if the project is done on MacOS. This was also clearly stated in discord, however for irc. The wording of the subject seems to be the same in webserv.

We use fcntl() to make the sockets nonblocking. It is also possible with socket() to set the flag SOCK_NONBLOCK. However for Client socks we would need to use accept4() which can use a similar flag.