Esempio n. 1
0
 public TCPConnection(TcpClient client, AppCommunicationSettings settings)
 {
     StreamProvider = new StreamProvider(client.GetStream());
     client.ReceiveTimeout = 5000;
     _settings = settings;
     TcpClient = client;
 }
Esempio n. 2
0
 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;
 }
Esempio n. 4
0
 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>();
 }
Esempio n. 5
0
 public AppCommunicationManager(AppCommunicationSettings settings)
 {
     ConnectedClients = new ObservableCollection <TCPConnection>();
     Settings         = settings;
 }
Esempio n. 6
0
 public TCPServer(ushort port, AppCommunicationSettings settings)
 {
     _connectionEndPoint = new IPEndPoint(IPAddress.Any, port);
     _settings = settings;
 }
Esempio n. 7
0
 public TCPServer(ushort port, AppCommunicationSettings settings)
 {
     _connectionEndPoint = new IPEndPoint(IPAddress.Any, port);
     _settings           = settings;
 }