face: change Transport static properties initialization
Transport constructor now initializes static properties to invalid values.
Subclass constructor must explicitly set every static property.
refs #3259
Change-Id: I7ac3819694e0772c33a8a5d573e260f0eb944bff
diff --git a/daemon/face/transport.hpp b/daemon/face/transport.hpp
index b7f1c30..55efe3b 100644
--- a/daemon/face/transport.hpp
+++ b/daemon/face/transport.hpp
@@ -55,6 +55,10 @@
*/
const ssize_t MTU_UNLIMITED = -1;
+/** \brief (for internal use) indicates MTU field is unset
+ */
+const ssize_t MTU_INVALID = -2;
+
/** \brief the lower part of an LpFace
* \sa LpFace
*/
@@ -89,6 +93,14 @@
EndpointId remoteEndpoint;
};
+ /** \brief constructor
+ *
+ * Transport constructor initializes static properties to invalid values.
+ * Subclass constructor must explicitly set every static property.
+ *
+ * This constructor initializes TransportState to UP;
+ * subclass constructor can rely on this default value.
+ */
Transport();
virtual