Skip to main content
Participant
Jan 5, 2011 12:06 AM UTC
Question

Problem: String Parsing by Remote Java Server

Hi,

I am writing a game where positions of an object are being exchanged between the two flash clients through a java server. The secnario goes simply like this:

PlayerA ---> Server : "Position X + Position Y+\n"

Server ---> PlayerB: "Position X + Position Y+\n"

and it works both ways of course.

the problem here is that on my computer where i use "localhost" everything is fine and the data is exchanged seamlessly .. when I loaded the server on a remote host the message received strangely turns into something like "Position X + NaN" (i.e. the y position is wrongly parsed by the server), what is weird even more, is that sometimes, the message gets parsed correctly..

the server is wrote in java and it is exactly the same source code that works on my machine that fails over the internet

any help is highly appreciated,

    This topic is closed to new replies. Start a new post to keep the conversation going.

    1 reply

    Participating Frequently
    Jan 5, 2011 5:10 AM UTC

    I am just wondering if you are using FMS in your workflow?

    Translate