Home > Experiments > Checknet V1.0 Alpha (GNU/Linux only)

Checknet V1.0 Alpha (GNU/Linux only)

Checknet is an application developed for slow Internet connection(especially Dial-up) users who likes to turn off monitor while downloading some files from the web. Since the monitor is switched off or else if you are working with some other application, you wouldn’t know whether the download is interrupted by connection erros. This application gives you beep-beep alerts when the connection gets dissconnected or the download is interrupted. You even need not turn your speakers ON for alerts, the alerts are from CPU :).

This programs is working based on the amount of received-data. It wil update the record every 2 seconds, if there is no change in the total recieved data, it just starts giving you alerts.

Checknet was initially created just for my personal use, hence it doesn’t feature a good interface or other extra elements. Feel free to edit it to suit your style.

Thanks to Ragsagar ettan and Sarath ettan 🙂

Click here for the executable fileClick here for the source code

  1. June 8, 2009 at 11:50 am

    Cool. Nice application.
    Might I suggest one simplification of your ‘string processing and usage exraction logic? Try this:

    const char str[] = ” RX bytes:11662559 (11.1 MiB) TX bytes:1702616 (1.6 MiB)”;

    double usage = 0.0;

    int ret = sscanf(str, “%*[^0123456789]%lf”, &usage);

    if(ret == 1)
    printf(“usage: %f\n”, usage);

    In short, that sscanf is all you need to extract the “usage”. Checking the return value of sscanf, of course, is always a good idea.

    Good luck.

    • June 8, 2009 at 12:05 pm

      Thank you very much Syam etta for your valuable comment and this wonderful information. It’s working fine !! I got the output:

      usage: 11662559.000000

      .. and this is the simplest way to do it. Thank you once again 🙂

      • June 8, 2009 at 2:30 pm

        You’re welcome 🙂
        If you haven’t already, figure out how that scanf works. You might be surprised.

  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: