ns-3-dce  dce-1.9-30-g161c559
A Direct Code Execution for ns-3 Network Simulator
linux-udp-socket-factory-impl.h
Go to the documentation of this file.
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_UDP_SOCKET_FACTORY_IMPL_H
21 #define LINUX_UDP_SOCKET_FACTORY_IMPL_H
22 
24 #include "ns3/ptr.h"
25 #include "ns3/node.h"
26 
27 namespace ns3 {
28 
38 {
39 public:
47  virtual Ptr<Socket> CreateSocket (void);
48 
49 protected:
50 private:
51 };
52 
53 } // namespace ns3
54 
55 #endif /* LINUX_UDP_SOCKET_FACTORY_IMPL_H */
API to create UDP socket instances.
Every class exported by the ns3 library is enclosed in the ns3 namespace.
virtual Ptr< Socket > CreateSocket(void)
Implements a method to create a Udp-based socket and return a base class smart pointer to the socket...
Object to create UDP socket instances.