Lines Matching defs:prsockp
295 * Returns 1 if successful and -1 if not. Sets the NSPR fd inside prsockp.
298 prldap_try_one_address( struct lextiof_socket_private *prsockp,
309 if (( prsockp->prsock_prfd = PR_OpenTCPSocket(
322 if ( PR_SetSocketOption( prsockp->prsock_prfd, &optdata )
325 PR_Close( prsockp->prsock_prfd );
352 if ( PR_SUCCESS != PR_Connect( prsockp->prsock_prfd, addrp,
353 prldap_timeout2it( timeout, prsockp->prsock_io_max_timeout ))) {
354 PR_Close( prsockp->prsock_prfd );
355 prsockp->prsock_prfd = NULL;
386 struct lextiof_socket_private *prsockp;
399 if ( NULL == ( prsockp = prldap_socket_arg_alloc( sessionarg ))) {
420 rc = prldap_try_one_address( prsockp, &addr, port,
430 rc = prldap_try_one_address( prsockp, &addr, port,
452 prldap_socket_arg_free( &prsockp );
454 *socketargp = prsockp;
653 PRLDAPIOSocketArg *prsockp;
655 prsockp = PR_Calloc( 1, sizeof( PRLDAPIOSocketArg ));
657 if ( NULL != prsockp && NULL != sessionarg ) {
659 prsockp->prsock_io_max_timeout = sessionarg->prsess_io_max_timeout;
662 return( prsockp );