Go to the source code of this file.
|
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) |
|
◆ as_async_info_listener
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
-
err | This error structure is only populated when the command fails. Null on success. |
response | The return string from the asynchronous info command. Null on error. Do not free when finished. This will be done automatically. |
udata | User data that is forwarded from asynchronous command function. |
event_loop | Event 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.
◆ as_async_record_listener
User callback when an asynchronous read completes with a record result.
- Parameters
-
err | This error structure is only populated when the command fails. Null on success. |
record | The return value from the asynchronous command. Null on error. |
udata | User data that is forwarded from asynchronous command function. |
event_loop | Event 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.
◆ as_async_value_listener
User callback when asynchronous read completes with an as_val result.
- Parameters
-
err | This error structure is only populated when the command fails. Null on success. |
val | The 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. |
udata | User data that is forwarded from asynchronous command function. |
event_loop | Event 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.
◆ as_async_write_listener
User callback when an asynchronous write completes.
- Parameters
-
err | This error structure is only populated when the command fails. Null on success. |
udata | User data that is forwarded from asynchronous command function. |
event_loop | Event 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.
◆ as_pipe_listener
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
-
udata | User data that is forwarded from asynchronous command function. |
event_loop | Event 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.