OLD | NEW |
(Empty) | |
| 1 /* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */ |
| 2 /* |
| 3 * Copyright (c) 2012 NICT |
| 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@nict.go.jp> |
| 19 */ |
| 20 #ifndef LINUX_DCCP_SOCKET_FACTORY_IMPL_H |
| 21 #define LINUX_DCCP_SOCKET_FACTORY_IMPL_H |
| 22 |
| 23 #include "ns3/linux-dccp-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 LinuxDccpSocketFactoryImpl : public LinuxDccpSocketFactory |
| 38 { |
| 39 public: |
| 40 |
| 41 /** |
| 42 * \brief Implements a method to create a Dccp-based socket and return |
| 43 * a base class smart pointer to the socket. |
| 44 * \internal |
| 45 * |
| 46 * \return smart pointer to Socket |
| 47 */ |
| 48 virtual Ptr<Socket> CreateSocket (void); |
| 49 |
| 50 protected: |
| 51 private: |
| 52 }; |
| 53 |
| 54 } // namespace ns3 |
| 55 |
| 56 #endif /* LINUX_DCCP_SOCKET_FACTORY_IMPL_H */ |
OLD | NEW |