|
STTNet 0.7.0
|
#include <jsoncpp/json/json.h>#include <string_view>#include <string>#include <atomic>#include <iostream>#include <unistd.h>#include <sys/stat.h>#include <fstream>#include <fcntl.h>#include <sstream>#include <mutex>#include <chrono>#include <iomanip>#include <random>#include <cmath>#include <thread>#include <openssl/sha.h>#include <netdb.h>#include <arpa/inet.h>#include <sys/types.h>#include <sys/socket.h>#include <cstring>#include <openssl/bio.h>#include <openssl/evp.h>#include <openssl/buffer.h>#include <functional>#include <list>#include <queue>#include <sys/epoll.h>#include <condition_variable>#include <regex>#include <unordered_map>#include <openssl/ssl.h>#include <openssl/err.h>#include <openssl/crypto.h>#include <signal.h>#include <sys/ipc.h>#include <sys/sem.h>#include <sys/wait.h>#include <sys/shm.h>#include <type_traits>#include <charconv>#include <any>#include <sys/eventfd.h>#include <sys/timerfd.h>#include <cstddef>#include <cstdint>#include <new>#include <vector>#include <memory>#include <limits>#include <poll.h>#include <exception>#include <cstdlib>#include <cstdio>#include <deque>#include <algorithm>#include <array>#include <unordered_set>#include <cctype>#include <sys/uio.h>#include <netinet/tcp.h>Go to the source code of this file.
Namespaces | |
| namespace | stt |
| namespace | stt::system |
| 系统的设置,进程的控制,心跳监控等 | |
| namespace | stt::file |
| 文件相关:文件读写,日志等 | |
| namespace | stt::time |
| 时间相关操作,基础时间工具 | |
| namespace | stt::data |
| 数据处理 | |
| namespace | stt::security |
| 涉及信息安全的api | |
| namespace | stt::network |
| 网络框架,协议,通信,io多路复用相关 | |
Macros | |
| #define | ISO8086A "yyyy-mm-ddThh:mi:ss" |
| 定义ISO8086A这个宏为"yyyy-mm-ddThh:mi:ss" | |
| #define | ISO8086B "yyyy-mm-ddThh:mi:ss.sss" |
| 定义ISO8086B这个宏为"yyyy-mm-ddThh:mi:ss.sss" | |
| #define | MAX_PROCESS_NAME 100 |
| 定义MAX_PROCESS_NAME这个宏为100,意思是进程信息中的进程名字长度不超过100个字节 | |
| #define | MAX_PROCESS_INF 1000 |
| 定义MAX_PROCESS_INF这个宏为1000,意思是进程信息表记录的进程信息最多为1000条 | |
| #define | SHARED_MEMORY_KEY 0x5095 |
| 定义SHARED_MEMORY_KEY这个宏为0x5095,意思是进程信息表的共享内存键值为0x5095 | |
| #define | SHARED_MEMORY_LOCK_KEY 0x5095 |
| 定义SHARED_MEMORY_LOCK_KEY这个宏为0x5095,意思是操作进程信息表的信号量的键值为0x5095 | |
Typedefs | |
| using | stt::time::Milliseconds = std::chrono::duration<uint64_t,std::milli> |
| using | stt::time::Seconds = std::chrono::duration<uint64_t> |
| using | stt::system::Task = std::function<void()> |
Enumerations | |
| enum class | stt::security::RateLimitType { stt::security::Cooldown , stt::security::FixedWindow , stt::security::SlidingWindow , stt::security::TokenBucket } |
| 限流算法类型(策略)。 More... | |
| enum | stt::security::DefenseDecision : int { stt::security::ALLOW = 0 , stt::security::DROP = 1 , stt::security::CLOSE = 2 } |
| 安全裁决结果(由 ConnectionLimiter 返回)。 More... | |
| enum class | stt::network::TLSState : uint8_t { stt::network::NONE = 0 , stt::network::HANDSHAKING , stt::network::ESTABLISHED , stt::network::ERROR } |
| enum class | stt::network::TLSClientAuthMode : uint8_t { stt::network::None = 0 , stt::network::Optional , stt::network::Required } |
| TLS 服务端对客户端证书的校验模式。 More... | |
Functions | |
| std::ostream & | stt::time::operator<< (std::ostream &os, const Duration &a) |
| 将 Duration 对象以可读格式输出到流中。 | |
Variables | |
| constexpr int | stt::version_major =0 |
| constexpr int | stt::version_minor =7 |
| constexpr int | stt::version_patch =0 |
| constexpr std::string_view | stt::version ="0.7.0" |
| #define ISO8086A "yyyy-mm-ddThh:mi:ss" |
定义ISO8086A这个宏为"yyyy-mm-ddThh:mi:ss"
| #define ISO8086B "yyyy-mm-ddThh:mi:ss.sss" |
定义ISO8086B这个宏为"yyyy-mm-ddThh:mi:ss.sss"
| #define MAX_PROCESS_INF 1000 |
定义MAX_PROCESS_INF这个宏为1000,意思是进程信息表记录的进程信息最多为1000条
| #define MAX_PROCESS_NAME 100 |
定义MAX_PROCESS_NAME这个宏为100,意思是进程信息中的进程名字长度不超过100个字节
| #define SHARED_MEMORY_KEY 0x5095 |
定义SHARED_MEMORY_KEY这个宏为0x5095,意思是进程信息表的共享内存键值为0x5095
| #define SHARED_MEMORY_LOCK_KEY 0x5095 |
定义SHARED_MEMORY_LOCK_KEY这个宏为0x5095,意思是操作进程信息表的信号量的键值为0x5095