Sha256: 96221d7c7a487428c6642f3b60104886644bf65bf0dd788ff6bdaecf9643d046

Contents?: true

Size: 954 Bytes

Versions: 2

Compression:

Stored size: 954 Bytes

Contents

/*
 * Copyright (C) 2011 Data Differential, http://datadifferential.com/
 * Copyright (C) 2006-2009 Brian Aker
 * All rights reserved.
 *
 * Use and distribution licensed under the BSD license.  See
 * the COPYING file in the parent directory for full text.
 */

#pragma once

#include <unistd.h>

/*
  Server startup and shutdown functions.
*/
#ifdef	__cplusplus
extern "C" {
#endif

#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;
  memcached_server_st *servers;
  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_shutdown(server_startup_st *construct);

#ifdef	__cplusplus
}
#endif

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
couchbase-memcached-1.2.9 ext/libmemcached-0.50/libtest/server.h
couchbase-memcached-1.2.8 ext/libmemcached-0.50/libtest/server.h