Update for mingw compile.
[awesomized/libmemcached] / libtest / server_container.h
index 6eadc6d57e31416664ae11c2cabb95a595e1cf76..48d9090155647e00d84b3b40b6cf232c99b2a396 100644 (file)
@@ -40,6 +40,9 @@
 #include <cstdio>
 #include <cstring>
 
+#include <netdb.h>
+#include <netinet/in.h>
+
 #include <string>
 #include <unistd.h>
 #include <vector>
@@ -53,7 +56,6 @@ private:
   std::string server_list;
   bool _socket;
   bool _sasl;
-  uint32_t _count;
   std::string _username;
   std::string _password;
 
@@ -124,6 +126,8 @@ public:
   Server* last();
   Server *pop_server();
 
+  Server* create(const std::string& server_type, in_port_t try_port, const bool is_socket);
+
   unsigned long int servers_to_run() const
   {
     return _servers_to_run;
@@ -134,6 +138,13 @@ public:
     _servers_to_run= arg;
   }
 
+private:
+  bool _start_server(const bool is_socket,
+                     const std::string& server_type,
+                     const in_port_t try_port,
+                     int argc, const char *argv[],
+                     const bool opt_startup_message);
+
 private:
   unsigned long int _servers_to_run;
 };