sendMessage

Transmit message to the peer.

PlantUML diagram separately generated.
  SEND_MESSAGE ACK SESSION_ESTABLISHED SESSION_TIMEOUT
IDLE queueMessage
returns:
  • noEvent

transition : none
 
transition : none
checkQueue
returns:
  • SEND_MESSAGE
  • noEvent

transition : IN_SESSION
 
transition : none
IN_SESSION sendMessage
returns:
  • noEvent

transition : AWAITING_ACK
 
transition : none
 
transition : none
noAction
transition : IDLE
AWAITING_ACK queueMessage
returns:
  • noEvent

transition : none
checkQueue
returns:
  • SEND_MESSAGE
  • noEvent

transition : IN_SESSION
 
transition : none
noAction
transition : IDLE
Events
SEND_MESSAGE  
ACK  
SESSION_ESTABLISHED  
SESSION_TIMEOUT  
States
IDLE  
IN_SESSION  
AWAITING_ACK  
Actions
sendMessage Transmit message to the peer.

Returns:
  • noEvent
queueMessage Place message into queue.

Returns:
  • noEvent
checkQueue Check queue for messages; if found pop from queue and return SEND_MESSAGE. If no message is found in the queue return noEvent.

Returns:
  • SEND_MESSAGE
  • noEvent
transition