Re: New documentation: NSPR functions required for using NSS

2008-09-11 Thread Wan-Teh Chang
I just made another pass through the PR_ImportTCPSocket man page at http://developer.mozilla.org/En/PR_ImportTCPSocket. I added a warning section to assess the benefit and risk of using this function. Hopefully it is in a good shape now. Wan-Teh ___ de

Re: New documentation: NSPR functions required for using NSS

2008-09-11 Thread Wan-Teh Chang
On Mon, Sep 8, 2008 at 5:44 PM, Kyle Hamilton <[EMAIL PROTECTED]> wrote: > > What is the semantic if someone opens the TCP socket in O_NONBLOCK in > the first place? The PRFileDesc* returned by PR_ImportTCPSocket is in blocking mode. If the caller intends to use the PRFileDesc* in non-blocking mo

Re: New documentation: NSPR functions required for using NSS

2008-09-10 Thread Wan-Teh Chang
On Tue, Sep 9, 2008 at 8:37 PM, Nelson B Bolyard <[EMAIL PROTECTED]> wrote: > Rob Crittenden wrote, On 2008-09-09 20:18: > >> Does this mean than an explicit PR_Init() is not required? > > Whenever you call a public PR_ function, if NSPR is not already initialized, > it will get initialized by that

Re: New documentation: NSPR functions required for using NSS

2008-09-09 Thread Nelson B Bolyard
Rob Crittenden wrote, On 2008-09-09 20:18: > Does this mean than an explicit PR_Init() is not required? Whenever you call a public PR_ function, if NSPR is not already initialized, it will get initialized by that first call. (*) However, NSPR initialization should only be done on one thread. I

Re: New documentation: NSPR functions required for using NSS

2008-09-09 Thread Rob Crittenden
Wan-Teh Chang wrote: > As part of the work to include NSS in LSB 4.0, I created a list > of NSPR functions required for using the NSS SSL functions at > http://developer.mozilla.org/En/NSS_reference/NSPR_functions > > I generated this list by inspecting the source code of libcurl, > nss_compat_oss

Re: New documentation: NSPR functions required for using NSS

2008-09-08 Thread Kyle Hamilton
On Mon, Sep 8, 2008 at 5:37 PM, Wan-Teh Chang <[EMAIL PROTECTED]> wrote: > On Mon, Sep 8, 2008 at 5:14 PM, Kyle Hamilton <[EMAIL PROTECTED]> wrote: >> I'm pretty sure there are some things that can be done to put a TCP >> socket into a state that's inappropriate for O_NONBLOCK mode, but I >> can't

Re: New documentation: NSPR functions required for using NSS

2008-09-08 Thread Wan-Teh Chang
On Mon, Sep 8, 2008 at 5:14 PM, Kyle Hamilton <[EMAIL PROTECTED]> wrote: > I'm pretty sure there are some things that can be done to put a TCP > socket into a state that's inappropriate for O_NONBLOCK mode, but I > can't think of any off the top of my head. Is there a reference > somewhere that li

Re: New documentation: NSPR functions required for using NSS

2008-09-08 Thread Kyle Hamilton
I'm pretty sure there are some things that can be done to put a TCP socket into a state that's inappropriate for O_NONBLOCK mode, but I can't think of any off the top of my head. Is there a reference somewhere that lists the kinds of things that a programmer needs to avoid? If there is, could the