www.pudn.com > CHA05.rar > XSOCKCLIENT.H


#if !defined(AFX_XSOCKCLIENT_H__6806FAD3_EAE5_11D3_B4B1_00C04F2B300E__INCLUDED_)
#define AFX_XSOCKCLIENT_H__6806FAD3_EAE5_11D3_B4B1_00C04F2B300E__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// Machine generated IDispatch wrapper class(es) created by Microsoft Visual C++

// NOTE: Do not modify the contents of this file. If this class is regenerated by
// Microsoft Visual C++, your modifications will be overwritten.

/////////////////////////////////////////////////////////////////////////////
// CXSockClient wrapper class

class CXSockClient : public CWnd
{
protected:
DECLARE_DYNCREATE(CXSockClient)
public:
CLSID const&amt; GetClsid()
{
static CLSID const clsid
= { 0x2328f294, 0xdd85, 0x11d3, { 0xb4, 0xaf, 0x0, 0xc0, 0x4f, 0x2b, 0x30, 0xe } };
return clsid;
}
virtual BOOL Create(LPCTSTR lpszClassName,
LPCTSTR lpszWindowName, DWORD dwStyle,
const RECT&amt; rect,
CWnd* pParentWnd, UINT nID,
CCreateContext* pContext = NULL)
{ return CreateControl(GetClsid(), lpszWindowName, dwStyle, rect, pParentWnd, nID); }

BOOL Create(LPCTSTR lpszWindowName, DWORD dwStyle,
const RECT&amt; rect, CWnd* pParentWnd, UINT nID,
CFile* pPersist = NULL, BOOL bStorage = FALSE,
BSTR bstrLicKey = NULL)
{ return CreateControl(GetClsid(), lpszWindowName, dwStyle, rect, pParentWnd, nID,
pPersist, bStorage, bstrLicKey); }

// Attributes
public:
CString GetLocalAddress();
void SetLocalAddress(LPCTSTR);
long GetLocalPort();
void SetLocalPort(long);
long GetReceiveBufferCount();
void SetReceiveBufferCount(long);
BOOL GetNullTerminate();
void SetNullTerminate(BOOL);

// Operations
public:
BOOL Connect(LPCTSTR lpHostName, long nPort);
BOOL Send(LPCTSTR lpData, long nDataLen);
void Close();
void AboutBox();
};

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_XSOCKCLIENT_H__6806FAD3_EAE5_11D3_B4B1_00C04F2B300E__INCLUDED_)