Brian, if there is no data avalible, NetLibReceive call will block until at
least one byte arrives.
If you use Codeworrier, there is a sample program at Symbol SDK
Support\Samples\S24 Sampels\NdkLib\SrcNdkLib.c
A fucntion "ReadN" that read "n" byte from a descriptor.  I am no sure that
will help you.
By the way,  I am testing "telnet" from NetSample onemultor and I can't type
data as soon as I login, any idea what went wrong?

----- Original Message -----
From: Brian Hall <[EMAIL PROTECTED]>
To: Palm Developer Forum <[EMAIL PROTECTED]>
Sent: Wednesday, March 29, 2000 1:58 AM
Subject: NetLib: Possible to determine # of bytes avail for read?


> Does anyone know if it is possible to determine the number of bytes
> available to read via NetLibReceive before you make the call?
>
> NetLibSelect tells you that there *is* data, but not the number of bytes
> ready to be read.
>
> It seems as though you should be able to call NetLibReceive with
> flags=netIOFlagPeek to return the number of bytes that can be read, w/o
> actually reading the data, but that does not seem to work. (It seems to
> read the data anyway, ie, the flag seems to be ignored).
>
> Brian
> _____________________________________________________________________
> Mark/Space Softworks                               voice 408-293-7299
> 111 West Saint John, 3rd Floor                       fax 408-293-7298
> San Jose, CA 95113                         <http://www.markspace.com>
>
>         PalmOS, Mac OS, Windows and Web Software & Solutions:
>
>          PageNOW! Wireless Messaging, PhoneWatcher Caller ID,
>      Online & Communicate terminal emulation and serial debugging
>
> --
> For information on using the Palm Developer Forums, or to unsubscribe,
please see http://www.palm.com/devzone/mailinglists.html
>


-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palm.com/devzone/mailinglists.html

Reply via email to