Skip to content

TCP based client-server applications with the proxy in the middle

Notifications You must be signed in to change notification settings

innayashna/packets-checker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Task

  • Create simple TCP based client-server application.
  • Create a proxy application (that is in the middle).
  • Application logic:
    • Client sends data to Proxy.
    • Option1: Proxy just forwards it to the server.
    • Option2: Proxy does modifications in payload and resend them to server.

For Option2: Server must figure out that data has been changed in the middle (calculating packet checksum).

Sequence diagram of implementation

Sequence diagram

Run application

  1. Build with cmake
cmake CMakeLists.txt
  1. Build application with make
make
  1. Run (sudo usage is mandatory since raw sockets require root privileges)
sudo ./packets_checker

About

TCP based client-server applications with the proxy in the middle

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published