Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jonasalbuquerque/ping
Simple ping application with two threads (client and server) communicating by sockets and exchanging ICMP messages.
https://github.com/jonasalbuquerque/ping
cplusplus cplusplus-11 cpp cpp11 icmp icmp-ping network-programming networks ping ping-pong pingpong socket-programming sockets
Last synced: about 1 month ago
JSON representation
Simple ping application with two threads (client and server) communicating by sockets and exchanging ICMP messages.
- Host: GitHub
- URL: https://github.com/jonasalbuquerque/ping
- Owner: jonasalbuquerque
- Created: 2021-02-09T18:44:39.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2021-02-12T16:09:14.000Z (almost 4 years ago)
- Last Synced: 2024-10-13T16:22:04.427Z (3 months ago)
- Topics: cplusplus, cplusplus-11, cpp, cpp11, icmp, icmp-ping, network-programming, networks, ping, ping-pong, pingpong, socket-programming, sockets
- Language: C++
- Homepage:
- Size: 6.14 MB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Ping Application
Simple ping application with two threads (client and server) communicating by sockets and exchanging ICMP messages.
The client side:
1. encodes a object IcmpPacket in a vector of bytes and sends it by a socket;
2. waits for a reply in the same socket;
3. decodes the array of bytes received and displays the packet data;The server side:
1. waits for a ping request in a socket;
2. decodes the array of bytes received and stores the data in a IcmpPacket object;
3. encodes a IcmpPacket reply object and sends it by the same socket;