Menu

Receiving multi-part messages

Help
Mr. Rasmus
2003-01-12
2003-01-12
  • Mr. Rasmus

    Mr. Rasmus - 2003-01-12

    Hi,

    I've just begun experimenting with your toolkit, and have received the first request from my t68i (yeah!) :-)

    I'd like to know if this is the correct way to receive a multi-part message:

    Lock workspace buffer
    Begin loop
      xptReceiveData
      Add received bytes to total received
      Adjust write pointer by received bytes
    End loop when total received bytes < cbLength or received bytes = 0

    unlock write buffer
    smlProcessData

    Regards,
    Brian

     
    • Mr. Rasmus

      Mr. Rasmus - 2003-01-12

      sorry, small typo, should be:

      End loop when total received bytes = cbLength or received bytes = 0

       

Log in to post a comment.