📄 net_udp.h
字号:
#ifndef _NET_UDP_H
#define _NET_UDP_H
#include "net_base.h"
//负责端口的绑定,socket的创建,数据的发送,网络的关闭
class net_udp : public net_base
{
private:
protected:
public:
net_udp();
virtual ~net_udp();
virtual SOCKET create();
virtual bool bind_socket(USHORT bindport);
virtual int senddata(char *pbuf, int length, ULONG ip, USHORT port);
virtual bool netclose();
};
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -