face: eliminate Transport::Packet wrapper type
Refs: #4843
Change-Id: I5977be55e8bdac33c989e3b8523fea764f304c37
diff --git a/daemon/face/websocket-transport.cpp b/daemon/face/websocket-transport.cpp
index d20e54c..bd45711 100644
--- a/daemon/face/websocket-transport.cpp
+++ b/daemon/face/websocket-transport.cpp
@@ -78,17 +78,17 @@
}
void
-WebSocketTransport::doSend(Transport::Packet&& packet)
+WebSocketTransport::doSend(const Block& packet, const EndpointId&)
{
NFD_LOG_FACE_TRACE(__func__);
websocketpp::lib::error_code error;
- m_server.send(m_handle, packet.packet.wire(), packet.packet.size(),
+ m_server.send(m_handle, packet.wire(), packet.size(),
websocketpp::frame::opcode::binary, error);
if (error)
return processErrorCode(error);
- NFD_LOG_FACE_TRACE("Successfully sent: " << packet.packet.size() << " bytes");
+ NFD_LOG_FACE_TRACE("Successfully sent: " << packet.size() << " bytes");
}
void
@@ -104,7 +104,7 @@
return;
}
- this->receive(Transport::Packet(std::move(element)));
+ this->receive(element);
}
void