Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: async-writes
Fetching contributors…

Cannot retrieve contributors at this time

38 lines (26 sloc) 0.442 kb
#ifndef SERVER_H
#define SERVER_H
#include <event.h>
#include <hiredis/async.h>
#include <pthread.h>
struct worker;
struct conf;
struct server {
int fd;
struct event ev;
struct event_base *base;
struct conf *cfg;
/* worker threads */
struct worker **w;
int next_worker;
/* log lock */
struct {
pid_t self;
int fd;
} log;
};
struct server *
server_new(const char *cfg_file);
int
server_start(struct server *s);
#endif
Jump to Line
Something went wrong with that request. Please try again.