Click here to Skip to main content
15,911,707 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: function WM_ERASEBKGND Pin
Hamid_RT26-Jun-06 1:43
Hamid_RT26-Jun-06 1:43 
AnswerRe: function WM_ERASEBKGND Pin
ovidiucucu26-Jun-06 2:11
ovidiucucu26-Jun-06 2:11 
AnswerRe: function WM_ERASEBKGND Pin
Viorel.26-Jun-06 1:46
Viorel.26-Jun-06 1:46 
Questionclient connection failure! Pin
raserove26-Jun-06 1:16
raserove26-Jun-06 1:16 
AnswerRe: client connection failure! Pin
Sarath C26-Jun-06 1:21
Sarath C26-Jun-06 1:21 
AnswerRe: client connection failure! Pin
James R. Twine26-Jun-06 1:49
James R. Twine26-Jun-06 1:49 
GeneralRe: client connection failure! Pin
raserove26-Jun-06 2:32
raserove26-Jun-06 2:32 
GeneralRe: client connection failure! Pin
James R. Twine26-Jun-06 2:52
James R. Twine26-Jun-06 2:52 
   Yes, in the server app.  When a client disconnects, make sure that you are calling closesocket(...) on the socket handle you were communicating on (or that whatever wrappers you are using are doing that).

   The normal flow of operations should be something like:
SomeSocket = socket(...)
bind( SomeSocket, ... )
listen( SomeSocket, SOMAXCONN )
while( ClientConn = accept( SomeSocket, ... ) != INVALID_SOCKET )
{
    // Process Client Connection
    closesocket( ClientConn )
}
closesocket( SomeSocket )

   The above kinds-sorta-pesudo-code gives a simple idea.

   Peace!

-=- James
If you think it costs a lot to do it right, just wait until you find out how much it costs to do it wrong!
Avoid driving a vehicle taller than you and remember that Professional Driver on Closed Course does not mean your Dumb Ass on a Public Road!
DeleteFXPFiles & CheckFavorites
(Please rate this post!)
Questionglobal variable [modified]\urgent Pin
amit.code26-Jun-06 0:10
amit.code26-Jun-06 0:10 
AnswerRe: global variable [modified]\urgent Pin
Naveen26-Jun-06 0:36
Naveen26-Jun-06 0:36 
GeneralRe: global variable [modified]\urgent Pin
amit.code26-Jun-06 0:48
amit.code26-Jun-06 0:48 
GeneralRe: global variable [modified]\urgent Pin
kakan26-Jun-06 0:51
professionalkakan26-Jun-06 0:51 
GeneralRe: global variable [modified]\urgent Pin
Naveen26-Jun-06 1:07
Naveen26-Jun-06 1:07 
AnswerRe: global variable [modified]\urgent Pin
kakan26-Jun-06 0:44
professionalkakan26-Jun-06 0:44 
GeneralRe: global variable [modified]\urgent Pin
Naveen26-Jun-06 1:03
Naveen26-Jun-06 1:03 
GeneralRe: global variable [modified]\urgent Pin
kakan26-Jun-06 1:15
professionalkakan26-Jun-06 1:15 
GeneralRe: global variable [modified]\urgent Pin
Naveen26-Jun-06 1:20
Naveen26-Jun-06 1:20 
GeneralRe: global variable [modified]\urgent Pin
kakan26-Jun-06 1:22
professionalkakan26-Jun-06 1:22 
GeneralRe: global variable [modified]\urgent Pin
amit.code26-Jun-06 1:05
amit.code26-Jun-06 1:05 
GeneralRe: global variable [modified]\urgent Pin
kakan26-Jun-06 1:16
professionalkakan26-Jun-06 1:16 
GeneralRe: global variable [modified]\urgent Pin
amit.code26-Jun-06 1:19
amit.code26-Jun-06 1:19 
GeneralRe: global variable [modified]\urgent Pin
kakan26-Jun-06 1:24
professionalkakan26-Jun-06 1:24 
QuestionSelect correct product version when double clicking from explorer Pin
benylegg226-Jun-06 0:06
benylegg226-Jun-06 0:06 
AnswerRe: Select correct product version when double clicking from explorer Pin
kakan26-Jun-06 0:11
professionalkakan26-Jun-06 0:11 
Questionhow to change button color in any dialog based form Pin
ashish dogra25-Jun-06 23:56
ashish dogra25-Jun-06 23:56 

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.