VWeb/Includes/Socket.h
Maurice Grönwoldt 5bb68a7d02 Split VWeb into smaller headers
We have no make install support... so we don't need to have everything as a single-header and lib file.
2023-09-16 16:29:03 +02:00

22 lines
412 B
C++

#pragma once
#include <sstream>
namespace VWeb {
enum class EPollReturns { OK = 0, BREAK, FAILURE };
enum class WriteState { OK = 0, EPOLL, ERRORED };
struct Accept {
EPollReturns ReturnValue{EPollReturns::OK};
std::stringstream Data{};
ssize_t CurrentBytes;
int SockId{-1};
};
struct SendData {
ssize_t Offset{0};
ssize_t Size{0};
int SocketID{0};
std::string Content;
};
} // namespace VWeb