SessionInformation.cs 1.1 KB

1234567891011121314151617181920212223242526272829303132
  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.Server
  11. {
  12. public class SessionInformation
  13. {
  14. public IPEndPoint ClientEndPoint;
  15. public SMBDialect Dialect;
  16. public string UserName;
  17. public string MachineName;
  18. public List<OpenFileInformation> OpenFiles;
  19. public DateTime CreationDT;
  20. public SessionInformation(IPEndPoint clientEndPoint, SMBDialect dialect, string userName, string machineName, List<OpenFileInformation> openFiles, DateTime creationDT)
  21. {
  22. ClientEndPoint = clientEndPoint;
  23. Dialect = dialect;
  24. UserName = userName;
  25. MachineName = machineName;
  26. OpenFiles = openFiles;
  27. CreationDT = creationDT;
  28. }
  29. }
  30. }