UDPSocket broadcast

25 Oct 2010

 

Anybody used the UDPSocket for broadcast ?

char cfgRqstMsg[]="EPOWER SERVER CONFIG REQUEST";    //

Host brdHost(IP_ADDR_BROADCAST, 5555);    //broadcast test msg

int nSent = cfgSocket.sendto(cfgRqstMsg,strlen(cfgRqstMsg),&brdHost);

this code always fails with the UDPSOCKET_MEM error

there doesnt appear to be way to get at the underlying socket and setting SOF_BROADCAST

cheers

dave