Click here to Skip to main content
15,909,332 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Step through in VC++ Pin
Mark Salsbery10-May-07 4:50
Mark Salsbery10-May-07 4:50 
GeneralRe: Step through in VC++ Pin
Mark Salsbery10-May-07 4:45
Mark Salsbery10-May-07 4:45 
GeneralRe: Step through in VC++ Pin
Nelek13-May-07 19:56
protectorNelek13-May-07 19:56 
QuestionRe: Error in plex.cpp, line 44 Pin
mla1549-May-07 9:35
mla1549-May-07 9:35 
AnswerRe: Error in plex.cpp, line 44 Pin
Stephen Hewitt9-May-07 14:25
Stephen Hewitt9-May-07 14:25 
AnswerRe: Error in plex.cpp, line 44 Pin
BadKarma9-May-07 22:12
BadKarma9-May-07 22:12 
AnswerRe: Error in plex.cpp, line 44 Pin
mla15411-May-07 5:25
mla15411-May-07 5:25 
QuestionFD_ACCEPT event very slow (sometimes) Pin
od@ananzi.co.za9-May-07 9:20
od@ananzi.co.za9-May-07 9:20 
Hi Guys,

Some background info:
OS - Windows XP Home SP2
IDE - Visual Studio 2002 .NET

I am writing a small client/server application to send/receive data over a network based on WSASocket. Everything is working as the client connects to the server and data is passed successfully between them, except for one issues...

At this stage I am running both the server and client on my development PC and am connecting to 127.0.0.1 or the network ip of 192.168.1.1

Sometimes (about 1 in 10) the establishment of the connection takes a long time, up to 30 seconds. I have now traced the server and client programs to death and now came to the conclusion that the actual firing/receiving of the FD_ACCEPT event sometimes takes very long, for now apparant reason, although usually the FD_ACCEPT is fired within 100ms.

I've traced out the applications to the point where I can show the actual timestamps of the connect function call and the corresponding reception of the FD_ACCEPT event.

To further confuse things it seems that this problem never occurs when I disconnect the network cable. Without the cable I've done about 50 connection tests and they all work fine. When I plug the network cable into the nic every now and then the connection takes an age to establish.

Does anybody have any idea what is going on here ? Is it a nic driver problem ? Is it a winsock problem ? Is it a Windows problem ? Any other ideas ?

Thanks
OD
QuestionRe: FD_ACCEPT event very slow (sometimes) Pin
Mark Salsbery9-May-07 10:24
Mark Salsbery9-May-07 10:24 
AnswerRe: FD_ACCEPT event very slow (sometimes) Pin
od@ananzi.co.za9-May-07 20:48
od@ananzi.co.za9-May-07 20:48 
GeneralRe: FD_ACCEPT event very slow (sometimes) Pin
Mark Salsbery10-May-07 5:00
Mark Salsbery10-May-07 5:00 
GeneralRe: FD_ACCEPT event very slow (sometimes) Pin
od@ananzi.co.za11-May-07 1:27
od@ananzi.co.za11-May-07 1:27 
GeneralRe: FD_ACCEPT event very slow (sometimes) Pin
Mark Salsbery11-May-07 4:18
Mark Salsbery11-May-07 4:18 
AnswerRe: FD_ACCEPT event very slow (sometimes) Pin
Moak13-May-07 12:41
Moak13-May-07 12:41 
GeneralRe: FD_ACCEPT event very slow (sometimes) Pin
od@ananzi.co.za17-May-07 5:15
od@ananzi.co.za17-May-07 5:15 
GeneralRe: FD_ACCEPT event very slow (sometimes) Pin
Moak17-May-07 5:21
Moak17-May-07 5:21 
GeneralRe: FD_ACCEPT event very slow (sometimes) Pin
od@ananzi.co.za22-May-07 4:39
od@ananzi.co.za22-May-07 4:39 
GeneralRe: FD_ACCEPT event very slow (sometimes) Pin
Moak25-May-07 2:53
Moak25-May-07 2:53 
GeneralRe: FD_ACCEPT event very slow (sometimes) Pin
od@ananzi.co.za21-Jun-07 2:42
od@ananzi.co.za21-Jun-07 2:42 
GeneralRe: FD_ACCEPT event very slow (sometimes) Pin
Moak21-Jun-07 6:51
Moak21-Jun-07 6:51 
GeneralRe: FD_ACCEPT event very slow (sometimes) Pin
od@ananzi.co.za21-Jun-07 9:32
od@ananzi.co.za21-Jun-07 9:32 
GeneralRe: FD_ACCEPT event very slow (sometimes) Pin
Moak28-Jun-07 5:39
Moak28-Jun-07 5:39 
Questionreading 'null' from binary files into char arrays/strings Pin
dfn9-May-07 8:02
dfn9-May-07 8:02 
AnswerRe: reading 'null' from binary files into char arrays/strings Pin
Chris Losinger9-May-07 8:25
professionalChris Losinger9-May-07 8:25 
GeneralRe: reading 'null' from binary files into char arrays/strings Pin
dfn9-May-07 9:53
dfn9-May-07 9:53 

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.