GithubHelp home page GithubHelp logo

coditva / udt-c Goto Github PK

View Code? Open in Web Editor NEW
84.0 7.0 18.0 106 KB

A basic implementation of UDP-based Data Transfer protocol (UDT) in C

License: MIT License

Makefile 3.30% C 96.70%
udt udp sockets udp-socket socket-api pthreads transfer-protocol

udt-c's Issues

Data loss when sending large data

When large data is sent, it gets divided into two parts. The first packet is always on its own.

And there is some loss:
24 chars are lost between first buffer returned by udt_recv and the next when packet data size is 1024.

Implement a timer and send timed packets

Right now, there is no support for sending timed packets like ACK and Keep-alive etc. ACK is send a complete data segment is sent. This is not the actual UDT behavior.

Can UDT Client Receive Data?

In all implementations of UDT available online including this one, I only see the client is sending data. When I tried the client receive data, it never gets data. Is there any reason for this behavior in UDT?

update:
To further add even running the sample prog. - https://github.com/coditva/udt-c/blob/master/progs/recvfile.c - the received file is 0 bytes (i.e. the file gets created but the client program receiving the file never gets data on udt_recvfile(). Thus the file has no contents, and the recvfile program never closes/terminates, while the sender has terminated).

Implement loss list

Keep a loss list and send NAKs for lost packets. Keep a sender's loss list for lost packets and re-transmit them when needed.

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.