socket.h
author Tero Marttila <terom@fixme.fi>
Thu, 28 Aug 2008 01:34:14 +0300
changeset 44 03a7e064f833
parent 39 0e21a65074a6
permissions -rw-r--r--
stub functions and documentation
#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 */