public void StartUdp() { if (!Configuration.SupportsUdp) throw new NotSupportedException("This client is not meant for UDP"); if (Host == null) throw new NotSupportedException("The host is not initialized."); IsTcp = false; IsUdp = true; }