Search:

Type: Posts; User: Norm

Search: Search took 0.11 seconds.

  1. Re: Client and server socket conection - how to send IDs to clients

    There is an example of how to use threads in post#12. It starts 3 threads to run the server and clients.
    Put the code that does the reading inside a thread
  2. Re: Client and server socket conection - how to send IDs to clients

    Another problem is doing potentially long running code from a listener. The listener runs on the EDT which is where the JVM executes to update the GUI. The long running code should be done on its...
  3. Re: Client and server socket conection - how to send IDs to clients

    Try flushing the output after writing to it to push the data out of any buffers.

    I debug client server apps by running them in one jvm so all output goes to one console so the order of events is...
  4. Re: Client and server socket conection - how to send IDs to clients

    How are you debugging the code? I don't see anything printed on the console when the code executes.

    One possible problem I see is that there are several if statements that do NOT enclose the...
  5. Re: Client and server socket conection - how to send IDs to clients

    There are missing class definitions.
  6. Re: Client and server socket conection - how to send IDs to clients

    Please post the code here, not as links to other sites.
  7. Re: Client and server socket conection - how to send IDs to clients

    Can you make a small, complete program that compiles, executes and shows the problem?
Results 1 to 7 of 7