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

C / C++ / MFC

 
AnswerRe: Timer configuration in VC++ Pin
#realJSOP22-Feb-07 23:44
professional#realJSOP22-Feb-07 23:44 
AnswerRe: Timer configuration in VC++ Pin
cmk23-Feb-07 5:47
cmk23-Feb-07 5:47 
QuestionSocket question: When does a client connect to a server? Pin
FreeCastle22-Feb-07 8:59
FreeCastle22-Feb-07 8:59 
AnswerRe: Socket question: When does a client connect to a server? Pin
Mark Salsbery22-Feb-07 9:13
Mark Salsbery22-Feb-07 9:13 
GeneralRe: Socket question: When does a client connect to a server? Pin
FreeCastle22-Feb-07 9:57
FreeCastle22-Feb-07 9:57 
GeneralRe: Socket question: When does a client connect to a server? Pin
led mike22-Feb-07 10:02
led mike22-Feb-07 10:02 
GeneralRe: Socket question: When does a client connect to a server? Pin
FreeCastle22-Feb-07 10:07
FreeCastle22-Feb-07 10:07 
GeneralRe: Socket question: When does a client connect to a server? Pin
Mark Salsbery22-Feb-07 10:18
Mark Salsbery22-Feb-07 10:18 
You're welcome (from led mike) Smile | :)

FreeCastle wrote:
because when I call closesocket() then I also have to create the socket again, before calling the connect function.


That is part of the overhead of using that method.


I recommend:

Also follow led mike's link into Graceful Shutdown, Linger Options, and Socket Closure[^] for more general info.

Then check out DisconnectEx[^] for disconnecting a socket and reusing it (on XP+).

Cheers,
Mark


"Do you know what it's like to fall in the mud and get kicked... in the head... with an iron boot?
Of course you don't, no one does. It never happens. It's a dumb question... skip it."

GeneralRe: Socket question: When does a client connect to a server? Pin
FreeCastle22-Feb-07 11:12
FreeCastle22-Feb-07 11:12 
Questionproject on face detection using webcam.. Pin
mannur22-Feb-07 7:59
mannur22-Feb-07 7:59 
AnswerRe: project on face detection using webcam.. Pin
Chris Losinger22-Feb-07 10:31
professionalChris Losinger22-Feb-07 10:31 
QuestionPreventing Escape key from closing dialog window Pin
Neil scsn22-Feb-07 7:51
Neil scsn22-Feb-07 7:51 
AnswerRe: Preventing Escape key from closing dialog window [modified] Pin
Mark Salsbery22-Feb-07 8:35
Mark Salsbery22-Feb-07 8:35 
GeneralRe: Preventing Escape key from closing dialog window Pin
prasad_som22-Feb-07 18:44
prasad_som22-Feb-07 18:44 
GeneralRe: Preventing Escape key from closing dialog window Pin
Mark Salsbery22-Feb-07 20:38
Mark Salsbery22-Feb-07 20:38 
GeneralRe: Preventing Escape key from closing dialog window Pin
prasad_som22-Feb-07 21:34
prasad_som22-Feb-07 21:34 
GeneralRe: Preventing Escape key from closing dialog window Pin
Rajesh R Subramanian22-Feb-07 22:07
professionalRajesh R Subramanian22-Feb-07 22:07 
GeneralRe: Preventing Escape key from closing dialog window Pin
Mark Salsbery23-Feb-07 6:12
Mark Salsbery23-Feb-07 6:12 
GeneralRe: Preventing Escape key from closing dialog window [modified] Pin
Rajesh R Subramanian22-Feb-07 22:01
professionalRajesh R Subramanian22-Feb-07 22:01 
GeneralRe: Preventing Escape key from closing dialog window Pin
Mark Salsbery23-Feb-07 6:29
Mark Salsbery23-Feb-07 6:29 
AnswerRe: Preventing Escape key from closing dialog window Pin
Newbie0022-Feb-07 8:45
Newbie0022-Feb-07 8:45 
AnswerRe: Preventing Escape key from closing dialog window Pin
Cedric Moonen22-Feb-07 9:37
Cedric Moonen22-Feb-07 9:37 
AnswerRe: Preventing Escape key from closing dialog window Pin
ThatsAlok22-Feb-07 17:34
ThatsAlok22-Feb-07 17:34 
GeneralRe: Preventing Escape key from closing dialog window Pin
Rajesh R Subramanian22-Feb-07 18:21
professionalRajesh R Subramanian22-Feb-07 18:21 
GeneralRe: Preventing Escape key from closing dialog window Pin
ThatsAlok22-Feb-07 19:04
ThatsAlok22-Feb-07 19:04 

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.