summaryrefslogtreecommitdiff
path: root/hiredis.c
AgeCommit message (Collapse)Author
2010-11-24Add privdata field to reply readerPieter Noordhuis
This field is set in the read tasks that are passed to the reply object functions. This allows to curry arbitrary data to these functions.
2010-11-22Abort on code path that should never be takenPieter Noordhuis
2010-11-22Make error messages consistent in casingPieter Noordhuis
2010-11-22Fix formatting literal percent charactersPieter Noordhuis
2010-11-22Correctly format commands with empty interpolated valuesPieter Noordhuis
2010-11-04Finding \r\n without strstr is a little harderPieter Noordhuis
2010-11-04The buffer length to feed should be a size_tPieter Noordhuis
2010-11-04Make moveToNextTask non-recursivePieter Noordhuis
2010-11-04Use strchr in a loop rather than strstrPieter Noordhuis
2010-11-04Return the reply type when the reply object function set is NULLPieter Noordhuis
2010-11-03Allow to connect using a unix socket from hiredisPieter Noordhuis
2010-11-03Add functiont to net.c to connect to a unix socketPieter Noordhuis
2010-11-03Expose redisGetReplyFromReader as public APIPieter Noordhuis
2010-11-02Make setError receive an sdsPieter Noordhuis
2010-11-02Strip net.c down to the bare minimumPieter Noordhuis
2010-11-02Change error reporting to have an explicit typePieter Noordhuis
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-01There is no longer need for a separate redisDisconnectPieter Noordhuis
2010-11-01Strip non-blocking callbacks from hiredis.cPieter Noordhuis
2010-10-31Fix redisGetReplyPieter Noordhuis
2010-10-31Move include of stdio.h to hiredis.h for size_tPieter Noordhuis
2010-10-31Extract OOM killer to util.hPieter Noordhuis
2010-10-31Move stdarg.h include to the hiredis header filePieter Noordhuis
2010-10-31The reply object functions may not change the read tasksPieter Noordhuis
2010-10-31Use a fixed size stack instead of a dynamic list for read tasksPieter Noordhuis
2010-10-31Remove reply object functions from connect functionsPieter Noordhuis
2010-10-31Refactor internal function flow and add redisAppendCommand* familyPieter Noordhuis
2010-10-31First step in decoupling reply callbacks from internalsPieter Noordhuis
2010-10-31Format a command using an argument vectorPieter Noordhuis
2010-10-30Change redisFormatCommand to return the command in a char*Pieter Noordhuis
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-30Status replies should have type REDIS_REPLY_STATUSPieter Noordhuis
2010-10-30Drop dependency on sds.h for exposed APIPieter Noordhuis
2010-10-30Rename structPieter Noordhuis
2010-10-19Run pending callbacks with NULL reply on redisDisconnect()Pieter Noordhuis
2010-10-19Revert e5dd32d8 that added the const qualifier for command callbacksPieter Noordhuis
2010-10-19Revert privdata in context callbacks to being non-constPieter Noordhuis
2010-10-18Test callback sequence in non-blocking contextPieter Noordhuis
2010-10-18Change redisWriteBuffer to return OK on an empty bufferPieter Noordhuis
2010-10-18Move context callbacks into struct and make privdata constPieter Noordhuis
2010-10-07Disconnect before free'ingPieter Noordhuis
2010-10-07Fire callback when the context is being disconnected by the userPieter Noordhuis
2010-10-07Add const qualifier to privdata pointer for command callbacksPieter Noordhuis
2010-10-06Make error messages more consistent (e.g. no newline)Pieter Noordhuis
2010-09-25Trigger callbacks when a command is issued or the context is free'dPieter Noordhuis
2010-09-25Add function to free an allocated contextPieter Noordhuis
2010-09-25Free command before returningPieter Noordhuis
2010-09-25Rename HIREDIS_BLOCK to REDIS_BLOCKPieter Noordhuis
2010-09-25Deprecate the error object for I/O and protocol errorsPieter Noordhuis
Rather, use the return value REDIS_OK and REDIS_ERR to designate if calling a function has a successful outcome. When there was an error in performing the call the error field will be set inside the reader or the context.
2010-09-25Rename defines HIREDIS_* to REDIS_*Pieter Noordhuis
2010-09-25Support callback functions in a non-blocking contextPieter Noordhuis
2010-09-25Fix commentPieter Noordhuis