Exemple #1
0
 public ReceiverStmContext(ILink link, IChecksum cheksum, ISequenceGenerator sequenceGenerator,
     int maxMessageDataSize)
 {
     _message = new Message(maxMessageDataSize);
     _reply = new Message(0);
     _link = link;
     _sequence = sequenceGenerator;
     _checksum = cheksum;
     SetState(new MissingSync());
 }
Exemple #2
0
        public SenderStmContext(ILink link, IChecksum checksum, ISequenceGenerator sequenceGenerator, int maxMessageDataSize, int timeoutModifier)
        {
            _checksum = checksum;

            _timeout = link.Timeout * timeoutModifier;

            _timer = new Timer(MessageTimeout);

            _link = link;

            _maxMessageDataSize = maxMessageDataSize;
            _message = new Message(_maxMessageDataSize);
            _reply = new Message(0);

            _sequence = sequenceGenerator;

            SetState(new Sending());
        }
Exemple #3
0
 public virtual void ReceivedMessage(SenderStmContext context, Message message)
 {
 }