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 |
|
|
26 |
class NscTcpSocketFactoryImpl : public TcpSocketFactory
|
|
27 |
{
|
|
28 |
public:
|
|
29 |
NscTcpSocketFactoryImpl ();
|
|
30 |
virtual ~NscTcpSocketFactoryImpl ();
|
|
31 |
|
|
32 |
void SetTcp (Ptr<NscTcpL4Protocol> tcp);
|
|
33 |
|
|
34 |
virtual Ptr<Socket> CreateSocket (void);
|
|
35 |
|
|
36 |
protected:
|
|
37 |
virtual void DoDispose (void);
|
|
38 |
private:
|
|
39 |
Ptr<NscTcpL4Protocol> m_tcp;
|
|
40 |
};
|
|
41 |
|
|
42 |
} // namespace ns3
|
|
43 |
|
|
44 |
#endif /* NSC_TCP_SOCKET_FACTORY_IMPL_H */
|