NPKIConnectToIPAddress

Establishes a connection to the server at the specified IP address for the specified NPKIContext.

Syntax

    #include "npki.h"
    
    NWRCODE NPKIConnectToIPAddress(
       const NPKIContext   context, 
       const nuint32       flags,
       const nuint16       port,
       const char         *iPAddress,
       const unicode      *treeName, 
       const unicode      *serverDN);
    

Parameters

context
(IN) Specifies the NPKI context for the request.
flags
(IN) Reserved for future use; pass zero.
port
(IN) Specifies the port number to be used. If zero is passed in, the default IP port (524) is used.
iPAddress
(IN) Points to the IP address to use in the format XXX.XXX.XXX.XXX.
treeName
Returns the name of the tree that the server is in.
serverDN
Returns the fully distinguished name of the server.

Return Values

Returns 0 if successful, or a PKI or eDirectory error if not successful.

Remarks

You should call NPKIConnectToIPAddress after NPKISetTreeName and before NPKIDSLogin.