From: Gary Thomas <gary@mlbassoc.com>
To: baljeet singh <baljeet45@yahoo.com>
Cc: eCos Discussion <ecos-discuss@ecos.sourceware.org>
Subject: Re: [ECOS] cyg_io_read
Date: Tue, 15 Mar 2005 14:21:00 -0000 [thread overview]
Message-ID: <1110858252.22384.67.camel@hermes> (raw)
In-Reply-To: <20050315033604.77080.qmail@web60809.mail.yahoo.com>
On Mon, 2005-03-14 at 19:36 -0800, baljeet singh wrote:
> All,
> one of the parameters in the cyg_io_read(..) is
> the number of bytes to read. Process blocks till
> specified number of bytes have been read. If the
> specified number of bytes is not received, the
> process stays blocked.
> Question: Is there a way to block the process for
> a specified amount of time such that the prcoess
> should return on either receiving the specified
> number of bytes or when the specified delay times
> out?
Use a higher level of I/O (file I/O package -> open, close,
etc). Then you can use select with timeouts.
--
------------------------------------------------------------
Gary Thomas | Consulting for the
MLB Associates | Embedded world
------------------------------------------------------------
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss
next prev parent reply other threads:[~2005-03-15 3:44 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-03-15 13:34 baljeet singh
2005-03-15 14:21 ` Gary Thomas [this message]
2005-03-16 4:24 ` Marco SICHERI [CTS]
-- strict thread matches above, loose matches on Subject: below --
2009-04-20 12:01 grahamlab
2000-08-22 13:11 Eric Fradette
2000-08-23 5:57 ` Jesper Skov
[not found] ` <NEBBLBCPCLNPKNANBKIKOEPLCBAA.emf8@po.cwru.edu>
2000-08-23 6:18 ` Jesper Skov
2000-08-23 6:23 ` Eric Fradette
2000-08-23 8:06 ` Jesper Skov
2000-07-24 10:22 amassa
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1110858252.22384.67.camel@hermes \
--to=gary@mlbassoc.com \
--cc=baljeet45@yahoo.com \
--cc=ecos-discuss@ecos.sourceware.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).