Skip to content

A Multithreaded Socket Programming on Windows. This was originally a KRSSG task. Problem statement provided.

Notifications You must be signed in to change notification settings

devxdebanjan/Prisonergame

Repository files navigation

🎯AIM

The goal was to build a client server architecture through windows multithreaded socket programming where any number of prisoners (or clients) could connect to the server and through random guesses get out of the prison (or program).

👨‍💻LANGUAGE

C++

💻OS

Windows 11

📚LIBRARIES USED

  • iostream
  • WS2tcpip.h
  • thread
  • cstdlib
  • with build dependency of ws2_32.lib (used for windows socket programming)

⚙️INSTRUCTIONS

  • Here you will find three files - Server, Prisoner Client and Count Client.
  • Firstly, with help of Visual Studio build the solution of Server and then run it using local windows debugger.
  • Among the two the KRSSGtask1client and the KRSSGCountClient make sure you first run the KRSSGCountClient which is necessary for smooth running of the program.
  • In the same way with the help of the visual studio first build the solution of the count client and then run it using the local windows debugger.
  • Next build the solution of the KRSSGtask1client.sln. Now go to the
    KRSSGtask1client>x64>Debug>KRSSGtask1client.exe executable file.

Now run the number of clients you have previously entered in the count_client. Wait for it to end the execution and provide you the escape order.

For any other discrepancies, please hit me up on my email

PLease leave a follow and if you found this helpful
Thank you✨

Releases

No releases published

Packages

No packages published

Languages