Giter Club home page Giter Club logo

Comments (7)

ryanbourneuk avatar ryanbourneuk commented on August 17, 2024

It occurs on this line:
[self.delegate session:self preparedDataForSending:chunk.encodedChunk];

of the ROUSession.m file.

from routp.

robwasmann avatar robwasmann commented on August 17, 2024

This might be what's happening to me too. *** Terminating app due to uncaught exception 'ROUException', reason: 'Encoded ack chunk is too short' getting thrown in [ROUAckChunk chunkWithEncodedChunk:]

from routp.

robwasmann avatar robwasmann commented on August 17, 2024

Oh I think it is because I am also trying to send some data using GKMatchSendDataUnreliable without using RoUTP since I don't need or want some data sent reliably. So it's receiving data that is 4 bytes and not 8 bytes. Would simply checking the sizeof the incoming data be a safe way to decide which way to process the data? That is, sending it through RoUTP or not.

from routp.

ryanbourneuk avatar ryanbourneuk commented on August 17, 2024

Hey,

You probably should be, instead of trying to distinguish between data sent with RoUTP or not, using RoUTP for both to ensure correct delivery.

I found my issue was caused by me not following the ReadMe correctly, especially with how I was setting the 'property' for it in the .h file. After changing some stuff around, it now works perfectly.

Ryan.

from routp.

robwasmann avatar robwasmann commented on August 17, 2024

Yeah some of my data packets will be much bigger than others, so it's not a good way to check.
It's just that I have some data sent at 60 updates a second and it doesn't matter if it's received or not, anything missed is discarded.

from routp.

ryanbourneuk avatar ryanbourneuk commented on August 17, 2024

Well, in that case, you should probably attach a flag to each data packet, that shows whether it has been compressed or not; especially if you're willing to discard packets that were not received.

from routp.

robwasmann avatar robwasmann commented on August 17, 2024

Or maybe I can just inspect the header (or lack of) and decide that way. Well, everything is working now for me if I use RoUTP for all messages. Thanks for your help. And many thanks to the maker!! (rabovik)

from routp.

Related Issues (4)

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.