/* * 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*/