author | Adrian S Tam <adrian.sw.tam@gmail.com> |
Wed, 07 Dec 2011 11:22:10 -0500 | |
changeset 7619 | b4dee6307aa7 |
parent 7149 | 87514e0d866b |
child 10440 | 1e48ff9185f1 |
permissions | -rw-r--r-- |
3578 | 1 |
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */ |
2 |
/* |
|
3 |
* This program is free software; you can redistribute it and/or modify |
|
4 |
* it under the terms of the GNU General Public License version 2 as |
|
5 |
* published by the Free Software Foundation; |
|
6 |
* |
|
7 |
* This program is distributed in the hope that it will be useful, |
|
8 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
9 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
10 |
* GNU General Public License for more details. |
|
11 |
* |
|
12 |
* You should have received a copy of the GNU General Public License |
|
13 |
* along with this program; if not, write to the Free Software |
|
14 |
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
|
15 |
*/ |
|
16 |
#ifndef NSC_TCP_SOCKET_FACTORY_IMPL_H |
|
17 |
#define NSC_TCP_SOCKET_FACTORY_IMPL_H |
|
18 |
||
19 |
#include "ns3/tcp-socket-factory.h" |
|
20 |
#include "ns3/ptr.h" |
|
21 |
||
22 |
namespace ns3 { |
|
23 |
||
24 |
class NscTcpL4Protocol; |
|
25 |
||
3691 | 26 |
/** |
7149
87514e0d866b
Fix doxygen groups for some new modules
Mitch Watrous <watrous@u.washington.edu>
parents:
6834
diff
changeset
|
27 |
* \ingroup internet |
3691 | 28 |
* \defgroup nsctcp NscTcp |
29 |
* |
|
30 |
* An alternate implementation of TCP for ns-3 is provided by the |
|
31 |
* Network Simulation Cradle (NSC) project. NSC is a separately linked |
|
32 |
* library that provides ported TCP stacks from popular operating systems |
|
33 |
* such as Linux and FreeBSD. Glue code such as the ns-3 NSC code |
|
34 |
* allows users to delegate Internet stack processing to the logic |
|
35 |
* from these operating systems. This allows a user to reproduce |
|
36 |
* with high fidelity the behavior of a real TCP stack. |
|
37 |
*/ |
|
38 |
||
39 |
/** |
|
40 |
* \ingroup nsctcp |
|
41 |
* |
|
42 |
* \brief socket factory implementation for creating instances of NSC TCP |
|
43 |
*/ |
|
3578 | 44 |
class NscTcpSocketFactoryImpl : public TcpSocketFactory |
45 |
{ |
|
46 |
public: |
|
47 |
NscTcpSocketFactoryImpl (); |
|
48 |
virtual ~NscTcpSocketFactoryImpl (); |
|
49 |
||
50 |
void SetTcp (Ptr<NscTcpL4Protocol> tcp); |
|
51 |
||
52 |
virtual Ptr<Socket> CreateSocket (void); |
|
53 |
||
54 |
protected: |
|
55 |
virtual void DoDispose (void); |
|
56 |
private: |
|
57 |
Ptr<NscTcpL4Protocol> m_tcp; |
|
58 |
}; |
|
59 |
||
60 |
} // namespace ns3 |
|
61 |
||
62 |
#endif /* NSC_TCP_SOCKET_FACTORY_IMPL_H */ |