dl
dl::ClientUdp类 参考

UDP客户端 更多...

#include <dl_net.h>

Public 成员函数

void SetAddress (std::string_view ip, uint16_t port, bool broadcast=false)
 
void Send (BufferView buf)
 
void Send (std::string_view str)
 
BufferGetPopMsg ()
 
 ClientUdp ()
 
 ~ClientUdp ()
 

详细描述

UDP客户端

在文件 dl_net.h306 行定义.

构造及析构函数说明

◆ ClientUdp()

dl::ClientUdp::ClientUdp ( )

◆ ~ClientUdp()

dl::ClientUdp::~ClientUdp ( )

成员函数说明

◆ GetPopMsg()

Buffer * dl::ClientUdp::GetPopMsg ( )
inline

在文件 dl_net.h316 行定义.

◆ Send() [1/2]

void dl::ClientUdp::Send ( BufferView buf)

◆ Send() [2/2]

void dl::ClientUdp::Send ( std::string_view str)
inline

在文件 dl_net.h311 行定义.

◆ SetAddress()

void dl::ClientUdp::SetAddress ( std::string_view ip,
uint16_t port,
bool broadcast = false )

该类的文档由以下文件生成: