Hi,
I am trying to make a robot program communicating through socket.
Is there a way to split a string ? Actually I'd like to be able to receive through a socket a string like "SenderID (3.10,0,0,0,0,0)\n" so I can do a move according pos received then send a response like "TargetID 'Move done'" (where TargetID == SenderID) So is there a way to parse messages or do I have to send the sender ID first, then coordinates ?
Also, is there a way to check if coordinates received are reachable ?
Thanks.