Results 1 to 4 of 4

Thread: How can you Update an API status?

  1. #1

    Thread Starter
    Hyperactive Member kourosh's Avatar
    Join Date
    Aug 1999
    Location
    Vancouver, British Columbia, Canada
    Posts
    256

    Question How can you update the data returned by an API Call?

    Hi, I recently (Today) wrote a program which could detect whether I am connected to the internet and if I am connected via Lan or Modem. Well when I run the program it return all the right information but unfortunaly I am not able to refresh these data. For example when I run the program it return that I am online vial a lan Connection but if I disconnect my cable modem from the power supply it still return the same infomation I tried to update this information but I was not able to do it anyway. I am not sure but is it that you can't refresh data's returned by API calls when you runed it first? Or is it anyway to do it. I need this program to check the status of the modem because if I become disconnected by an accident for five minutes my ISP will disconnect me from the server and I have to call them. Please help me if you can I really appreciate it.


    ===========================
    Kourosh Gonabadi
    VB Programmer
    C++ Newbie
    Graphic Designer
    ===========================

  2. #2
    Junior Member
    Join Date
    Feb 2000
    Posts
    22

    API refresh

    You said you can't get the data to refresh. Did you call the api a second time after you disconnected the cable?

  3. #3

    Thread Starter
    Hyperactive Member kourosh's Avatar
    Join Date
    Aug 1999
    Location
    Vancouver, British Columbia, Canada
    Posts
    256

    Angry

    Well the API call is located inside a function I keep calling the function every 5 second. But it doesn't seems to update the info.

    ===========================
    Kourosh Gonabadi
    VB Programmer
    C++ Newbie
    Graphic Designer
    ===========================

  4. #4

    Thread Starter
    Hyperactive Member kourosh's Avatar
    Join Date
    Aug 1999
    Location
    Vancouver, British Columbia, Canada
    Posts
    256

    Red face

    Well I took a look at the place I took the API from it and I saw couple of more people who used the API and had the same program.

    Thanks for readin anyway.
    ===========================
    Kourosh Gonabadi
    VB Programmer
    C++ Newbie
    Graphic Designer
    ===========================

Posting Permissions

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



Click Here to Expand Forum to Full Width