Click here to Skip to main content
15,896,912 members
Articles / Desktop Programming / MFC

CAsyncProxySocket - CAsyncSocket derived class to connect through proxies

Rate me:
Please Sign up or sign in to vote.
4.73/5 (12 votes)
18 Dec 20012 min read 288.7K   7.7K   79  
This class allows you to establish connections through SOCKS4/5 and HTTP 1.1 proxies.
// CAsyncProxyDemoDlg.h : Header-Datei
//

#if !defined(AFX_CASYNCPROXYDEMODLG_H__CA73F5B6_5A33_457D_8BFB_9BE92E4B4BBE__INCLUDED_)
#define AFX_CASYNCPROXYDEMODLG_H__CA73F5B6_5A33_457D_8BFB_9BE92E4B4BBE__INCLUDED_

#include "MySocket.h"	// Hinzugef�gt von der Klassenansicht
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

/////////////////////////////////////////////////////////////////////////////
// CCAsyncProxyDemoDlg Dialogfeld
class CMySocket;

class CCAsyncProxyDemoDlg : public CDialog
{
// Konstruktion
public:
	CMySocket *m_pMySocket;
	CCAsyncProxyDemoDlg(CWnd* pParent = NULL);	// Standard-Konstruktor

// Dialogfelddaten
	//{{AFX_DATA(CCAsyncProxyDemoDlg)
	enum { IDD = IDD_CASYNCPROXYDEMO_DIALOG };
	CStatic	m_cResponse;
	CString	m_Host;
	int		m_nPort;
	CString	m_ProxyPass;
	CString	m_ProxyHost;
	CString	m_ProxyUser;
	BOOL	m_bUseAuth;
	int		m_nProxyType;
	int		m_nProxyPort;
	//}}AFX_DATA

	// Vom Klassenassistenten generierte �berladungen virtueller Funktionen
	//{{AFX_VIRTUAL(CCAsyncProxyDemoDlg)
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);	// DDX/DDV-Unterst�tzung
	//}}AFX_VIRTUAL

// Implementierung
protected:
	HICON m_hIcon;

	// Generierte Message-Map-Funktionen
	//{{AFX_MSG(CCAsyncProxyDemoDlg)
	virtual BOOL OnInitDialog();
	afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
	afx_msg void OnPaint();
	afx_msg HCURSOR OnQueryDragIcon();
	afx_msg void OnConnect();
	afx_msg void OnClose();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ f�gt unmittelbar vor der vorhergehenden Zeile zus�tzliche Deklarationen ein.

#endif // !defined(AFX_CASYNCPROXYDEMODLG_H__CA73F5B6_5A33_457D_8BFB_9BE92E4B4BBE__INCLUDED_)

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here


Written By
Web Developer
Germany Germany
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions