STTNet
 全部  命名空间 文件 函数 变量 类型定义 宏定义 
Public 属性 | 所有成员列表
stt::network::TcpFDInf结构体 参考

保存Tcp客户端信息的结构体 更多...

#include <sttnet.h>

Public 属性

int fd
 套接字fd 更多...
 
std::string ip
 客户端ip 更多...
 
std::string port
 客户端端口 更多...
 
int status
 当前fd的状态,用于保存处理机逻辑 更多...
 
std::string_view data
 保存收到的客户端传来的数据 更多...
 
struct HttpRequestInformation HttpInf
 保存http/https协议的信息 更多...
 
SSL * ssl
 如果加密了,存放加密句柄 更多...
 
char * buffer
 接收空间指针 更多...
 
unsigned long p_buffer_now
 接收空间位置指针 更多...
 
HttpServerFDHandler k
 处理http的类 更多...
 
std::deque
< std::chrono::steady_clock::time_point > 
requestSpeedQueue
 用于请求限速的队列,实现滑动窗口算法 更多...
 

详细描述

保存Tcp客户端信息的结构体

类成员变量说明

char* stt::network::TcpFDInf::buffer

接收空间指针

std::string_view stt::network::TcpFDInf::data

保存收到的客户端传来的数据

int stt::network::TcpFDInf::fd

套接字fd

struct HttpRequestInformation stt::network::TcpFDInf::HttpInf

保存http/https协议的信息

std::string stt::network::TcpFDInf::ip

客户端ip

HttpServerFDHandler stt::network::TcpFDInf::k

处理http的类

unsigned long stt::network::TcpFDInf::p_buffer_now

接收空间位置指针

std::string stt::network::TcpFDInf::port

客户端端口

std::deque<std::chrono::steady_clock::time_point> stt::network::TcpFDInf::requestSpeedQueue

用于请求限速的队列,实现滑动窗口算法

SSL* stt::network::TcpFDInf::ssl

如果加密了,存放加密句柄

int stt::network::TcpFDInf::status

当前fd的状态,用于保存处理机逻辑


该结构体的文档由以下文件生成: