src/internet/model/tcp-socket.h
changeset 10978 754c8256c35c
parent 10855 7ef081ddfc7f
child 11514 4e819d766ce2
--- a/src/internet/model/tcp-socket.h	Thu Oct 02 21:05:15 2014 -0700
+++ b/src/internet/model/tcp-socket.h	Thu Oct 02 21:17:48 2014 -0700
@@ -36,7 +36,10 @@
 class Packet;
 
 /**
+ * \ingroup tcp
  * \brief Names of the 11 TCP states
+ *
+ * \todo This should be a member of TcpSocket.
  */
 typedef enum {
   CLOSED,       // 0
@@ -54,6 +57,16 @@
 } TcpStates_t;
 
 /**
+ * \ingroup tcp
+ * TracedValue Callback signature for TcpStates_t
+ *
+ * \param [in] oldValue original value of the traced variable
+ * \param [in] newValue new value of the traced variable
+ */
+typedef void (* TcpStatesTracedValueCallback)(const TcpStates_t oldValue,
+                                              const TcpStates_t newValue);
+
+/**
  * \ingroup socket
  *
  * \brief (abstract) base class of all TcpSockets