|
hamsterdb Embedded Database
2.1.1
|
#include <stdio.h>#include <stdlib.h>#include <string.h>#include <ham/hamsterdb.h>#include <ham/hamsterdb_srv.h>Go to the source code of this file.
Defines | |
| #define | EXT "" |
Functions | |
| int | main () |
| #define EXT "" |
Copyright (C) 2005-2013 Christoph Rupp (chris@crupp.de).
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
See files COPYING.* for License information.
A simple example which creates a server with one Environment and several Databases. See client1.c for the corresponding client.
Definition at line 25 of file server1.c.
Referenced by main().
| int main | ( | ) |
Definition at line 29 of file server1.c.
References EXT, HAM_AUTO_CLEANUP, ham_db_close(), HAM_ENABLE_DUPLICATES, HAM_ENABLE_TRANSACTIONS, ham_env_close(), ham_env_create(), ham_env_create_db(), HAM_RECORD_NUMBER, ham_srv_add_env(), ham_srv_close(), ham_srv_init(), and ham_srv_config_t::port.
1.7.6.1