GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  LIBOWFAT_SOCKET_BROADCAST (3)

NAME

socket_broadcast - set UDP socket to broadcast mode

CONTENTS

Syntax
Description
Example

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)
Search for    or go to Top of page |  Section 3 |  Main Index


SOCKET_BROADCAST (3) -->

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.