Discussion Board

Results 1 to 2 of 2
  1. #1
    Registered User
    Join Date
    Jan 2006

    How to check server availability?

    I wonder if there is a convenient way of checking the availability of a server before trying to open a connection to it? My problem is that when using Connector.open the call blocks for ever if the server does not respond at the specified port. This results in the entire application freezing if the use inadvertently entered an invalid address for instance.

    The code goes something like:
        connection = (StreamConnection) Connector.open(adr, Connector.READ_WRITE, true );
    }catch(Exception e){
        System.out.println("not working "  + e.getMessage());
    I don't seem to receive any time out exceptions, even though the third parameter is true.

    Is there any good way of solving this?

  2. #2
    Registered User
    Join Date
    Jan 2006

    Re: How to check server availability?

    Sorry, should have posted this in the networking Forum.

Similar Threads

  1. Video Sharing server availability ...
    By TrickLo in forum Symbian Networking & Messaging (Closed)
    Replies: 3
    Last Post: 2006-01-30, 14:23
  2. Programatically starting a custom server
    By GJokiel in forum Symbian
    Replies: 1
    Last Post: 2003-05-19, 10:50
  3. Nokia device profile server availability?
    By stevejarrett in forum Browsing and Mark-ups
    Replies: 0
    Last Post: 2003-05-12, 04:29
  4. Test GPRS modem with Microsoft SQL Server 2000
    By chadahamat2704 in forum Digital Rights Management & Content Downloading
    Replies: 0
    Last Post: 2003-03-13, 07:36

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts