projects
/
awesomized
/
libmemcached
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
|
inline
| side by side
Add in test cases for --socket (and documentation).
[awesomized/libmemcached]
/
libtest
/
server.h
diff --git
a/libtest/server.h
b/libtest/server.h
index 0aef86f93ce28ee57747a18329499e32da1b726c..5444821d685d8aa24faf97ef95594fc74c57d4c3 100644
(file)
--- a/
libtest/server.h
+++ b/
libtest/server.h
@@
-1,4
+1,5
@@
/*
/*
+ * Copyright (C) 2011 Data Differential, http://datadifferential.com/
* Copyright (C) 2006-2009 Brian Aker
* All rights reserved.
*
* Copyright (C) 2006-2009 Brian Aker
* All rights reserved.
*
@@
-6,6
+7,10
@@
* the COPYING file in the parent directory for full text.
*/
* the COPYING file in the parent directory for full text.
*/
+#pragma once
+
+#include <unistd.h>
+
/*
Server startup and shutdown functions.
*/
/*
Server startup and shutdown functions.
*/
@@
-16,13
+21,17
@@
extern "C" {
#include <libmemcached/memcached.h>
typedef struct server_startup_st server_startup_st;
#include <libmemcached/memcached.h>
typedef struct server_startup_st server_startup_st;
+#define SERVERS_TO_CREATE 5
struct server_startup_st
{
uint8_t count;
uint8_t udp;
struct server_startup_st
{
uint8_t count;
uint8_t udp;
- memcached_server_st *servers;
char *server_list;
char *server_list;
+ char pid_file[SERVERS_TO_CREATE][FILENAME_MAX];
+ in_port_t port[SERVERS_TO_CREATE];
+ int pids[SERVERS_TO_CREATE];
+ bool is_used[SERVERS_TO_CREATE]; // Did we start it, or was it just sitting there?
};
void server_startup(server_startup_st *construct);
};
void server_startup(server_startup_st *construct);