From 2b13fb969c6a05815c34295afeaffee4d60dc7fd Mon Sep 17 00:00:00 2001 From: Ludovic Pouzenc Date: Sun, 17 Jul 2016 19:13:35 +0200 Subject: Drop msock.h and socket portability. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit mcastseed/leech aren't really portable nor useful on M$ Windows™. --- mcastseed/src/sockets.h | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 mcastseed/src/sockets.h (limited to 'mcastseed/src/sockets.h') diff --git a/mcastseed/src/sockets.h b/mcastseed/src/sockets.h new file mode 100644 index 0000000..86f7c5b --- /dev/null +++ b/mcastseed/src/sockets.h @@ -0,0 +1,27 @@ +/* + * Copyright 2016 by Ludovic Pouzenc + * + * Greatly inspired from msock.h written by Christian Beier + */ + +#ifndef SOCKETS_H +#define SOCKETS_H + +#include +#include +#include +/* +#include +#include +#include +#include +#include +#include +*/ +int mcast_recv_socket(char *mcast_ip, char *port, int wanted_so_rcvbuf); +int mcast_send_socket(char *mcast_ip, char *port, int mcast_ttl, struct addrinfo **mcast_ai); + +int ucast_server_socket(char *port, int max_pending_conn); +int ucast_client_socket(char *server_ip, char *port); + +#endif /*SOCKETS_H*/ -- cgit v1.2.3