Re: WriteFile()
- From: "Hector Santos" <nospamhere@xxxxxxxxxxxxxx>
- Date: Wed, 13 Apr 2005 12:55:28 -0400
I am not going to get into semantics with you.. This thread has gone far
enough.
I stand by what I say and I will continue to base the high quality
engineering of my software on it. :-)
Thanks for the NIC (non-interactive chat) <g>
Later
--
Hector Santos, Santronics Software, Inc.
http://www.santronics.com
"Slava M. Usov" <stripit.slough@xxxxxxx> wrote in message
news:uEcro#CQFHA.2932@xxxxxxxxxxxxxxxxxxxxxxx
> "Hector Santos" <nospamhere@xxxxxxxxxxxxxx> wrote in message
> news:eyhB5G6PFHA.2348@xxxxxxxxxxxxxxxxxxxxxxx
> > > These two statements contradict with your original statement that
> > > '"synchronous operation" [...] implies block with no timeouts'.
> >
> > I don't think so. I think I have been very consistent.
>
> Unfortunately, no. You said: "That [synchronous vs asynchronous] has
nothing
> to do with the fact whether there is a timeout consideration. It may part
> of the equation or not."
>
> > Synchronous means BLOCK call with no timeouts.
>
> No. Drop the timeouts part.
>
> > A block call with timeout considerations is in effect a "poor man's
async"
> > concept.
>
> It is. But with a tradition spanning decades. It is not something
"invented
> by MSFT".
>
> [...]
>
> > But again, and again and again, if you prepare the sync device,
including
> > serial and sockets, for no timeouts, you will get a BLOCK.
>
> You will get just the same with some timeouts.
>
> > On a READ, you will block 100%
> >
> > On a WRITE, you will get SUCCESS or ERROR
> >
> > Where is the timeout if I turned it off?
> >
> > If I say READ and WRITE X bytes why will the system ignore the request
> > without an error?
>
> The system does not define error conditions. Reading less than x bytes
from
> a file because the file is shorter than that is not an error; this is a
> feature of the file system [ = medium]. Writing less than x bytes to a
> socket because the peer socket has stopped receiving is not an error; this
> is a feature of the sockets [ = medium]. Timeouts make that only slightly
> more complex.
>
> I do not understand what you're trying to say now. I may be missing the
> whole point. I thought, originally, that you were claiming WriteFile() was
> not behaving "properly", because it could return, successfully, without
> writing as much as requested. I maintain this behavior is not improper
> simply because there are old and well-known IO primitives that behave
> exactly in the same way.
>
> S
>
>
.
- References:
- WriteFile()
- From: Frank A. Uepping
- Re: WriteFile()
- From: Hector Santos
- Re: WriteFile()
- From: Gary Chanson
- Re: WriteFile()
- From: Chris Burnette
- Re: WriteFile()
- From: Hector Santos
- Re: WriteFile()
- From: Chris Burnette
- Re: WriteFile()
- From: Hector Santos
- Re: WriteFile()
- From: Alexander Grigoriev
- Re: WriteFile()
- From: Hector Santos
- Re: WriteFile()
- From: Slava M. Usov
- Re: WriteFile()
- From: Hector Santos
- Re: WriteFile()
- From: Slava M. Usov
- Re: WriteFile()
- From: Hector Santos
- Re: WriteFile()
- From: Slava M. Usov
- WriteFile()
- Prev by Date: Re: HANDLE Thread Safety
- Next by Date: Re: Wrapper class or function (10 bytes to double).
- Previous by thread: Re: WriteFile()
- Next by thread: Re: WriteFile()
- Index(es):
Relevant Pages
|