• Refactor state management code to use three methods .connect(),
    .disconnect(), and .wait(). Start conforming to uniform coding style
    already applied to Command class.
    
    Split off subscribe functionality into its own class Subscriber. This is
    good because it was introducing unnecessary state and complexity into
    the main client. Now, Redox handles publishing like any other command
    and the Subscriber receives messages.
    Hayk Martirosyan authored
     
    Browse File »

  • Now, there is only one callback for command(), and it returns a const
    reference to the Command object. The user is responsible for error
    checking using c.ok(), c.status(), and getting the reply with c.reply().
    This significantly cleans up the library code and the user code.
    
    Greatly refactored the data type specialization code in command.cpp.
    Hayk Martirosyan authored
     
    Browse File »

  • Implemented limited but useful binary data support without breaking the
    API. If the last character of the command is a ", look for the first ",
    and everything in between the quotes treat as binary data. Takes care of
    setting a key with a binary value. Not useful if there need to be
    multiple binary entries in one command, or for binary keys. Also need to
    be careful if the last character of the value actually needs to be a
    quote, in which case we need to quote the value.
    Hayk Martirosyan authored
     
    Browse File »