Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(1685)

Unified Diff: src/node/tcp-socket.h

Issue 1702042: New TCP architecture for NS-3
Patch Set: Make some variables into TracedValue (testsuite will be in next patchset) Created 13 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: src/node/tcp-socket.h
===================================================================
--- a/src/node/tcp-socket.h
+++ b/src/node/tcp-socket.h
@@ -35,6 +35,21 @@
class Node;
class Packet;
+/* Names of the 11 TCP states */
+typedef enum {
+ CLOSED, // 0
+ LISTEN, // 1
+ SYN_SENT, // 2
+ SYN_RCVD, // 3
+ ESTABLISHED, // 4
+ CLOSE_WAIT, // 5
+ LAST_ACK, // 6
+ FIN_WAIT_1, // 7
+ FIN_WAIT_2, // 8
+ CLOSING, // 9
+ TIME_WAIT, // 10
+ LAST_STATE } TcpStates_t;
+
/**
* \ingroup socket
*
@@ -51,6 +66,9 @@
TcpSocket (void);
virtual ~TcpSocket (void);
+ // Literal names of TCP states for use in log messages */
+ static const char* const TcpStateName[LAST_STATE];
+
private:
// Indirect the attribute setting and getting through private virtual methods
virtual void SetSndBufSize (uint32_t size) = 0;
@@ -71,6 +89,8 @@
virtual Time GetDelAckTimeout (void) const = 0;
virtual void SetDelAckMaxCount (uint32_t count) = 0;
virtual uint32_t GetDelAckMaxCount (void) const = 0;
+ virtual void SetPersistTimeout (Time timeout) = 0;
+ virtual Time GetPersistTimeout (void) const = 0;
};

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b