david-maw / StreamSSL

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

CActiveSock should be derived public from CBaseSock instead of private #57

Closed 0ric1 closed 5 years ago

0ric1 commented 5 years ago

else I can't access the ActualSocket member of the CBaseSock class any more - I use a class derived from CActiveSock that needs access to ActualSocket

david-maw commented 5 years ago

Inheriting private was a deliberate choice because I did not want to expose the other protected members of CBaseSock to classes that inherited from CActiveSock / CPassiveSock. I've explicitly made ActualSocket and m_hStopEvent inheritable protected from CActiveSock / CPassiveSock, hopefully that'll solve your problem.