ISocketFactory -> SocketFactory

This commit is contained in:
Mathieu Lacage
2007-06-04 17:57:01 +02:00
parent d0bd4ea161
commit c32fa46161
6 changed files with 9 additions and 9 deletions

View File

@@ -41,7 +41,7 @@ RunSimulation (void)
Ptr<Node> a = Create<InternetNode> ();
InterfaceId iid = InterfaceId::LookupByName ("IUdp");
Ptr<ISocketFactory> socketFactory = a->QueryInterface<ISocketFactory> (iid);
Ptr<SocketFactory> socketFactory = a->QueryInterface<SocketFactory> (iid);
Ptr<Socket> sink = socketFactory->CreateSocket ();
sink->Bind (80);

View File

@@ -141,7 +141,7 @@ void OnOffApplication::StartApplication() // Called at time specified by Star
if (!m_socket)
{
InterfaceId iid = InterfaceId::LookupByName (m_iid);
Ptr<ISocketFactory> socketFactory = GetNode ()->QueryInterface<ISocketFactory> (iid);
Ptr<SocketFactory> socketFactory = GetNode ()->QueryInterface<SocketFactory> (iid);
m_socket = socketFactory->CreateSocket ();
m_socket->Bind ();
m_socket->Connect (m_peerIp, m_peerPort);

View File

@@ -22,7 +22,7 @@
namespace ns3 {
const InterfaceId IUdp::iid = MakeInterfaceId ("IUdp", ISocketFactory::iid);
const InterfaceId IUdp::iid = MakeInterfaceId ("IUdp", SocketFactory::iid);
IUdp::IUdp ()
{

View File

@@ -27,7 +27,7 @@ namespace ns3 {
class Socket;
class IUdp : public ISocketFactory
class IUdp : public SocketFactory
{
public:
static const InterfaceId iid;

View File

@@ -22,11 +22,11 @@
namespace ns3 {
const InterfaceId ISocketFactory::iid = MakeInterfaceId ("ISocketFactory", Object::iid);
const InterfaceId SocketFactory::iid = MakeInterfaceId ("SocketFactory", Object::iid);
ISocketFactory::ISocketFactory ()
SocketFactory::SocketFactory ()
{
SetInterfaceId (ISocketFactory::iid);
SetInterfaceId (SocketFactory::iid);
}
} // namespace ns3

View File

@@ -28,12 +28,12 @@ namespace ns3 {
class Socket;
class ISocketFactory : public Object
class SocketFactory : public Object
{
public:
static const InterfaceId iid;
ISocketFactory ();
SocketFactory ();
virtual Ptr<Socket> CreateSocket (void) = 0;
};