socket_broadcast(3) debian man page | unix.com

Man Page: socket_broadcast

Operating Environment: debian

Section: 3

socket_broadcast(3)					     Library Functions Manual					       socket_broadcast(3)

NAME
socket_broadcast - set UDP socket to broadcast mode
SYNTAX
#include <socket.h> int socket_broadcast(int s);
DESCRIPTION
socket_broadcast sets UDP socket s to broadcast mode. socket_send4 and socket_send6 will fail to send packets to the broadcast address unless socket_broadcast is called before. Normally socket_broadcast returns 0. If anything goes wrong, socket_broadcast returns -1, setting errno appropriately.
EXAMPLE
#include <socket.h> int s; if ((s=socket_udp6())==-1) strerr_die2sys(111,FATAL,"unable to create UDP socket: "); if (socket_broadcast(s) == -1) strerr_die2sys(111,FATAL,"unable to set broadcast mode: ");
SEE ALSO
socket_send4(3), socket_send6(3) socket_broadcast(3)
Related Man Pages
ost_udpbroadcast(3) - debian
socket_send6(3) - debian
udp(4) - debian
udp(4) - netbsd
udp(7p) - hpux
Similar Topics in the Unix Linux Community
Adding the individual columns of a matrix.
Find columns in a file based on header and print to new file
A (ksh) Library For and From UNIX.com
How to copy a column of multiple files and paste into new excel file (next to column)?
New UNIX and Linux History Sections