ISMBClient.cs 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. /* Copyright (C) 2017 Tal Aloni <tal.aloni.il@gmail.com>. All rights reserved.
  2. *
  3. * You can redistribute this program and/or modify it under the terms of
  4. * the GNU Lesser Public License as published by the Free Software Foundation,
  5. * either version 3 of the License, or (at your option) any later version.
  6. */
  7. using System;
  8. using System.Collections.Generic;
  9. using System.Net;
  10. namespace SMBLibrary.Client
  11. {
  12. public interface ISMBClient
  13. {
  14. bool Connect(IPAddress serverAddress, SMBTransportType transport);
  15. void Disconnect();
  16. NTStatus Login(string domainName, string userName, string password);
  17. NTStatus Login(string domainName, string userName, string password, AuthenticationMethod authenticationMethod);
  18. NTStatus Logoff();
  19. List<string> ListShares(out NTStatus status);
  20. ISMBFileStore TreeConnect(string shareName, out NTStatus status);
  21. uint MaxReadSize
  22. {
  23. get;
  24. }
  25. uint MaxWriteSize
  26. {
  27. get;
  28. }
  29. }
  30. }