We are about to switch to a new forum software. Until then we have removed the registration on this forum.
Starting to use the Net library and notices that sometimes multiple messages would "stick" together and be read as one message. Ive started using a start and end flag and string indexOf to find complete messages out of the clusters. I was wondering if there is a built in or easier way to do this?
input "start""message1""end""start""message2""end"
output message1 message2
Answers
char
value is faster than a whole String for searching.char
like\f
as your DELIM at the end (or start) of every unit.https://processing.org/reference/split_.html
https://processing.org/reference/String_indexOf_.html