public void Dispose() { bool flag = this.m_Ptr != IntPtr.Zero; if (flag) { ConnectionSimulatorConfigInternal.InternalDestroy(this.m_Ptr); this.m_Ptr = IntPtr.Zero; } }
protected virtual void Dispose(bool disposing) { bool flag = this.m_Ptr != IntPtr.Zero; if (flag) { ConnectionSimulatorConfigInternal.InternalDestroy(this.m_Ptr); this.m_Ptr = IntPtr.Zero; } GC.SuppressFinalize(this); }
extern static private int ConnectWithSimulatorInternal(int hostId, string address, int port, int exeptionConnectionId, out byte error, ConnectionSimulatorConfigInternal conf);
public ConnectionSimulatorConfigInternal(ConnectionSimulatorConfig config) { this.m_Ptr = ConnectionSimulatorConfigInternal.InternalCreate(config.m_OutMinDelay, config.m_OutAvgDelay, config.m_InMinDelay, config.m_InAvgDelay, config.m_PacketLossPercentage); }