We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I want to use customized client class pointer in CTcpServer.
/* Customized client class */ class MyClient { ... } /* CTcpServer OnAccept */ EnHandleResult MyServer::OnAccept(ITcpServer* pSender, CONNID dwConnID, UINT_PTR soClient) { ... MyClient *ptr = new MyClient(); // Create Client Point // I want to register **ptr** to Server. return HR_OK; } EnHandleResult MyServer::OnReceive(ITcpServer* pSender, CONNID dwConnID, const BYTE* pData, int iLength) { ... // I want to get **Client Class Ptr** from Server. return HR_OK; }
What should I do?
The text was updated successfully, but these errors were encountered:
Sorry, something went wrong.
Yes, use SetConnectionExtra() to hold the custom data. refer to \Windows\Demo\HttpProxy
\Windows\Demo\HttpProxy
No branches or pull requests
I want to use customized client class pointer in CTcpServer.
What should I do?
The text was updated successfully, but these errors were encountered: