Small projects made to learn networking in the C++ programming language. The environments used were Windows VS 2022, Unity, Linux.
Resources
- Youtube: Sloan Kelly [Networking in C++] [Web Server in C++]
A simple tcp server based on Winsock API. The project was build using the MS VS 2022 tools.
Demonstrate a working server and a single client connection and message echoing. The server can be connected via telnet
as well.
Building a flexible abstraction layer on top of barebones server with OOP concepts to present a simple minimal server api with a callback.
An extension to the barebones server, which upon receiving a command ‘quote’, sends out a random quote that is read from a text file ‘wisdom.txt’.
A chat app as an extension on top of barebones tcp server to support multiple clients. It is done without the use of multi-threading. select()
and file descriptor sets
are used along with file descriptor functions FD_SET
, FD_CLR
, FD_ZERO
to support multiple clients.
A barebone server and client based on UDP
. The client supports sending messages to the server with cli arguments. Also, netcat
can be used as well to communicate with the UDP server.