Click here to Skip to main content
12,503,198 members (61,783 online)
Click here to Skip to main content

Stats

144.9K views
6K downloads
59 bookmarked
Posted

Use of free SocketPro package for creating super client and server applications

, 23 Feb 2002
A set of socket libraries for writing distributed computing applications over the internet
netdemo
ClientComponents
MultiSvsSample
SvrComponents
bin
include
lib
Samples
client
DnsSvs
GetHTML
InternetIO
MultiSvsSample
SpeedTest
res
DResolver
Svr
NormalApp
NTSvs
help
trash
SecureSocket
SafeSocket
DNSResolver.exe
GetHtml.exe
IONet.exe
MultipleSvs.exe
MultiSvs.exe
MultiSvsClient.exe
NetBaseR.dll
SafeSocket.exe
SecureSocket.exe
SpeedTest.exe
ClientSocket.dll
DResolver.dll
SBroker.dll
SockFile.dll
fundamental.gif
patterns.gif
NetBaseR.lib
DNSResolver
DNSResolver.vbp
DNSResolver.vbw
frmDNSResolver.frm
frmDNSResolver.frx
frmChatClient.frm
frmChatClient.frx
GETHTML.vbp
GETHTML.vbw
iIO.frm
IONet
IONet.vbp
IONet.vbw
frmMultiSvs.frm
frmMultiSvs.frx
MultiSvs.vbp
MultiSvs.vbw
SafeSocket.vbp
SafeSocket.vbw
SecureSocket.frm
SpeedTest.ico
SpeedTest.aps
SpeedTest.clw
SpeedTest.dsp
SpeedTest.dsw
dlldata.obj
DNS.rgs
DResolver.aps
DResolver.def
DResolver.dsp
DResolver.dsw
DResolver.opt
DResolver.plg
DResolver.tlb
DResolverps.def
DResolverps.exp
DResolverps.lib
DResolverps.mk
DResolver_i.obj
DResolver_p.obj
MultipleSvs.dsp
MultipleSvs.dsw
MultiSvs.dsp
MultiSvs.dsw
MultiSvs.rgs
MultiSvs.tlb
MultiSvsps.def
MultiSvsps.mk
dlldata.obj
SafeSocket.aps
SafeSocket.dsp
SafeSocket.dsw
SafeSocket.plg
SafeSocket.rgs
SafeSocket.tlb
SafeSocketps.def
SafeSocketps.dll
SafeSocketps.exp
SafeSocketps.lib
SafeSocketps.mk
SafeSocket_i.obj
SafeSocket_p.obj
SPassword.rgs
MultipleSvs.exe
MultiSvs.exe
NetBaseR.dll
SafeSocket.exe
/* this ALWAYS GENERATED file contains the definitions for the interfaces */


/* File created by MIDL compiler version 5.01.0164 */
/* at Mon Jan 21 17:37:09 2002
 */
/* Compiler settings for ClientSocket.idl:
    Os (OptLev=s), W1, Zp8, env=Win32, ms_ext, c_ext
    error checks: allocation ref bounds_check enum stub_data 
*/
//@@MIDL_FILE_HEADING(  )


/* verify that the <rpcndr.h> version is high enough to compile this file*/
#ifndef __REQUIRED_RPCNDR_H_VERSION__
#define __REQUIRED_RPCNDR_H_VERSION__ 440
#endif

#include "rpc.h"
#include "rpcndr.h"

#ifndef __RPCNDR_H_VERSION__
#error this stub requires an updated version of <rpcndr.h>
#endif // __RPCNDR_H_VERSION__

#ifndef COM_NO_WINDOWS_H
#include "windows.h"
#include "ole2.h"
#endif /*COM_NO_WINDOWS_H*/

#ifndef __ClientSocket_h__
#define __ClientSocket_h__

#ifdef __cplusplus
extern "C"{
#endif 

/* Forward Declarations */ 

#ifndef __ISktClient_FWD_DEFINED__
#define __ISktClient_FWD_DEFINED__
typedef interface ISktClient ISktClient;
#endif 	/* __ISktClient_FWD_DEFINED__ */


#ifndef ___ISktClientEvents_FWD_DEFINED__
#define ___ISktClientEvents_FWD_DEFINED__
typedef interface _ISktClientEvents _ISktClientEvents;
#endif 	/* ___ISktClientEvents_FWD_DEFINED__ */


#ifndef __SktClient_FWD_DEFINED__
#define __SktClient_FWD_DEFINED__

#ifdef __cplusplus
typedef class SktClient SktClient;
#else
typedef struct SktClient SktClient;
#endif /* __cplusplus */

#endif 	/* __SktClient_FWD_DEFINED__ */


/* header files for imported files */
#include "oaidl.h"
#include "ocidl.h"

void __RPC_FAR * __RPC_USER MIDL_user_allocate(size_t);
void __RPC_USER MIDL_user_free( void __RPC_FAR * ); 

#ifndef __ISktClient_INTERFACE_DEFINED__
#define __ISktClient_INTERFACE_DEFINED__

/* interface ISktClient */
/* [unique][helpstring][dual][uuid][object] */ 


EXTERN_C const IID IID_ISktClient;

#if defined(__cplusplus) && !defined(CINTERFACE)
    
    MIDL_INTERFACE("726360BC-AE26-11D5-8A74-002078B038BB")
    ISktClient : public IDispatch
    {
    public:
        virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE Connect( 
            /* [in] */ BSTR bstrHostAddress,
            /* [in] */ long lHostPort,
            /* [defaultvalue][optional][in] */ VARIANT_BOOL bUseMsgPump = 0,
            /* [defaultvalue][optional][in] */ long lSocketType = 1,
            /* [defaultvalue][optional][in] */ long lAddrFormat = 2,
            /* [defaultvalue][optional][in] */ long lProtocol = 0,
            /* [defaultvalue][optional][in] */ BSTR bstrCallerData = L"",
            /* [defaultvalue][optional][out] */ BSTR __RPC_FAR *pbstrCalleeData = 0,
            /* [defaultvalue][optional][in] */ long lLocalPort = 0) = 0;
        
        virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE Disconnect( void) = 0;
        
        virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ShutDown( 
            /* [defaultvalue][optional][in] */ long lHow = 1) = 0;
        
        virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE RecvChunk( 
            /* [out][in] */ long __RPC_FAR *plLen,
            /* [defaultvalue][optional][in] */ long lFlags,
            /* [retval][out] */ VARIANT __RPC_FAR *pvtData) = 0;
        
        virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE RecvChunkFrom( 
            /* [out][in] */ long __RPC_FAR *plLen,
            /* [defaultvalue][optional][in] */ long lFlags,
            /* [defaultvalue][optional][out] */ BSTR __RPC_FAR *pbstrSrcAddr,
            /* [defaultvalue][optional][out] */ long __RPC_FAR *plPort,
            /* [retval][out] */ VARIANT __RPC_FAR *pvtData) = 0;
        
        virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE SendChunk( 
            /* [in] */ VARIANT vtData,
            /* [defaultvalue][optional][in] */ long lFlags,
            /* [retval][out] */ long __RPC_FAR *plSent) = 0;
        
        virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE SendChunkTo( 
            /* [in] */ VARIANT vtData,
            /* [in] */ long lPort,
            /* [defaultvalue][optional][in] */ BSTR bstrAddr,
            /* [defaultvalue][optional][in] */ long lFlags,
            /* [retval][out] */ long __RPC_FAR *plSent) = 0;
        
        virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE AsyncSelect( 
            /* [in] */ long lNewEvent) = 0;
        
        virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE SwitchTo( 
            /* [in] */ long lClassID) = 0;
        
        virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE GetSockAddr( 
            /* [optional][out] */ long __RPC_FAR *plSocketPort,
            /* [retval][out] */ BSTR __RPC_FAR *pbstrSockAddress) = 0;
        
        virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE IOCtl( 
            /* [in] */ long lCommand,
            /* [out][in] */ long __RPC_FAR *plArgment) = 0;
        
        virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE GetPeerName( 
            /* [optional][out] */ long __RPC_FAR *plPeerPort,
            /* [retval][out] */ BSTR __RPC_FAR *pbstrPeerName) = 0;
        
        virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE SetSockOpt( 
            /* [in] */ long lOptName,
            /* [in] */ long lOptValue,
            /* [defaultvalue][optional][in] */ short nLevel = 0xffff) = 0;
        
        virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE GetSockOpt( 
            /* [in] */ long lOptName,
            /* [defaultvalue][optional][in] */ short nLevel,
            /* [retval][out] */ long __RPC_FAR *plOptValue) = 0;
        
        virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE GetHostByAddr( 
            /* [in] */ BSTR bstrIPAddr,
            /* [defaultvalue][optional][in] */ long lAddrFormat,
            /* [defaultvalue][optional][in] */ VARIANT_BOOL bBlocking,
            /* [defaultvalue][optional][out] */ long __RPC_FAR *phHandle,
            /* [defaultvalue][optional][out] */ BSTR __RPC_FAR *pbstrAlias,
            /* [retval][out] */ BSTR __RPC_FAR *pbstrHostName) = 0;
        
        virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE GetRtn( 
            /* [retval][out] */ long __RPC_FAR *plErrInfo) = 0;
        
        virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE Disable( 
            /* [defaultvalue][in] */ VARIANT_BOOL bDisable = -1) = 0;
        
        virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE SendText( 
            /* [in] */ BSTR bstrText,
            /* [defaultvalue][optional][in] */ VARIANT_BOOL bW2A,
            /* [defaultvalue][optional][in] */ long lFlags,
            /* [retval][out] */ long __RPC_FAR *plSent) = 0;
        
        virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE RecvText( 
            /* [in] */ long nLen,
            /* [defaultvalue][optional][in] */ VARIANT_BOOL bWChar,
            /* [defaultvalue][optional][in] */ long lFlags,
            /* [retval][out] */ BSTR __RPC_FAR *pbstrText) = 0;
        
        virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE GetHostByName( 
            /* [in] */ BSTR bstrHost,
            /* [defaultvalue][optional][in] */ VARIANT_BOOL bBlocking,
            /* [defaultvalue][optional][out] */ long __RPC_FAR *phHandle,
            /* [defaultvalue][optional][out] */ BSTR __RPC_FAR *pbstrIPAddr,
            /* [defaultvalue][optional][out] */ BSTR __RPC_FAR *pbstrAlias,
            /* [retval][out] */ BSTR __RPC_FAR *pbstrHostName) = 0;
        
        virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_LocalName( 
            /* [retval][out] */ BSTR __RPC_FAR *pbstrLocalName) = 0;
        
        virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_SocketHandle( 
            /* [retval][out] */ long __RPC_FAR *plSocketHandle) = 0;
        
        virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_SendTimeout( 
            /* [retval][out] */ long __RPC_FAR *plSendTimeout) = 0;
        
        virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_SendTimeout( 
            /* [in] */ long lSendTimeout) = 0;
        
        virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Instance( 
            /* [retval][out] */ long __RPC_FAR *plInstance) = 0;
        
        virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_IsConnected( 
            /* [retval][out] */ VARIANT_BOOL __RPC_FAR *pbVal) = 0;
        
        virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Events( 
            /* [retval][out] */ long __RPC_FAR *plEvents) = 0;
        
        virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_UID( 
            /* [retval][out] */ BSTR __RPC_FAR *pVal) = 0;
        
        virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_UID( 
            /* [in] */ BSTR newVal) = 0;
        
        virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Password( 
            /* [retval][out] */ BSTR __RPC_FAR *pVal) = 0;
        
        virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_Password( 
            /* [in] */ BSTR newVal) = 0;
        
        virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_RcvTimeout( 
            /* [retval][out] */ long __RPC_FAR *plRcvTimeout) = 0;
        
        virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_RcvTimeout( 
            /* [in] */ long lRcvTimeout) = 0;
        
        virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_ConnectTimeout( 
            /* [retval][out] */ long __RPC_FAR *pConnectTimeout) = 0;
        
        virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_ConnectTimeout( 
            /* [in] */ long lConnectTimeout) = 0;
        
        virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_WinHandle( 
            /* [retval][out] */ long __RPC_FAR *plWinHandle) = 0;
        
        virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_WinHandle( 
            /* [in] */ long lWinHandle) = 0;
        
    };
    
#else 	/* C style interface */

    typedef struct ISktClientVtbl
    {
        BEGIN_INTERFACE
        
        HRESULT ( STDMETHODCALLTYPE __RPC_FAR *QueryInterface )( 
            ISktClient __RPC_FAR * This,
            /* [in] */ REFIID riid,
            /* [iid_is][out] */ void __RPC_FAR *__RPC_FAR *ppvObject);
        
        ULONG ( STDMETHODCALLTYPE __RPC_FAR *AddRef )( 
            ISktClient __RPC_FAR * This);
        
        ULONG ( STDMETHODCALLTYPE __RPC_FAR *Release )( 
            ISktClient __RPC_FAR * This);
        
        HRESULT ( STDMETHODCALLTYPE __RPC_FAR *GetTypeInfoCount )( 
            ISktClient __RPC_FAR * This,
            /* [out] */ UINT __RPC_FAR *pctinfo);
        
        HRESULT ( STDMETHODCALLTYPE __RPC_FAR *GetTypeInfo )( 
            ISktClient __RPC_FAR * This,
            /* [in] */ UINT iTInfo,
            /* [in] */ LCID lcid,
            /* [out] */ ITypeInfo __RPC_FAR *__RPC_FAR *ppTInfo);
        
        HRESULT ( STDMETHODCALLTYPE __RPC_FAR *GetIDsOfNames )( 
            ISktClient __RPC_FAR * This,
            /* [in] */ REFIID riid,
            /* [size_is][in] */ LPOLESTR __RPC_FAR *rgszNames,
            /* [in] */ UINT cNames,
            /* [in] */ LCID lcid,
            /* [size_is][out] */ DISPID __RPC_FAR *rgDispId);
        
        /* [local] */ HRESULT ( STDMETHODCALLTYPE __RPC_FAR *Invoke )( 
            ISktClient __RPC_FAR * This,
            /* [in] */ DISPID dispIdMember,
            /* [in] */ REFIID riid,
            /* [in] */ LCID lcid,
            /* [in] */ WORD wFlags,
            /* [out][in] */ DISPPARAMS __RPC_FAR *pDispParams,
            /* [out] */ VARIANT __RPC_FAR *pVarResult,
            /* [out] */ EXCEPINFO __RPC_FAR *pExcepInfo,
            /* [out] */ UINT __RPC_FAR *puArgErr);
        
        /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE __RPC_FAR *Connect )( 
            ISktClient __RPC_FAR * This,
            /* [in] */ BSTR bstrHostAddress,
            /* [in] */ long lHostPort,
            /* [defaultvalue][optional][in] */ VARIANT_BOOL bUseMsgPump,
            /* [defaultvalue][optional][in] */ long lSocketType,
            /* [defaultvalue][optional][in] */ long lAddrFormat,
            /* [defaultvalue][optional][in] */ long lProtocol,
            /* [defaultvalue][optional][in] */ BSTR bstrCallerData,
            /* [defaultvalue][optional][out] */ BSTR __RPC_FAR *pbstrCalleeData,
            /* [defaultvalue][optional][in] */ long lLocalPort);
        
        /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE __RPC_FAR *Disconnect )( 
            ISktClient __RPC_FAR * This);
        
        /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE __RPC_FAR *ShutDown )( 
            ISktClient __RPC_FAR * This,
            /* [defaultvalue][optional][in] */ long lHow);
        
        /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE __RPC_FAR *RecvChunk )( 
            ISktClient __RPC_FAR * This,
            /* [out][in] */ long __RPC_FAR *plLen,
            /* [defaultvalue][optional][in] */ long lFlags,
            /* [retval][out] */ VARIANT __RPC_FAR *pvtData);
        
        /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE __RPC_FAR *RecvChunkFrom )( 
            ISktClient __RPC_FAR * This,
            /* [out][in] */ long __RPC_FAR *plLen,
            /* [defaultvalue][optional][in] */ long lFlags,
            /* [defaultvalue][optional][out] */ BSTR __RPC_FAR *pbstrSrcAddr,
            /* [defaultvalue][optional][out] */ long __RPC_FAR *plPort,
            /* [retval][out] */ VARIANT __RPC_FAR *pvtData);
        
        /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE __RPC_FAR *SendChunk )( 
            ISktClient __RPC_FAR * This,
            /* [in] */ VARIANT vtData,
            /* [defaultvalue][optional][in] */ long lFlags,
            /* [retval][out] */ long __RPC_FAR *plSent);
        
        /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE __RPC_FAR *SendChunkTo )( 
            ISktClient __RPC_FAR * This,
            /* [in] */ VARIANT vtData,
            /* [in] */ long lPort,
            /* [defaultvalue][optional][in] */ BSTR bstrAddr,
            /* [defaultvalue][optional][in] */ long lFlags,
            /* [retval][out] */ long __RPC_FAR *plSent);
        
        /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE __RPC_FAR *AsyncSelect )( 
            ISktClient __RPC_FAR * This,
            /* [in] */ long lNewEvent);
        
        /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE __RPC_FAR *SwitchTo )( 
            ISktClient __RPC_FAR * This,
            /* [in] */ long lClassID);
        
        /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE __RPC_FAR *GetSockAddr )( 
            ISktClient __RPC_FAR * This,
            /* [optional][out] */ long __RPC_FAR *plSocketPort,
            /* [retval][out] */ BSTR __RPC_FAR *pbstrSockAddress);
        
        /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE __RPC_FAR *IOCtl )( 
            ISktClient __RPC_FAR * This,
            /* [in] */ long lCommand,
            /* [out][in] */ long __RPC_FAR *plArgment);
        
        /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE __RPC_FAR *GetPeerName )( 
            ISktClient __RPC_FAR * This,
            /* [optional][out] */ long __RPC_FAR *plPeerPort,
            /* [retval][out] */ BSTR __RPC_FAR *pbstrPeerName);
        
        /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE __RPC_FAR *SetSockOpt )( 
            ISktClient __RPC_FAR * This,
            /* [in] */ long lOptName,
            /* [in] */ long lOptValue,
            /* [defaultvalue][optional][in] */ short nLevel);
        
        /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE __RPC_FAR *GetSockOpt )( 
            ISktClient __RPC_FAR * This,
            /* [in] */ long lOptName,
            /* [defaultvalue][optional][in] */ short nLevel,
            /* [retval][out] */ long __RPC_FAR *plOptValue);
        
        /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE __RPC_FAR *GetHostByAddr )( 
            ISktClient __RPC_FAR * This,
            /* [in] */ BSTR bstrIPAddr,
            /* [defaultvalue][optional][in] */ long lAddrFormat,
            /* [defaultvalue][optional][in] */ VARIANT_BOOL bBlocking,
            /* [defaultvalue][optional][out] */ long __RPC_FAR *phHandle,
            /* [defaultvalue][optional][out] */ BSTR __RPC_FAR *pbstrAlias,
            /* [retval][out] */ BSTR __RPC_FAR *pbstrHostName);
        
        /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE __RPC_FAR *GetRtn )( 
            ISktClient __RPC_FAR * This,
            /* [retval][out] */ long __RPC_FAR *plErrInfo);
        
        /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE __RPC_FAR *Disable )( 
            ISktClient __RPC_FAR * This,
            /* [defaultvalue][in] */ VARIANT_BOOL bDisable);
        
        /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE __RPC_FAR *SendText )( 
            ISktClient __RPC_FAR * This,
            /* [in] */ BSTR bstrText,
            /* [defaultvalue][optional][in] */ VARIANT_BOOL bW2A,
            /* [defaultvalue][optional][in] */ long lFlags,
            /* [retval][out] */ long __RPC_FAR *plSent);
        
        /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE __RPC_FAR *RecvText )( 
            ISktClient __RPC_FAR * This,
            /* [in] */ long nLen,
            /* [defaultvalue][optional][in] */ VARIANT_BOOL bWChar,
            /* [defaultvalue][optional][in] */ long lFlags,
            /* [retval][out] */ BSTR __RPC_FAR *pbstrText);
        
        /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE __RPC_FAR *GetHostByName )( 
            ISktClient __RPC_FAR * This,
            /* [in] */ BSTR bstrHost,
            /* [defaultvalue][optional][in] */ VARIANT_BOOL bBlocking,
            /* [defaultvalue][optional][out] */ long __RPC_FAR *phHandle,
            /* [defaultvalue][optional][out] */ BSTR __RPC_FAR *pbstrIPAddr,
            /* [defaultvalue][optional][out] */ BSTR __RPC_FAR *pbstrAlias,
            /* [retval][out] */ BSTR __RPC_FAR *pbstrHostName);
        
        /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE __RPC_FAR *get_LocalName )( 
            ISktClient __RPC_FAR * This,
            /* [retval][out] */ BSTR __RPC_FAR *pbstrLocalName);
        
        /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE __RPC_FAR *get_SocketHandle )( 
            ISktClient __RPC_FAR * This,
            /* [retval][out] */ long __RPC_FAR *plSocketHandle);
        
        /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE __RPC_FAR *get_SendTimeout )( 
            ISktClient __RPC_FAR * This,
            /* [retval][out] */ long __RPC_FAR *plSendTimeout);
        
        /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE __RPC_FAR *put_SendTimeout )( 
            ISktClient __RPC_FAR * This,
            /* [in] */ long lSendTimeout);
        
        /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE __RPC_FAR *get_Instance )( 
            ISktClient __RPC_FAR * This,
            /* [retval][out] */ long __RPC_FAR *plInstance);
        
        /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE __RPC_FAR *get_IsConnected )( 
            ISktClient __RPC_FAR * This,
            /* [retval][out] */ VARIANT_BOOL __RPC_FAR *pbVal);
        
        /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE __RPC_FAR *get_Events )( 
            ISktClient __RPC_FAR * This,
            /* [retval][out] */ long __RPC_FAR *plEvents);
        
        /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE __RPC_FAR *get_UID )( 
            ISktClient __RPC_FAR * This,
            /* [retval][out] */ BSTR __RPC_FAR *pVal);
        
        /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE __RPC_FAR *put_UID )( 
            ISktClient __RPC_FAR * This,
            /* [in] */ BSTR newVal);
        
        /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE __RPC_FAR *get_Password )( 
            ISktClient __RPC_FAR * This,
            /* [retval][out] */ BSTR __RPC_FAR *pVal);
        
        /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE __RPC_FAR *put_Password )( 
            ISktClient __RPC_FAR * This,
            /* [in] */ BSTR newVal);
        
        /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE __RPC_FAR *get_RcvTimeout )( 
            ISktClient __RPC_FAR * This,
            /* [retval][out] */ long __RPC_FAR *plRcvTimeout);
        
        /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE __RPC_FAR *put_RcvTimeout )( 
            ISktClient __RPC_FAR * This,
            /* [in] */ long lRcvTimeout);
        
        /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE __RPC_FAR *get_ConnectTimeout )( 
            ISktClient __RPC_FAR * This,
            /* [retval][out] */ long __RPC_FAR *pConnectTimeout);
        
        /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE __RPC_FAR *put_ConnectTimeout )( 
            ISktClient __RPC_FAR * This,
            /* [in] */ long lConnectTimeout);
        
        /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE __RPC_FAR *get_WinHandle )( 
            ISktClient __RPC_FAR * This,
            /* [retval][out] */ long __RPC_FAR *plWinHandle);
        
        /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE __RPC_FAR *put_WinHandle )( 
            ISktClient __RPC_FAR * This,
            /* [in] */ long lWinHandle);
        
        END_INTERFACE
    } ISktClientVtbl;

    interface ISktClient
    {
        CONST_VTBL struct ISktClientVtbl __RPC_FAR *lpVtbl;
    };

    

#ifdef COBJMACROS


#define ISktClient_QueryInterface(This,riid,ppvObject)	\
    (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)

#define ISktClient_AddRef(This)	\
    (This)->lpVtbl -> AddRef(This)

#define ISktClient_Release(This)	\
    (This)->lpVtbl -> Release(This)


#define ISktClient_GetTypeInfoCount(This,pctinfo)	\
    (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo)

#define ISktClient_GetTypeInfo(This,iTInfo,lcid,ppTInfo)	\
    (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo)

#define ISktClient_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId)	\
    (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId)

#define ISktClient_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr)	\
    (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr)


#define ISktClient_Connect(This,bstrHostAddress,lHostPort,bUseMsgPump,lSocketType,lAddrFormat,lProtocol,bstrCallerData,pbstrCalleeData,lLocalPort)	\
    (This)->lpVtbl -> Connect(This,bstrHostAddress,lHostPort,bUseMsgPump,lSocketType,lAddrFormat,lProtocol,bstrCallerData,pbstrCalleeData,lLocalPort)

#define ISktClient_Disconnect(This)	\
    (This)->lpVtbl -> Disconnect(This)

#define ISktClient_ShutDown(This,lHow)	\
    (This)->lpVtbl -> ShutDown(This,lHow)

#define ISktClient_RecvChunk(This,plLen,lFlags,pvtData)	\
    (This)->lpVtbl -> RecvChunk(This,plLen,lFlags,pvtData)

#define ISktClient_RecvChunkFrom(This,plLen,lFlags,pbstrSrcAddr,plPort,pvtData)	\
    (This)->lpVtbl -> RecvChunkFrom(This,plLen,lFlags,pbstrSrcAddr,plPort,pvtData)

#define ISktClient_SendChunk(This,vtData,lFlags,plSent)	\
    (This)->lpVtbl -> SendChunk(This,vtData,lFlags,plSent)

#define ISktClient_SendChunkTo(This,vtData,lPort,bstrAddr,lFlags,plSent)	\
    (This)->lpVtbl -> SendChunkTo(This,vtData,lPort,bstrAddr,lFlags,plSent)

#define ISktClient_AsyncSelect(This,lNewEvent)	\
    (This)->lpVtbl -> AsyncSelect(This,lNewEvent)

#define ISktClient_SwitchTo(This,lClassID)	\
    (This)->lpVtbl -> SwitchTo(This,lClassID)

#define ISktClient_GetSockAddr(This,plSocketPort,pbstrSockAddress)	\
    (This)->lpVtbl -> GetSockAddr(This,plSocketPort,pbstrSockAddress)

#define ISktClient_IOCtl(This,lCommand,plArgment)	\
    (This)->lpVtbl -> IOCtl(This,lCommand,plArgment)

#define ISktClient_GetPeerName(This,plPeerPort,pbstrPeerName)	\
    (This)->lpVtbl -> GetPeerName(This,plPeerPort,pbstrPeerName)

#define ISktClient_SetSockOpt(This,lOptName,lOptValue,nLevel)	\
    (This)->lpVtbl -> SetSockOpt(This,lOptName,lOptValue,nLevel)

#define ISktClient_GetSockOpt(This,lOptName,nLevel,plOptValue)	\
    (This)->lpVtbl -> GetSockOpt(This,lOptName,nLevel,plOptValue)

#define ISktClient_GetHostByAddr(This,bstrIPAddr,lAddrFormat,bBlocking,phHandle,pbstrAlias,pbstrHostName)	\
    (This)->lpVtbl -> GetHostByAddr(This,bstrIPAddr,lAddrFormat,bBlocking,phHandle,pbstrAlias,pbstrHostName)

#define ISktClient_GetRtn(This,plErrInfo)	\
    (This)->lpVtbl -> GetRtn(This,plErrInfo)

#define ISktClient_Disable(This,bDisable)	\
    (This)->lpVtbl -> Disable(This,bDisable)

#define ISktClient_SendText(This,bstrText,bW2A,lFlags,plSent)	\
    (This)->lpVtbl -> SendText(This,bstrText,bW2A,lFlags,plSent)

#define ISktClient_RecvText(This,nLen,bWChar,lFlags,pbstrText)	\
    (This)->lpVtbl -> RecvText(This,nLen,bWChar,lFlags,pbstrText)

#define ISktClient_GetHostByName(This,bstrHost,bBlocking,phHandle,pbstrIPAddr,pbstrAlias,pbstrHostName)	\
    (This)->lpVtbl -> GetHostByName(This,bstrHost,bBlocking,phHandle,pbstrIPAddr,pbstrAlias,pbstrHostName)

#define ISktClient_get_LocalName(This,pbstrLocalName)	\
    (This)->lpVtbl -> get_LocalName(This,pbstrLocalName)

#define ISktClient_get_SocketHandle(This,plSocketHandle)	\
    (This)->lpVtbl -> get_SocketHandle(This,plSocketHandle)

#define ISktClient_get_SendTimeout(This,plSendTimeout)	\
    (This)->lpVtbl -> get_SendTimeout(This,plSendTimeout)

#define ISktClient_put_SendTimeout(This,lSendTimeout)	\
    (This)->lpVtbl -> put_SendTimeout(This,lSendTimeout)

#define ISktClient_get_Instance(This,plInstance)	\
    (This)->lpVtbl -> get_Instance(This,plInstance)

#define ISktClient_get_IsConnected(This,pbVal)	\
    (This)->lpVtbl -> get_IsConnected(This,pbVal)

#define ISktClient_get_Events(This,plEvents)	\
    (This)->lpVtbl -> get_Events(This,plEvents)

#define ISktClient_get_UID(This,pVal)	\
    (This)->lpVtbl -> get_UID(This,pVal)

#define ISktClient_put_UID(This,newVal)	\
    (This)->lpVtbl -> put_UID(This,newVal)

#define ISktClient_get_Password(This,pVal)	\
    (This)->lpVtbl -> get_Password(This,pVal)

#define ISktClient_put_Password(This,newVal)	\
    (This)->lpVtbl -> put_Password(This,newVal)

#define ISktClient_get_RcvTimeout(This,plRcvTimeout)	\
    (This)->lpVtbl -> get_RcvTimeout(This,plRcvTimeout)

#define ISktClient_put_RcvTimeout(This,lRcvTimeout)	\
    (This)->lpVtbl -> put_RcvTimeout(This,lRcvTimeout)

#define ISktClient_get_ConnectTimeout(This,pConnectTimeout)	\
    (This)->lpVtbl -> get_ConnectTimeout(This,pConnectTimeout)

#define ISktClient_put_ConnectTimeout(This,lConnectTimeout)	\
    (This)->lpVtbl -> put_ConnectTimeout(This,lConnectTimeout)

#define ISktClient_get_WinHandle(This,plWinHandle)	\
    (This)->lpVtbl -> get_WinHandle(This,plWinHandle)

#define ISktClient_put_WinHandle(This,lWinHandle)	\
    (This)->lpVtbl -> put_WinHandle(This,lWinHandle)

#endif /* COBJMACROS */


#endif 	/* C style interface */



/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ISktClient_Connect_Proxy( 
    ISktClient __RPC_FAR * This,
    /* [in] */ BSTR bstrHostAddress,
    /* [in] */ long lHostPort,
    /* [defaultvalue][optional][in] */ VARIANT_BOOL bUseMsgPump,
    /* [defaultvalue][optional][in] */ long lSocketType,
    /* [defaultvalue][optional][in] */ long lAddrFormat,
    /* [defaultvalue][optional][in] */ long lProtocol,
    /* [defaultvalue][optional][in] */ BSTR bstrCallerData,
    /* [defaultvalue][optional][out] */ BSTR __RPC_FAR *pbstrCalleeData,
    /* [defaultvalue][optional][in] */ long lLocalPort);


void __RPC_STUB ISktClient_Connect_Stub(
    IRpcStubBuffer *This,
    IRpcChannelBuffer *_pRpcChannelBuffer,
    PRPC_MESSAGE _pRpcMessage,
    DWORD *_pdwStubPhase);


/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ISktClient_Disconnect_Proxy( 
    ISktClient __RPC_FAR * This);


void __RPC_STUB ISktClient_Disconnect_Stub(
    IRpcStubBuffer *This,
    IRpcChannelBuffer *_pRpcChannelBuffer,
    PRPC_MESSAGE _pRpcMessage,
    DWORD *_pdwStubPhase);


/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ISktClient_ShutDown_Proxy( 
    ISktClient __RPC_FAR * This,
    /* [defaultvalue][optional][in] */ long lHow);


void __RPC_STUB ISktClient_ShutDown_Stub(
    IRpcStubBuffer *This,
    IRpcChannelBuffer *_pRpcChannelBuffer,
    PRPC_MESSAGE _pRpcMessage,
    DWORD *_pdwStubPhase);


/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ISktClient_RecvChunk_Proxy( 
    ISktClient __RPC_FAR * This,
    /* [out][in] */ long __RPC_FAR *plLen,
    /* [defaultvalue][optional][in] */ long lFlags,
    /* [retval][out] */ VARIANT __RPC_FAR *pvtData);


void __RPC_STUB ISktClient_RecvChunk_Stub(
    IRpcStubBuffer *This,
    IRpcChannelBuffer *_pRpcChannelBuffer,
    PRPC_MESSAGE _pRpcMessage,
    DWORD *_pdwStubPhase);


/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ISktClient_RecvChunkFrom_Proxy( 
    ISktClient __RPC_FAR * This,
    /* [out][in] */ long __RPC_FAR *plLen,
    /* [defaultvalue][optional][in] */ long lFlags,
    /* [defaultvalue][optional][out] */ BSTR __RPC_FAR *pbstrSrcAddr,
    /* [defaultvalue][optional][out] */ long __RPC_FAR *plPort,
    /* [retval][out] */ VARIANT __RPC_FAR *pvtData);


void __RPC_STUB ISktClient_RecvChunkFrom_Stub(
    IRpcStubBuffer *This,
    IRpcChannelBuffer *_pRpcChannelBuffer,
    PRPC_MESSAGE _pRpcMessage,
    DWORD *_pdwStubPhase);


/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ISktClient_SendChunk_Proxy( 
    ISktClient __RPC_FAR * This,
    /* [in] */ VARIANT vtData,
    /* [defaultvalue][optional][in] */ long lFlags,
    /* [retval][out] */ long __RPC_FAR *plSent);


void __RPC_STUB ISktClient_SendChunk_Stub(
    IRpcStubBuffer *This,
    IRpcChannelBuffer *_pRpcChannelBuffer,
    PRPC_MESSAGE _pRpcMessage,
    DWORD *_pdwStubPhase);


/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ISktClient_SendChunkTo_Proxy( 
    ISktClient __RPC_FAR * This,
    /* [in] */ VARIANT vtData,
    /* [in] */ long lPort,
    /* [defaultvalue][optional][in] */ BSTR bstrAddr,
    /* [defaultvalue][optional][in] */ long lFlags,
    /* [retval][out] */ long __RPC_FAR *plSent);


void __RPC_STUB ISktClient_SendChunkTo_Stub(
    IRpcStubBuffer *This,
    IRpcChannelBuffer *_pRpcChannelBuffer,
    PRPC_MESSAGE _pRpcMessage,
    DWORD *_pdwStubPhase);


/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ISktClient_AsyncSelect_Proxy( 
    ISktClient __RPC_FAR * This,
    /* [in] */ long lNewEvent);


void __RPC_STUB ISktClient_AsyncSelect_Stub(
    IRpcStubBuffer *This,
    IRpcChannelBuffer *_pRpcChannelBuffer,
    PRPC_MESSAGE _pRpcMessage,
    DWORD *_pdwStubPhase);


/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ISktClient_SwitchTo_Proxy( 
    ISktClient __RPC_FAR * This,
    /* [in] */ long lClassID);


void __RPC_STUB ISktClient_SwitchTo_Stub(
    IRpcStubBuffer *This,
    IRpcChannelBuffer *_pRpcChannelBuffer,
    PRPC_MESSAGE _pRpcMessage,
    DWORD *_pdwStubPhase);


/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ISktClient_GetSockAddr_Proxy( 
    ISktClient __RPC_FAR * This,
    /* [optional][out] */ long __RPC_FAR *plSocketPort,
    /* [retval][out] */ BSTR __RPC_FAR *pbstrSockAddress);


void __RPC_STUB ISktClient_GetSockAddr_Stub(
    IRpcStubBuffer *This,
    IRpcChannelBuffer *_pRpcChannelBuffer,
    PRPC_MESSAGE _pRpcMessage,
    DWORD *_pdwStubPhase);


/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ISktClient_IOCtl_Proxy( 
    ISktClient __RPC_FAR * This,
    /* [in] */ long lCommand,
    /* [out][in] */ long __RPC_FAR *plArgment);


void __RPC_STUB ISktClient_IOCtl_Stub(
    IRpcStubBuffer *This,
    IRpcChannelBuffer *_pRpcChannelBuffer,
    PRPC_MESSAGE _pRpcMessage,
    DWORD *_pdwStubPhase);


/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ISktClient_GetPeerName_Proxy( 
    ISktClient __RPC_FAR * This,
    /* [optional][out] */ long __RPC_FAR *plPeerPort,
    /* [retval][out] */ BSTR __RPC_FAR *pbstrPeerName);


void __RPC_STUB ISktClient_GetPeerName_Stub(
    IRpcStubBuffer *This,
    IRpcChannelBuffer *_pRpcChannelBuffer,
    PRPC_MESSAGE _pRpcMessage,
    DWORD *_pdwStubPhase);


/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ISktClient_SetSockOpt_Proxy( 
    ISktClient __RPC_FAR * This,
    /* [in] */ long lOptName,
    /* [in] */ long lOptValue,
    /* [defaultvalue][optional][in] */ short nLevel);


void __RPC_STUB ISktClient_SetSockOpt_Stub(
    IRpcStubBuffer *This,
    IRpcChannelBuffer *_pRpcChannelBuffer,
    PRPC_MESSAGE _pRpcMessage,
    DWORD *_pdwStubPhase);


/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ISktClient_GetSockOpt_Proxy( 
    ISktClient __RPC_FAR * This,
    /* [in] */ long lOptName,
    /* [defaultvalue][optional][in] */ short nLevel,
    /* [retval][out] */ long __RPC_FAR *plOptValue);


void __RPC_STUB ISktClient_GetSockOpt_Stub(
    IRpcStubBuffer *This,
    IRpcChannelBuffer *_pRpcChannelBuffer,
    PRPC_MESSAGE _pRpcMessage,
    DWORD *_pdwStubPhase);


/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ISktClient_GetHostByAddr_Proxy( 
    ISktClient __RPC_FAR * This,
    /* [in] */ BSTR bstrIPAddr,
    /* [defaultvalue][optional][in] */ long lAddrFormat,
    /* [defaultvalue][optional][in] */ VARIANT_BOOL bBlocking,
    /* [defaultvalue][optional][out] */ long __RPC_FAR *phHandle,
    /* [defaultvalue][optional][out] */ BSTR __RPC_FAR *pbstrAlias,
    /* [retval][out] */ BSTR __RPC_FAR *pbstrHostName);


void __RPC_STUB ISktClient_GetHostByAddr_Stub(
    IRpcStubBuffer *This,
    IRpcChannelBuffer *_pRpcChannelBuffer,
    PRPC_MESSAGE _pRpcMessage,
    DWORD *_pdwStubPhase);


/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ISktClient_GetRtn_Proxy( 
    ISktClient __RPC_FAR * This,
    /* [retval][out] */ long __RPC_FAR *plErrInfo);


void __RPC_STUB ISktClient_GetRtn_Stub(
    IRpcStubBuffer *This,
    IRpcChannelBuffer *_pRpcChannelBuffer,
    PRPC_MESSAGE _pRpcMessage,
    DWORD *_pdwStubPhase);


/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ISktClient_Disable_Proxy( 
    ISktClient __RPC_FAR * This,
    /* [defaultvalue][in] */ VARIANT_BOOL bDisable);


void __RPC_STUB ISktClient_Disable_Stub(
    IRpcStubBuffer *This,
    IRpcChannelBuffer *_pRpcChannelBuffer,
    PRPC_MESSAGE _pRpcMessage,
    DWORD *_pdwStubPhase);


/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ISktClient_SendText_Proxy( 
    ISktClient __RPC_FAR * This,
    /* [in] */ BSTR bstrText,
    /* [defaultvalue][optional][in] */ VARIANT_BOOL bW2A,
    /* [defaultvalue][optional][in] */ long lFlags,
    /* [retval][out] */ long __RPC_FAR *plSent);


void __RPC_STUB ISktClient_SendText_Stub(
    IRpcStubBuffer *This,
    IRpcChannelBuffer *_pRpcChannelBuffer,
    PRPC_MESSAGE _pRpcMessage,
    DWORD *_pdwStubPhase);


/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ISktClient_RecvText_Proxy( 
    ISktClient __RPC_FAR * This,
    /* [in] */ long nLen,
    /* [defaultvalue][optional][in] */ VARIANT_BOOL bWChar,
    /* [defaultvalue][optional][in] */ long lFlags,
    /* [retval][out] */ BSTR __RPC_FAR *pbstrText);


void __RPC_STUB ISktClient_RecvText_Stub(
    IRpcStubBuffer *This,
    IRpcChannelBuffer *_pRpcChannelBuffer,
    PRPC_MESSAGE _pRpcMessage,
    DWORD *_pdwStubPhase);


/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ISktClient_GetHostByName_Proxy( 
    ISktClient __RPC_FAR * This,
    /* [in] */ BSTR bstrHost,
    /* [defaultvalue][optional][in] */ VARIANT_BOOL bBlocking,
    /* [defaultvalue][optional][out] */ long __RPC_FAR *phHandle,
    /* [defaultvalue][optional][out] */ BSTR __RPC_FAR *pbstrIPAddr,
    /* [defaultvalue][optional][out] */ BSTR __RPC_FAR *pbstrAlias,
    /* [retval][out] */ BSTR __RPC_FAR *pbstrHostName);


void __RPC_STUB ISktClient_GetHostByName_Stub(
    IRpcStubBuffer *This,
    IRpcChannelBuffer *_pRpcChannelBuffer,
    PRPC_MESSAGE _pRpcMessage,
    DWORD *_pdwStubPhase);


/* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE ISktClient_get_LocalName_Proxy( 
    ISktClient __RPC_FAR * This,
    /* [retval][out] */ BSTR __RPC_FAR *pbstrLocalName);


void __RPC_STUB ISktClient_get_LocalName_Stub(
    IRpcStubBuffer *This,
    IRpcChannelBuffer *_pRpcChannelBuffer,
    PRPC_MESSAGE _pRpcMessage,
    DWORD *_pdwStubPhase);


/* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE ISktClient_get_SocketHandle_Proxy( 
    ISktClient __RPC_FAR * This,
    /* [retval][out] */ long __RPC_FAR *plSocketHandle);


void __RPC_STUB ISktClient_get_SocketHandle_Stub(
    IRpcStubBuffer *This,
    IRpcChannelBuffer *_pRpcChannelBuffer,
    PRPC_MESSAGE _pRpcMessage,
    DWORD *_pdwStubPhase);


/* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE ISktClient_get_SendTimeout_Proxy( 
    ISktClient __RPC_FAR * This,
    /* [retval][out] */ long __RPC_FAR *plSendTimeout);


void __RPC_STUB ISktClient_get_SendTimeout_Stub(
    IRpcStubBuffer *This,
    IRpcChannelBuffer *_pRpcChannelBuffer,
    PRPC_MESSAGE _pRpcMessage,
    DWORD *_pdwStubPhase);


/* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE ISktClient_put_SendTimeout_Proxy( 
    ISktClient __RPC_FAR * This,
    /* [in] */ long lSendTimeout);


void __RPC_STUB ISktClient_put_SendTimeout_Stub(
    IRpcStubBuffer *This,
    IRpcChannelBuffer *_pRpcChannelBuffer,
    PRPC_MESSAGE _pRpcMessage,
    DWORD *_pdwStubPhase);


/* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE ISktClient_get_Instance_Proxy( 
    ISktClient __RPC_FAR * This,
    /* [retval][out] */ long __RPC_FAR *plInstance);


void __RPC_STUB ISktClient_get_Instance_Stub(
    IRpcStubBuffer *This,
    IRpcChannelBuffer *_pRpcChannelBuffer,
    PRPC_MESSAGE _pRpcMessage,
    DWORD *_pdwStubPhase);


/* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE ISktClient_get_IsConnected_Proxy( 
    ISktClient __RPC_FAR * This,
    /* [retval][out] */ VARIANT_BOOL __RPC_FAR *pbVal);


void __RPC_STUB ISktClient_get_IsConnected_Stub(
    IRpcStubBuffer *This,
    IRpcChannelBuffer *_pRpcChannelBuffer,
    PRPC_MESSAGE _pRpcMessage,
    DWORD *_pdwStubPhase);


/* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE ISktClient_get_Events_Proxy( 
    ISktClient __RPC_FAR * This,
    /* [retval][out] */ long __RPC_FAR *plEvents);


void __RPC_STUB ISktClient_get_Events_Stub(
    IRpcStubBuffer *This,
    IRpcChannelBuffer *_pRpcChannelBuffer,
    PRPC_MESSAGE _pRpcMessage,
    DWORD *_pdwStubPhase);


/* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE ISktClient_get_UID_Proxy( 
    ISktClient __RPC_FAR * This,
    /* [retval][out] */ BSTR __RPC_FAR *pVal);


void __RPC_STUB ISktClient_get_UID_Stub(
    IRpcStubBuffer *This,
    IRpcChannelBuffer *_pRpcChannelBuffer,
    PRPC_MESSAGE _pRpcMessage,
    DWORD *_pdwStubPhase);


/* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE ISktClient_put_UID_Proxy( 
    ISktClient __RPC_FAR * This,
    /* [in] */ BSTR newVal);


void __RPC_STUB ISktClient_put_UID_Stub(
    IRpcStubBuffer *This,
    IRpcChannelBuffer *_pRpcChannelBuffer,
    PRPC_MESSAGE _pRpcMessage,
    DWORD *_pdwStubPhase);


/* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE ISktClient_get_Password_Proxy( 
    ISktClient __RPC_FAR * This,
    /* [retval][out] */ BSTR __RPC_FAR *pVal);


void __RPC_STUB ISktClient_get_Password_Stub(
    IRpcStubBuffer *This,
    IRpcChannelBuffer *_pRpcChannelBuffer,
    PRPC_MESSAGE _pRpcMessage,
    DWORD *_pdwStubPhase);


/* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE ISktClient_put_Password_Proxy( 
    ISktClient __RPC_FAR * This,
    /* [in] */ BSTR newVal);


void __RPC_STUB ISktClient_put_Password_Stub(
    IRpcStubBuffer *This,
    IRpcChannelBuffer *_pRpcChannelBuffer,
    PRPC_MESSAGE _pRpcMessage,
    DWORD *_pdwStubPhase);


/* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE ISktClient_get_RcvTimeout_Proxy( 
    ISktClient __RPC_FAR * This,
    /* [retval][out] */ long __RPC_FAR *plRcvTimeout);


void __RPC_STUB ISktClient_get_RcvTimeout_Stub(
    IRpcStubBuffer *This,
    IRpcChannelBuffer *_pRpcChannelBuffer,
    PRPC_MESSAGE _pRpcMessage,
    DWORD *_pdwStubPhase);


/* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE ISktClient_put_RcvTimeout_Proxy( 
    ISktClient __RPC_FAR * This,
    /* [in] */ long lRcvTimeout);


void __RPC_STUB ISktClient_put_RcvTimeout_Stub(
    IRpcStubBuffer *This,
    IRpcChannelBuffer *_pRpcChannelBuffer,
    PRPC_MESSAGE _pRpcMessage,
    DWORD *_pdwStubPhase);


/* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE ISktClient_get_ConnectTimeout_Proxy( 
    ISktClient __RPC_FAR * This,
    /* [retval][out] */ long __RPC_FAR *pConnectTimeout);


void __RPC_STUB ISktClient_get_ConnectTimeout_Stub(
    IRpcStubBuffer *This,
    IRpcChannelBuffer *_pRpcChannelBuffer,
    PRPC_MESSAGE _pRpcMessage,
    DWORD *_pdwStubPhase);


/* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE ISktClient_put_ConnectTimeout_Proxy( 
    ISktClient __RPC_FAR * This,
    /* [in] */ long lConnectTimeout);


void __RPC_STUB ISktClient_put_ConnectTimeout_Stub(
    IRpcStubBuffer *This,
    IRpcChannelBuffer *_pRpcChannelBuffer,
    PRPC_MESSAGE _pRpcMessage,
    DWORD *_pdwStubPhase);


/* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE ISktClient_get_WinHandle_Proxy( 
    ISktClient __RPC_FAR * This,
    /* [retval][out] */ long __RPC_FAR *plWinHandle);


void __RPC_STUB ISktClient_get_WinHandle_Stub(
    IRpcStubBuffer *This,
    IRpcChannelBuffer *_pRpcChannelBuffer,
    PRPC_MESSAGE _pRpcMessage,
    DWORD *_pdwStubPhase);


/* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE ISktClient_put_WinHandle_Proxy( 
    ISktClient __RPC_FAR * This,
    /* [in] */ long lWinHandle);


void __RPC_STUB ISktClient_put_WinHandle_Stub(
    IRpcStubBuffer *This,
    IRpcChannelBuffer *_pRpcChannelBuffer,
    PRPC_MESSAGE _pRpcMessage,
    DWORD *_pdwStubPhase);



#endif 	/* __ISktClient_INTERFACE_DEFINED__ */



#ifndef __CLIENTSOCKETLib_LIBRARY_DEFINED__
#define __CLIENTSOCKETLib_LIBRARY_DEFINED__

/* library CLIENTSOCKETLib */
/* [helpstring][version][uuid] */ 

typedef 
enum tagClientSocketDefines
    {	g_nSocketSvrSecurityCheckFailed	= 0x89000000,
	g_nClientSock_Warning	= 0x8000000,
	g_nMaxUIDLen	= 128,
	g_nMaxPasswordLen	= 128,
	g_nSockErrOffset	= 0x80000000,
	g_nSockErrOffsetSvr	= 0x88000000,
	g_nCREATE_START_SOCK_CLIENT	= 0xa00000aa
    }	ClientSocketDefines;

typedef 
enum tagSockClientMsg
    {	g_nSocketClientMsg	= 0x781
    }	SockClientMsg;

typedef 
enum tagSockLevel
    {	g_nSockLevel	= 0xffff
    }	SockLevel;

typedef 
enum tagSocketType
    {	SockStream	= 1,
	SockDgram	= 2,
	SockRaw	= 3,
	SockRdm	= 4,
	SockSeqpacket	= 5
    }	SocketType;

typedef 
enum tagSocketEvent
    {	FdREAD	= 1,
	FdWRITE	= 2,
	FdCONNECT	= 16,
	FdCLOSE	= 32
    }	SocketEvent;

typedef 
enum tagAddressFormat
    {	PfUNSPEC	= 0,
	PfUNIX	= 1,
	PfINET	= 2,
	PfIMPLINK	= 3,
	PfPUP	= 4,
	PfCHAOS	= 5,
	PfIPX	= 6,
	PfNS	= PfIPX,
	PfISO	= 7,
	PfOSI	= PfISO,
	PfECMA	= 8,
	PfDATAKIT	= 9,
	PfCCITT	= 10,
	PfSNA	= 11,
	PfDECnet	= 12,
	PfDLI	= 13,
	PfLAT	= 14,
	PfHYLINK	= 15,
	PfAPPLETALK	= 16,
	PfNETBIOS	= 17,
	PfVOICEVIEW	= 18,
	PfFIREFOX	= 19,
	PfUNKNOWN1	= 20,
	PfBAN	= 21,
	PfMAX	= 22
    }	AddressFormat;


EXTERN_C const IID LIBID_CLIENTSOCKETLib;

#ifndef ___ISktClientEvents_DISPINTERFACE_DEFINED__
#define ___ISktClientEvents_DISPINTERFACE_DEFINED__

/* dispinterface _ISktClientEvents */
/* [helpstring][uuid] */ 


EXTERN_C const IID DIID__ISktClientEvents;

#if defined(__cplusplus) && !defined(CINTERFACE)

    MIDL_INTERFACE("726360BE-AE26-11D5-8A74-002078B038BB")
    _ISktClientEvents : public IDispatch
    {
    };
    
#else 	/* C style interface */

    typedef struct _ISktClientEventsVtbl
    {
        BEGIN_INTERFACE
        
        HRESULT ( STDMETHODCALLTYPE __RPC_FAR *QueryInterface )( 
            _ISktClientEvents __RPC_FAR * This,
            /* [in] */ REFIID riid,
            /* [iid_is][out] */ void __RPC_FAR *__RPC_FAR *ppvObject);
        
        ULONG ( STDMETHODCALLTYPE __RPC_FAR *AddRef )( 
            _ISktClientEvents __RPC_FAR * This);
        
        ULONG ( STDMETHODCALLTYPE __RPC_FAR *Release )( 
            _ISktClientEvents __RPC_FAR * This);
        
        HRESULT ( STDMETHODCALLTYPE __RPC_FAR *GetTypeInfoCount )( 
            _ISktClientEvents __RPC_FAR * This,
            /* [out] */ UINT __RPC_FAR *pctinfo);
        
        HRESULT ( STDMETHODCALLTYPE __RPC_FAR *GetTypeInfo )( 
            _ISktClientEvents __RPC_FAR * This,
            /* [in] */ UINT iTInfo,
            /* [in] */ LCID lcid,
            /* [out] */ ITypeInfo __RPC_FAR *__RPC_FAR *ppTInfo);
        
        HRESULT ( STDMETHODCALLTYPE __RPC_FAR *GetIDsOfNames )( 
            _ISktClientEvents __RPC_FAR * This,
            /* [in] */ REFIID riid,
            /* [size_is][in] */ LPOLESTR __RPC_FAR *rgszNames,
            /* [in] */ UINT cNames,
            /* [in] */ LCID lcid,
            /* [size_is][out] */ DISPID __RPC_FAR *rgDispId);
        
        /* [local] */ HRESULT ( STDMETHODCALLTYPE __RPC_FAR *Invoke )( 
            _ISktClientEvents __RPC_FAR * This,
            /* [in] */ DISPID dispIdMember,
            /* [in] */ REFIID riid,
            /* [in] */ LCID lcid,
            /* [in] */ WORD wFlags,
            /* [out][in] */ DISPPARAMS __RPC_FAR *pDispParams,
            /* [out] */ VARIANT __RPC_FAR *pVarResult,
            /* [out] */ EXCEPINFO __RPC_FAR *pExcepInfo,
            /* [out] */ UINT __RPC_FAR *puArgErr);
        
        END_INTERFACE
    } _ISktClientEventsVtbl;

    interface _ISktClientEvents
    {
        CONST_VTBL struct _ISktClientEventsVtbl __RPC_FAR *lpVtbl;
    };

    

#ifdef COBJMACROS


#define _ISktClientEvents_QueryInterface(This,riid,ppvObject)	\
    (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)

#define _ISktClientEvents_AddRef(This)	\
    (This)->lpVtbl -> AddRef(This)

#define _ISktClientEvents_Release(This)	\
    (This)->lpVtbl -> Release(This)


#define _ISktClientEvents_GetTypeInfoCount(This,pctinfo)	\
    (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo)

#define _ISktClientEvents_GetTypeInfo(This,iTInfo,lcid,ppTInfo)	\
    (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo)

#define _ISktClientEvents_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId)	\
    (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId)

#define _ISktClientEvents_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr)	\
    (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr)

#endif /* COBJMACROS */


#endif 	/* C style interface */


#endif 	/* ___ISktClientEvents_DISPINTERFACE_DEFINED__ */


EXTERN_C const CLSID CLSID_SktClient;

#ifdef __cplusplus

class DECLSPEC_UUID("696A510C-B10B-11D5-8A80-002078B038BB")
SktClient;
#endif
#endif /* __CLIENTSOCKETLib_LIBRARY_DEFINED__ */

/* Additional Prototypes for ALL interfaces */

unsigned long             __RPC_USER  BSTR_UserSize(     unsigned long __RPC_FAR *, unsigned long            , BSTR __RPC_FAR * ); 
unsigned char __RPC_FAR * __RPC_USER  BSTR_UserMarshal(  unsigned long __RPC_FAR *, unsigned char __RPC_FAR *, BSTR __RPC_FAR * ); 
unsigned char __RPC_FAR * __RPC_USER  BSTR_UserUnmarshal(unsigned long __RPC_FAR *, unsigned char __RPC_FAR *, BSTR __RPC_FAR * ); 
void                      __RPC_USER  BSTR_UserFree(     unsigned long __RPC_FAR *, BSTR __RPC_FAR * ); 

unsigned long             __RPC_USER  VARIANT_UserSize(     unsigned long __RPC_FAR *, unsigned long            , VARIANT __RPC_FAR * ); 
unsigned char __RPC_FAR * __RPC_USER  VARIANT_UserMarshal(  unsigned long __RPC_FAR *, unsigned char __RPC_FAR *, VARIANT __RPC_FAR * ); 
unsigned char __RPC_FAR * __RPC_USER  VARIANT_UserUnmarshal(unsigned long __RPC_FAR *, unsigned char __RPC_FAR *, VARIANT __RPC_FAR * ); 
void                      __RPC_USER  VARIANT_UserFree(     unsigned long __RPC_FAR *, VARIANT __RPC_FAR * ); 

/* end of Additional Prototypes */

#ifdef __cplusplus
}
#endif

#endif

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

Share

About the Author

Yuancai (Charlie) Ye
Web Developer
United States United States
Yuancai (Charlie) Ye, an experienced software engineer, lives in Atlanta, Georgia. He is an expert at OLEDB consumer and created a powerful data accessing libarary at the site http://www.udaparts.com. He has been working at SocketPro written from batching, asynchrony and parallel computation for more than three years. Visual C++, C# and ASP.NET are his favorite development environments.

You may also be interested in...

Pro
Pro
| Advertise | Privacy | Terms of Use | Mobile
Web02 | 2.8.160919.1 | Last Updated 24 Feb 2002
Article Copyright 2002 by Yuancai (Charlie) Ye
Everything else Copyright © CodeProject, 1999-2016
Layout: fixed | fluid