public TCPConnection(TcpClient client, AppCommunicationSettings settings) { StreamProvider = new StreamProvider(client.GetStream()); client.ReceiveTimeout = 5000; _settings = settings; TcpClient = client; }
public TCPConnection(TcpClient client, AppCommunicationSettings settings) { StreamProvider = new StreamProvider(client.GetStream()); client.ReceiveTimeout = 5000; _settings = settings; TcpClient = client; }
public AppCommunicationManager(AppCommunicationSettings settings) { ConnectedClients = new ObservableCollection<TCPConnection>(); Settings = settings; }
public override sealed void SetStandardValues() { SoundOutDeviceID = SoundOutManager.DefaultDevicePlaceholder; DisableNotificationInGame = true; ShowMagicArrowBelowCursor = true; WaveSourceBits = 16; SampleRate = -1; var language = Languages.FirstOrDefault(x => x.Code == Thread.CurrentThread.CurrentCulture.TwoLetterISOLanguageName); Language = language == null ? "en" : language.Code; Notification = NotificationType.Top; ApplicationDesign = new ApplicationDesign(); ApplicationDesign.SetStandard(); NotificationShowTime = 5000; RememberTrackImportPlaylist = false; PlaylistToImportTrack = null; LoadAlbumCoverFromInternet = true; DownloadAlbumCoverQuality = ImageQuality.Maximum; SaveCoverLocal = false; TrimTrackname = true; ShowArtistAndTitle = true; SoundOutMode = WasapiOut.IsSupportedOnCurrentPlatform ? SoundOutMode.WASAPI : SoundOutMode.DirectSound; Latency = 100; IsCrossfadeEnabled = false; CrossfadeDuration = 4; UseThinHeaders = true; MinimizeToTray = false; ShowNotificationIfMinimizeToTray = true; Downloader = new DownloadManager(); TabControlTransition = TransitionType.Left; ShowProgressInTaskbar = true; AppCommunicationSettings = new AppCommunicationSettings(); AppCommunicationSettings.SetStandard(); DownloadSettings = new DownloadSettings(); DownloadSettings.SetDefault(); CheckForHurricaneUpdates = true; CheckForYoutubeDlUpdates = true; Passwords = new List<PasswordEntry>(); }
public AppCommunicationManager(AppCommunicationSettings settings) { ConnectedClients = new ObservableCollection <TCPConnection>(); Settings = settings; }
public TCPServer(ushort port, AppCommunicationSettings settings) { _connectionEndPoint = new IPEndPoint(IPAddress.Any, port); _settings = settings; }
public TCPServer(ushort port, AppCommunicationSettings settings) { _connectionEndPoint = new IPEndPoint(IPAddress.Any, port); _settings = settings; }