Secure iNet Factory

com.jscape.inet.ssh.util
Class Sequence

java.lang.Object
  extended by com.jscape.inet.ssh.util.Sequence

public class Sequence
extends java.lang.Object

SSH packet sequence number represented as uint32. The sequence number is initialized to zero for the first packet, and is incremented after every packet. It is never reset and wraps around to zero after every 2^32 packets.

Version:
1.0
Author:
Alex Usun

Field Summary
static long MAX_VALUE
          A constant holding the maximum value a SSH packet sequence can have, 232.
static long MIN_VALUE
          A constant holding the minimum value a SSH packet sequence can have, 0.
 
Constructor Summary
Sequence()
           
 
Method Summary
 long nextValue()
          Obtains next sequence value.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MIN_VALUE

public static final long MIN_VALUE
A constant holding the minimum value a SSH packet sequence can have, 0.

See Also:
Constant Field Values

MAX_VALUE

public static final long MAX_VALUE
A constant holding the maximum value a SSH packet sequence can have, 232.

See Also:
Constant Field Values
Constructor Detail

Sequence

public Sequence()
Method Detail

nextValue

public long nextValue()
Obtains next sequence value.

Returns:
next sequence value

Secure iNet Factory

Copyright © JSCAPE LLC. 1999-2011. All Rights Reserved