public DtlsSrtpTransport(IDtlsSrtpPeer connection, int mtu = DEFAULT_MTU) { // Network properties this.mtu = mtu; this.receiveLimit = System.Math.Max(0, mtu - MIN_IP_OVERHEAD - UDP_OVERHEAD); this.sendLimit = System.Math.Max(0, mtu - MAX_IP_OVERHEAD - UDP_OVERHEAD); this.connection = connection; }
public DtlsSrtpTransport(IDtlsSrtpPeer connection, int mtu = DEFAULT_MTU) { // Network properties this._mtu = mtu; this._receiveLimit = System.Math.Max(0, mtu - MIN_IP_OVERHEAD - UDP_OVERHEAD); this._sendLimit = System.Math.Max(0, mtu - MAX_IP_OVERHEAD - UDP_OVERHEAD); this.connection = connection; connection.OnAlert += (level, type, description) => OnAlert?.Invoke(level, type, description); }