Sese Framework  x.y.z
A cross-platform framework
载入中...
搜索中...
未找到
sese::service::TcpConnection结构体 参考

TCP 连接 更多...

#include <TcpTransporter.h>

Public 成员函数

virtual ~TcpConnection ()=default
 

Public 属性

std::atomic_bool isAsync = false
 设置此变量表明此连接正在进行异步处理, 遇到对端关闭事件(onClose)时,不进行资源释放处理, 释放操作至少会延迟至写入事件或读取事件(onWrite、onRead)时检测到连接断开处理, 异步操作结束时,应当重新将此标志设置为 false
 
void * ssl = nullptr
 
event::BaseEventevent = nullptr
 
service::v1::TimeoutEventtimeoutEvent = nullptr
 
io::ByteBuilder buffer2read {8192}
 
io::ByteBuilder buffer2write {8192}
 

详细描述

TCP 连接

构造及析构函数说明

◆ ~TcpConnection()

virtual sese::service::TcpConnection::~TcpConnection ( )
virtualdefault

类成员变量说明

◆ buffer2read

io::ByteBuilder sese::service::TcpConnection::buffer2read {8192}

◆ buffer2write

io::ByteBuilder sese::service::TcpConnection::buffer2write {8192}

◆ event

event::BaseEvent* sese::service::TcpConnection::event = nullptr

◆ isAsync

std::atomic_bool sese::service::TcpConnection::isAsync = false

设置此变量表明此连接正在进行异步处理, 遇到对端关闭事件(onClose)时,不进行资源释放处理, 释放操作至少会延迟至写入事件或读取事件(onWrite、onRead)时检测到连接断开处理, 异步操作结束时,应当重新将此标志设置为 false

◆ ssl

void* sese::service::TcpConnection::ssl = nullptr

◆ timeoutEvent

service::v1::TimeoutEvent* sese::service::TcpConnection::timeoutEvent = nullptr

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