ISCSIClient.Parameters.cs 1.4 KB

1234567891011121314151617181920212223242526272829303132333435
  1. /* Copyright (C) 2016 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. namespace ISCSI.Client
  9. {
  10. public partial class ISCSIClient
  11. {
  12. public class DesiredParameters
  13. {
  14. // Session parameters that will be offered to the target:
  15. public static bool InitialR2T = true;
  16. public static bool ImmediateData = true;
  17. public static int MaxBurstLength = DefaultParameters.Session.MaxBurstLength;
  18. public static int FirstBurstLength = DefaultParameters.Session.FirstBurstLength;
  19. public static int DefaultTime2Wait = 0;
  20. public static int DefaultTime2Retain = 20;
  21. public static int MaxOutstandingR2T = 1;
  22. public static bool DataPDUInOrder = true;
  23. public static bool DataSequenceInOrder = true;
  24. public static int ErrorRecoveryLevel = 0;
  25. public static int MaxConnections = 1;
  26. }
  27. public class DeclaredParameters
  28. {
  29. // Connection parameters:
  30. public static int MaxRecvDataSegmentLength = 262144;
  31. }
  32. }
  33. }