Code Monkey home page Code Monkey logo

stunne's People

Contributors

markhildreth avatar

Watchers

 avatar  avatar

stunne's Issues

Listen on multiple addresses

Adhere to the "Server Behavior" section of RFC 5780 for the simple server. Specifically:

  • Run the server such that it is bound to two addresses, and two ports. This should mean starting up four sockets. Error if any of the four sockets cannot be created.
    • Address A, Port A
    • Address A, Port B
    • Address B, Port A
    • Address B, Port B
  • For each socket, handle binding requests such that the "OTHER-ADDRESS" attribute includes the opposite address/port (e.g., the socket for Address A, Port B should return address B, Port A).

Find alternative to Bytes for data encoding

It seems a bit overkill to use Bytes for encoding. Bytes makes more sense in a situation where data is being streamed (e.g., over TCP) with one thread pushing to the buffer while another reads. With the ability to read an entire datagram at once the only niceity is
the API, but with an unnecessary Arc overhead.

Additionally, I'm fine with an API that requires the user to specify the buffer size and error if the buffer would be overwhelmed. That's usually an indication that we should reject the data to begin with.

Respect "CHANGE-REQUEST"

Implement "CHANGE-REQUEST" in the server, allowing a server to respond to a binding request from a different IP and/or port.

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.