Skip to content

Repo to implement blocking sockets connection library on windows

Notifications You must be signed in to change notification settings

Anthony4m/winstests

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Project Name: winstests

Description

This project, "winstests," is a C++ application that demonstrates network communication using the Tnet library on Windows. It includes both client and server components to showcase basic network operations. This README provides information on how to build, run, and understand the project.

Prerequisites

Before building and running this project, ensure that you have the following prerequisites installed on your system:

  • CMake (Version 3.26 or higher)
  • A C++ compiler that supports C++17 (e.g., GCC, Clang, Visual C++)
  • Windows Operating System (this project relies on the ws2_32 library, which is specific to Windows)

Building the Project

Follow these steps to build the "winstests" project:

  1. Clone the repository to your local machine.
git clone https://github.com/Anthony4m/winstests.git
cd winstests
  1. Create a build directory and navigate to it.
mkdir build
cd build
  1. Use CMake to generate the project files based on the provided CMakeLists.txt.
cmake ..
  1. Build the project using your preferred build tool (e.g., make on Unix-like systems or Visual Studio on Windows).

On Unix-like systems:

make

On Windows (using Visual Studio or another IDE generated by CMake):

Open the generated solution file and build the project.

Running the Project

After successfully building the project, you can run the client and server components. Here's how:

Running the Server

  1. Open a terminal or command prompt.

  2. Navigate to the build directory (if you are not already there).

cd build
  1. Run the server executable.
./server_exe

The server will start and listen for incoming connections.

Running the Client

  1. Open another terminal or command prompt.

  2. Navigate to the build directory (if you are not already there).

cd build
  1. Run the client executable.
./client_exe

The client will connect to the server, and you should see the communication between the client and server in the respective terminal/command prompt windows.

Project Structure

The project is organized as follows:

  • CMakeLists.txt: The CMake configuration file for the project.
  • Tnet/: A directory containing the Tnet library source code and header files.
  • client/: The client source code.
  • server/: The server source code.

Dependencies

This project depends on the following components:

  • ws2_32: The Windows Socket Library, used for socket communication on Windows.
  • Tnet: A custom library provided in the project, which handles network communication.

Additional Information

For further details about the Tnet library, please refer to the documentation provided in the Tnet directory.

License

This project is distributed under the [insert_license_here] License. See the LICENSE file for more information.

Acknowledgments

Special thanks to the contributors and maintainers of the Tnet library.

Contact Information

For any questions, issues, or feedback related to this project, please contact [Your Name] at [[email protected]].


About

Repo to implement blocking sockets connection library on windows

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published