🎉 Celebrating 25 Years of GameDev.net! 🎉

Not many can claim 25 years on the Internet! Join us in celebrating this milestone. Learn more about our history, and thank you for being a part of our community!

Help with CAsyncSocket class

Started by
-1 comments, last by [GaNoN] 22 years, 12 months ago
This isnt exactly aimed at games.. but programming in general.. class Site{ public: char hostname[64]; CAsyncSocket Socket; int port; void DoConnect(); }; eg. ive got the above class.. how would i make CAsyncSocket(or any other derived class from it) to run the command DoConnect(); when it is connected?? I know its possible to derive a new class and edit OnConnect(int nErrorCode).. however i want to be able to have this call DoConnect of the Site class, this is to make it possible to have say 100Site classes all operating independently.. Thanks for any help ;>

This topic is closed to new replies.

Advertisement