ConnectionParameters.cs 1.2 KB

123456789101112131415161718192021222324252627282930313233
  1. /* Copyright (C) 2012-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. using System.Collections.Generic;
  9. using System.Text;
  10. namespace ISCSI.Client
  11. {
  12. public class ConnectionParameters
  13. {
  14. /// <summary>
  15. /// The default MaxRecvDataSegmentLength is used during Login
  16. /// </summary>
  17. public const int DefaultMaxRecvDataSegmentLength = 8192;
  18. public static int DeclaredMaxRecvDataSegmentLength = 262144;
  19. public ushort CID; // connection ID, generated by the initiator
  20. /// <summary>
  21. /// per direction parameter that the target or initator declares.
  22. /// maximum data segment length that the target (or initator) can receive in a single iSCSI PDU.
  23. /// </summary>
  24. public int InitiatorMaxRecvDataSegmentLength = DeclaredMaxRecvDataSegmentLength;
  25. public int TargetMaxRecvDataSegmentLength = DefaultMaxRecvDataSegmentLength;
  26. public bool StatusNumberingStarted;
  27. public uint ExpStatSN;
  28. }
  29. }