Merge with ns-3-dev.

This commit is contained in:
Sebastien Vincent
2009-11-18 08:57:32 +01:00
57 changed files with 5867 additions and 46 deletions

View File

@@ -45,7 +45,9 @@ Ptr<Socket>
Socket::CreateSocket (Ptr<Node> node, TypeId tid)
{
Ptr<Socket> s;
NS_ASSERT (node != 0);
Ptr<SocketFactory> socketFactory = node->GetObject<SocketFactory> (tid);
NS_ASSERT (socketFactory != 0);
s = socketFactory->CreateSocket ();
NS_ASSERT (s != 0);
return s;