Re: [BLACKBOX] WinApi tasks

From: [at]} <Alexander>
Date: Tue, 26 May 2009 11:18:07 +0700

----boundary-LibPST-iamunique-2006692252_-_-
Content-type: text/plain

Hello!

AMAUN> I use a blocking network read with a busy wait in my eMail program,
AMAUN> and I want to restructure to get rid of this. One solution to this
AMAUN> might be to use a WinApi task for the email (instead of
AMAUN> Services.Action) and I am reading the MSDN web pages on tasks.

  To ret rid of blocking, one must only read as much data as there is
  available. I would suggest introducing a new method:
  CommStreams.Stream.Available(): INTEGER

  I've already got one implemented for the CommV24 driver, and it
  works just fine for me.

---=====---
 Alexander


----
To unsubscribe, send a message with body "SIGNOFF BLACKBOX" to LISTSERV{([at]})nowhere.xy----boundary-LibPST-iamunique-2006692252_-_-
Content-type: application/rtf
Content-transfer-encoding: base64
Content-Disposition: attachment; filename="rtf-body.rtf"
e1xydGYxXGFuc2lcYW5zaWNwZzEyNTJcZnJvbXRleHQgXGRlZmYwe1xmb250dGJsDQp7XGYwXGZz
d2lzcyBBcmlhbDt9DQp7XGYxXGZtb2Rlcm4gQ291cmllciBOZXc7fQ0Ke1xmMlxmbmlsXGZjaGFy
c2V0MiBTeW1ib2w7fQ0Ke1xmM1xmbW9kZXJuXGZjaGFyc2V0MCBDb3VyaWVyIE5ldzt9fQ0Ke1xj
b2xvcnRibFxyZWQwXGdyZWVuMFxibHVlMDtccmVkMFxncmVlbjBcYmx1ZTI1NTt9DQpcdWMxXHBh
cmRccGxhaW5cZGVmdGFiMzYwIFxmMFxmczIwIEhlbGxvIVxwYXINClxwYXINCkFNQVVOPiBJIHVz
ZSBhIGJsb2NraW5nIG5ldHdvcmsgcmVhZCB3aXRoIGEgYnVzeSB3YWl0IGluIG15IGVNYWlsIHBy
b2dyYW0sXHBhcg0KQU1BVU4+IGFuZCBJIHdhbnQgdG8gcmVzdHJ1Y3R1cmUgdG8gZ2V0IHJpZCBv
ZiB0aGlzLiAgT25lIHNvbHV0aW9uIHRvIHRoaXNccGFyDQpBTUFVTj4gbWlna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