Causes a job to be queued when a socket can be connected.
#include <prtpool.h> NSPR_API(PRJob *) PR_QueueJob_Connect( PRThreadPool *tpool, PRJobIoDesc *iod, const PRNetAddr *addr, PRJobFn fn, void * arg, PRBool joinable );
The function has the following parameters:
tpool
PRThreadPool
structure previously created by a call to PR_CreateThreadPool
.iod
PRJobIoDesc
structure.addr
PRNetAddr
structure for the socket being connected.fn
arg
fn
.joinable
PR_TRUE
, the job is joinable. If PR_FALSE
, the job is not joinable. See PR_JoinJob
.Pointer to a PRJob
structure or NULL
on error.