www.pudn.com > 串口以太网通信技术转换.rar > DSock.h


#if !defined(AFX_DSOCK_H__17961BD4_A023_11D4_BF22_0000E8E4C832__INCLUDED_) 
#define AFX_DSOCK_H__17961BD4_A023_11D4_BF22_0000E8E4C832__INCLUDED_ 
 
#if _MSC_VER > 1000 
#pragma once 
#endif // _MSC_VER > 1000 
// DSock.h : header file 
// 
 
 
 
///////////////////////////////////////////////////////////////////////////// 
// CDSock command target 
 
class CDSock : public CSocket 
{ 
// Attributes 
public: 
 
// Operations 
public: 
	CDSock(); 
	virtual ~CDSock(); 
 
// Overrides 
public: 
	int SendString(char *buf, int len); 
	CString target_ip; 
	int target_port; 
	int port; 
	int InitSocket(); 
	// ClassWizard generated virtual function overrides 
	//{{AFX_VIRTUAL(CDSock) 
	public: 
	virtual void OnReceive(int nErrorCode); 
	//}}AFX_VIRTUAL 
 
	// Generated message map functions 
	//{{AFX_MSG(CDSock) 
		// NOTE - the ClassWizard will add and remove member functions here. 
	//}}AFX_MSG 
 
// Implementation 
protected: 
}; 
 
///////////////////////////////////////////////////////////////////////////// 
 
//{{AFX_INSERT_LOCATION}} 
// Microsoft Visual C++ will insert additional declarations immediately before the previous line. 
 
#endif // !defined(AFX_DSOCK_H__17961BD4_A023_11D4_BF22_0000E8E4C832__INCLUDED_)