socket_broadcast man page on Alpinelinux

Man page or keyword search:  
man Server   18016 pages
apropos Keyword Search (all sections)
Output format
Alpinelinux logo
[printable version]

socket_broadcast(3)					   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)
[top]

List of man pages available for Alpinelinux

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net