-
August 31st, 2023, 03:14 PM
#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
-
August 31st, 2023, 04:14 PM
#2
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
-
By longtrain0 in forum Adapter SDKs
Replies: 4
Last Post: August 23rd, 2014, 07:16 PM
-
By jaguarg in forum Client SDKs
Replies: 1
Last Post: November 6th, 2008, 08:44 AM
-
By deltron0 in forum Client SDKs
Replies: 2
Last Post: May 15th, 2008, 09:25 AM
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
All times are GMT +1. The time now is 10:19 PM.
Bookmarks