- socketpro.zip
- netdemo
- bin
- DNSResolver.exe
- GetHtml.exe
- IONet.exe
- MultipleSvs.exe
- MultiSvs.exe
- MultiSvsClient.exe
- NetBaseR.dll
- SafeSocket.exe
- SecureSocket.exe
- SpeedTest.exe
- ClientComponents
- ClientSocket.dll
- DResolver.dll
- SBroker.dll
- SockFile.dll
- help
- include
- lib
- NetBaseR.lib
- MultiSvsSample
- Samples
- client
- DnsSvs
- GetHTML
- InternetIO
- MultiSvsSample
- SecureSocket
- SpeedTest
- DResolver
- Svr
- SvrComponents
- MultipleSvs.exe
- MultiSvs.exe
- NetBaseR.dll
- SafeSocket.exe
- trash
|
// MySocketSvr.h: interface for the CMySocketSvr class.
//
//////////////////////////////////////////////////////////////////////
#if !defined(AFX_MYSOCKETSVR_H__AE5AF9C6_A2CD_11D5_8A5D_002078B038BB__INCLUDED_)
#define AFX_MYSOCKETSVR_H__AE5AF9C6_A2CD_11D5_8A5D_002078B038BB__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include "AsySocket.h"
class CMySocketSvr : public CSockWithThreadSvr
{
public:
virtual CAsySocketClient* CreateClientSocket();
virtual void OnAccept(WPARAM hSocket, LPARAM lParam);
static int CALLBACK ConditionFunc(LPWSABUF lpCallerId, LPWSABUF lpCallerData, LPQOS lpSQOS, LPQOS lpGQOS, LPWSABUF lpCalleeId, LPWSABUF lpCalleeData, GROUP *g, DWORD dwCallbackData);
protected:
DWORD m_dwCallbackData;
SOCKADDR m_SockAddr;
int m_nSockAddrLen;
};
#endif // !defined(AFX_MYSOCKETSVR_H__AE5AF9C6_A2CD_11D5_8A5D_002078B038BB__INCLUDED_)
|
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.
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
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.