|
1 /* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */ |
|
2 /* |
|
3 * Copyright (c) 2013 Hajime Tazaki |
|
4 * |
|
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 |
|
7 * published by the Free Software Foundation; |
|
8 * |
|
9 * This program is distributed in the hope that it will be useful, |
|
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
12 * GNU General Public License for more details. |
|
13 * |
|
14 * You should have received a copy of the GNU General Public License |
|
15 * along with this program; if not, write to the Free Software |
|
16 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
|
17 * |
|
18 * Author: Hajime Tazaki <tazaki@sfc.wide.ad.jp> |
|
19 */ |
|
20 #ifndef LINUX_DCCP6_SOCKET_FACTORY_IMPL_H |
|
21 #define LINUX_DCCP6_SOCKET_FACTORY_IMPL_H |
|
22 |
|
23 #include "linux-dccp6-socket-factory.h" |
|
24 #include "ns3/ptr.h" |
|
25 #include "ns3/node.h" |
|
26 |
|
27 namespace ns3 { |
|
28 |
|
29 /** |
|
30 * \ingroup dccp |
|
31 * \brief Object to create DCCP socket instances |
|
32 * \internal |
|
33 * |
|
34 * This class implements the API for creating DCCP sockets. |
|
35 * It is a socket factory (deriving from class SocketFactory). |
|
36 */ |
|
37 class LinuxDccp6SocketFactoryImpl : public LinuxDccp6SocketFactory |
|
38 { |
|
39 public: |
|
40 /** |
|
41 * \brief Implements a method to create a Dccp-based socket and return |
|
42 * a base class smart pointer to the socket. |
|
43 * \internal |
|
44 * |
|
45 * \return smart pointer to Socket |
|
46 */ |
|
47 virtual Ptr<Socket> CreateSocket (void); |
|
48 |
|
49 protected: |
|
50 private: |
|
51 }; |
|
52 |
|
53 } // namespace ns3 |
|
54 |
|
55 #endif /* LINUX_DCCP6_SOCKET_FACTORY_IMPL_H */ |