Merge with ns-3-dev

This commit is contained in:
Kirill Andreev
2009-08-18 12:01:35 +04:00
87 changed files with 4067 additions and 936 deletions

View File

@@ -203,9 +203,16 @@ UdpSocketImpl::ShutdownRecv (void)
}
int
UdpSocketImpl::Close(void)
UdpSocketImpl::Close (void)
{
NS_LOG_FUNCTION_NOARGS ();
if (m_shutdownRecv == true && m_shutdownSend == true)
{
m_errno = Socket::ERROR_BADF;
return -1;
}
m_shutdownRecv = true;
m_shutdownSend = true;
return 0;
}