cping.h

来自「very good and very interessant」· C头文件 代码 · 共 34 行

H
34
字号
#ifndef __CPING_CLASS
#define __CPING_CLASS


#define MAX_SENDS 1111111
#define NOOP "NOOP"


typedef struct {
	unsigned int iTimeSend;
	unsigned int iTimeRecv;
	unsigned int iTotalSent, iTotalRecvd;
	unsigned int iPort;
} pingstore;


class CPing
{
public:
	CPing();
	~CPing();
	char szNoop[256];
	int iLastError, iTotalRes, iBytesToRecv;
	unsigned int iTimeOut, iTotalSent, iTotalRecvd;
	unsigned int PingContinuous (char* szHost, unsigned int iPort, unsigned int iPackets);
	unsigned int PingConnective (char* szHost, unsigned int iPort, unsigned int iPackets);
	pingstore* Res;
private:
	WSADATA wsadata;
};



#endif

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?