File: socket_mcloop4.3

package info (click to toggle)
libowfat 0.22-1
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 3,148 kB
  • ctags: 976
  • sloc: ansic: 10,424; makefile: 42
file content (17 lines) | stat: -rw-r--r-- 545 bytes parent folder | download | duplicates (9)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
.TH socket_mcloop4 3
.SH NAME
socket_mcloop4 \- set multicast loopback
.SH SYNTAX
.B #include <socket.h>

int \fBsocket_mcloop4\fP(int \fIs\fR,char \fIloop\fR);
.SH DESCRIPTION
socket_mcloop4 activates multicast loopback for the socket \fIs\fR if
\fIloop\fR is non-zero, and deactivates it otherwise.  If loopback is
activated, packets sent on this socket will be received on the same
host.

If something goes wrong, socket_mcloop4 returns -1, setting errno
appropriately.
.SH "SEE ALSO"
socket_mcloop6(3), socket_mcjoin4(3), socket_mcleave4(3)