Code

frontend: Added FETCH support to the connection handler.
authorSebastian Harl <sh@tokkee.org>
Mon, 31 Mar 2014 21:21:54 +0000 (23:21 +0200)
committerSebastian Harl <sh@tokkee.org>
Mon, 31 Mar 2014 21:21:54 +0000 (23:21 +0200)
The wire format is: <CONNECTION_FETCH>;<len>;<host>

src/frontend/connection.c

index fdbb26fe60518a0b1834d4c809a3f27915f54d74..91196dcd4448125864073bff616ce24f9d406809 100644 (file)
@@ -310,6 +310,9 @@ command_handle(sdb_conn_t *conn)
                        break;
                }
 
+               case CONNECTION_FETCH:
+                       status = sdb_fe_fetch(conn, sdb_strbuf_string(conn->buf));
+                       break;
                case CONNECTION_LIST:
                        status = sdb_fe_list(conn);
                        break;