Results 1 to 2 of 2
  1. #1

    Concatenation of messages required?

    Hello,

    With a client I've received the following messages from the LS server:

    #1
    345,1|101.7700|101.770|101.770|102.160|99.700|4|R-52983577457220-0-78-PROD-INX-1-Equiti

    #2
    es

    How do I know, a message is complete?

    Do I have to wait for a final "\r\n" at the end of a message and concatenate all received messages until then?

    Or is this an issue on the LS server?

    Thanks in advance!

    Best regards,

    Soot

  2. #2
    Administrator
    Join Date
    Jul 2006
    Location
    Milan
    Posts
    1,091
    If #1 and #2 represent the results of subsequent read operations, then yes, they have to be joined and you should also wait for a final \r\n.
    The Server internally writes each line as a whole, but the transport process may split it.

 

 

Similar Threads

  1. Replies: 4
    Last Post: August 23rd, 2014, 08:16 PM
  2. Replies: 1
    Last Post: November 6th, 2008, 09:44 AM
  3. Replies: 2
    Last Post: May 15th, 2008, 10:25 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT +1. The time now is 11:44 AM.