HP-UX AAA Server A.08.00.01 Administrator's Guide
int sdk_pollfd_register()
int sdk_pollfd_register (int fd, callback_f callback)
Usage
Registers a file descriptor with the HP-UX AAA Server and supplies a callback function
to the HP-UX AAA Server. The socket descriptor and associated callback function are
added to the global list of file descriptors monitored by the server for inbound messages.
The callback function is called when data is received on the file descriptor.
Input
fd The file descriptor that must be registered.
callback The callback function that is called when data is received by the file
descriptor. The callback function takes the file descriptor as the argument
and returns an event code.
Return
Returns one of the following values:
• SDK_SUCCESS if the operation succeeds.
• SDK_INVALID_ARG if the arguments are invalid.
• SDK_FAILURE if the operation fails.
int sdk_pollfd_unregister()
int sdk_pollfd_unregister (int fd)
Usage
Unregisters a file descriptor with the HP-UX AAA Server. The HP-UX AAA Server
does not monitor the file descriptor for inbound messages once the file is unregistered.
Input
fd The file descriptor that needs to be unregistered.
Return
Returns one of the following values:
• SDK_SUCCESS if the operation succeeds.
• SDK_INVALID_ARG if the arguments are invalid.
• SDK_FAILURE if the operation fails.
int sdk_schedule_event()
int sdk_schedule_event (sdk_authreq_t *authreq, char *aatv_name,
int event_code)
Usage
Adds an authentication request and an event to the AAA global authentication request
list to schedule an event.
Input
authreq A pointer to an authentication request.
APIs in the HP-UX AAA Server SDK 581