Got rid of DeleteSocket().
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@23236 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -763,14 +763,6 @@ TCPEndpoint::IsBound() const
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
void
|
|
||||||
TCPEndpoint::DeleteSocket()
|
|
||||||
{
|
|
||||||
// the next call will delete `this'.
|
|
||||||
gSocketModule->delete_socket(socket);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
status_t
|
status_t
|
||||||
TCPEndpoint::DelayedAcknowledge()
|
TCPEndpoint::DelayedAcknowledge()
|
||||||
{
|
{
|
||||||
@@ -1887,6 +1879,6 @@ TCPEndpoint::_TimeWaitTimer(struct net_timer *timer, void *data)
|
|||||||
if (mutex_lock(&endpoint->fLock) < B_OK)
|
if (mutex_lock(&endpoint->fLock) < B_OK)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
endpoint->DeleteSocket();
|
gSocketModule->delete_socket(endpoint->socket);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -72,8 +72,6 @@ class TCPEndpoint : public net_protocol, public ProtocolSocket {
|
|||||||
tcp_state State() const { return fState; }
|
tcp_state State() const { return fState; }
|
||||||
bool IsBound() const;
|
bool IsBound() const;
|
||||||
|
|
||||||
void DeleteSocket();
|
|
||||||
|
|
||||||
status_t DelayedAcknowledge();
|
status_t DelayedAcknowledge();
|
||||||
status_t SendAcknowledge(bool force);
|
status_t SendAcknowledge(bool force);
|
||||||
status_t UpdateTimeWait();
|
status_t UpdateTimeWait();
|
||||||
|
|||||||
Reference in New Issue
Block a user