Connecting server and client
I have a problem that when i use ServerSocket.accept() the program stops working until it recives a connection request from the client, my question is , Is there a way that while the ServerSocket is waiting for a client my program will continue working and when a client requests to connect the program will treat it like an event listener and activate a certain function
Re: Connecting server and client
Yes, do your accept in a background thread. For more on Java threading, please check out the Concurrency Tutorial.
Originally Posted by omsh12