Skip to content

This repository includes a basic C++ server application that allows you to send requests from a phone acting as a client to a PC acting as a server to execute specified instructions on the PC server.

Notifications You must be signed in to change notification settings

Youssef1502/PC_Control

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 

Repository files navigation

PC_Control

This repository includes a basic C++ server application that allows you to send requests from a phone acting as a client to a PC acting as a server to execute specified instructions on the PC server.

Table of Contents

  • Features
  • Prerequisites
  • Getting Started
  • Usage
  • Setup Client
  • Execution Result

Features

  • Accepts incoming connections from multiple clients
  • Executes predefined commands based on client requests.
  • Handles errors by writing the wrong message.

Prerequisites

Make sure you meet the following prerequisites before you start:

  • C++ compiler (e.g., g++)
  • Linux-based operating system (the example is tested on Ubuntu)
  • Basic knowledge of C++ and socket programming

Getting Started

  1. Clone this repository to your local machine:

    https://github.com/Youssef1502/PC_Control.git
  2. Compile the server program:

    g++ main.cpp Server.cpp -o myserver

Usage

  1. Start the server:

    ./myserver

    The server will start listening on the specified port (default is 8080).

  2. Connect to the server using a client application or a terminal.

  3. Send one of the predefined commands to the server, such as [ terminal / calendar / firefox / nautilus / sudoku / calculator ].

Setup Client

  1. Download Tcp Udp Server & Client
  2. follow these steps:

client

Execution Result

simplescreenrecorder-2023-10-23_00.15.23.mp4

About

This repository includes a basic C++ server application that allows you to send requests from a phone acting as a client to a PC acting as a server to execute specified instructions on the PC server.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages