Hy. I have problem im working on some app with winsock, but some times data came glued together. I did make function for spliting and data format does look like this
L0004T0001dataHF

[ L0004 <--- lenght of data(value L0000 to L9999) T0001 <--- data type(values T1 to T9999) ] - header[ 10 Byts]
[ data ] - data[ lenght 0B - 9999B ]
[ HF <-- checksum not very good ] - footer [ 2 Byts ]

and 12Bytes is alot for data for spliting...do anyone knows how to split data withow single chars witch can messup data information
(example)
1. packet data[454353453vddffs324]
spliter [v]
2. packet data[dgfh45egh54645645]

recived data [454353453vddffs324vdgfh45egh54645645]
result 1:[454353453]
result 2:[ddffs324]
result 3:[dgfh45egh54645645]


But i will get three packets from two becouse the function did think there are two spliters.
Can anybody tell me what to use that method im using right now(L0004T0001dataHF ) or....?