Giter VIP home page Giter VIP logo

rtp's Introduction

rtp

A userspace reliable transport protocol whose congestion window is governed only by the delivery rate (i.e., bandwidth/throughput) and the data loss rate.

Features

  • an async-free reliable layer
    • a piece of pure algorithm
    • main entry: [[src/reliable_layer.rs]]
    • send window: [[src/packet_send_space.rs]]
    • recv window: [[src/packet_recv_space.rs]]
    • send rate limiter: [[src/token_bucket.rs]]
    • SACK managing: [[src/sack.rs]]
  • a dead simple codec for packet encoding/decoding
    • main entry: [[src/codec.rs]]
    • wireshark dissector: [[wireshark/rtp.dissector.lua]]
  • an async-based I/O-agnostic transport layer
    • gluing the unreliable layer and the reliable layer together
    • main entry: [[src/transport_layer.rs]]
  • a user-facing I/O-agnostic socket wrapper
    • managing opening, closing, timer, async read/write for the transport layer
    • perk: You are allowed to wait until or check if the send buf is empty!
    • main entry: [[src/socket.rs]]
  • a user-facing over-UDP implementation
    • exposing listening, accepting, and connecting APIs
    • main entry: [[src/udp.rs]]
  • a user-facing keyed-streams over-single-UDP-connection implementation
    • exposing listening, accepting, and connecting APIs
    • main entry: [[src/keyed_udp.rs]]

How to use

  • as a high-level socket user: Refer to [[examples]] directory and the test sections in [[src/udp.rs]] and [[src/keyed_udp.rs]].
  • as a low-level reliable layer user: Refer to the test sections in [[src/socket.rs]].

rtp's People

Contributors

banyc avatar

Stargazers

flightofthefox avatar  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.