Partager via


3.1.5.8 AssembleToken()

  
 AssembleToken(Input_Token, OutputToken)
 -- Input:
 --   InputToken – The Input_Token received.
 -- Temporary variables that do not pass over the wire are defined below:
 --  ReceivedInputToken – The message fragments received so far.
 --  TokenLength - Length of message from the ASN.1 header.
 --  FragmentInputToken - A Boolean setting that indicates that more fragments of the InputToken remain.
 -- Output:
 --   OutputToken – The OutputToken returned, or the complete InputToken.
  
 Append InputToken to ReceivedInputToken
 If TokenLength > length of ReceivedInputToken
    Set OutputToken to empty
 Else
    Set OutputToken to ReceivedInputToken 
    Set ReceivedInputToken to empty
    Set FragmentInputToken to FALSE.
 EndIf