Sese Framework
2.3.0
A cross-platform framework
|
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::BaseEvent * | event = nullptr |
service::v1::TimeoutEvent * | timeoutEvent = nullptr |
io::ByteBuilder | buffer2read {8192} |
io::ByteBuilder | buffer2write {8192} |
TCP Connection.
|
virtualdefault |
io::ByteBuilder sese::service::TcpConnection::buffer2read {8192} |
io::ByteBuilder sese::service::TcpConnection::buffer2write {8192} |
Referenced by sese::service::TcpTransporter::onWrite().
event::BaseEvent* sese::service::TcpConnection::event = nullptr |
Referenced by sese::service::TcpTransporter::postRead(), and sese::service::TcpTransporter::postWrite().
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.
void* sese::service::TcpConnection::ssl = nullptr |
service::v1::TimeoutEvent* sese::service::TcpConnection::timeoutEvent = nullptr |