dl
dl_net.h 文件参考

网络系统 更多...

#include "io/dl_log.h"
#include "base/dl_string.h"
#include "system/dl_thread.h"
#include "base/dl_list_mt.h"
#include <magic_enum/magic_enum.hpp>

浏览该文件的源代码.

struct  dl::MessageType
 
struct  dl::MsgHead
 网络消息头 更多...
 
struct  dl::UdpMessage
 upd消息 更多...
 
struct  dl::TcpMessage
 tcp消息 更多...
 
struct  dl::TcpMessageServer
 
class  dl::Client
 TCP客户端 更多...
 
class  dl::Server
 TCP服务器 更多...
 
class  dl::ClientUdp
 UDP客户端 更多...
 
class  dl::ServerUdp
 UDP服务器 更多...
 
class  dl::Network
 网络框架 更多...
 

命名空间

namespace  dl
 

类型定义

using dl::BufferList = ListMultiThread<Buffer>
 
using dl::UdpMessageList = ListMultiThread<UdpMessage>
 
using dl::TcpMessageList = ListMultiThread<TcpMessage>
 

变量

constexpr uint8_t dl::NETWORK_MESSAGE_TAG = 0x1e
 
constexpr bool dl::NETWORK_LOG_CLIENT = true
 
constexpr bool dl::NETWORK_LOG_SERVER = true
 
constexpr bool dl::NETWORK_LOG_CLIENT_UDP = true
 
constexpr bool dl::NETWORK_LOG_SERVER_UDP = true
 
constexpr bool dl::NETWORK_LOG_LOW = true
 
Networkdl::g_net
 

详细描述

网络系统

版本
1.0
作者
lveyou
日期
23-10-30
注解
基于asio,TCP为 Client/Server类,UDP为 ClientUdp/ServerUdp类

在文件 dl_net.h 中定义.