Пример #1
0
 public NetworkClientFactory(
     IUsersService userService,
     NetworkSettings networkSettings)
 {
     _userService     = userService;
     _networkSettings = networkSettings;
 }
Пример #2
0
 public NetworkClientFactory(
     IUsersService userService,
     NetworkSettings networkSettings)
 {
     _userService = userService;
     _networkSettings = networkSettings;
 }
 public SystemMulticastClient(NetworkSettings settings)
 {
     _settings = settings;
     _client   = new UdpClient(settings.MulticastPort, AddressFamily.InterNetwork)
     {
         Ttl = (short)_settings.TTL,
         MulticastLoopback = true
     };
 }
		public SystemMulticastClient(NetworkSettings settings)
		{
			_settings = settings;
			_client = new UdpClient(settings.MulticastPort, AddressFamily.InterNetwork)
			{
				Ttl = (short) _settings.TTL,
				MulticastLoopback = true
			};
		}
Пример #5
0
 public ConsoleSession(NetworkSettings settings, IMusicPlayer player)
 {
     _player = player;
     var interfaces = NetworkInterface.GetAllNetworkInterfaces();
     _settings = settings;
     _user = new HubblUser
     {
         Id = interfaces.First().Id,
         Title = Environment.MachineName,
         IsHub = true,
         Hub = Environment.MachineName
     };
 }
Пример #6
0
 public SystemTcpListener(NetworkSettings settings)
 {
     _settings = settings;
     _listener = new TcpListener(IPAddress.Any, _settings.ListenPort);
 }
Пример #7
0
 public SystemTcpListener(NetworkSettings settings)
 {
     _settings = settings;
     _listener = new TcpListener(IPAddress.Any, _settings.ListenPort);
 }