diff options
| author | Christophe Fergeau <cfergeau@redhat.com> | 2014-03-14 17:43:55 +0100 |
|---|---|---|
| committer | Christophe Fergeau <cfergeau@redhat.com> | 2014-04-16 17:11:38 +0200 |
| commit | 3dd4723e48da6de886963d9781bf53dea65a7e42 (patch) | |
| tree | 9c24e5f4308055e6f9998e0c3a77ed066f015c84 /client/client_net_socket.cpp | |
| parent | dc017bb9ae934594289b99a67d929f075e60819f (diff) | |
Add reds_stream_set_async_error_handler() helper
This replaces async_read_set_error_handler() which was unused. This sets a
callback to be called when an async operation fails.
We could pass the error_handler to each reds_stream_async_read() call, but as
we will be using the same one for all async calls, it's more convenient to set it
once and for all.
AsyncRead is going to be private to reds_stream.c in one of the next
commits, and the error handler will need to be set from reds.c,
hence the move to a public RedsStream method.
Diffstat (limited to 'client/client_net_socket.cpp')
0 files changed, 0 insertions, 0 deletions
