Mercurial > hg > beaglert
changeset 267:247a182adb6d prerelease
Makefile creates build folder in the script folder
author | Giulio Moro <giuliomoro@yahoo.it> |
---|---|
date | Tue, 17 May 2016 14:38:03 +0100 |
parents | 156191dffa8c |
children | 8d80eda512cd 428f13c2cb49 |
files | Doxyfile Makefile core/UdpClient.cpp |
diffstat | 3 files changed, 6 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/Doxyfile Tue May 17 14:07:01 2016 +0100 +++ b/Doxyfile Tue May 17 14:38:03 2016 +0100 @@ -648,7 +648,7 @@ # directories like "/usr/src/myproject". Separate the files or directories # with spaces. -INPUT = include/BeagleRT.h include/Utilities.h include/digital_gpio_mapping.h include/PulseIn.h include/Scope.h include/Midi.h include/UdpClient.h include/WriteFile.h +INPUT = include/BeagleRT.h include/Utilities.h include/digital_gpio_mapping.h include/PulseIn.h include/Scope.h include/Midi.h include/UdpClient.h include/WriteFile.h projects/ # This tag can be used to specify the character encoding of the source files # that doxygen parses. Internally doxygen uses the UTF-8 encoding, which is
--- a/Makefile Tue May 17 14:07:01 2016 +0100 +++ b/Makefile Tue May 17 14:38:03 2016 +0100 @@ -15,7 +15,7 @@ endif PROJECT_DIR := $(abspath projects/$(PROJECT)) - +$(shell mkdir -p $(PROJECT_DIR)/build) RM := rm -rf STATIC_LIBS := ./libprussdrv.a ./libNE10.a LIBS := -lrt -lnative -lxenomai -lsndfile
--- a/core/UdpClient.cpp Tue May 17 14:07:01 2016 +0100 +++ b/core/UdpClient.cpp Tue May 17 14:38:03 2016 +0100 @@ -8,6 +8,9 @@ UdpClient::UdpClient(){ outSocket=socket(AF_INET, SOCK_DGRAM, 0); + int broadcastEnable = 1; + int ret = setsockopt(outSocket, SOL_SOCKET, SO_BROADCAST, &broadcastEnable, sizeof(broadcastEnable)); + printf("setsockopt returned %d\n", ret); isSetPort=false; isSetServer=false; enabled=false; @@ -74,4 +77,4 @@ stTimeOut.tv_usec=(int)(timeOutSecs*1000000); int descriptorReady= select(outSocket+1, NULL, &stWriteFDS, NULL, &stTimeOut); return descriptorReady>0? 1 : descriptorReady; - } \ No newline at end of file + }