TCP bug fixes 424, 426, 559, 663, 664, 697
This commit is contained in:
1 parent
e912350e4e
commit
5a322ed3b9
6 files changed
+160
-22
No files matched your search
@@ -61,6 +61,16 @@ Socket::SetConnectCallback (
|
||||
m_connectionFailed = connectionFailed;
|
||||
}
|
||||
|
||||
void
|
||||
Socket::SetCloseCallbacks (
|
||||
Callback<void, Ptr<Socket> > normalClose,
|
||||
Callback<void, Ptr<Socket> > errorClose)
|
||||
{
|
||||
NS_LOG_FUNCTION_NOARGS ();
|
||||
m_normalClose = normalClose;
|
||||
m_errorClose = errorClose;
|
||||
}
|
||||
|
||||
void
|
||||
Socket::SetAcceptCallback (
|
||||
Callback<bool, Ptr<Socket>, const Address &> connectionRequest,
|
||||
@@ -194,6 +204,26 @@ Socket::NotifyConnectionFailed (void)
|
||||
}
|
||||
}
|
||||
|
||||
void
|
||||
Socket::NotifyNormalClose (void)
|
||||
{
|
||||
NS_LOG_FUNCTION_NOARGS ();
|
||||
if (!m_normalClose.IsNull ())
|
||||
{
|
||||
m_normalClose (this);
|
||||
}
|
||||
}
|
||||
|
||||
void
|
||||
Socket::NotifyErrorClose (void)
|
||||
{
|
||||
NS_LOG_FUNCTION_NOARGS ();
|
||||
if (!m_errorClose.IsNull ())
|
||||
{
|
||||
m_errorClose (this);
|
||||
}
|
||||
}
|
||||
|
||||
bool
|
||||
Socket::NotifyConnectionRequest (const Address &from)
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user