Clipboard Share

2021

C++, CMake, CLI, Local Network, Sockets

Born from necessity to share clipboards between computers in the same local network and the challenge to make as lightweight as possible. This program allows two or more computers to connect to each other, through sockets. Using a master/slave architecture connection, it is possible to share strings between all computers and automatically send them to the clipboards. The UI is console based.

Initially, the objective was to run solely on Windows machines but in order to challenge myself, I’ve also made it run in Linux machines.

Future plans:

  • Improve CLI UI quality
  • QoL upgrades
  • Fault handling if master fails

Challenges

  • Low resource consumption (<2 MB of RAM consumption)
  • Network architecture design to support more than two devices
  • Command line UI
  • First contact with Cmake
  • Support Multiple OS

Simple CLI for both Host (master) and Client (slave).

Profiling snapshot of the running program with constant 1MB RAM usage.