please help.
there is chr(10) problem. i could not read all bytes if there is {10} char. Hercules programs gives all bytes but mine not after first chr(10) character.
i never get " 5051 180761000002000{20} " bytes.
Code:
Sub server1stream_NewData (Buffer() As Byte)
Dim msg As String
msg = BytesToString(Buffer, 0, Buffer.Length, "UTF8")
Log(msg)
if i compare my code with "hercules" results are different.
in my logs the result
@C;86307101041671497;M5A;286034050235889;108ort;661102!
@C;86307101325774397;M5A;286016245407762;108ort;933702!
@L036863071013257743971707162105448000000000000000000000100B0000000000000000!
@C;86307101325857697;M5A;286016245407994;108ort;177702!
but in hercules server result is
L036863071010014816971004211726548000000000000000000000100B0000000000000000!{10}
@L036863071013257941970605160600248000000000000000000000100B0000000000000000!{10}
@C;86307101325724897;M5A;286016245407733;108ort;C68602!{10}5051 180761000002000{20}{10}
@L036863071013256869970304131333498000000000000000000000100B0000000000000000!{10}
@L036863071013257248972210181205278000000000000000000000100B0000000000000000!{10}
there is chr(10) problem. i could not read all bytes if there is {10} char. Hercules programs gives all bytes but mine not after first chr(10) character.
i never get " 5051 180761000002000{20} " bytes.
Code:
Sub server1stream_NewData (Buffer() As Byte)
Dim msg As String
msg = BytesToString(Buffer, 0, Buffer.Length, "UTF8")
Log(msg)
if i compare my code with "hercules" results are different.
in my logs the result
@C;86307101041671497;M5A;286034050235889;108ort;661102!
@C;86307101325774397;M5A;286016245407762;108ort;933702!
@L036863071013257743971707162105448000000000000000000000100B0000000000000000!
@C;86307101325857697;M5A;286016245407994;108ort;177702!
but in hercules server result is
L036863071010014816971004211726548000000000000000000000100B0000000000000000!{10}
@L036863071013257941970605160600248000000000000000000000100B0000000000000000!{10}
@C;86307101325724897;M5A;286016245407733;108ort;C68602!{10}5051 180761000002000{20}{10}
@L036863071013256869970304131333498000000000000000000000100B0000000000000000!{10}
@L036863071013257248972210181205278000000000000000000000100B0000000000000000!{10}