50 printf(
"ups_env_create: %d\n", st);
57 printf(
"ups_env_create_db: %d\n", st);
67 printf(
"ups_env_create_db: %d\n", st);
76 printf(
"ups_env_create_db: %d\n", st);
84 memset(&cfg, 0,
sizeof(cfg));
89 printf(
"server1%s started - please run sample 'client1%s' for a test\n",
91 printf(
"type 'exit' to end the server\n");
96 s = scanf(
"%s", &input[0]);
97 if (s == EOF || !strcmp(input,
"exit")) {
98 printf(
"exiting...\n");
101 printf(
"unknown command\n");
struct ups_srv_t ups_srv_t
ups_status_t ups_srv_add_env(ups_srv_t *srv, ups_env_t *env, const char *urlname)
UPS_EXPORT ups_status_t UPS_CALLCONV ups_env_close(ups_env_t *env, uint32_t flags)
#define UPS_ENABLE_TRANSACTIONS
Header file for the upscaledb network server.
#define UPS_RECORD_NUMBER64
Include file for upscaledb embedded database.
ups_status_t ups_srv_init(ups_srv_config_t *config, ups_srv_t **srv)
#define UPS_ENABLE_DUPLICATE_KEYS
UPS_EXPORT ups_status_t UPS_CALLCONV ups_env_create(ups_env_t **env, const char *filename, uint32_t flags, uint32_t mode, const ups_parameter_t *param)
void ups_srv_close(ups_srv_t *srv)
UPS_EXPORT ups_status_t UPS_CALLCONV ups_env_create_db(ups_env_t *env, ups_db_t **db, uint16_t name, uint32_t flags, const ups_parameter_t *params)
UPS_EXPORT ups_status_t UPS_CALLCONV ups_db_close(ups_db_t *db, uint32_t flags)
struct ups_env_t ups_env_t