Sese Framework  2.3.0
A cross-platform framework
Loading...
Searching...
No Matches
sese::service::TcpConnection Struct Reference

TCP Connection. More...

#include <TcpTransporter.h>

Public Member Functions

virtual ~TcpConnection ()=default
 

Public Attributes

std::atomic_bool isAsync = false
 Set this variable to indicate that this connection is being asynchronously processed. When an onClose event occurs, resource release operations will not be performed. The release operation will be delayed at least until the disconnection is detected during a write or read event (onWrite, onRead). After asynchronous operations are completed, this flag should be set back to false.
 
void * ssl = nullptr
 
event::BaseEventevent = nullptr
 
service::v1::TimeoutEventtimeoutEvent = nullptr
 
io::ByteBuilder buffer2read {8192}
 
io::ByteBuilder buffer2write {8192}
 

Detailed Description

TCP Connection.

Constructor & Destructor Documentation

◆ ~TcpConnection()

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

Member Data Documentation

◆ 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

Set this variable to indicate that this connection is being asynchronously processed. When an onClose event occurs, resource release operations will not be performed. The release operation will be delayed at least until the disconnection is detected during a write or read event (onWrite, onRead). After asynchronous operations are completed, this flag should be set back to false.

◆ ssl

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

◆ timeoutEvent

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

The documentation for this struct was generated from the following file: