#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <ups/upscaledb.h>
#include <ups/upscaledb_srv.h>
Go to the source code of this file.
A simple example which creates a server with one Environment and several Databases. See client1.c for the corresponding client.
Definition at line 32 of file server1.c.
Referenced by main().
Definition at line 36 of file server1.c.
References EXT, ups_srv_config_t::port, UPS_AUTO_CLEANUP, ups_db_close(), UPS_ENABLE_DUPLICATE_KEYS, UPS_ENABLE_TRANSACTIONS, ups_env_close(), ups_env_create(), ups_env_create_db(), UPS_RECORD_NUMBER64, ups_srv_add_env(), ups_srv_close(), and ups_srv_init().