基于 sese-event 的完成端口操作上下文
更多...
#include <IOCPServer_V1.h>
|
int64_t | read (void *buffer, size_t length) override |
|
int64_t | write (const void *buffer, size_t length) override |
|
int64_t | peek (void *buffer, size_t length) override |
|
int64_t | trunc (size_t length) override |
|
int32_t | getFd () const |
|
void * | getData () const |
|
void | setData (void *p_data) |
|
virtual | ~InputStream () noexcept=default |
|
virtual | ~OutputStream () noexcept=default |
|
int64_t | write (const std::string_view &buffer) |
|
int64_t | write (const text::StringView &buffer) |
|
template<typename T > |
int64_t | write (std::vector< T > &buffer) |
|
template<typename T , size_t N> |
int64_t | write (std::array< T, N > &buffer) |
|
virtual | ~PeekableStream ()=default |
|
◆ getData()
void * sese::iocp::v1::Context::getData |
( |
| ) |
const |
|
inlinenodiscard |
获取当前上下文额外数据
- 返回
- 额外数据
引用了 data.
◆ getFd()
int32_t sese::iocp::v1::Context::getFd |
( |
| ) |
const |
|
inlinenodiscard |
获取当前上下文连接文件描述符
- 返回
- 文件描述符
引用了 fd.
◆ peek()
int64_t Context::peek |
( |
void * | buffer, |
|
|
size_t | length ) |
|
overridevirtual |
◆ read()
int64_t Context::read |
( |
void * | buffer, |
|
|
size_t | length ) |
|
overridevirtual |
◆ setData()
void sese::iocp::v1::Context::setData |
( |
void * | p_data | ) |
|
|
inline |
◆ trunc()
int64_t Context::trunc |
( |
size_t | length | ) |
|
|
overridevirtual |
◆ write()
int64_t Context::write |
( |
const void * | buffer, |
|
|
size_t | length ) |
|
overridevirtual |
◆ IOCPServer
◆ IOCPService
◆ client
◆ data
void* sese::iocp::v1::Context::data {} |
|
private |
◆ event
◆ fd
socket_t sese::iocp::v1::Context::fd {0} |
|
private |
◆ isConn
bool sese::iocp::v1::Context::isConn {false} |
|
private |
◆ recv
◆ self
◆ send
◆ ssl
void* sese::iocp::v1::Context::ssl {} |
|
private |
◆ timeoutEvent
该类的文档由以下文件生成: