Commit Graph

14 Commits

Author SHA1 Message Date
Henri Doreau
814be4f5bd Made connect functions return NULL on alloc failures.
Updated documentation and examples accordingly.
2013-01-22 10:19:46 +01:00
Charles Longeau
8cbedceca7 make redisConnectWithTimeout connect to 127.0.0.1 instead of 127.0.0.2 2012-10-25 12:40:15 +03:00
Pieter Noordhuis
2fc0d8756e Use select(2) for enforce a timeout on blocking connect(2) 2011-02-04 15:26:28 +01:00
Amir Mohammad Saied
822efe2ac3 Redis command getting executed is PING, PONG is actually the expected answer 2010-12-02 22:00:21 +03:30
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
8a80b89232 Update example.c to work with current code 2010-10-31 12:57:32 +01:00
Pieter Noordhuis
5c7b5fca4d Make error messages more consistent (e.g. no newline) 2010-10-06 21:23:03 +02:00
Pieter Noordhuis
1a5f111d52 c->error is no longer a redisReply object, but rather a plain C-string 2010-10-06 21:10:09 +02:00
Pieter Noordhuis
d156550886 Rename fd to the more appropriate c 2010-09-24 18:48:07 +02:00
Pieter Noordhuis
817d26b81d Use context variable to keep state for a connection
The context supports both blocking and non-blocking connections. All
read and write events are not handled by hiredis, but hiredis exposes an
API for buffered reading/writing to Redis.
2010-09-24 18:42:22 +02:00
antirez
9562351ae5 more stuff into example 2010-05-18 18:13:25 +02:00
antirez
3d8d3aa0e5 better example and license information 2010-05-18 17:45:36 +02:00
antirez
60e85fb4f3 new newline needed after commands 2010-05-18 17:13:21 +02:00
antirez
4f6fc6dfb1 hiredis was extracted from redis-tools, reverted to standard malloc/free, ported to the new protocol, and started as a stand alone project in order to support the need of a C client in the Redis community 2010-05-18 17:11:09 +02:00