david-maw / StreamSSL

The StreamSSL sample described in CodeProject
Other
48 stars 24 forks source link

The members ActualSocket and m_hStopEvent of CActiveSock should be protected or public #20

Closed 0ric1 closed 5 years ago

0ric1 commented 5 years ago

The members ActualSocket and m_hStopEvent of class CActiveSock should be protected or public so that a derived class has access to it - same as in MFC's CAsyncSocket. So it would be possible to write a class derived from CActiveSock that handles the WM_SOCKET_NOTIFY messages FD_READ, FD_WRITE, FD_CLOSE, .. and calls overridable callbacks OnSend, OnReceive, OnConnect, ... similar to CAsyncSocket.

Thomas-Haase commented 5 years ago

Yes, that sounds very plausible.