Skip to content

Instantly share code, notes, and snippets.

Avatar

章建军 deanzhang

View GitHub Profile
@deanzhang
deanzhang / multi_mcast.c
Created Feb 9, 2012
multicast listener use libevent
View multi_mcast.c
/* For sockaddr_in */
#include <netinet/in.h>
/* For socket functions */
#include <sys/socket.h>
/* For fcntl */
#include <fcntl.h>
#include <event2/event.h>
#include <arpa/inet.h>