Skip to content

🗳️ An online vote casting system using TCP multi-threaded client-server program. The voters will log on from client systems and cast their votes.

License

Notifications You must be signed in to change notification settings

OSSpk/Online-Voting-System-TCP

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 

Repository files navigation

🗳️ Online Voting System using Multi-Threaded TCP Sockets

views Open Source Love svg1 GitHub Forks GitHub Issues contributions welcome

This is an online vote casting system using TCP multithreaded server-client program. The voters will log on from client systems and cast their votes.

Description

System should be secure and should only allow clients with authentic name and CNIC to cast the vote.

• A list of registered voters is available in a text file in the following format: Name/CNIC number

Complete Workflow

The Server shall:

• First of all take the client’s name and CNIC and match it with the content of the text file (Voters_List.txt).

• If the details match, then it will welcome the voter and display the names and poll symbols of the candidates on the terminal.(Candidates_List.txt)

• The voter will then cast the vote by mentioning the poll symbol (not the name) of the candidate. All these details are to be recorded in an output text file. This system should work perfectly for at least 5 different clients at the same time.

• If there is problem of load shedding of electric light, then your system should not lose track of the votes being already casted once your server restarts again when light comes back on.

• Assume that when the record of votes will be written by one thread in an output file, no other thread will make a read to the output file.

Note

• One client can cast a vote ONCE AND ONLY ONCE.

• The Server should allocate a new thread for every new incoming Client.

How to Run

The client. and server.c files are provided. Just compile each file using the following command on Linux terminal or Windows Bash and run it (For client, obviously replace the server.c filename with client.c). Make sure the server is running before running any client.

gcc –pthread server.c -o server.out


Hey there, I'm Haris Ultimate Facebook Scraper (UFS) - Maker of Things

Creator of Ultimate Facebook Scraper (one of the best software to collect Facebook data for research & analysis)


🌐 Connect

🤝 Consulting / Coaching

Stuck with some problem? Need help in solution development, guidance, training or capacity building? I am a Full Stack Engineer turned Project Manager with years of technical and leadership experience in a diverse range of technologies and domains. Let me know what problem you are facing at haris.muneer5@gmail.com and we can schedule a consultation meeting to help you get through it.

👨‍💻 Technical Skills & Expertise

  • Development of Web Applications, Mobile Applications, and Desktop Applications
  • Development of Machine Learning/Deep Learning models, and deployment
  • Web Scraping, Browser Automation, Python Scripting

❤️ Support / Donations

If you or your company use any of my projects, like what I’m doing or have benefited from my projects in any way then kindly consider backing my efforts.

For donations, you can follow these simple steps:

1) Free signup at TransferWise using this link: https://transferwise.com/invite/u/harism95. (Signing up through this link will save you from any transcation fee on the donation)

2) Select the amount e.g (15$) and choose the receiving/recipient's currency to be PKR. It supports multiple payment options (credit card, debit card, wire transfer etc)

3) Then it will show my info as the recipient, select it. If my name isn't shown, then type my email haris.muneer5@gmail.com in recipients.

4) Choose the reason for transfer to the one that suits you the most (in this case it could be 'General expenses') and in the reference section, you can mention 'Support'

If you face any issue in sending donation then feel free to get in touch with me at haris.muneer5@gmail.com

Thank you for your contribution!

Author

You can get in touch with me on my LinkedIn Profile: LinkedIn Link

You can also follow my GitHub Profile to stay updated about my latest projects: GitHub Follow

If you liked the repo then kindly support it by giving it a star ⭐ and share in your circles so more people can benefit from the effort.

Contributions Welcome

forthebadge

If you find any bug in the code or have any improvements in mind then feel free to generate a pull request.

Issues

GitHub Issues

If you face any issue, you can create a new issue in the Issues Tab and I will be glad to help you out.

License

MIT

Copyright (c) 2018-present, harismuneer