www.pudn.com > CHA05.rar > XSOCKSERVER.CPP


// 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.


#include "stdafx.h"
#include "xsockserver.h"

/////////////////////////////////////////////////////////////////////////////
// CXSockServer

IMPLEMENT_DYNCREATE(CXSockServer, CWnd)

/////////////////////////////////////////////////////////////////////////////
// CXSockServer properties

CString CXSockServer::GetLocalAddress()
{
CString result;
GetProperty(0x1, VT_BSTR, (void*)&amt;result);
return result;
}

void CXSockServer::SetLocalAddress(LPCTSTR propVal)
{
SetProperty(0x1, VT_BSTR, propVal);
}

long CXSockServer::GetLocalPort()
{
long result;
GetProperty(0x2, VT_I4, (void*)&amt;result);
return result;
}

void CXSockServer::SetLocalPort(long propVal)
{
SetProperty(0x2, VT_I4, propVal);
}

BOOL CXSockServer::GetNullTerminate()
{
BOOL result;
GetProperty(0x3, VT_BOOL, (void*)&amt;result);
return result;
}

void CXSockServer::SetNullTerminate(BOOL propVal)
{
SetProperty(0x3, VT_BOOL, propVal);
}

long CXSockServer::GetReceiveBufferCount()
{
long result;
GetProperty(0x4, VT_I4, (void*)&amt;result);
return result;
}

void CXSockServer::SetReceiveBufferCount(long propVal)
{
SetProperty(0x4, VT_I4, propVal);
}

/////////////////////////////////////////////////////////////////////////////
// CXSockServer operations

BOOL CXSockServer::Listen()
{
BOOL result;
InvokeHelper(0x5, DISPATCH_METHOD, VT_BOOL, (void*)&amt;result, NULL);
return result;
}

BOOL CXSockServer::Send(long lChildId, LPCTSTR lpData, long nDataLen)
{
BOOL result;
static BYTE parms[] =
VTS_I4 VTS_BSTR VTS_I4;
InvokeHelper(0x6, DISPATCH_METHOD, VT_BOOL, (void*)&amt;result, parms,
lChildId, lpData, nDataLen);
return result;
}

void CXSockServer::Close()
{
InvokeHelper(0x7, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
}

void CXSockServer::AboutBox()
{
InvokeHelper(0xfffffdd8, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
}