Plan 9 from Bell Labs’s /usr/web/sources/contrib/anothy/src/lib/djb-ape/unix/socket_mcjoin4.3

Copyright © 2021 Plan 9 Foundation.
Distributed under the MIT License.
Download the Plan 9 distribution.


.TH socket_mcjoin4 3
.SH NAME
socket_mcjoin4 \- join a multicast group
.SH SYNTAX
.B #include <socket.h>

int \fBsocket_mcjoin4\fP(int \fIs\fR,const char \fIgroupip\fR[4],const char \fIinterface\fR[4]);
.SH DESCRIPTION
socket_mcjoin4 joins the IPv4 multicast group \fIgroupip\fR on \fIinterface\fR.

TODO

socket \fIs\fR and writes the IP address to \fIip\fR and the port to
\fIport\fR.

If something goes wrong, socket_local4 returns -1, setting errno
appropriately.
.SH "SEE ALSO"
socket_accept4(3), socket_remote4(3)

Bell Labs OSI certified Powered by Plan 9

(Return to Plan 9 Home Page)

Copyright © 2021 Plan 9 Foundation. All Rights Reserved.
Comments to [email protected].