delphi programming forums mysql charset mget recursive synonimos
free ventrilo servers hosting cs javascript delay python find in list
Back Forum New
abstract:

        } catch (UnknownHostException e) {
            System.out.println("COULD NOT FIND HOST... ");
            System.exit(1);
..
..
..


hello,o
i am throwin an UnknownHostException and its takign too liong to appear on the screen..any thought???
Code:
  1. private void connect() {
  2.         try {
  3.             connected = false;
  4.             in = InetAddress.getByName(requestedSmtpServer);
  5.         } catch (UnknownHostException e) {
  6.             System.out.println("COULD NOT FIND HOST... ");
  7.             System.exit(1);
  8. ..
  9. ..
  10. ..
Copy Code

TOP

You're trying to do a reverse dns lookup, and those always take a (relatively) long time.  Try pinging the server you're looking for and seeing how long it takes to come back with an ip address.



        } catch (UnknownHostException e) {
            System.out.println("COULD NOT FIND HOST... ");
            System.exit(1);
..
..
..

TOP

Back Forum