I'm using NSPR and NSS to do SSL sockets. My sockets are blocking, so I
don't want to do a PR_Read until I know that there is data to be read. If I
try PR_Poll, it seems to return an out flag of PR_POLL_READ even when there
is nothing to read. If I try PR_Available or SSL_DataPending, then they
never return any bytes to be read, even when I know there are bytes that
have just been sent.

How do I do this? What is the best way of doing a PR_Read only for blocking
sockets only when I know there is data to be read? (So PR_Read will in fact
return immediately).

Thanks for the help in advance...

Mike Oliver
Invertix



Reply via email to