Giter Site home page Giter Site logo

azersd / ft_ping Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 1.27 MB

Re-coding the ping command.

License: GNU General Public License v3.0

Makefile 23.50% C 68.00% Dockerfile 2.79% Shell 5.71%
42 42cursus 42projects 42school networking ping socket-programming tcp-ip

ft_ping's Introduction

Recoding the `ping` command provides you a deeper comprehension of how network tools work, Especially TCP/IP communication between two machines on a network, leading to a more profound understanding of network operations.

Report a Bug . Ask a Question

license PRs welcome made with hearth by AzerSD


Allowed function

Function Description
gettimeofday Retrieves the current time with microsecond precision. Useful for timestamping packets and measuring network latency.
exit Terminates the program immediately. Useful for handling exit conditions or errors gracefully.
inet_ntop / inet_pton Converts IP addresses between human-readable and network binary formats. Essential for handling IP addresses in networking applications.
nthos / htons: Converts between host byte order and network byte order for 16-bit integers. Ensures consistency in data representation across different systems.
signal / alarm / usleep Manages signal handling, timers, and microsecond-level sleep. Useful for implementing timeouts and asynchronous behavior in networking code.
socket / setsockopt / close Creates, configures, and closes network sockets. Essential functions for establishing and managing network connections.
sendto / recvmsg Sends data to a specific address and receives data along with sender information. Core functions for sending and receiving network packets.
getpid / getuid Retrieves the process ID and user ID of the current process. Useful for identifying the running process and implementing security checks.
getaddrinfo / getnameinfo / freeaddrinfo Resolves domain names to IP addresses and vice versa. Also frees memory allocated by getaddrinfo. Essential for DNS resolution in networking applications.
strerror / gai_strerror Converts error codes to human-readable error messages. Useful for diagnosing errors encountered during socket operations and network communication.
printf and its family Outputs formatted text to the console. Useful for displaying information, debugging, and monitoring the program's behavior.

ft_ping's People

Contributors

azersd avatar

Watchers

 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.