Code Monkey home page Code Monkey logo

defensive-systems-open-uni-server-side's Introduction

About The Project

This project defines a server according to the final project requirements for the Defensive Programming course in the Open University. The server is defined with a specific set of rules for which requests should be handled and how. Every request is expected to consist of a specific format, which is represented in the code with matching dataclasses defined in models.py. RequestCodes & ResponseCodes are enums that define different possible values for the requests & responses to and from the server.

@dataclass
class Request:
    client_id: bytes
    version: str
    code: RequestCodes
    payload_size: int
    payload: bytes


@dataclass
class Response:
    version: str
    code: ResponseCodes
    payload: bytes

    @property
    def payload_size(self):
        return len(self.payload)

Notes:

Please note that the quality of the code in this project may not entirely reflect my usual standards. Due to the situation right now, and myself being a 8200 graduate, I was called for reserved duty in the army and had to expedite the development process accordingly. This has impacted my ability to refine, optimize and test the codebase as I would typically prefer.

Flows

Registration Flow:

REGISTRATION_FLOW

Reconnection Flow:

RECONNECTION_FLOW

Contact

Erez Drutin - [email protected]

defensive-systems-open-uni-server-side's People

Contributors

erezdrutin avatar

Watchers

 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.