diff options
author | Ludovic Pouzenc <ludovic@pouzenc.fr> | 2016-07-17 19:13:35 +0200 |
---|---|---|
committer | Ludovic Pouzenc <ludovic@pouzenc.fr> | 2016-07-17 19:13:35 +0200 |
commit | 2b13fb969c6a05815c34295afeaffee4d60dc7fd (patch) | |
tree | b73aca948508ef4ea7a2042d4c81571b198f5aa3 /mcastseed/src/sockets.h | |
parent | 3f0a442799955f56b2c77aabd6bc7aa4458718b4 (diff) | |
download | eficast-2b13fb969c6a05815c34295afeaffee4d60dc7fd.tar.gz eficast-2b13fb969c6a05815c34295afeaffee4d60dc7fd.tar.bz2 eficast-2b13fb969c6a05815c34295afeaffee4d60dc7fd.zip |
Drop msock.h and socket portability.
mcastseed/leech aren't really portable nor useful on M$ Windows™.
Diffstat (limited to 'mcastseed/src/sockets.h')
-rw-r--r-- | mcastseed/src/sockets.h | 27 |
1 files changed, 27 insertions, 0 deletions
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 <ludovic@pouzenc.fr> + * + * Greatly inspired from msock.h written by Christian Beier <dontmind@sdf.org> + */ + +#ifndef SOCKETS_H +#define SOCKETS_H + +#include <sys/types.h> +#include <sys/socket.h> +#include <netdb.h> +/* +#include <sys/socket.h> +#include <netinet/in.h> +#include <sys/un.h> +#include <netinet/tcp.h> +#include <arpa/inet.h> +#include <netdb.h> +*/ +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*/ |