Re: WriteFile()
- From: "Hector Santos" <nospamhere@xxxxxxxxxxxxxx>
- Date: Wed, 14 Jun 2006 04:13:06 GMT
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 messagenothing
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
to do with the fact whether there is a timeout consideration. It may partasync"
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
"inventedconcept.
It is. But with a tradition spanning decades. It is not something
by MSFT".including
[...]
But again, and again and again, if you prepare the sync device,
fromserial 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
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:
- Re: WriteFile()
- From: Hector Santos
- 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()
- Prev by Date: Re: Two threads reading from same file?
- Next by Date: Re: Two threads reading from same file?
- Previous by thread: Re: WriteFile()
- Next by thread: Re: WriteFile()
- Index(es):
Relevant Pages
|
Loading