TCP 传输器
更多...
#include <TcpTransporter.h>
|
static int64_t | read (int fd, void *buffer, size_t len, void *ssl) noexcept |
|
static int64_t | write (int fd, const void *buffer, size_t len, void *ssl) noexcept |
|
◆ TcpTransporter()
◆ ~TcpTransporter()
sese::service::TcpTransporter::~TcpTransporter |
( |
| ) |
|
|
override |
◆ alpnCallbackFunction()
int sese::service::TcpTransporter::alpnCallbackFunction |
( |
void * | ssl, |
|
|
const uint8_t ** | out, |
|
|
uint8_t * | out_length, |
|
|
const uint8_t * | in, |
|
|
uint32_t | in_length, |
|
|
TcpTransporter * | transporter ) |
|
staticprivate |
◆ createEventEx()
◆ freeEventEx()
◆ onAccept()
void sese::service::TcpTransporter::onAccept |
( |
int | fd | ) |
|
|
overrideprotected |
◆ onClose()
◆ onProcAlpnGet()
virtual void sese::service::TcpTransporter::onProcAlpnGet |
( |
TcpConnection * | conn, |
|
|
const uint8_t * | in, |
|
|
uint32_t | in_length ) |
|
protectedpure virtual |
◆ onProcAlpnSelect()
virtual int sese::service::TcpTransporter::onProcAlpnSelect |
( |
const uint8_t ** | out, |
|
|
uint8_t * | out_length, |
|
|
const uint8_t * | in, |
|
|
uint32_t | in_length ) |
|
protectedpure virtual |
◆ onProcClose()
virtual void sese::service::TcpTransporter::onProcClose |
( |
TcpConnection * | conn | ) |
|
|
protectedpure virtual |
◆ onProcHandle()
virtual void sese::service::TcpTransporter::onProcHandle |
( |
TcpConnection * | conn | ) |
|
|
protectedpure virtual |
◆ onRead()
◆ onTimeout()
void sese::service::TcpTransporter::onTimeout |
( |
v1::TimeoutEvent * | timeout_event | ) |
|
|
overrideprotectedvirtual |
◆ onWrite()
引用了 sese::service::TcpConnection::buffer2write, sese::net::Socket::close(), EINTR, EVENT_READ, EVENT_WRITE, EWOULDBLOCK, sese::event::BaseEvent::fd, sese::net::getNetworkError(), MTU_VALUE, sese::io::AbstractByteBuffer::peek() , 以及 write().
◆ postRead()
void sese::service::TcpTransporter::postRead |
( |
TcpConnection * | conn | ) |
|
|
protectedvirtual |
◆ postWrite()
void sese::service::TcpTransporter::postWrite |
( |
TcpConnection * | conn | ) |
|
|
protectedvirtual |
◆ read()
int64_t sese::service::TcpTransporter::read |
( |
int | fd, |
|
|
void * | buffer, |
|
|
size_t | len, |
|
|
void * | ssl ) |
|
staticprotectednoexcept |
◆ write()
int64_t sese::service::TcpTransporter::write |
( |
int | fd, |
|
|
const void * | buffer, |
|
|
size_t | len, |
|
|
void * | ssl ) |
|
staticprotectednoexcept |
◆ config
◆ eventMap
该类的文档由以下文件生成: