Maurice Grönwoldt
5bb68a7d02
We have no make install support... so we don't need to have everything as a single-header and lib file.
22 lines
412 B
C++
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
|