www.pudn.com > CtrlIPClt.rar > UDPSocket.h


#if !defined(AFX_UDPSOCKET_H__22FFB595_6F0C_4BF3_9438_B279A4596B74__INCLUDED_) 
#define AFX_UDPSOCKET_H__22FFB595_6F0C_4BF3_9438_B279A4596B74__INCLUDED_ 
 
#if _MSC_VER > 1000 
#pragma once 
#endif // _MSC_VER > 1000 
// UDPSocket.h : header file 
// 
 
#include "CtrlIPHead.h" 
#include  
#include "RunLog.h"	// Added by ClassView 
///////////////////////////////////////////////////////////////////////////// 
// CUDPSocket command target 
typedef struct CONSOLEINFO 
{ 
	CTRLIPINFO stCtrlIPInfo; 
	char szConsoleIP[16]; 
} *LPCONSOLEINFO; 
 
class CUDPSocket : public CSocket 
{ 
// Attributes 
public: 
 
// Operations 
public: 
	CUDPSocket(); 
	virtual ~CUDPSocket(); 
 
// Overrides 
public: 
	// ClassWizard generated virtual function overrides 
	//{{AFX_VIRTUAL(CUDPSocket) 
	public: 
	virtual void OnSend(int nErrorCode); 
	virtual void OnReceive(int nErrorCode); 
	//}}AFX_VIRTUAL 
 
	// Generated message map functions 
	//{{AFX_MSG(CUDPSocket) 
		// NOTE - the ClassWizard will add and remove member functions here. 
	//}}AFX_MSG 
 
// Implementation 
protected: 
private: 
	void AddCtrlIPInfo(LPCTRLIPINFO lpItem, CString strConsoleIP); 
	BYTE m_byteRecvBuf[1024]; 
	int  m_nReceivedLen; 
	BYTE m_byteSendBuf[1024]; 
	int  m_nSendedLen; 
public: 
	CRunLog *m_pRunLog; 
	CTypedPtrArray m_ConsoleInfoArray; 
	DWORD m_dwThreadID; 
	CString m_strConsoleSN; 
}; 
 
///////////////////////////////////////////////////////////////////////////// 
 
//{{AFX_INSERT_LOCATION}} 
// Microsoft Visual C++ will insert additional declarations immediately before the previous line. 
 
#endif // !defined(AFX_UDPSOCKET_H__22FFB595_6F0C_4BF3_9438_B279A4596B74__INCLUDED_)