How ad-tech1009/networkprotocol works
Project type and purpose
• This is a network-programming example repository providing two implementations of a TCP client/server pair: one in C++ using the Windows Sockets API (Winsock) under the WIndows/ directory, and one in plain C using BSD-style sockets under the linux/ directory.
• Its purpose is educational: to demonstrate socket initialization, connection setup (bind, listen, accept), data exchange, and cleanup on two different platforms.
File structure
• Top level:
• .gitignore – standard VCS ignore file.
• README.md – overarching project description and Windows build instructions.
• WIndows/ – contains server.cpp and client.cpp: the Winsock2-based examples.
• linux/ – contains README.md plus httpserv.c, tcp_client.c, and tcp_server.c: Linux/BSD sockets examples.
• Each platform folder is a self-contained demo with its own source files and build instructions.
README for additional insights
• The main README focuses on the Windows examples, dependencies (Ws2_32.lib), and step-by-step build/run instructions.
• The Linux subfolder’s README (not shown here) presumably describes how to compile the C examples with gcc and run them.
Elements
• Clear labels: “Win Server”, “Win Client”, “Linux Server”, “Linux Client”, “Network”.
• From Client to Server: TCP handshake (SYN, etc.)
• Rectangles for application components (source code).