Skip to main content
Participant
January 5, 2011
Question

Problem: String Parsing by Remote Java Server

  • January 5, 2011
  • 1 reply
  • 413 views

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 has been closed for replies.

    1 reply

    Participating Frequently
    January 5, 2011

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