face: replace EventEmitter usage with Signal
refs #2300
Change-Id: I17d0d65d2c474b17dd9f23f271a6144b0b4fbc07
diff --git a/daemon/face/multicast-udp-face.cpp b/daemon/face/multicast-udp-face.cpp
index 34c6cd2..7e91ca5 100644
--- a/daemon/face/multicast-udp-face.cpp
+++ b/daemon/face/multicast-udp-face.cpp
@@ -61,7 +61,7 @@
void
MulticastUdpFace::sendInterest(const Interest& interest)
{
- onSendInterest(interest);
+ this->emitSignal(onSendInterest, interest);
NFD_LOG_DEBUG("Sending interest");
sendBlock(interest.wireEncode());
@@ -70,9 +70,9 @@
void
MulticastUdpFace::sendData(const Data& data)
{
- /// \todo After this method implements duplicate suppression, onSendData event should
- /// be triggered only when data is actually sent out
- onSendData(data);
+ /// \todo After this method implements duplicate suppression, onSendData signal should
+ /// be emitted only when data is actually sent out
+ this->emitSignal(onSendData, data);
NFD_LOG_DEBUG("Sending data");
sendBlock(data.wireEncode());