Changes for bug 205, unlisted FIN bug
This commit is contained in:
1 parent
154d15171b
commit
d10c01649b
8 files changed
+13
-92
No files matched your search
+2
-51
@@ -50,35 +50,24 @@ Socket::CreateSocket (Ptr<Node> node, TypeId tid)
|
||||
return s;
|
||||
}
|
||||
|
||||
void
|
||||
Socket::SetCloseCallback (Callback<void,Ptr<Socket> > closeCompleted)
|
||||
{
|
||||
NS_LOG_FUNCTION_NOARGS ();
|
||||
m_closeCompleted = closeCompleted;
|
||||
}
|
||||
|
||||
void
|
||||
Socket::SetConnectCallback (
|
||||
Callback<void, Ptr<Socket> > connectionSucceeded,
|
||||
Callback<void, Ptr<Socket> > connectionFailed,
|
||||
Callback<void, Ptr<Socket> > halfClose)
|
||||
Callback<void, Ptr<Socket> > connectionFailed)
|
||||
{
|
||||
NS_LOG_FUNCTION_NOARGS ();
|
||||
m_connectionSucceeded = connectionSucceeded;
|
||||
m_connectionFailed = connectionFailed;
|
||||
m_halfClose = halfClose;
|
||||
}
|
||||
|
||||
void
|
||||
Socket::SetAcceptCallback (
|
||||
Callback<bool, Ptr<Socket>, const Address &> connectionRequest,
|
||||
Callback<void, Ptr<Socket>, const Address&> newConnectionCreated,
|
||||
Callback<void, Ptr<Socket> > closeRequested)
|
||||
Callback<void, Ptr<Socket>, const Address&> newConnectionCreated)
|
||||
{
|
||||
NS_LOG_FUNCTION_NOARGS ();
|
||||
m_connectionRequest = connectionRequest;
|
||||
m_newConnectionCreated = newConnectionCreated;
|
||||
m_closeRequested = closeRequested;
|
||||
}
|
||||
|
||||
bool
|
||||
@@ -110,15 +99,6 @@ Socket::Send (Ptr<Packet> p)
|
||||
return Send (p, 0);
|
||||
}
|
||||
|
||||
void
|
||||
Socket::NotifyCloseUnblocks (void)
|
||||
{
|
||||
NS_LOG_FUNCTION_NOARGS ();
|
||||
if (!m_closeUnblocks.IsNull ())
|
||||
{
|
||||
m_closeUnblocks (this);
|
||||
}
|
||||
}
|
||||
|
||||
int Socket::Listen (uint32_t queueLimit)
|
||||
{
|
||||
@@ -199,15 +179,6 @@ Socket::RecvFrom (uint8_t* buf, uint32_t size, uint32_t flags,
|
||||
return p->GetSize ();
|
||||
}
|
||||
|
||||
void
|
||||
Socket::NotifyCloseCompleted (void)
|
||||
{
|
||||
NS_LOG_FUNCTION_NOARGS ();
|
||||
if (!m_closeCompleted.IsNull ())
|
||||
{
|
||||
m_closeCompleted (this);
|
||||
}
|
||||
}
|
||||
|
||||
void
|
||||
Socket::NotifyConnectionSucceeded (void)
|
||||
@@ -229,16 +200,6 @@ Socket::NotifyConnectionFailed (void)
|
||||
}
|
||||
}
|
||||
|
||||
void
|
||||
Socket::NotifyHalfClose (void)
|
||||
{
|
||||
NS_LOG_FUNCTION_NOARGS ();
|
||||
if (!m_halfClose.IsNull ())
|
||||
{
|
||||
m_halfClose (this);
|
||||
}
|
||||
}
|
||||
|
||||
bool
|
||||
Socket::NotifyConnectionRequest (const Address &from)
|
||||
{
|
||||
@@ -267,16 +228,6 @@ Socket::NotifyNewConnectionCreated (Ptr<Socket> socket, const Address &from)
|
||||
}
|
||||
}
|
||||
|
||||
void
|
||||
Socket::NotifyCloseRequested (void)
|
||||
{
|
||||
NS_LOG_FUNCTION_NOARGS ();
|
||||
if (!m_closeRequested.IsNull ())
|
||||
{
|
||||
m_closeRequested (this);
|
||||
}
|
||||
}
|
||||
|
||||
void
|
||||
Socket::NotifyDataSent (uint32_t size)
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user