Sese Framework
2.3.0
A cross-platform framework
|
Generic profiles. More...
#include <cassert>
#include <cinttypes>
#include <algorithm>
#include <string>
#include <sese/util/Memory.h>
#include <sese/system/Environment.h>
Go to the source code of this file.
Namespaces | |
namespace | sese |
Macros | |
#define | SESE_MARCO_END |
#define | SESE_STD_WRAPPER(name, member) [[nodiscard]] auto name() const { return member.name(); } |
#define | SESE_DEPRECATED [[deprecated]] |
#define | SESE_DEPRECATED_WITH(x) [[deprecated(x)]] |
Variables | |
static constexpr int32_t | TIME_DEFAULT_ZONE = 8 |
Default time zone. | |
static constexpr const char * | TIME_DEFAULT_PATTERN = "UTCz yyyy-MM-dd HH:mm:ss.ff" |
UTC Match format. | |
static constexpr const char * | TIME_GREENWICH_MEAN_PATTERN = "ddd, dd MMM yyyy HH:mm:ss %G%M%T" |
Greenwich Mean Time Matching Format. | |
static constexpr const char * | TIME_SHORT_PATTERN = "yyyy-MM-dd%THH:mm:ss.ff%Z" |
Time short format. | |
static constexpr size_t | STRING_BUFFER_SIZE_FACTOR = 1024 |
String Buffer Unit factor. | |
static constexpr const char * | SPACE_CHARS = " \n\r\t\v\b" |
Whitespace characters. | |
static constexpr const char * | THREAD_DEFAULT_NAME = "UNKNOWN" |
Default thread name. | |
static constexpr const char * | THREAD_MAIN_NAME = "Main" |
The name of the main thread. | |
static constexpr size_t | RECORD_OUTPUT_BUFFER = 4096 |
The size of the log output buffer. | |
static constexpr const char * | RECORD_DEFAULT_TIME_PATTERN = TIME_SHORT_PATTERN |
Log formatter time matching format. | |
static constexpr const char * | RECORD_DEFAULT_TEXT_PATTERN = "c lv fn:li tn:th> m\n" |
The log formatter matches the format. | |
static constexpr const char * | RECORD_DEFAULT_FILE_TIME_PATTERN = "yyyyMMdd HHmmssff" |
The log output file name matches the pattern. | |
static constexpr const size_t | RECORD_BUFFER_SIZE = 4096 |
Asynchronous logger buffer size. | |
static constexpr const size_t | STREAM_BYTE_STREAM_SIZE_FACTOR = 1024 |
Byte stream buffer unit factor. | |
static constexpr bool | ENABLE_TEST = false |
Whether to enable debug mode. | |
static constexpr size_t | TIMER_WHEEL_NUMBER = 30 |
The number of timer time wheels. | |
static constexpr size_t | SERVER_DEFAULT_THREADS = 4 |
TCP Server default thread pool size. | |
static constexpr size_t | SERVER_MAX_CONNECTION = 511 |
TCP Server defaults to the listener queue size. | |
static constexpr size_t | SERVER_KEEP_ALIVE_DURATION = 10 |
TCP Server Keep-Alive duration. | |
static constexpr size_t | HTTP_MAX_SINGLE_LINE = 1023 |
The maximum size of a single HTTP util. | |
static constexpr const char * | HTTPD_NAME = "sese::service::HttpServer" |
Http Server name. | |
static constexpr const char * | HTTPD_BOUNDARY = "000000SESE0BOUNDARY000000" |
HTTP multi-segment request boundary. | |
static constexpr const char * | HTTP_CLIENT_NAME = "sese::net::http::HttpClient" |
Http Client name. | |
static constexpr size_t | ZLIB_CHUNK_SIZE = 1024 * 16 |
Compressor Chunk default size. | |
static constexpr size_t | IOCP_WSABUF_SIZE = 65535 |
The size of the WSABUF carried by the IOCP when delivering the Recv event. | |
static constexpr size_t | MTU_VALUE = 1472 |
Framework default MTU value. | |
static constexpr size_t | DNS_PACKAGE_SIZE = 512 |
Framework DNS packet size. | |
Generic profiles.
Windows Platform Configuration File.
Linux platform configuration file.
Darwin platform configuration file.
#define SESE_DEPRECATED [[deprecated]] |
#define SESE_DEPRECATED_WITH | ( | x | ) | [[deprecated(x)]] |
Referenced by sstr::SESE_DEPRECATED_WITH().
#define SESE_MARCO_END |
#define SESE_STD_WRAPPER | ( | name, | |
member ) [[nodiscard]] auto name() const { return member.name(); } |
|
staticconstexpr |
Framework DNS packet size.
|
staticconstexpr |
Whether to enable debug mode.
|
staticconstexpr |
Http Client name.
|
staticconstexpr |
The maximum size of a single HTTP util.
Referenced by sese::net::http::HttpUtil::getLine().
|
staticconstexpr |
HTTP multi-segment request boundary.
Referenced by sese::internal::service::http::HttpServiceImpl::handleRequest(), sese::internal::service::http::HttpConnectionEx::writeDataFrame4Ranges(), and sese::internal::service::http::HttpConnection::writeRanges().
|
staticconstexpr |
Http Server name.
|
staticconstexpr |
The size of the WSABUF carried by the IOCP when delivering the Recv event.
Referenced by sese::_windows::iocp::v1::NativeIOCPServer::eventThreadProc(), sese::_windows::iocp::v1::NativeContext::NativeContext(), sese::_windows::iocp::v1::NativeIOCPServer::postRead(), and sese::_windows::iocp::v1::NativeIOCPServer::postWrite().
|
staticconstexpr |
Framework default MTU value.
Referenced by sese::iocp::v1::IOCPService::onRead(), sese::service::TcpTransporter::onRead(), sese::iocp::v1::IOCPService::onWrite(), sese::service::TcpTransporter::onWrite(), sese::internal::service::http::HttpConnection::readBody(), sese::internal::net::http::HttpClientImpl::readBodyByCallback(), sese::internal::net::http::HttpClientImpl::readBodyByData(), sese::internal::service::http::HttpConnection::readHeader(), sese::internal::service::http::HttpConnection::writeBody(), sese::internal::net::http::HttpClientImpl::writeBodyByAuto(), sese::internal::net::http::HttpClientImpl::writeBodyByCallback(), sese::internal::net::http::HttpClientImpl::writeBodyByData(), sese::internal::net::http::HttpClientImpl::writeHeader(), sese::internal::service::http::HttpConnection::writeHeader(), sese::internal::service::http::HttpConnection::writeRanges(), and sese::internal::service::http::HttpConnection::writeSingleRange().
|
staticconstexpr |
Asynchronous logger buffer size.
Referenced by sese::record::AsyncLogger::AsyncLogger(), sese::record::AsyncLogger::dump(), sese::record::AsyncLogger::log(), and sese::record::AsyncLogger::loop().
|
staticconstexpr |
The log output file name matches the pattern.
Referenced by getDateTimeString().
|
staticconstexpr |
The log formatter matches the format.
|
staticconstexpr |
Log formatter time matching format.
|
staticconstexpr |
The size of the log output buffer.
|
staticconstexpr |
TCP Server default thread pool size.
|
staticconstexpr |
TCP Server Keep-Alive duration.
|
staticconstexpr |
TCP Server defaults to the listener queue size.
|
staticconstexpr |
Whitespace characters.
Referenced by sese::isSpace().
|
staticconstexpr |
Byte stream buffer unit factor.
Referenced by sese::io::BaseStreamReader< T >::preRead().
|
staticconstexpr |
String Buffer Unit factor.
Referenced by sese::text::AbstractStringBuffer::AbstractStringBuffer(), sese::text::AbstractStringBuffer::append(), sese::text::AbstractStringBuffer::insertAt(), and sese::io::BaseStreamReader< T >::preRead().
|
staticconstexpr |
Default thread name.
Referenced by sese::Thread::getCurrentThreadName().
|
staticconstexpr |
The name of the main thread.
Referenced by sese::Thread::getCurrentThreadName().
|
staticconstexpr |
UTC Match format.
|
staticconstexpr |
Default time zone.
|
staticconstexpr |
Greenwich Mean Time Matching Format.
Referenced by sese::net::http::HPackUtil::buildCookieString(), sese::internal::service::http::HttpServiceImpl::handleRequest(), and sese::net::http::HttpUtil::sendSetCookie().
|
staticconstexpr |
Time short format.
|
staticconstexpr |
The number of timer time wheels.
|
staticconstexpr |
Compressor Chunk default size.