Pieter Noordhuis
3313bcd191
Change prototype of connect callback
...
This commit adds a status argument to the connect callback. It will be
called in the event of an unsuccessful connection as well, where the
status argument is set to REDIS_ERR. It is set to REDIS_OK otherwise.
2011-06-27 23:52:29 +02:00
Pieter Noordhuis
0cb7c27d9c
Update license
2011-04-21 22:46:23 +02:00
Pieter Noordhuis
6d207ea98e
Create protocol reader when creating context
2011-04-21 15:04:42 +02:00
Pieter Noordhuis
c6b8bd77c0
Make dictionary functions static and include the .c file
2011-01-14 12:07:29 +01:00
Pieter Noordhuis
e6621d05b4
Add fields for subscribed channel/pattern names
2010-12-31 15:49:26 +01:00
Pieter Noordhuis
a020db3013
License
2010-12-29 15:52:07 +01:00
Pieter Noordhuis
18c55a8f1e
Scope event library related data and hooks to a struct
2010-12-29 15:41:03 +01:00
Pieter Noordhuis
e3776bfaa6
Add function to explicitly free an async context
2010-12-28 19:19:25 +01:00
Nicolas Favre-Felix
2c17d2e221
Missing declaration.
2010-12-22 18:01:50 +01:00
Pieter Noordhuis
12725f88ed
Fire onConnect callback on the first write event
2010-12-07 10:22:30 +01:00
Pieter Noordhuis
af7369a253
Use extra field for adapter-specific data
...
This makes sure that the "data" field on the asynchronous context can be
used for user-specific data.
2010-12-01 16:43:24 +01:00
Ryan Tecco
a01c5b1352
more extern "C" declarations for C++ compiles
2010-11-21 16:21:46 -08:00
Pieter Noordhuis
09a0fe626f
Explicitly initialize struct fields to NULL
2010-11-15 21:53:22 +01:00
Pieter Noordhuis
ffa8666a64
Change error reporting to have an explicit type
...
When there is an I/O error, errno should be used to find out what is
wrong. In other cases, errno cannot be used. So, use an explicit type in
Hiredis to define the different error scenarios that can occur.
2010-11-02 16:36:38 +01:00
Pieter Noordhuis
b673f0cfb3
Change prototype of async reply callback
2010-11-01 13:21:26 +01:00
Pieter Noordhuis
437eea80fc
Make error ptr accessible from async context
2010-11-01 09:52:17 +01:00
Pieter Noordhuis
4e3bd7893d
Add support to lazily disconnect an asynchronous connection
2010-11-01 09:27:43 +01:00
Pieter Noordhuis
0152f12807
Extracted code to support callbacks in an asynchronous context
2010-10-31 21:20:47 +01:00