mirror of
https://github.com/aaru-dps/Aaru.git
synced 2025-12-16 19:24:25 +00:00
Allow listing devices from remote.
This commit is contained in:
@@ -10,7 +10,7 @@ using Version = DiscImageChef.CommonTypes.Interop.Version;
|
||||
|
||||
namespace DiscImageChef.Devices.Remote
|
||||
{
|
||||
public class Remote
|
||||
public class Remote : IDisposable
|
||||
{
|
||||
private readonly Socket _socket;
|
||||
|
||||
@@ -115,10 +115,20 @@ namespace DiscImageChef.Devices.Remote
|
||||
public string ServerArchitecture { get; }
|
||||
public int ServerProtocolVersion { get; }
|
||||
|
||||
public void Dispose()
|
||||
{
|
||||
Disconnect();
|
||||
}
|
||||
|
||||
public void Disconnect()
|
||||
{
|
||||
_socket.Shutdown(SocketShutdown.Both);
|
||||
_socket.Close();
|
||||
}
|
||||
|
||||
public DeviceInfo[] ListDevices()
|
||||
{
|
||||
return new DeviceInfo[0];
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user