-
Notifications
You must be signed in to change notification settings - Fork 79
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add: possibility to connect to redis via TCP
To connect to TCP the kb->path needs to start with `tcp://` otherwise it assumes a unix connection. To test this commit you can run: ``` \#include <gvm/util/kb.h> \#define DB_ADDRESS "tcp://localhost" int main() { kb_t main_kb = kb_direct_conn (DB_ADDRESS, 1); kb_item_push_str(main_kb, "test", "Hello world"); g_print("got: %s\n", kb_item_get_str(main_kb, "test")); } ```
- Loading branch information
1 parent
e9a94e7
commit 91d95c5
Showing
1 changed file
with
49 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters