GitXplorerGitXplorer
i

TcpClientServerApp

public
44 stars
10 forks
0 issues

Commits

List of commits on branch main.
Verified
a012e7f0c8fecdb2990caabaedd86171738bef3f

Update README.md [skip ci]

iiamazeem committed 4 months ago
Verified
e99594697cd868991ee7bc9a47ab7eb8ae83a593

Bump SonarSource/sonarcloud-github-c-cpp from 2 to 3 (#4)

ddependabot[bot] committed 7 months ago
Verified
5622ec278e263e697387c262b80727758832c6fe

Bump actions/checkout from 3 to 4 (#3)

ddependabot[bot] committed a year ago
Unverified
9577ec20b19dc8201eed31d2fff70ae85c0155ac

Add context to log pattern.

iiamazeem committed a year ago
Unverified
61d9f2c8256a3686e9c061e7c828c32baeb6a091

Test server and client.

iiamazeem committed a year ago
Unverified
41fef203511fa1dc801fa46e8d044e400fe1a031

Minor updates.

iiamazeem committed a year ago

README

The README file for this repository.

TcpClientServerApp

ci License: MIT

Sample asynchronous protocol-based TCP client and server apps using C++ and Boost::Asio

sequenceDiagram
    autonumber
    participant client
    participant server
    client-->>server: connect
    server->>client: welcome
    client->>server: command
    activate server
    note right of server: execute
    server->>client: output
    deactivate server
    client->>server: exit
    server--xclient: disconnect

Dependencies

Build

git clone --recursive git@github.com:iamazeem/TcpClientServerApp.git
cd TcpClientServerApp
cmake -S . -B build
cmake --build build

The client and server binaries will be generated under build directory:

  • ./build/server/server
  • ./build/client/client

Run

Run server on one terminal:

./build/server/server

Run client on another terminal:

./build/client/client

License

MIT