title: Unable to connect to redis server
body: <p>I am unable to connect to redis server running with default options (127.0.0.1:6379) using <code>credis_connect()</code>. Here is the test code I used:</p>
  
  <pre><code>#include &lt;stdio.h&gt;
  #include "credis.h"
  
  int main(int argc, char **argv)
  {
      REDIS rh;
      char *val;
      int rc;
  
  
      printf("connecting to server at Port:6379\n");
      rh = credis_connect(NULL, 6379, 10000);
  
      if(rh == NULL)
      {
          printf("Error in connecting to server.\n");
          return -1;
      }
      printf("Connected to Redis Server. \n");
  
      /* ping server */
      rc = credis_ping(rh);
      printf("ping returned: %d\n", rc);
  
  
      /* set value of key "kalle" to "kula" */
      printf("Setting Key value to Redis Server.\n");
      credis_set(rh, "kalle", "kula");
  
      printf("Key value is set.\n");
  
        /* get value of key "kalle" */
      credis_get(rh, "kalle", &amp;val);
      printf("get kalle returned: %s\n", val);
  
      /* close connection to redis server */
      credis_close(rh);
  
      return 0;
  }
  </code></pre>
  
  <p>FYI: I am running redis 2.6.10 and credis 0.2.3 on ubuntu 12.10.</p>