18 lines
427 B
C++
18 lines
427 B
C++
#pragma once
|
|
|
|
#include <webserv/socket/ASocket.hpp> // for ASocket
|
|
|
|
#include <sys/socket.h>
|
|
#include <sys/types.h>
|
|
#include <unistd.h>
|
|
|
|
class CgiSocket : public ASocket
|
|
{
|
|
public:
|
|
explicit CgiSocket(int fd, ASocket::IOState event);
|
|
|
|
[[nodiscard]] ASocket::Type getType() const noexcept override;
|
|
|
|
ssize_t read(void *buf, size_t len) const override;
|
|
ssize_t write(const void *buf, size_t len) const override;
|
|
}; |