Skip to content

As simple as possible example of C++17 sockets handling in a functional fashion

License

Notifications You must be signed in to change notification settings

pantadeusz/hello-cpp-network-sockets

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

hello-cpp-network-sockets

As simple as possible example of C++17 sockets handling using async

The goal of this example is to provide quick start for people who would like to start programming sockets in new projects.

I tried to make it simple, but with advanced techniques from C++17 like initialization of variables along if statement, async calls with futures and auto types.

Compilation

g++ client.cpp -std=c++17 -o client
g++ server.cpp -std=c++17 -o server

Running

./server &
./client

Credits

Tadeusz Puźniakowski

Contribution

(TODO) - suggestions?

About

As simple as possible example of C++17 sockets handling in a functional fashion

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages