Click here to Skip to main content
16,006,006 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Generalgetting address of Internet Shortcut Pin
K. Shaffer22-Nov-03 9:04
K. Shaffer22-Nov-03 9:04 
GeneralRe: getting address of Internet Shortcut Pin
K. Shaffer22-Nov-03 9:13
K. Shaffer22-Nov-03 9:13 
GeneralRe: getting address of Internet Shortcut Pin
Michael Dunn22-Nov-03 16:12
sitebuilderMichael Dunn22-Nov-03 16:12 
Generalail.comSocket not blocking Pin
Shenthil22-Nov-03 8:59
Shenthil22-Nov-03 8:59 
GeneralRe: ail.comSocket not blocking Pin
Peter Molnar22-Nov-03 14:20
Peter Molnar22-Nov-03 14:20 
GeneralRe: ail.comSocket not blocking Pin
Gabriel.P.G22-Nov-03 14:53
Gabriel.P.G22-Nov-03 14:53 
GeneralSocket not blocking Pin
Shenthil23-Nov-03 17:42
Shenthil23-Nov-03 17:42 
GeneralRe: Socket not blocking Pin
Gabriel.P.G24-Nov-03 14:00
Gabriel.P.G24-Nov-03 14:00 
Shenthil,

I would like to help but i just know about plain sockets. I don´t have any idea about how they work in MFC, even less what the problem could be.

About the subject of the original post (the socket not bloking,) CSocket inherits from CAsyncSocket which is asynchronous, and taking a quick glance at the code <sockcore.cpp> you can see CSocket simulates a blocking socket using a loop. But i don´t think this is the cause of the problem.

If your threads are just pumping bytes from a network connection and you need to work directly with them you are better off using and alternative to CSocket, because there is a lot of overhead in the way they work (asyncrhonous notifications through a windows message queue) which was the only option when they appeared in win3.1 because the apps were single threaded and there was no real multitasking in the OS

Gabriel





Old C programmers never die. They just cast into void
GeneralRe: Socket not blocking Pin
Shenthil24-Nov-03 20:45
Shenthil24-Nov-03 20:45 
GeneralRe: Socket not blocking Pin
Gabriel.P.G25-Nov-03 16:12
Gabriel.P.G25-Nov-03 16:12 
GeneralRe: Socket not blocking Pin
Shenthil26-Nov-03 19:26
Shenthil26-Nov-03 19:26 
GeneralRe: Socket not blocking Pin
Gabriel.P.G27-Nov-03 14:25
Gabriel.P.G27-Nov-03 14:25 
GeneralRe: Socket not blocking Pin
Shenthil27-Nov-03 17:51
Shenthil27-Nov-03 17:51 
GeneralDisable keyboard or mouse on desktop (All Dialogs) Pin
Amin Kha.22-Nov-03 8:34
Amin Kha.22-Nov-03 8:34 
GeneralRe: Disable keyboard or mouse on desktop (All Dialogs) Pin
John R. Shaw22-Nov-03 11:52
John R. Shaw22-Nov-03 11:52 
QuestionHow to disable keyboard or mouse on desktop (All Dialogs) Pin
Amin Kha.22-Nov-03 8:28
Amin Kha.22-Nov-03 8:28 
GeneralWindow Mode question Pin
ansontong22-Nov-03 5:02
ansontong22-Nov-03 5:02 
GeneralRe: Window Mode question Pin
John R. Shaw22-Nov-03 7:30
John R. Shaw22-Nov-03 7:30 
GeneralSending SMS messages using Visual c++ Pin
nolanl22-Nov-03 4:24
nolanl22-Nov-03 4:24 
GeneralRe: Sending SMS messages using Visual c++ Pin
Joaquín M López Muñoz22-Nov-03 8:23
Joaquín M López Muñoz22-Nov-03 8:23 
GeneralRe: Sending SMS messages using Visual c++ Pin
Peter Molnar22-Nov-03 13:23
Peter Molnar22-Nov-03 13:23 
QuestionIs typedef'd or not? Pin
Dominik Reichl22-Nov-03 1:14
Dominik Reichl22-Nov-03 1:14 
AnswerRe: Is typedef'd or not? Pin
Ian Darling22-Nov-03 3:12
Ian Darling22-Nov-03 3:12 
AnswerRe: Is typedef'd or not? Pin
Jörgen Sigvardsson22-Nov-03 4:05
Jörgen Sigvardsson22-Nov-03 4:05 
GeneralRe: Is typedef'd or not? Pin
Dominik Reichl22-Nov-03 4:24
Dominik Reichl22-Nov-03 4:24 

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.