Enabling broadcast option on a socket!

In order to enable broadcasting option on a socket you’ve got to enable it via a call to setsockopt with optname set to SO_BROADCAST and level set to SOL_SOCKET! Here is a function which does this! [sourcecode language=’cpp’]bool SetBroadcastOn( const bool Enable ) {     const BOOL bEnable = Enable;     if( setsockopt( sckHandle,                     […]
Continue reading…