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

C / C++ / MFC

 
GeneralRe: Asynchronous overlapped I/O [modified] Pin
led mike14-Nov-07 10:49
led mike14-Nov-07 10:49 
GeneralRe: Asynchronous overlapped I/O Pin
racette14-Nov-07 11:13
racette14-Nov-07 11:13 
GeneralRe: Asynchronous overlapped I/O Pin
led mike14-Nov-07 11:45
led mike14-Nov-07 11:45 
GeneralRe: Asynchronous overlapped I/O Pin
racette14-Nov-07 11:54
racette14-Nov-07 11:54 
GeneralRe: Asynchronous overlapped I/O Pin
led mike15-Nov-07 4:29
led mike15-Nov-07 4:29 
GeneralRe: Asynchronous overlapped I/O Pin
racette16-Nov-07 7:29
racette16-Nov-07 7:29 
GeneralRe: Asynchronous overlapped I/O Pin
led mike16-Nov-07 20:43
led mike16-Nov-07 20:43 
GeneralRe: Asynchronous overlapped I/O Pin
racette19-Nov-07 7:23
racette19-Nov-07 7:23 
led mike wrote:
racette wrote:
using or not using overlapped structures does not solve my problem.



Benjamin, what previous experience do you have with networking?


I don't have much experience with networking. I did some simple network programs using Java and VB but this is my first C++ software that deals with networking. But I don't believe my experience with networking has anything to do with the question I asked. I'm telling you using overlapped or not using it does not solve my problem: what I mean by that is that now that I can turn it on or off, I still see the problem of 4292 bytes when its on and when its off. Ovelapped IO does not change anything to my problem.



led mike wrote:
Your previous post indicated there was a team, you said "we". There is no indication in your posts of other team members assisting in your effort, why is that?


There is in fact a team. We agreed on the design as a team, but I'm the one doing the implementation of the IPC while the other team members focus on the actual processing inside the softwares. Also, my team does assist me in my effort, but I feel like everyone has it's own idea on the subject. I've heard plenty of different things and now I'm kinda lost. This thread is a way for me to try and clarify IPC with named pipes over network.

led mike wrote:
racette wrote:
And its not like ReadFile reads what it can for the remainder of the timeslice



"timeslice"? What are you talking about?


I'm talking about threads. I have one thread for evey pipe I have. So when I try to send 153268 bytes through a pipe, a thread does the actual work and I know that a thread might not do all it's work in one timeslice. Maybe the thread will start it's work then the OS will put it to sleep while some other thread is wake to perform its own task. What I meant in my other reply was: the function ReadFile returns TRUE and says that 4292 bytes have been read. And it's not due to the fact that the thread calling the ReadFile function is put to sleep by the OS and ReadFile has had time to read only 4292 bytes when it is put to sleep, NO, it's something else. And ReadFile ALWAYS says that it has read 4292 bytes, ALWAYS.



led mike wrote:
Is that the behavior of the MSDN example applications when you run them?


I'll take a look at that and come back to you.



Thanks for your reply.


Benjamin Racette
CAE software developer
racette@cae.com

GeneralRe: Asynchronous overlapped I/O Pin
led mike19-Nov-07 7:49
led mike19-Nov-07 7:49 
GeneralRe: Asynchronous overlapped I/O Pin
racette19-Nov-07 8:33
racette19-Nov-07 8:33 
GeneralRe: Asynchronous overlapped I/O Pin
racette19-Nov-07 8:49
racette19-Nov-07 8:49 
GeneralRe: Asynchronous overlapped I/O Pin
racette23-Nov-07 4:16
racette23-Nov-07 4:16 
GeneralRe: Asynchronous overlapped I/O Pin
led mike26-Nov-07 4:56
led mike26-Nov-07 4:56 
GeneralRe: Asynchronous overlapped I/O Pin
racette26-Nov-07 7:07
racette26-Nov-07 7:07 
GeneralRe: Asynchronous overlapped I/O Pin
racette26-Nov-07 7:09
racette26-Nov-07 7:09 
GeneralRe: Asynchronous overlapped I/O Pin
led mike26-Nov-07 8:27
led mike26-Nov-07 8:27 
GeneralRe: Asynchronous overlapped I/O Pin
racette26-Nov-07 10:18
racette26-Nov-07 10:18 
GeneralRe: Asynchronous overlapped I/O Pin
led mike26-Nov-07 10:45
led mike26-Nov-07 10:45 
GeneralRe: Asynchronous overlapped I/O Pin
Mark Salsbery14-Nov-07 12:07
Mark Salsbery14-Nov-07 12:07 
GeneralRe: Asynchronous overlapped I/O Pin
led mike15-Nov-07 4:55
led mike15-Nov-07 4:55 
GeneralRe: Asynchronous overlapped I/O Pin
Mark Salsbery15-Nov-07 7:47
Mark Salsbery15-Nov-07 7:47 
GeneralRe: Asynchronous overlapped I/O Pin
racette16-Nov-07 7:39
racette16-Nov-07 7:39 
AnswerRe: Asynchronous overlapped I/O Pin
Mark Salsbery14-Nov-07 6:10
Mark Salsbery14-Nov-07 6:10 
GeneralRe: Asynchronous overlapped I/O Pin
led mike14-Nov-07 7:51
led mike14-Nov-07 7:51 
GeneralRe: Asynchronous overlapped I/O Pin
racette14-Nov-07 8:56
racette14-Nov-07 8: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.