载入中...
搜索中...
未找到
eve::network::NetCompletion结构体 参考

One asynchronous network result/event. handle points at the originating TcpSocket/UdpSocket/HttpRequest/Channel; bytes carries received data; peer/reason/status describe connection context. 更多...

#include <NetTypes.h>

Public 属性

NetEvType type = NetEvType::Err
 
NetKind kind = NetKind::Tcp
 
void * handle = nullptr
 
std::shared_ptr< std::vector< char > > bytes
 
std::string peer
 
std::string reason
 
int status = 0
 

详细描述

One asynchronous network result/event. handle points at the originating TcpSocket/UdpSocket/HttpRequest/Channel; bytes carries received data; peer/reason/status describe connection context.

在文件 NetTypes.h33 行定义.

类成员变量说明

◆ bytes

std::shared_ptr<std::vector<char> > eve::network::NetCompletion::bytes

在文件 NetTypes.h37 行定义.

◆ handle

void* eve::network::NetCompletion::handle = nullptr

在文件 NetTypes.h36 行定义.

被这些函数引用 eve::network::TcpSocket::connect() , 以及 eve::network::Channel::feed().

◆ kind

NetKind eve::network::NetCompletion::kind = NetKind::Tcp

◆ peer

std::string eve::network::NetCompletion::peer

在文件 NetTypes.h38 行定义.

◆ reason

std::string eve::network::NetCompletion::reason

在文件 NetTypes.h39 行定义.

被这些函数引用 eve::network::TcpSocket::connect() , 以及 eve::network::Channel::feed().

◆ status

int eve::network::NetCompletion::status = 0

在文件 NetTypes.h40 行定义.

◆ type


该结构体的文档由以下文件生成: