socket.h
author Tero Marttila <terom@fixme.fi>
Thu, 28 Aug 2008 00:29:39 +0300
changeset 43 e5b714190dee
parent 39 0e21a65074a6
permissions -rw-r--r--
the request/reply code should be complete now, but still needs testing
#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 */