EDGESEC  0.1.0-alpha.0+sha.ca29a8277b72f80785649ea9ef9cd7edf642d939
Secure router - reference implementation
mcast.h
Go to the documentation of this file.
1 
11 #ifndef MCAST_H
12 #define MCAST_H
13 
14 #include <stdint.h>
15 #include <sys/socket.h>
16 
26 int join_mcast(int fd, const struct sockaddr_storage *sa, socklen_t sa_len,
27  uint32_t ifindex);
28 
37 int create_recv_mcast(const struct sockaddr_storage *sa, socklen_t sa_len,
38  uint32_t ifindex);
39 
48 int create_send_mcast(const struct sockaddr_storage *sa, socklen_t sa_len,
49  uint32_t ifindex);
50 
51 #endif // MCAST_H
int join_mcast(int fd, const struct sockaddr_storage *sa, socklen_t sa_len, uint32_t ifindex)
Join a multicast socket.
Definition: mcast.c:32
int create_recv_mcast(const struct sockaddr_storage *sa, socklen_t sa_len, uint32_t ifindex)
Create a receive multicast socket.
Definition: mcast.c:115
int create_send_mcast(const struct sockaddr_storage *sa, socklen_t sa_len, uint32_t ifindex)
Create a send multicast socket.
Definition: mcast.c:249