All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Typedefs
as_listener.h File Reference
#include <aerospike/as_error.h>
#include <aerospike/as_event.h>
#include <aerospike/as_record.h>
+ Include dependency graph for as_listener.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Typedefs

typedef void(* as_async_info_listener )(as_error *err, char *response, void *udata, as_event_loop *event_loop)
 
typedef void(* as_async_record_listener )(as_error *err, as_record *record, void *udata, as_event_loop *event_loop)
 
typedef void(* as_async_value_listener )(as_error *err, as_val *val, void *udata, as_event_loop *event_loop)
 
typedef void(* as_async_write_listener )(as_error *err, void *udata, as_event_loop *event_loop)
 
typedef void(* as_pipe_listener )(void *udata, as_event_loop *event_loop)
 

Typedef Documentation

typedef void(* as_async_info_listener)(as_error *err, char *response, void *udata, as_event_loop *event_loop)

User callback when asynchronous info command completes with a string result.

Parameters
errThis error structure is only populated when the command fails. Null on success.
responseThe return string from the asynchronous info command. Null on error. Do not free when finished. This will be done automatically.
udataUser data that is forwarded from asynchronous command function.
event_loopEvent loop that this command was executed on. Use this event loop when running nested asynchronous commands when single threaded behavior is desired for the group of commands.

Definition at line 85 of file as_listener.h.

typedef void(* as_async_record_listener)(as_error *err, as_record *record, void *udata, as_event_loop *event_loop)

User callback when an asynchronous read completes with a record result.

Parameters
errThis error structure is only populated when the command fails. Null on success.
recordThe return value from the asynchronous command. Null on error.
udataUser data that is forwarded from asynchronous command function.
event_loopEvent loop that this command was executed on. Use this event loop when running nested asynchronous commands when single threaded behavior is desired for the group of commands.

Definition at line 48 of file as_listener.h.

typedef void(* as_async_value_listener)(as_error *err, as_val *val, void *udata, as_event_loop *event_loop)

User callback when asynchronous read completes with an as_val result.

Parameters
errThis error structure is only populated when the command fails. Null on success.
valThe return value from the asynchronous command. This value will need to be cast to the structure that corresponds to the asynchronous command. Null on error.
udataUser data that is forwarded from asynchronous command function.
event_loopEvent loop that this command was executed on. Use this event loop when running nested asynchronous commands when single threaded behavior is desired for the group of commands.

Definition at line 61 of file as_listener.h.

typedef void(* as_async_write_listener)(as_error *err, void *udata, as_event_loop *event_loop)

User callback when an asynchronous write completes.

Parameters
errThis error structure is only populated when the command fails. Null on success.
udataUser data that is forwarded from asynchronous command function.
event_loopEvent loop that this command was executed on. Use this event loop when running nested asynchronous commands when single threaded behavior is desired for the group of commands.

Definition at line 36 of file as_listener.h.

typedef void(* as_pipe_listener)(void *udata, as_event_loop *event_loop)

User callback when pipelined command has been sent, i.e., when the connection is ready for sending the next command.

Parameters
udataUser data that is forwarded from asynchronous command function.
event_loopEvent loop that this command was executed on. Use this event loop when running nested asynchronous commands when single threaded behavior is desired for the group of commands.

Definition at line 72 of file as_listener.h.