LEFT | RIGHT |
(no file at all) | |
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) 2015 Natale Patriciello <natale.patriciello@gmail.com> | 3 * Copyright (c) 2015 Natale Patriciello <natale.patriciello@gmail.com> |
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 885 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
896 else if (who == RECEIVER) | 896 else if (who == RECEIVER) |
897 { | 897 { |
898 m_receiverSocket->SetInitialCwnd (initialCwnd); | 898 m_receiverSocket->SetInitialCwnd (initialCwnd); |
899 } | 899 } |
900 else | 900 else |
901 { | 901 { |
902 NS_FATAL_ERROR ("Not defined"); | 902 NS_FATAL_ERROR ("Not defined"); |
903 } | 903 } |
904 } | 904 } |
905 | 905 |
| 906 void· |
| 907 TcpGeneralTest::SetEcn (SocketWho who) |
| 908 { |
| 909 if (who == SENDER) |
| 910 { |
| 911 m_senderSocket->SetEcn (); |
| 912 } |
| 913 else if (who == RECEIVER) |
| 914 { |
| 915 m_receiverSocket->SetEcn (); |
| 916 } |
| 917 else |
| 918 { |
| 919 NS_FATAL_ERROR ("Not defined"); |
| 920 } |
| 921 } |
| 922 |
906 void | 923 void |
907 TcpGeneralTest::SetInitialSsThresh (SocketWho who, uint32_t initialSsThresh) | 924 TcpGeneralTest::SetInitialSsThresh (SocketWho who, uint32_t initialSsThresh) |
908 { | 925 { |
909 if (who == SENDER) | 926 if (who == SENDER) |
910 { | 927 { |
911 m_senderSocket->SetInitialSSThresh (initialSsThresh); | 928 m_senderSocket->SetInitialSSThresh (initialSsThresh); |
912 } | 929 } |
913 else if (who == RECEIVER) | 930 else if (who == RECEIVER) |
914 { | 931 { |
915 m_receiverSocket->SetInitialSSThresh (initialSsThresh); | 932 m_receiverSocket->SetInitialSSThresh (initialSsThresh); |
(...skipping 281 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1197 SendEmptyPacket (flags); | 1214 SendEmptyPacket (flags); |
1198 } | 1215 } |
1199 } | 1216 } |
1200 | 1217 |
1201 Ptr<TcpSocketBase> | 1218 Ptr<TcpSocketBase> |
1202 TcpSocketSmallAcks::Fork (void) | 1219 TcpSocketSmallAcks::Fork (void) |
1203 { | 1220 { |
1204 return CopyObject<TcpSocketSmallAcks> (this); | 1221 return CopyObject<TcpSocketSmallAcks> (this); |
1205 } | 1222 } |
1206 | 1223 |
LEFT | RIGHT |