Original Post
Hello fellow devs, I'm facing a really silly problem. I'm just trying to implement a simple UDP feature for the client and server to talk to each other, everything works there. But when I actually came to parse the messages I found an interesting problem. The data field for some reason keeps corrupting/changing all the time. I just send a simple message to the client saying "Hi, I'm the server" and when the client reads it, it sees it as "Hi, I'm the server[random characters]". Naturally when I come to parse it, it just blows up. Here is a screenshot of the problem. At the top of the picture you can see the "Hi, I'm the server" String being created and at the bottom you can see the console of the Client and how the Client sees the message from the server. It worked just fine earlier but when I came back home with my work and slammed the project into my own Eclipse, this is what I got out of it. Any ideas what's going on? Or how to possibly solve this. Naturally I'd love to get rid of those weird characters completely since I'm not adding them there myself... Cheers. // Skyy