Commit Graph

121 Commits

Author SHA1 Message Date
Pieter Noordhuis
f25a5267cc Allow to connect using a unix socket from hiredis 2010-11-03 11:38:26 +01:00
Pieter Noordhuis
0ccb2c8d89 Add functiont to net.c to connect to a unix socket 2010-11-03 11:31:33 +01:00
Pieter Noordhuis
8220cd4ba6 Move code in net.c to separate functions 2010-11-03 11:08:24 +01:00
Pieter Noordhuis
c7ab28d2d0 README style 2010-11-03 01:04:20 +01:00
Pieter Noordhuis
e13674dd4e Expose redisGetReplyFromReader as public API 2010-11-03 00:40:07 +01:00
Pieter Noordhuis
314c04840b Update examples 2010-11-02 17:37:22 +01:00
Pieter Noordhuis
e51ddd7c2c Make setError receive an sds 2010-11-02 17:14:03 +01:00
Pieter Noordhuis
b8b296654d Strip net.c down to the bare minimum 2010-11-02 17:09:26 +01:00
Pieter Noordhuis
dd8a34de84 Move anet.{c,h} to net.{c,h} 2010-11-02 16:44:44 +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
5db8008d97 Remove superfluous definition 2010-11-02 14:55:24 +01:00
Pieter Noordhuis
46fdce7da0 Build universal binaries on OSX by default 2010-11-01 20:17:14 +01:00
Pieter Noordhuis
5fa8d30599 There is no longer need for a separate redisDisconnect 2010-11-01 14:20:51 +01:00
Pieter Noordhuis
30a9f8f271 Use existing function to append to the output buffer 2010-11-01 14:16:01 +01:00
Pieter Noordhuis
ef995accb2 Strip non-blocking callbacks from hiredis.c 2010-11-01 14:13:03 +01:00
Pieter Noordhuis
9323030527 Update .gitignore 2010-11-01 13:52:44 +01:00
Pieter Noordhuis
51dd2616f8 Reply parsing docs need to be done 2010-11-01 13:52:26 +01:00
Pieter Noordhuis
b3a9d6152f Add docs for the asynchronous API 2010-11-01 13:42:16 +01:00
Pieter Noordhuis
b673f0cfb3 Change prototype of async reply callback 2010-11-01 13:21:26 +01:00
Pieter Noordhuis
4b530833c6 Add comment on return value of redisGetReply 2010-11-01 13:01:42 +01:00
Pieter Noordhuis
728de4a695 Add sections on redisCommandArgv and pipelining to README 2010-11-01 12:46:22 +01:00
Pieter Noordhuis
ec01a80d39 Update README 2010-11-01 12:18:35 +01:00
Pieter Noordhuis
b028dda359 Return from getCallback if there is no reply 2010-11-01 11:11:43 +01:00
Pieter Noordhuis
e16340f2db Add install target in Makefile 2010-11-01 10:53:48 +01:00
Pieter Noordhuis
89e0622535 Move libev/libevent headers to adapters directory 2010-11-01 10:42:32 +01:00
Pieter Noordhuis
d5fc7d8c53 Update libev and libevent examples to work with async.h 2010-11-01 10:26:23 +01:00
Pieter Noordhuis
ac13c9f095 Only copy relevant fields from callback ptr to avoid copying garbage 2010-11-01 10:13:05 +01:00
Pieter Noordhuis
a66ec18e80 Make push/shift functions for callbacks responsible for malloc/free 2010-11-01 10:10:03 +01:00
Pieter Noordhuis
e25db30f38 Run pending callbacks with NULL reply on error 2010-11-01 10:01:34 +01:00
Pieter Noordhuis
8b0fddcb02 Clarify redisAsyncDisconnect behavior in comments 2010-11-01 09:53:54 +01:00
Pieter Noordhuis
ad2456047e Process callbacks after reading 2010-11-01 09:53:34 +01:00
Pieter Noordhuis
c43256633c Cleanup function should remove read/write events 2010-11-01 09:53:18 +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
ae5a13f557 Regenerated Makefile dependencies 2010-10-31 21:22:07 +01:00
Pieter Noordhuis
0152f12807 Extracted code to support callbacks in an asynchronous context 2010-10-31 21:20:47 +01:00
Pieter Noordhuis
9c7c602cc9 exit(3) is defined in stdlib.h 2010-10-31 21:12:02 +01:00
Pieter Noordhuis
435e545dd2 Fix redisGetReply 2010-10-31 21:11:25 +01:00
Pieter Noordhuis
6042c569b1 Move include of stdio.h to hiredis.h for size_t 2010-10-31 17:25:20 +01:00
Pieter Noordhuis
1d4f16b571 Extract OOM killer to util.h 2010-10-31 17:21:49 +01:00
Pieter Noordhuis
154097445c Remove unused header file 2010-10-31 14:52:23 +01:00
Pieter Noordhuis
a0b9f04eaa Move stdarg.h include to the hiredis header file 2010-10-31 14:45:15 +01:00
Pieter Noordhuis
44a2d08b30 The reply object functions may not change the read tasks 2010-10-31 14:44:36 +01:00
Pieter Noordhuis
3f0394b8a9 Use a fixed size stack instead of a dynamic list for read tasks 2010-10-31 14:42:48 +01:00
Pieter Noordhuis
8a80b89232 Update example.c to work with current code 2010-10-31 12:57:32 +01:00
Pieter Noordhuis
f463734e91 Remove reply object functions from connect functions 2010-10-31 12:53:57 +01:00
Pieter Noordhuis
47e1f77149 Refactor internal function flow and add redisAppendCommand* family 2010-10-31 12:34:45 +01:00
Pieter Noordhuis
298e9325d7 First step in decoupling reply callbacks from internals 2010-10-31 10:56:24 +01:00
Pieter Noordhuis
a3a405bcba Format a command using an argument vector 2010-10-31 10:34:29 +01:00
Pieter Noordhuis
e95c9d4c5b Change redisFormatCommand to return the command in a char*
This allows users of the API to format a command without the need to
have all the sds functions included, only for free'ing the returned
wire-level command.
2010-10-30 20:38:29 +02:00