Bookmark Topic Watch Topic
  • New Topic

Daemon - Processing Wierd Input (Text + Hex)  RSS feed

 
john can
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Report post to moderator



let me explain a lil. The program is actually a daemon. It works fine. In the body run, that's the thingy which did string token. It works fine. But
i am creating something that will split (1a) into 2 piece, and another will spilt the other piece.

The senario, the daemon will receive a string, like "*abcde,1,2,3,hello%"
where * = STX (ASCII 02) and % ETX (ASCII 03)
the first loop will eliminate the STX, then seggregate the text to a loop, for example a=abcde, b=1, c=3, d=hello%.

*what i managed to do is only string token the normal characters, not the ASCII characters

then the final loop will grab strtoken the % char.

i have been trying tht for 1 whole days.. n e ideas guys ?

thanks in advance.

[ EJFH: Adding formatting to code ]
[ April 29, 2005: Message edited by: Ernest Friedman-Hill ]
 
Jessica Sant
Sheriff
Posts: 4313
Android IntelliJ IDE Java
  • Mark post as helpful
  • send pies
  • Report post to moderator
Please don't post the same question to multiple forums, it makes a conversation difficult to follow, and can waste people's time if they answer a question that's already been answered elsewhere.

Please post your replies in the original thread.

Thanks!
 
    Bookmark Topic Watch Topic
  • New Topic
Boost this thread!