Click here to Skip to main content
15,886,873 members
Articles / High Performance Computing / Parallel Processing

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

Rate me:
Please Sign up or sign in to vote.
4.48/5 (19 votes)
23 Feb 200211 min read 179.6K   6.3K   59  
A set of socket libraries for writing distributed computing applications over the internet
// SPassword.h : Declaration of the CSPassword

#ifndef __SPASSWORD_H_
#define __SPASSWORD_H_

#include "resource.h"       // main symbols

extern CSimpleArray<CLSID> g_arrPasswords;
/////////////////////////////////////////////////////////////////////////////
// CSPassword
class ATL_NO_VTABLE CSPassword : 
	public CComObjectRootEx<CComMultiThreadModel>,
	public CComCoClass<CSPassword, &CLSID_SPassword>,
	public IDispatchImpl<ISPassword, &IID_ISPassword, &LIBID_SAFESOCKETLib>
{
public:
	CSPassword()
	{
	}

DECLARE_REGISTRY_RESOURCEID(IDR_SPASSWORD)

DECLARE_PROTECT_FINAL_CONSTRUCT()

BEGIN_COM_MAP(CSPassword)
	COM_INTERFACE_ENTRY(ISPassword)
	COM_INTERFACE_ENTRY(IDispatch)
END_COM_MAP()
	
// ISPassword
public:
	STDMETHOD(GetServerAndPort)(/*[out]*/BSTR *pbstrHost, /*[out]*/long *plPort);
	STDMETHOD(GetDynamicPassword)(/*[out, retval]*/BSTR *pbstrPassword);
};

#endif //__SPASSWORD_H_

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
Software Developer (Senior)
United States United States
Yuancai (Charlie) Ye, an experienced C/C++ software engineer, lives in Atlanta, Georgia. He is an expert at continuous inline request/result batching, real-time stream processing, asynchronous data transferring and parallel computation for the best communication throughput and latency. He has been working at SocketPro (https://github.com/udaparts/socketpro) for more than fifteen years.

Comments and Discussions