Click here to Skip to main content
15,924,193 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralTop-Level Menu Item Data Pin
comrade25-Dec-02 12:17
comrade25-Dec-02 12:17 
GeneralClient/Server advice Pin
Rickard Andersson2025-Dec-02 11:55
Rickard Andersson2025-Dec-02 11:55 
GeneralRe: Client/Server advice Pin
Todd C. Wilson25-Dec-02 17:38
Todd C. Wilson25-Dec-02 17:38 
GeneralRe: Client/Server advice Pin
Rickard Andersson2025-Dec-02 23:31
Rickard Andersson2025-Dec-02 23:31 
GeneralRe: Client/Server advice Pin
Moak25-Dec-02 19:28
Moak25-Dec-02 19:28 
GeneralRe: Client/Server advice Pin
Rickard Andersson2025-Dec-02 23:25
Rickard Andersson2025-Dec-02 23:25 
GeneralIncredible problem with MFC socket Pin
s_k25-Dec-02 11:52
s_k25-Dec-02 11:52 
GeneralRe: Incredible problem with MFC socket Pin
Todd C. Wilson25-Dec-02 17:36
Todd C. Wilson25-Dec-02 17:36 
MFC Sockets are worthless for anything I (and lots of other people) would consder "real use". The problem is that they are still based on the Windows 3.1 sockets design, in that they need to have access to a message handler and etc.
What you're experiancing is probably message stavaration between the socket handlers and the windows handlers - you've got one socket loading down the handler, and none of the other ones can efecitivly get into it. For light use, MFC sockets can work on - for example, look at the Microsoft MSDN exampe "Chatsvr" which is a trivial messaging app using CSockets.
For more robust sockets, I would look into some of the other things here on CodeProject, in the Networking code section. You should also consider using threads to handle socket actions, so that one socket will not load down the system. This is the method I've used in a high-end 1000+ client server - one thread for each client SOCKET handle (no MFC in it).
WarFTP is open sourced I think, and is a Windows app, you might want to give that a look-see.
That's my $0.02



"Perhaps the truth is less interesting than the facts?" -- Amy Weiss, RIAA's Senior Vice President of Communications.
It's the new math! 421 == 156 !

GeneralRe: Incredible problem with MFC socket Pin
s_k26-Dec-02 1:25
s_k26-Dec-02 1:25 
GeneralRe: Incredible problem with MFC socket Pin
Moak25-Dec-02 19:43
Moak25-Dec-02 19:43 
GeneralRe: Incredible problem with MFC socket Pin
s_k26-Dec-02 1:30
s_k26-Dec-02 1:30 
GeneralRe: Incredible problem with MFC socket Pin
Moak26-Dec-02 3:10
Moak26-Dec-02 3:10 
GeneralRe: Incredible problem with MFC socket Pin
s_k26-Dec-02 3:17
s_k26-Dec-02 3:17 
GeneralRe: Incredible problem with MFC socket Pin
Moak26-Dec-02 3:55
Moak26-Dec-02 3:55 
GeneralRe: Incredible problem with MFC socket Pin
s_k26-Dec-02 4:06
s_k26-Dec-02 4:06 
GeneralRe: Incredible problem with MFC socket Pin
Moak26-Dec-02 7:25
Moak26-Dec-02 7:25 
GeneralMoving DLL projects into VC++ .NET Pin
Bartosz Bien25-Dec-02 11:36
Bartosz Bien25-Dec-02 11:36 
GeneralRe: Moving DLL projects into VC++ .NET Pin
Bartosz Bien25-Dec-02 12:12
Bartosz Bien25-Dec-02 12:12 
GeneralRight aligned Combo box !!! Pin
Hadi Rezaee25-Dec-02 11:15
Hadi Rezaee25-Dec-02 11:15 
GeneralUsing Office xp(2000) Chart Pin
Majid Shahabfar25-Dec-02 10:12
Majid Shahabfar25-Dec-02 10:12 
GeneralUnderstanding PreTranslateMessage() Pin
Moak25-Dec-02 6:13
Moak25-Dec-02 6:13 
GeneralRe: Understanding PreTranslateMessage() Pin
567890123425-Dec-02 19:21
567890123425-Dec-02 19:21 
Generaldll question Pin
Shah Shehpori25-Dec-02 4:08
sussShah Shehpori25-Dec-02 4:08 
GeneralRe: dll question Pin
Michael Dunn25-Dec-02 5:53
sitebuilderMichael Dunn25-Dec-02 5:53 
GeneralRe: dll question Pin
Shah Shehpori25-Dec-02 7:30
sussShah Shehpori25-Dec-02 7:30 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.