# sox::ReceiveWindow

    sys::Obj
      sox::ReceiveWindow

`public class ReceiveWindow`

ReceiveWindow manages the incoming message sequences and acknowledgements.

max

  `public static const define int max`

init

  `public void init(int num)`

  Initialize the receive window with the handshake seqNum.

receive

  `public bool receive(int num)`

  Receive the given sequence number. Return true if the message should be processed. Return false if outside of the receiving window or we have already processed it.

reset

  `public void reset()`

  Reset into a clean state for new session.

setAckHeaders

  `public void setAckHeaders(SoxService service)`

  If add the ack and ackMore headers if needed.