2001-02-05 18:46:11 +00:00
|
|
|
#include <sys/types.h>
|
|
|
|
#include <sys/param.h>
|
2003-11-06 20:47:59 +00:00
|
|
|
#ifndef __MINGW32__
|
2001-02-05 18:46:11 +00:00
|
|
|
#include <sys/socket.h>
|
|
|
|
#include <netinet/in.h>
|
2003-11-06 20:47:59 +00:00
|
|
|
#endif
|
|
|
|
#include "windoze.h"
|
2001-02-05 18:46:11 +00:00
|
|
|
#include "socket.h"
|
|
|
|
|
|
|
|
int socket_mcloop4(int s,char loop)
|
|
|
|
{
|
2003-11-06 20:47:59 +00:00
|
|
|
return winsock2errno(setsockopt(s,IPPROTO_IP,IP_MULTICAST_LOOP,&loop,sizeof loop));
|
2001-02-05 18:46:11 +00:00
|
|
|
}
|
|
|
|
|