Coder Social home page Coder Social logo

francisco-ibarra07 / pingnetworkutility Goto Github PK

View Code? Open in Web Editor NEW
3.0 2.0 0.0 68 KB

A small replica of the popular Ping networking utility. This CLI app is for Linux and is built from scratch using the C programming language ๐Ÿฅณ๏ธ

License: MIT License

C 100.00%
ping networkingtool networking-concepts icmp-ping c linux ip

pingnetworkutility's Introduction

Ping CLI Application

Demo

๐Ÿš€ Getting Started

The entire source code for this program is inside ping.c

Note: This C application was built on a Linux machine running x86_64 Ubuntu 18.04.1. Some of the libraries used in this application might not port over to MacOS.

To compile and run do:

gcc ping.c -o ping
sudo ./ping [-ev] [-i interval] [-t TTL] [-W timeout] destination

Options:

-e  exit on timeout
      This flag can be used if you with for the ping program to stop if one packet has timed out.
      
-i  interval
      Wait interval seconds between sending each packet. The default is to wait 1 second. Interval must be a  
      number greater than 0. You may pass in a number like 0.4 to set the interval to 0.4 seconds.
      
-t  TTL
      The time to live of the packet. Default value is set to 64. Value must be in range of [0, 255].
      
-W  timeout
      Time to wait for a response in seconds.
      
-v  verbose output

destination   Hostname or IPv4 address (e.g google.com)

pingnetworkutility's People

Contributors

francisco-ibarra07 avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.