comparison core/UdpClient.cpp @ 284:7bfb25a2e158 Doxy prerelease

Merge
author Robert Jack <robert.h.jack@gmail.com>
date Tue, 17 May 2016 15:53:24 +0100
parents 247a182adb6d
children a14fe8b0f588
comparison
equal deleted inserted replaced
269:ac8eb07afcf5 284:7bfb25a2e158
6 */ 6 */
7 #include "UdpClient.h" 7 #include "UdpClient.h"
8 8
9 UdpClient::UdpClient(){ 9 UdpClient::UdpClient(){
10 outSocket=socket(AF_INET, SOCK_DGRAM, 0); 10 outSocket=socket(AF_INET, SOCK_DGRAM, 0);
11 int broadcastEnable = 1;
12 int ret = setsockopt(outSocket, SOL_SOCKET, SO_BROADCAST, &broadcastEnable, sizeof(broadcastEnable));
13 printf("setsockopt returned %d\n", ret);
11 isSetPort=false; 14 isSetPort=false;
12 isSetServer=false; 15 isSetServer=false;
13 enabled=false; 16 enabled=false;
14 } 17 }
15 UdpClient::UdpClient(int aPort, const char* aServerName){ 18 UdpClient::UdpClient(int aPort, const char* aServerName){