Add GetTxBuffer; add some socket options; make limited UDP receive buffer functional

This commit is contained in:
Tom Henderson committed 2008-05-03 11:11:24 -07:00
1 parent b94b2f1574
commit ae4c8ad2d9
9 files changed
+216 -10

No files matched your search

+26
View File
@@ -214,6 +214,13 @@ PacketSocket::Send (Ptr<Packet> p)
return SendTo (m_destAddr, p);
}
uint32_t
PacketSocket::GetTxAvailable (void) const
{
// No finite send buffer is modelled
return 0xffffffff;
}
int
PacketSocket::SendTo(const Address &address, Ptr<Packet> p)
{
@@ -338,4 +345,23 @@ PacketSocket::GetRxAvailable (void) const
return m_rxAvailable;
}
void
PacketSocket::SetSndBuf (uint32_t size)
{
}
uint32_t
PacketSocket::GetSndBuf (void)
{
return 0;
}
void
PacketSocket::SetRcvBuf (uint32_t size)
{
}
uint32_t
PacketSocket::GetRcvBuf (void)
{
return 0;
}
}//namespace ns3