void NetSocket::OnDisconnected() { NetSocketBase::OnDisconnected(); ClearRecvQueue(); ClearSendQueue(); }
BaseTransport::~BaseTransport() { ClearSendQueue(); ClearReceiveQueue(); #if YOJIMBO_INSECURE_CONNECT m_allocator->Free( m_allPacketTypes ); #endif // #if YOJIMBO_INSECURE_CONNECT m_allocator->Free( m_packetTypeIsEncrypted ); m_allocator->Free( m_packetTypeIsUnencrypted ); YOJIMBO_DELETE( GetAllocator(), PacketProcessor, m_packetProcessor ); m_packetFactory = NULL; #if YOJIMBO_INSECURE_CONNECT m_allPacketTypes = NULL; #endif // #if YOJIMBO_INSECURE_CONNECT m_packetTypeIsEncrypted = NULL; m_packetTypeIsUnencrypted = NULL; m_allocator = NULL; }