face: Implementation of encode/decode of LocalControlHeader
LocalControlHeader can only be used on faces that are derived from
LocalFace. UnixStreamFace is directly inherited from LocalFace,
TCP face has two specializations: generic TcpFace (strictly not local),
and LocalTcpFace.
refs #1213
Change-Id: I8a158c3bc4bb929eedd15757cfddecc0d1049f9f
diff --git a/daemon/face/tcp-channel.hpp b/daemon/face/tcp-channel.hpp
index 4cca5c5..db6521f 100644
--- a/daemon/face/tcp-channel.hpp
+++ b/daemon/face/tcp-channel.hpp
@@ -32,7 +32,7 @@
* (as a response to incoming connection or after connection
* is established)
*/
- typedef function<void(const shared_ptr<TcpFace>& newFace)> FaceCreatedCallback;
+ typedef function<void(const shared_ptr<Face>& newFace)> FaceCreatedCallback;
/**
* \brief Prototype for the callback that is called when face is failed to
@@ -135,7 +135,7 @@
boost::asio::io_service& m_ioService;
tcp::Endpoint m_localEndpoint;
- typedef std::map< tcp::Endpoint, shared_ptr<TcpFace> > ChannelFaceMap;
+ typedef std::map< tcp::Endpoint, shared_ptr<Face> > ChannelFaceMap;
ChannelFaceMap m_channelFaces;
bool isListening;