Moniruzzaman <[EMAIL PROTECTED]> wrote:
>     I am facing a problem to get the socket buffer size. In windows
> socket operation, we have a function (ioctlsocket(...,...,...)) to
> get the number of bytes remaining to be read from the socket. Is
> there any equivalent way to get the number of byte on the socket yet
> to be read on palmos??
>
In your subject and first sentence you are asking for the _buffer size_.  In
the subsequent sentences you are asking for the amount of data _in the
buffer_.  Which do you want?

By the way, using the second technique is very much frowned upon, see, Item
26 at <http://tangentsoft.net/wskfaq/articles/lame-list.html>,

    Polling with ioctlsocket(FIONREAD) on a stream socket until a
    complete "message" arrives. Exceeds the bounds of earthly lameness.

And, KB192599--"INFO: Avoid Data Peeking in Winsock" at
http://support.microsoft.com/?kbid=192599
-- 
Alan J. McFarlane
http://homepage.ntlworld.com/alanjmcf/
Please follow-up in the newsgroup for the benefit of all.



-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/support/forums/

Reply via email to