add back internet-node.h header for MakeInternetNode function
This commit is contained in:
38
src/internet-node/internet-node.cc
Normal file
38
src/internet-node/internet-node.cc
Normal file
@@ -0,0 +1,38 @@
|
||||
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
|
||||
/*
|
||||
* Copyright (c) 2007 INRIA
|
||||
* All rights reserved.
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License version 2 as
|
||||
* published by the Free Software Foundation;
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program; if not, write to the Free Software
|
||||
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||
*
|
||||
* Author: Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
|
||||
*/
|
||||
#include "internet-node.h"
|
||||
#include "i-node-impl.h"
|
||||
|
||||
namespace ns3 {
|
||||
|
||||
Ptr<Node>
|
||||
MakeInternetNode (void)
|
||||
{
|
||||
return MakeNewObject<InternetNode> ();
|
||||
}
|
||||
|
||||
Ptr<Node>
|
||||
MakeInternetNode (uint32_t systemId)
|
||||
{
|
||||
return MakeNewObject<InternetNode> (systemId);
|
||||
}
|
||||
|
||||
} // namespace ns3
|
||||
35
src/internet-node/internet-node.h
Normal file
35
src/internet-node/internet-node.h
Normal file
@@ -0,0 +1,35 @@
|
||||
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
|
||||
/*
|
||||
* Copyright (c) 2007 INRIA
|
||||
* All rights reserved.
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License version 2 as
|
||||
* published by the Free Software Foundation;
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program; if not, write to the Free Software
|
||||
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||
*
|
||||
* Author: Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
|
||||
*/
|
||||
#ifndef INTERNET_NODE_H
|
||||
#define INTERNET_NODE_H
|
||||
|
||||
#include "ns3/i-node.h"
|
||||
#include "ns3/ptr.h"
|
||||
|
||||
namespace ns3 {
|
||||
|
||||
Ptr<Node> MakeInternetNode (void);
|
||||
|
||||
Ptr<Node> MakeInternetNode (uint32_t systemId);
|
||||
|
||||
} // namespace ns3
|
||||
|
||||
#endif /* INTERNET_NODE_H */
|
||||
Reference in New Issue
Block a user