Skip to content

The simple Sever-Client app that uses Boost.Asio and CLI library.

License

Notifications You must be signed in to change notification settings

elementallyXD/GL_Server-Client

Repository files navigation

GL_Server-Client

I wrote a server program and a client program using BOOST Library. The server accepts requests from clients asynchronously. The server and client code are based on a boost asynchronous echo server and a boost echo client.

Sever and Client have a Command-Line Interface (used CLI Library). C++14 was used (because of CLI). I used Makefile to compile on Linux OS.

The server has functions for starting, stoping, and setting the server port. The client has a function for connecting and sending messages to the server. Also, both have "help" and "exit" functions.

"help" functions you can see on screenshots:

image image

Example work:

image image

Install for Linux OS

To download files use:

git clone [email protected]:elementallyXD/GL_Server-Client.git

Change dir:

cd GL_Server-Client

Run Makefile for build project:

make

Now we can use server and client!

Usage for Linux OS

For run server use:

./server

For run client use:

./client

Install for Windows

To download files use Google Drive or use Releases for download files

Unpack or move to your directory. Open Windows Terminal(CMD) as an administrator in that directory.

Usage for Windows OS

IN TERMINAL

For run server use:

GL_Task_Wind.exe

For run client use:

GL_Task_Wind_Client.exe