If you do not want your program to halt while it waits for a connection, put the call to accept( ) in a separate thread?
Answer / Hema Singh
"Correct". By creating a new thread to handle the call to accept(), your main program continues executing without waiting for incoming connections.
| Is This Answer Correct ? | 0 Yes | 0 No |
What is a client tester?
What is an http server?
how to know which version of java is running on ur computer using command prompt?
What do you understand by the term network?
Explain look for local ports?
What is a port?
What is URL?
What is Domain Naming Service (DNS)?
What is the purpose of HTTP tunneling?
What are the advantages and disadvantages of sockets?
Why socketutil is used?
What are the advantages and disadvantages of java sockets.