Raw socket nearly work
This commit is contained in:
1 parent
7d2132a408
commit
807146f0b0
11 files changed
+173
-3
No files matched your search
@@ -45,7 +45,10 @@ Ptr<Socket>
|
||||
Socket::CreateSocket (Ptr<Node> node, TypeId tid)
|
||||
{
|
||||
Ptr<Socket> s;
|
||||
NS_LOG_UNCOND(tid);
|
||||
NS_ASSERT(node != 0);
|
||||
Ptr<SocketFactory> socketFactory = node->GetObject<SocketFactory> (tid);
|
||||
NS_ASSERT(socketFactory != 0);
|
||||
s = socketFactory->CreateSocket ();
|
||||
NS_ASSERT (s != 0);
|
||||
return s;
|
||||
|
||||
Reference in new issue
Block a user