rabbitmq-c  0.5.3
C AMQP Client library for RabbitMQ
Data Structures | Functions
kaazing_websocket.h File Reference

Go to the source code of this file.

Data Structures

struct  kaazing_challenge_handler_t
 kaazing_challenge_handler_t struct. More...
struct  credential_t
 credential_t struct. More...
struct  kaazing_basic_challengehandler_t
 kaazing_basic_challengehandler_t struct. More...

Functions

int websocket_set_challenge_handler (websocket_t *ws, kaazing_challenge_handler_t *handler)
 websocket_set_challenge_handler Sets the challenge handler for the WebSocket connection.
kaazing_challenge_handler_t * websocket_get_challenge_handler (websocket_t *ws)
 websocket_get_challenge_handler Gets the challenge handler for the WebSocket connection.
kaazing_challenge_handler_t * kaazing_basic_challenge_handler_new (credential_t *(*getcredential_callback)(const char *challenge))
 kaazing_basic_challenge_handler_new Creates a kaazing basic challenge handler object.

Detailed Description


Function Documentation

kaazing_challenge_handler_t* kaazing_basic_challenge_handler_new ( credential_t *(*)(const char *challenge)  getcredential_callback)

kaazing_basic_challenge_handler_new Creates a kaazing basic challenge handler object.

Clients can call this function to create a kaazing basic challenge handler object. NOTE: client should call this function before start the connection.

Parameters:
getcredential_callbackpoint to callback function to get user's credentials
Returns:
kaazing_challenge_handler_t object
kaazing_challenge_handler_t* websocket_get_challenge_handler ( websocket_t ws)

websocket_get_challenge_handler Gets the challenge handler for the WebSocket connection.

this function returns the client's challenge handler.

Parameters:
wspointer of websocket_t object
Returns:
handler point to the kaazing_challenge_handler_t
int websocket_set_challenge_handler ( websocket_t ws,
kaazing_challenge_handler_t *  handler 
)

websocket_set_challenge_handler Sets the challenge handler for the WebSocket connection.

this function sets the client's challenge handler that is used during authentication both at the connect-time as well as at subsequent revalidation-time that occurs at regular intervals.. client should call this function before calling websocket_connect()

Parameters:
wspointer of websocket_t object
handlerpoint to the kaazing_challenge_handler_t
Returns:
int 0 - success, 1 - failed
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines