mrutherford
Programmer
Hi, i'm a convert from Java and am weak at general MFC howto. Sample apps, such as those on MSDN & codeproject, make sense to me in isolation when they deal with a particular subject, but im trying to figure the following out:
As part of a simple Client/Server app, my server is built using the MFC app wizard. It is a simple Dialog based app(not SDI nor MDI). Code is divided chiefly into 2 classes: the CxxxServerApp and CxxxServerDlg.
I want to set it up so that it listens to incoming requests immediately, and ideally, passes them off to separate threads. Should I create another container class for this work (specifically the thread stuff) and where in the app should (or can) I set up the CSocket member functions listen() and accept()?
any help greatly appreciated.
As part of a simple Client/Server app, my server is built using the MFC app wizard. It is a simple Dialog based app(not SDI nor MDI). Code is divided chiefly into 2 classes: the CxxxServerApp and CxxxServerDlg.
I want to set it up so that it listens to incoming requests immediately, and ideally, passes them off to separate threads. Should I create another container class for this work (specifically the thread stuff) and where in the app should (or can) I set up the CSocket member functions listen() and accept()?
any help greatly appreciated.