LEFT | RIGHT |
1 /* -*- Mode: C++; c-file-style: "gnu"; indent-tabs-mode:nil; -*- */ | 1 /* -*- Mode: C++; c-file-style: "gnu"; indent-tabs-mode:nil; -*- */ |
2 /* | 2 /* |
3 * Copyright (c) 2007 INRIA | 3 * Copyright (c) 2007 INRIA |
4 * | 4 * |
5 * This program is free software; you can redistribute it and/or modify | 5 * This program is free software; you can redistribute it and/or modify |
6 * it under the terms of the GNU General Public License version 2 as | 6 * it under the terms of the GNU General Public License version 2 as |
7 * published by the Free Software Foundation; | 7 * published by the Free Software Foundation; |
8 * | 8 * |
9 * This program is distributed in the hope that it will be useful, | 9 * This program is distributed in the hope that it will be useful, |
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
(...skipping 13 matching lines...) Expand all Loading... |
24 #include "ns3/double.h" | 24 #include "ns3/double.h" |
25 #include "ns3/trace-source-accessor.h" | 25 #include "ns3/trace-source-accessor.h" |
26 #include "ns3/nstime.h" | 26 #include "ns3/nstime.h" |
27 #include "tcp-socket.h" | 27 #include "tcp-socket.h" |
28 | 28 |
29 NS_LOG_COMPONENT_DEFINE ("TcpSocket"); | 29 NS_LOG_COMPONENT_DEFINE ("TcpSocket"); |
30 | 30 |
31 namespace ns3 { | 31 namespace ns3 { |
32 | 32 |
33 NS_OBJECT_ENSURE_REGISTERED (TcpSocket); | 33 NS_OBJECT_ENSURE_REGISTERED (TcpSocket); |
| 34 |
| 35 const char* const TcpSocket::TcpStateName[LAST_STATE] = {"CLOSED", "LISTEN", "SY
N_SENT", "SYN_RCVD", "ESTABLISHED", "CLOSE_WAIT", "LAST_ACK", "FIN_WAIT_1", "FIN
_WAIT_2", "CLOSING", "TIME_WAIT" }; |
34 | 36 |
35 TypeId | 37 TypeId |
36 TcpSocket::GetTypeId (void) | 38 TcpSocket::GetTypeId (void) |
37 { | 39 { |
38 static TypeId tid = TypeId ("ns3::TcpSocket") | 40 static TypeId tid = TypeId ("ns3::TcpSocket") |
39 .SetParent<Socket> () | 41 .SetParent<Socket> () |
40 .AddAttribute ("SndBufSize", | 42 .AddAttribute ("SndBufSize", |
41 "TcpSocket maximum transmit buffer size (bytes)", | 43 "TcpSocket maximum transmit buffer size (bytes)", |
42 UintegerValue (131072), // 128k | 44 UintegerValue (131072), // 128k |
43 MakeUintegerAccessor (&TcpSocket::GetSndBufSize, | 45 MakeUintegerAccessor (&TcpSocket::GetSndBufSize, |
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
105 { | 107 { |
106 NS_LOG_FUNCTION_NOARGS (); | 108 NS_LOG_FUNCTION_NOARGS (); |
107 } | 109 } |
108 | 110 |
109 TcpSocket::~TcpSocket () | 111 TcpSocket::~TcpSocket () |
110 { | 112 { |
111 NS_LOG_FUNCTION_NOARGS (); | 113 NS_LOG_FUNCTION_NOARGS (); |
112 } | 114 } |
113 | 115 |
114 }; // namespace ns3 | 116 }; // namespace ns3 |
LEFT | RIGHT |