GithubHelp home page GithubHelp logo

voting_protocol's Introduction

CPSC 3500 Project #3
Socket Programming

Group: Mason Kam, Steven Nguyen, Brandon No
Group#: 8
Port#: 10080

Files included: clientConnection.h, client.cpp, server.cpp, serverFunction.h,
		Makefile

Description: We split the assignment up into three parts: client, server,
		and connection. 

		Client: The client portion handles the interface, the setting
		up of the message to be sent, and handles the received message.
		Afterward the statistics are displayed for each request 
		whether bad or good, and in the end for a summary of the
		history of requests and whether they were valid or not.

		Server: The server handles the message obtained and checks
		to make sure all the fields are as they should be. Handles
		good messages and bad messages. Server handles multiple clients
		through multi-threading and candidate information through a
		built in hash table (unordered map). Server makes sure to set
		flag bits for malformed messages. Otherwise, server sends back 
		message with vote count and cookie # receipt for client.

		Connection: The connection portion handles all socket 
		connections and translations between server and client.
		Connection portion handles server name and port # to assure
		an established link between server and client. Connection is
		implemented in the form of header files for each server and
		client so that the server and client file may just call these
		functions to connect.

Contributions:
	Mason: Everything client related: client.cpp

	Steven: Everything connection related:
		clientConnection.h, serverFunction.h

	Bradon: Everything server related: server.cpp

	All of us worked together to assist each other in parts we may have not
	been too knowledgeable about in our fields. For the most part, we
	worked together while creating these files and finished up the smaller
	details by ourselves.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.