Search:

Type: Posts; User: Norm

Search: Search took 0.12 seconds.

  1. Replies
    16
    Views
    1,555

    Re: Client-Server programm creation

    The code at line 23 had a null variable when it was executed. Look at line 23 and find what variable was null and then backtrack in the code to see why that variable did not have a non-null value.
  2. Replies
    16
    Views
    1,555

    Re: Client-Server programm creation

    Please explain what "does not work"?
    Can you post the code that shows what you did and explain what happened when it was executed?


    Can you explain what that means?
  3. Replies
    16
    Views
    1,555

    Re: Client-Server programm creation

    Doing a read() would block/wait for a response.
  4. Replies
    16
    Views
    1,555

    Re: Client-Server programm creation

    I wouldn't close the connection after sending the request. Wait until the response is received.

    Put calls to the printStackTrace() method in all the catch blocks.

    getLocation() should return a...
  5. Replies
    16
    Views
    1,555

    Re: Client-Server programm creation

    Server waits for a request.
    Client sends request for a file
    Server sends response: requested file or error message
  6. Replies
    16
    Views
    1,555

    Re: Client-Server programm creation

    Have the client send the name of the file it wants to the server. The server should read the name sent by the client and test if the file is available. If the file is found, read and send it to the...
  7. Replies
    16
    Views
    1,555

    Re: Client-Server programm creation

    The threads have been merged


    Can you explain what that means? Try testing by sending a small file with a simple content that is easily verified. Say one or two lines with simple text like:...
  8. Replies
    16
    Views
    1,555

    Re: Client-Server programm creation

    Please explain what the problem is.

    What happens when you execute the code now?

    You need to post code that will compile if you want anyone to test it.
    The posted code is missing import...
Results 1 to 8 of 8