Sese Framework
x.y.z
A cross-platform framework
|
TCP 连接 更多...
#include <TcpTransporter.h>
Public 成员函数 | |
virtual | ~TcpConnection ()=default |
Public 属性 | |
std::atomic_bool | isAsync = false |
设置此变量表明此连接正在进行异步处理, 遇到对端关闭事件(onClose)时,不进行资源释放处理, 释放操作至少会延迟至写入事件或读取事件(onWrite、onRead)时检测到连接断开处理, 异步操作结束时,应当重新将此标志设置为 false | |
void * | ssl = nullptr |
event::BaseEvent * | event = nullptr |
service::v1::TimeoutEvent * | timeoutEvent = nullptr |
io::ByteBuilder | buffer2read {8192} |
io::ByteBuilder | buffer2write {8192} |
TCP 连接
|
virtualdefault |
io::ByteBuilder sese::service::TcpConnection::buffer2read {8192} |
io::ByteBuilder sese::service::TcpConnection::buffer2write {8192} |
event::BaseEvent* sese::service::TcpConnection::event = nullptr |
std::atomic_bool sese::service::TcpConnection::isAsync = false |
void* sese::service::TcpConnection::ssl = nullptr |
service::v1::TimeoutEvent* sese::service::TcpConnection::timeoutEvent = nullptr |