nds2-client - ClientDeveloper  0.16.8
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Typedefs | Functions
nds_auth.c File Reference
#include <stdio.h>
#include "nds_auth.h"
#include "nds_logging.h"
#include "daqc_private.h"
#include "daqc_internal.h"
#include "daqc_response.h"
Include dependency graph for nds_auth.c:

Typedefs

typedef ssize_t recv_size_t
 

Functions

int nds_authenticate (daq_t *daq, const char *server)
 Authenticate client to server. More...
 
int nds_auth_disconnect (daq_t *daq)
 Clean up after authentication. More...
 
int nds_auth_startup (void)
 Initialize authentication mechanism. More...
 

Typedef Documentation

typedef ssize_t recv_size_t

Function Documentation

int nds_auth_disconnect ( daq_t daq)

Clean up after authentication.

Disconnect and delete authentication context.

Parameters
daqNDS connection descriptor.
Returns
DAQD response code.
int nds_auth_startup ( void  )

Initialize authentication mechanism.

Perform global authentication system initialization.

Returns
DAQD response code.
int nds_authenticate ( daq_t daq,
const char *  server 
)

Authenticate client to server.

Perform authentication handshake with the server. The socket defined in the daq structure must be connected to the server.

Parameters
daqNDS connection descriptor.
serverServer name string.
Returns
DAQD response code.