socket.h
author Tero Marttila <terom@fixme.fi>
Sat, 30 Aug 2008 19:13:15 +0300
changeset 49 10c7dce1a043
parent 39 0e21a65074a6
permissions -rw-r--r--
autogenerate the memcache_test help output, and pipeline memcache requests
#ifndef SOCKET_H
#define SOCKET_H

#include <sys/socket.h>

#include "config.h"

#define SOCKET_LISTEN_BACKLOG 128

int socket_listen (struct config_endpoint *endpoint, int sock_type);
int socket_connect_async (struct config_endpoint *endpoint, int sock_type);
int socket_check_error (int sock, int *error);

#endif /* SOCKET_H */