2016-10-29 13:02:21 -07:00
|
|
|
|
using MediaBrowser.Common.Net;
|
2014-01-01 11:26:31 -07:00
|
|
|
|
using MediaBrowser.Model.IO;
|
2014-08-22 10:26:58 -07:00
|
|
|
|
using MediaBrowser.Model.Logging;
|
2013-10-05 10:13:32 -07:00
|
|
|
|
using MediaBrowser.Model.Net;
|
|
|
|
|
using System.Collections.Generic;
|
2016-10-29 13:02:21 -07:00
|
|
|
|
using Emby.Common.Implementations.Networking;
|
2013-10-05 10:13:32 -07:00
|
|
|
|
|
2014-11-09 11:24:57 -07:00
|
|
|
|
namespace MediaBrowser.Server.Mono.Networking
|
2013-10-05 10:13:32 -07:00
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Class NetUtils
|
|
|
|
|
/// </summary>
|
|
|
|
|
public class NetworkManager : BaseNetworkManager, INetworkManager
|
|
|
|
|
{
|
2014-08-22 10:26:58 -07:00
|
|
|
|
public NetworkManager(ILogger logger)
|
|
|
|
|
: base(logger)
|
|
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
|
2013-10-05 10:13:32 -07:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets the network shares.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="path">The path.</param>
|
|
|
|
|
/// <returns>IEnumerable{NetworkShare}.</returns>
|
|
|
|
|
public IEnumerable<NetworkShare> GetNetworkShares(string path)
|
|
|
|
|
{
|
2015-01-19 00:02:05 -07:00
|
|
|
|
return new List<NetworkShare>();
|
2013-10-05 10:13:32 -07:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
2014-11-13 23:27:10 -07:00
|
|
|
|
/// Gets available devices within the domain
|
2013-10-05 10:13:32 -07:00
|
|
|
|
/// </summary>
|
2014-11-13 23:27:10 -07:00
|
|
|
|
/// <returns>PC's in the Domain</returns>
|
2015-01-19 00:02:05 -07:00
|
|
|
|
public IEnumerable<FileSystemEntryInfo> GetNetworkDevices()
|
2013-10-05 10:13:32 -07:00
|
|
|
|
{
|
2015-01-19 00:02:05 -07:00
|
|
|
|
return new List<FileSystemEntryInfo>();
|
2013-10-05 10:13:32 -07:00
|
|
|
|
}
|
2015-01-18 14:44:35 -07:00
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Generates a self signed certificate at the locatation specified by <paramref name="certificatePath"/>.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="certificatePath">The path to generate the certificate.</param>
|
|
|
|
|
/// <param name="hostname">The common name for the certificate.</param>
|
|
|
|
|
public void GenerateSelfSignedSslCertificate(string certificatePath, string hostname)
|
|
|
|
|
{
|
|
|
|
|
CertificateGenerator.CreateSelfSignCertificatePfx(certificatePath, hostname, Logger);
|
|
|
|
|
}
|
2013-10-05 10:13:32 -07:00
|
|
|
|
}
|
|
|
|
|
}
|