comparison core/UdpClient.cpp @ 276:a14fe8b0f588 prerelease

Partially undoing 247a182adb6d
author Giulio Moro <giuliomoro@yahoo.it>
date Tue, 17 May 2016 16:04:35 +0100
parents 247a182adb6d
children f14dc4ac8955
comparison
equal deleted inserted replaced
275:428f13c2cb49 276:a14fe8b0f588
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; 11 int broadcastEnable = 1;
12 int ret = setsockopt(outSocket, SOL_SOCKET, SO_BROADCAST, &broadcastEnable, sizeof(broadcastEnable)); 12 int ret = setsockopt(outSocket, SOL_SOCKET, SO_BROADCAST, &broadcastEnable, sizeof(broadcastEnable));
13 printf("setsockopt returned %d\n", ret);
14 isSetPort=false; 13 isSetPort=false;
15 isSetServer=false; 14 isSetServer=false;
16 enabled=false; 15 enabled=false;
17 } 16 }
18 UdpClient::UdpClient(int aPort, const char* aServerName){ 17 UdpClient::UdpClient(int aPort, const char* aServerName){