Giter Site home page Giter Site logo

olin-networking-class's People

Watchers

 avatar  avatar  avatar  avatar  avatar

olin-networking-class's Issues

Add "\" character.

We need to add the "" character to our morse code library. There is a predefined one for "real-world" Morse code - just find it and add it.

Capture and return received messages.

Currently, messages received by morse_code is simply printed (if it's to us). See line 113 in morse_code.py. What needs to happen is:

  • Instead of being printed, messages are pushed down to a new queue.
  • A helper function named returnMessage can be used to pull a message from the queue. Look to the function returnData in UDP_Server.py for a format of this function.

This is so that the layer above morse_code (currently morse_socket) can access the messages received by this layer.

Padding port in packet.

When the port (source or destination) is, say, 7, it is encoded into the packet as '7', when the port field should actually be two characters, i.e. '07'.

Eliminate use of the '+' opcode

Currently, the end of a message is determined by looking at the '+' opcode instead of the length field. (see morse_code.py line 112) Instead, the len field of the packet should be used to determine the end of the packet.

Source address cascading down

Currently, the device's address is assigned in morse_socket.py. However, the "source" field is filled in inside of morse_code.py, which currently does not have access to the device's address.

Probable solution: pass source into morse_code.py's sendMassage function. If this route is take, be sure to eliminate self.ourMac from morse_code.py and clean up any references to it.

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.