www.pudn.com > Jianasyhttpclient.rar > HttpAsySocket.h


#if !defined(AFX_HTTPASYSOCKET_H__15599115_A11A_11D4_A1B1_8B0DD173B218__INCLUDED_) 
#define AFX_HTTPASYSOCKET_H__15599115_A11A_11D4_A1B1_8B0DD173B218__INCLUDED_ 
 
#if _MSC_VER > 1000 
#pragma once 
#endif // _MSC_VER > 1000 
// HttpAsySocket.h : header file 
// 
 
#define BUFFERSIZE		4096 
 
///////////////////////////////////////////////////////////////////////////// 
// CHttpAsySocket command target 
 
class CHttpAsySocket : public CAsyncSocket 
{ 
// Attributes 
public: 
	int m_nPos; 
	int m_nDataLength; 
	//char m_pBuffer[BUFFERSIZE]; 
    CString m_pBuffer;   //·¢ËÍ»º³å 
	char m_szBuf[4096];  //½ÓÊÕ»º³å 
 
	 
// Operations 
public: 
	CHttpAsySocket(); 
	virtual ~CHttpAsySocket(); 
 
// Overrides 
public: 
	// ClassWizard generated virtual function overrides 
	//{{AFX_VIRTUAL(CHttpAsySocket) 
	public: 
	virtual void OnClose(int nErrorCode); 
	virtual void OnConnect(int nErrorCode); 
	virtual void OnReceive(int nErrorCode); 
	virtual void OnSend(int nErrorCode); 
	//}}AFX_VIRTUAL 
 
	// Generated message map functions 
	//{{AFX_MSG(CHttpAsySocket) 
		// 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_HTTPASYSOCKET_H__15599115_A11A_11D4_A1B1_8B0DD173B218__INCLUDED_)