model/linux/linux-udp6-socket-factory-impl.h
changeset 541 de7335a01743
equal deleted inserted replaced
540:dd0000c3c11c 541:de7335a01743
       
     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_UDP6_SOCKET_FACTORY_IMPL_H
       
    21 #define LINUX_UDP6_SOCKET_FACTORY_IMPL_H
       
    22 
       
    23 #include "linux-udp6-socket-factory.h"
       
    24 #include "ns3/ptr.h"
       
    25 #include "ns3/node.h"
       
    26 
       
    27 namespace ns3 {
       
    28 
       
    29 /**
       
    30  * \ingroup udp
       
    31  * \brief Object to create UDP socket instances
       
    32  * \internal
       
    33  *
       
    34  * This class implements the API for creating UDP sockets.
       
    35  * It is a socket factory (deriving from class SocketFactory).
       
    36  */
       
    37 class LinuxUdp6SocketFactoryImpl : public LinuxUdp6SocketFactory
       
    38 {
       
    39 public:
       
    40   /**
       
    41    * \brief Implements a method to create a Udp-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_UDP6_SOCKET_FACTORY_IMPL_H */