socket.h
author Tero Marttila <terom@fixme.fi>
Thu, 28 Aug 2008 03:14:07 +0300
changeset 47 a5c09677ca6f
parent 39 0e21a65074a6
permissions -rw-r--r--
add the coro_test.c file, and update .hgignore a bit
#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 */