Search:

Type: Posts; User: Norm

Search: Search took 0.11 seconds.

  1. Replies
    11
    Views
    1,829

    Re: Second command to socket doesn't get through

    Perhaps this will help. Here is my test script:


    public static void main(String args[]){
    Thread t = new Thread(new Runnable() {
    public void run() {
    new...
  2. Replies
    11
    Views
    1,829

    Re: Second command to socket doesn't get through

    I think your problem is an inconsistency between the sending of the message and the reading of the message:
    This reads the message. Read the API doc for what this method does:

    while ((inputLine =...
  3. Replies
    11
    Views
    1,829

    Re: Second command to socket doesn't get through

    Why do you need a server to test this? I think there is a much simpler way to test the socket and I/O classes you are using.

    The zips you posted didn't have the source for the Client class.
  4. Replies
    11
    Views
    1,829

    Re: Second command to socket doesn't get through

    Is a server necessary for testing? Can it be done with a local client class?
  5. Replies
    11
    Views
    1,829

    Re: Second command to socket doesn't get through

    That sounds like something is blocking.

    How can anyone test your code? Do you have a client and a testing script/program?
  6. Replies
    11
    Views
    1,829

    Re: Second command to socket doesn't get through

    How can anyone test your code?
  7. Replies
    11
    Views
    1,829

    Re: Second command to socket doesn't get through

    What I'd do to find the problem is add lots of println statements to show the execution flow and to show the values of variables as they change. The print outs will help you understand what the code...
Results 1 to 7 of 7