Network: Fix some move stuff
Former-commit-id: 33b24a038319b444b9a3b84cfeea38c8305e6568
This commit is contained in:
@@ -107,4 +107,20 @@ namespace Nz
|
||||
m_handle = handle;
|
||||
OnOpened();
|
||||
}
|
||||
|
||||
AbstractSocket& AbstractSocket::operator=(AbstractSocket&& abstractSocket)
|
||||
{
|
||||
Close();
|
||||
|
||||
m_handle = abstractSocket.m_handle;
|
||||
m_protocol = abstractSocket.m_protocol;
|
||||
m_isBlockingEnabled = abstractSocket.m_isBlockingEnabled;
|
||||
m_lastError = abstractSocket.m_lastError;
|
||||
m_state = abstractSocket.m_state;
|
||||
m_type = abstractSocket.m_type;
|
||||
|
||||
abstractSocket.m_handle = SocketImpl::InvalidHandle;
|
||||
|
||||
return *this;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user