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

Implement Connection class #22

Closed gwolf-011235 closed 3 weeks ago

gwolf-011235 commented 2 months ago

The virtual servers and clients can be abstracted in a generic Connection class. This can be passed to the void*ptr of the data union of the epoll event.

The advantage is to provide more context to server or client events.

The Connection will also be equipped with an event handler to dispatch to the appropriate event, e.g. accept() for server connections and read or write for client.