this is a simple http server
Serwer:
socket() => creates a socket β bind() => assigns port/IP β listen() => switches to listening mode β accept() => accepts a connection from a client
follow by: 42WebWeavers/webserv#15:
"π Focus on (make sure those functions are available in 42 subject):
-
socket()
,bind()
,listen()
,accept()
β how to open a server -
recv()
andsend()
for basic data I/O -
select()
or non-blocking I/O (if you want to plan for concurrent connections later)