private void WriteComplete()
 {
     sentHeader = false;
     sendSize   = 0;
     leftToSend = 0;
     dataSent   = 0;
     writeData  = null;
     WriteCompleteNotification?.Invoke(this);
 }
 private void WriteComplete()
 {
     writeData = null;
     WriteCompleteNotification?.Invoke(this);
 }