Coder Social home page Coder Social logo

abhaysaxenaa / sockets-in-c Goto Github PK

View Code? Open in Web Editor NEW
2.0 0.0 0.0 12 KB

Multithreaded Server in C, which allows multiple clients to access a synchronised key-value table via secure TCP sockets, allowing insertion, deletion and performing updates to the key-value pairs.

Makefile 0.24% C 99.76%

sockets-in-c's Introduction

Systems Programming - CS214 - Spring 2021
Project 3 - Networking


Name: Jesse Fisher
NetID:


Name: Abhay Saxena
NetID:


IMPORTANT NOTE: We only considered the message code to be an ‘uppercase’ code, since this was the specified format in the project writeup. So, the server will only accept, for instance, “SET” and not “set”.


Testing Strategy:
The testing strategy for the program "server.c" revolved around exploring all possible input cases the server may encounter. We tested the server to ensure that it handles valid input correctly, and we also tested a variety of invalid inputs. We attempted to break the program by entering invalid entries such as “SETTING\n”, “SET\nhello\n”, and “SET\n6\nKEY\nthis is too long\n”. The program responds to each of these entries appropriately. We checked to ensure that when the client closes the connection, the corresponding thread terminates as well. In order to find and resolve any internal errors, we utilized various macros to check return values and provide useful debugging information. The server is able to handle multiple users interacting with it simultaneously, with the data stored in the linked list in a synchronized manner, retaining its integrity and avoiding any race conditions or non-deterministic behavior.


Compilation: Successfully ran and tested the program using UBSan, Address Sanitizer and Valgrind.

sockets-in-c's People

Contributors

abhaysaxenaa avatar

Stargazers

 avatar  avatar

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.