Search:

Type: Posts; User: ineedahero

Search: Search took 0.13 seconds.

  1. Re: When you have a multi-threaded Server and Client program....

    Well....what if the Server sends something, then in the next line of code sends another message.

    Then the client receives the first message....has to do stuff with it...then, when it's done, the...
  2. Re: When you have a multi-threaded Server and Client program....

    I see what you're saying.

    Here, though, the Server is kind of sending two messages in a row.

    I suppose that's bad practice?
  3. Re: When you have a multi-threaded Server and Client program....

    I'm sorry...I don't understand what you mean.

    All I have is the client saying "System.out.println(b.readLine());"

    So, he's waiting for the Server.

    But that's useless if the Server sends the...
  4. Re: When you have a multi-threaded Server and Client program....

    Yes, but the code is kind of complicated. I'll try to give a brief version here.

    The Client is playing a game. He connects to the server, and the server executes the game and gives the client...
  5. When you have a multi-threaded Server and Client program....

    ...how exactly do you ensure that the Server always sends the data after the Client has entered a wait state for the data?

    As in, if I have the Server write something and the Client read something...
Results 1 to 5 of 5