Skip to content

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

Notifications You must be signed in to change notification settings

jonasalbuquerque/ping

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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;