Changeset 126 in pacpussensors for trunk/PacpusSocket/PacpusUDPSocket.cpp


Ignore:
Timestamp:
May 20, 2016, 3:17:57 PM (8 years ago)
Author:
DHERBOMEZ Gérald
Message:

StringGenerator component added to test PacpusUDPSocket
XML file to test provided

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/PacpusSocket/PacpusUDPSocket.cpp

    r99 r126  
    125125{
    126126        int sent=0;
     127
     128    LOG_INFO("component " << name() << " sent " << frame);
    127129
    128130        if (socketType_ == "client")
     
    179181                if(udpSocket_->readDatagram(datagram.data(), datagram.size(),  &sender, &senderPort) != -1)
    180182                {
     183
     184            LOG_INFO("component " << name() << " received " << QString(datagram.data()));
     185
    181186                    if (socketType_ == "server")
    182187                    {
     
    192197                                        listClients << new Client(sender, senderPort);
    193198                        }
     199
    194200
    195201                        if (udpSocketOutput_ && udpSocketOutput_->hasConnection())
Note: See TracChangeset for help on using the changeset viewer.