Plumb in socket receive pull model, in parallel to existing Receive framework
This commit is contained in:
1 parent
776f7dc5ac
commit
1c73dd0dd8
10 files changed
+89
-2
No files matched your search
@@ -305,4 +305,12 @@ PacketSocket::ForwardUp (Ptr<NetDevice> device, Ptr<Packet> packet,
|
||||
NotifyDataReceived (packet, address);
|
||||
}
|
||||
|
||||
Ptr<Packet>
|
||||
PacketSocket::Recv (uint32_t maxSize, uint32_t flags)
|
||||
{
|
||||
Ptr<Packet> p = m_deliveryQueue.front ();
|
||||
m_deliveryQueue.pop ();
|
||||
return p;
|
||||
}
|
||||
|
||||
}//namespace ns3
|
||||
Reference in new issue
Block a user