Click here to Skip to main content
15,920,508 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: CMap problem Pin
ThatsAlok31-Jan-07 20:08
ThatsAlok31-Jan-07 20:08 
GeneralRe: CMap problem Pin
~Worried!31-Jan-07 21:26
~Worried!31-Jan-07 21:26 
Questionvtable pointer initialize failed! [modified] Pin
white jungle31-Jan-07 17:42
white jungle31-Jan-07 17:42 
AnswerRe: vtable pointer initialize failed! Pin
Stephen Hewitt31-Jan-07 18:29
Stephen Hewitt31-Jan-07 18:29 
GeneralRe: vtable pointer initialize failed! Pin
white jungle31-Jan-07 18:42
white jungle31-Jan-07 18:42 
GeneralRe: vtable pointer initialize failed! Pin
Stephen Hewitt31-Jan-07 18:44
Stephen Hewitt31-Jan-07 18:44 
GeneralRe: vtable pointer initialize failed! Pin
white jungle31-Jan-07 19:48
white jungle31-Jan-07 19:48 
QuestionProblem with winsock2.0 Pin
lastgen31-Jan-07 17:41
lastgen31-Jan-07 17:41 
I'm having a couple of little problems with a listening socket connection. I've worked with winsock before but that was a long time ago. Essentially this is the procedure.

App-A is the sender,
App-B is the receiver.

App-B is running constantly listening for a connection.
App-A(which is not always running) connects to App-B when required and sends a message, and closes the connection afterwards.


The problem I'm having is this.

if App-A executes too quickly, App-B gets an WSAECONNRESET error on calling "recv"

I can get around this by slowing App-A down with for loops/sleep commands and other such hacks, but would prefer not to do this.

The other problem I get is if App-A abnormally terminates, App-B sits in a loop constantly receiving the last message sent by App-A. This isn't a large concern as I'm deliberately causing App-A to fail as a stress test which is unlikely to occur.

I'm guessing either App-A needs to wait and ensure the message has been received before closing down, or App-B needs to queue messages somehow.

Any tips?

When I die I'd like to go peacefully in my sleep like my father, not screaming in terror like his passengers!!!

AnswerRe: Problem with winsock2.0 Pin
Sakthiu31-Jan-07 18:25
Sakthiu31-Jan-07 18:25 
GeneralRe: Problem with winsock2.0 Pin
lastgen31-Jan-07 18:42
lastgen31-Jan-07 18:42 
Questionautoview CD Pin
hoa_nguyen31-Jan-07 17:00
hoa_nguyen31-Jan-07 17:00 
AnswerRe: autoview CD Pin
Hamid_RT31-Jan-07 18:30
Hamid_RT31-Jan-07 18:30 
GeneralRe: autoview CD Pin
hoa_nguyen31-Jan-07 23:18
hoa_nguyen31-Jan-07 23:18 
GeneralRe: autoview CD Pin
Hamid_RT1-Feb-07 0:11
Hamid_RT1-Feb-07 0:11 
GeneralRe: autoview CD Pin
hoa_nguyen1-Feb-07 23:04
hoa_nguyen1-Feb-07 23:04 
GeneralRe: autoview CD Pin
Hamid_RT2-Feb-07 4:14
Hamid_RT2-Feb-07 4:14 
GeneralRe: autoview CD Pin
Hamid_RT2-Feb-07 4:16
Hamid_RT2-Feb-07 4:16 
GeneralRe: autoview CD Pin
Hamid_RT3-Feb-07 23:49
Hamid_RT3-Feb-07 23:49 
QuestionAPI Based Applications and Software Applications Pin
Khoramdin31-Jan-07 16:48
Khoramdin31-Jan-07 16:48 
AnswerRe: API Based Applications and Software Applications Pin
Hans Dietrich18-Feb-07 0:23
mentorHans Dietrich18-Feb-07 0:23 
QuestionError LNK 2019 problem Pin
Alex Cutovoi31-Jan-07 16:13
Alex Cutovoi31-Jan-07 16:13 
AnswerRe: Error LNK 2019 problem Pin
Naveen31-Jan-07 16:22
Naveen31-Jan-07 16:22 
QuestionRe: Error LNK 2019 problem Pin
Nibu babu thomas31-Jan-07 16:50
Nibu babu thomas31-Jan-07 16:50 
AnswerRe: Error LNK 2019 problem Pin
Hamid_RT31-Jan-07 20:57
Hamid_RT31-Jan-07 20:57 
GeneralRe: Error LNK 2019 problem Pin
Alex Cutovoi1-Feb-07 4:13
Alex Cutovoi1-Feb-07 4:13 

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.