Mike Oliver wrote: > So - is there an NSPR equivalent of ioctrlsocket or ioctl? I thought it > would be PR_Poll or PR_Available, but I was wrong. There is no equivalent. This programming model does not work at all well with layered I/O methods, as SSL uses. > What is the correct way of doing a PR_Read and > PR_Write with non-blocking sockets? When I switch to using PR_Read w/ a > non-blocking socket, it doesn't seem to clear to socket, I get the same data > over and over again. That's odd. PR_Read should return any given data exactly once, regardless of whether the socket is blocking or nonblocking. > One last question: What's the difference between PR_Read/PR_Write and > PR_Recv/PR_Send when working w/ a socket? PR_Recv/PR_Send take more arguments. Other than that, no difference.
smime.p7s
Description: S/MIME Cryptographic Signature
