Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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.

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;