jonasalbuquerque / ping

Simple ping application with two threads (client and server) communicating by sockets and exchanging ICMP messages.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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;

About

Simple ping application with two threads (client and server) communicating by sockets and exchanging ICMP messages.


Languages

Language:C++ 79.3%Language:Python 11.3%Language:Makefile 4.3%Language:CMake 2.4%Language:C 1.3%Language:Starlark 0.7%Language:Shell 0.7%