Socket s = new Socket(AddressFamily.INET, SocketType.STREAM); s.connect(new InternetAddress("domain.com", 80));
I want that program raise an error if reach for example 30 seconds of timeout.
Socket s = new Socket(AddressFamily.INET, SocketType.STREAM); s.connect(new InternetAddress("domain.com", 80));
I want that program raise an error if reach for example 30 seconds of timeout.