private void _sendCriticalDatagram(byte[] data, uint ackID) { var criticalDatagram = new CriticalDatagram { data = data, ackID = ackID, lastSendAttempt = DateTime.MinValue, sendAttempts = 0, }; criticalDatagrams.Add(criticalDatagram); }
private void _sendCriticalDatagram(Client to, byte[] data, uint ackID, Action onSuccess = null) { var criticalDatagram = new CriticalDatagram { to = to, data = data, ackID = ackID, lastSendAttempt = System.DateTime.MinValue, sendAttempts = 0, onSuccess = onSuccess, }; criticalDatagrams.Add(criticalDatagram); }