File: socket_mcloop4.c

package info (click to toggle)
libowfat 0.10-1
  • links: PTS
  • area: main
  • in suites: woody
  • size: 1,204 kB
  • ctags: 307
  • sloc: ansic: 2,445; makefile: 137; sh: 9
file content (11 lines) | stat: -rw-r--r-- 227 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
#include <sys/types.h>
#include <sys/param.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include "socket.h"

int socket_mcloop4(int s,char loop)
{
  return setsockopt(s,IPPROTO_IP,IP_MULTICAST_LOOP,&loop,sizeof loop);
}