home     download     screen shots     bugs     mailing list     example output     generated MFC docs     help     tools and utilities


 Overview   Project   Class   Tree   Index 
MFC Class Library
FRAMES    NO FRAMES
SUMMARY:  INNER | FIELD | CONSTR | METHOD

MFC
Class CInternetConnection

CObject
   |
   +--CInternetConnection

   in AFXINET.H
Direct Known Subclasses:
CFtpConnection, CGopherConnection, CHttpConnection

class CInternetConnection
extends CObject

Connection types


Field Summary
protected DWORD m_dwContext
          
protected HINTERNET m_hConnection
          
protected INTERNET_PORT m_nPort
          
protected CInternetSession* m_pSession
          
protected CString m_strServerName
          
   
Fields inherited from class CObject
classCObject
 
Constructor Summary
CInternetConnection( CInternetSession* pSession, LPCTSTR pstrServer, INTERNET_PORT nPort = INTERNET_INVALID_PORT_NUMBER, DWORD dwContext = 1 )
          
~CInternetConnection()
          
 
Method Summary
protected virtual void Close()
          
 DWORD GetContext() const
          
 CString GetServerName() const
          
 CInternetSession* GetSession() const
          
 operator HINTERNET() const
          
 BOOL QueryOption( DWORD dwOption, CString& refString ) const
          
 BOOL QueryOption( DWORD dwOption, LPVOID lpBuffer, LPDWORD lpdwBufLen ) const
          
 BOOL QueryOption( DWORD dwOption, DWORD& dwValue ) const
          
 BOOL SetOption( DWORD dwOption, LPVOID lpBuffer, DWORD dwBufferLength, DWORD dwFlags = 0 )
          
 BOOL SetOption( DWORD dwOption, DWORD dwValue, DWORD dwFlags = 0 )
          
   
Methods inherited from class CObject
GetRuntimeClass, new, new, delete, IsSerializable, IsKindOf, Serialize
 

Field Detail

m_dwContext

protected DWORD m_dwContext;

m_hConnection

protected HINTERNET m_hConnection;

m_nPort

protected INTERNET_PORT m_nPort;

m_pSession

protected CInternetSession* m_pSession;

m_strServerName

protected CString m_strServerName;


Constructor Detail

CInternetConnection

public CInternetConnection( CInternetSession* pSession, LPCTSTR pstrServer, INTERNET_PORT nPort = INTERNET_INVALID_PORT_NUMBER, DWORD dwContext = 1 );

~CInternetConnection

public ~CInternetConnection();


Method Detail

Close

protected virtual void Close();

GetContext

public DWORD GetContext() const;

GetServerName

public CString GetServerName() const;

GetSession

public CInternetSession* GetSession() const;

HINTERNET

public operator HINTERNET() const;

QueryOption

public BOOL QueryOption( DWORD dwOption, CString& refString ) const;

QueryOption

public BOOL QueryOption( DWORD dwOption, LPVOID lpBuffer, LPDWORD lpdwBufLen ) const;

QueryOption

public BOOL QueryOption( DWORD dwOption, DWORD& dwValue ) const;

SetOption

public BOOL SetOption( DWORD dwOption, LPVOID lpBuffer, DWORD dwBufferLength, DWORD dwFlags = 0 );

SetOption

public BOOL SetOption( DWORD dwOption, DWORD dwValue, DWORD dwFlags = 0 );

 Overview   Project   Class   Tree   Index 
MFC Class Library
CppDoc v2.3.1
FRAMES    NO FRAMES
SUMMARY:  INNER | FIELD | CONSTR | METHOD