diff options
Diffstat (limited to 'pr/include/private/pprio.h')
-rw-r--r-- | pr/include/private/pprio.h | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/pr/include/private/pprio.h b/pr/include/private/pprio.h index 26bcd0d0..d3e342cb 100644 --- a/pr/include/private/pprio.h +++ b/pr/include/private/pprio.h @@ -54,7 +54,7 @@ NSPR_API(PRFileDesc*) PR_AllocFileDesc(PROsfd osfd, const PRIOMethods *methods); NSPR_API(void) PR_FreeFileDesc(PRFileDesc *fd); /* -** Import an existing OS file to NSPR. +** Import an existing OS file to NSPR. */ NSPR_API(PRFileDesc*) PR_ImportFile(PROsfd osfd); NSPR_API(PRFileDesc*) PR_ImportPipe(PROsfd osfd); @@ -187,22 +187,22 @@ typedef void (*_PR_AcceptTimeoutCallback)(void *); ** our daemon threads need to be able to wakeup and reliably flush their ** log buffers if the Accept times out. However, with the current blocking ** interface to AcceptRead, there is no way for us to timeout the Accept; -** this is because when we timeout the Read, we can close the newly +** this is because when we timeout the Read, we can close the newly ** socket and continue; but when we timeout the accept itself, there is no ** new socket to timeout. So instead, this version of the function is ** provided. After the initial timeout period elapses on the accept() ** portion of the function, it will call the callback routine and then -** continue the accept. If the timeout occurs on the read, it will +** continue the accept. If the timeout occurs on the read, it will ** close the connection and return error. */ NSPR_API(PRInt32) PR_NTFast_AcceptRead_WithTimeoutCallback( - PRFileDesc *sd, + PRFileDesc *sd, PRFileDesc **nd, - PRNetAddr **raddr, - void *buf, - PRInt32 amount, + PRNetAddr **raddr, + void *buf, + PRInt32 amount, PRIntervalTime t, - _PR_AcceptTimeoutCallback callback, + _PR_AcceptTimeoutCallback callback, void *callback_arg); /* FUNCTION: PR_NTFast_Accept @@ -224,7 +224,7 @@ NSPR_API(PRFileDesc*) PR_NTFast_Accept(PRFileDesc *fd, PRNetAddr *addr, ** Without calling this, the only operations supported on the socket ** Are PR_Read, PR_Write, PR_Transmitfile, and PR_Close. */ -NSPR_API(void) PR_NTFast_UpdateAcceptContext(PRFileDesc *acceptSock, +NSPR_API(void) PR_NTFast_UpdateAcceptContext(PRFileDesc *acceptSock, PRFileDesc *listenSock); |