Changeset 126 in pacpussensors
- Timestamp:
- May 20, 2016, 3:17:57 PM (8 years ago)
- Location:
- trunk/PacpusSocket
- Files:
-
- 2 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/PacpusSocket/CMakeLists.txt
r99 r126 1 #########################quick start############################################2 #cmake ../ -G "CodeBlocks - Unix Makefiles"3 #make4 #make install5 #make clean6 ################################################################################7 1 project(PacpusSocket) 8 2 set(${PROJECT_NAME}_VERSION_MAJOR 0) … … 38 32 PacpusSocketAirplug.h 39 33 PacpusUDPSocket.h 34 StringGenerator.h 40 35 ) 41 36 set(PROJECT_SRCS … … 43 38 PacpusSocketAirplug.cpp 44 39 PacpusUDPSocket.cpp 40 StringGenerator.cpp 45 41 ) 46 42 … … 48 44 ${PLUGIN_HDR} 49 45 PacpusSocketAirplug.h 50 PacpusUDPSocket.h 46 PacpusUDPSocket.h 47 StringGenerator.h 51 48 ) 52 49 -
trunk/PacpusSocket/PacpusUDPSocket.cpp
r99 r126 125 125 { 126 126 int sent=0; 127 128 LOG_INFO("component " << name() << " sent " << frame); 127 129 128 130 if (socketType_ == "client") … … 179 181 if(udpSocket_->readDatagram(datagram.data(), datagram.size(), &sender, &senderPort) != -1) 180 182 { 183 184 LOG_INFO("component " << name() << " received " << QString(datagram.data())); 185 181 186 if (socketType_ == "server") 182 187 { … … 192 197 listClients << new Client(sender, senderPort); 193 198 } 199 194 200 195 201 if (udpSocketOutput_ && udpSocketOutput_->hasConnection()) -
trunk/PacpusSocket/socket_udp_test.xml
r125 r126 14 14 port="1200" 15 15 address="127.0.0.1"/> 16 <component name="emitter" type="TestPacpusSocket" 17 socketComponent="node_1" 16 <component name="emitter" type="StringGenerator" 18 17 /> 19 20 18 </components> 21 19 <connections> 20 <connection input="node_2.string" output="emitter.string" type="direct" priority="1"/> 21 <connection input="node_1.string" output="emitter.string" type="direct" priority="1"/> 22 22 </connections> 23 23 <plugins prefix="lib" postfix="" extension="so">
Note:
See TracChangeset
for help on using the changeset viewer.