📄 net_factory.h
字号:
#ifndef _NET_FACTORY_H
#define _NET_FACTORY_H
#include "windows.h"
#include "winsock.h"
#include "net_cmd.h"
#pragma comment( lib, "wsock32.lib")
struct loginteminfo
{
ULONG ip;
USHORT port;
char user[32];
char password[64];
};
class net_factory : public thread_base
{
private:
net_cmd *pnetcmd;
net_tcp *ptcpnet;
loginteminfo logininfo[MAXCONNECTSERVER]; //用户登陆信息
private:
virtual void entry(); //线程入口函数
bool logindetectnet(loginteminfo *ploginfo);
public:
net_factory();
virtual ~net_factory();
bool create(HWND m_hwnd);
bool destroy();
bool login_net(ULONG ip, USHORT port, LPCTSTR user, LPCTSTR password);
bool loginout(ULONG ip, USHORT port);
bool openvideochannel(ULONG ip, USHORT port, int channel, HWND m_hwnd);
bool closevideochannel(ULONG ip, USHORT port, int channel);
bool netupdate_bound(ULONG ip, USHORT port, int channel);
ULONG netgethostbyname(char *paddr, unsigned char *outaddr);
bool netsetselectchannel(ULONG ip, USHORT port, int channel);
};
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -