Code Monkey home page Code Monkey logo

Comments (7)

heinrich5991 avatar heinrich5991 commented on June 1, 2024

Can you make a PR?

from teeworlds.

ChillerDragon avatar ChillerDragon commented on June 1, 2024

Can you make a PR?

I would have to investigate to figure out in the first place. I was hoping someone knows without looking it up.

from teeworlds.

heinrich5991 avatar heinrich5991 commented on June 1, 2024

m_Sequence is likely the next (or the previous) sequence number for vital chunks that we are going to send, m_Ack is the highest sequence number of vital packets we've seen (and all previous ones) and m_PeerAck is likely the corresponding highest sequence number that our peer has acknowledged.

from teeworlds.

ChillerDragon avatar ChillerDragon commented on June 1, 2024

m_Sequence is likely the next (or the previous) sequence number for vital chunks that we are going to send, m_Ack is the highest sequence number of vital packets we've seen (and all previous ones) and m_PeerAck is likely the corresponding highest sequence number that our peer has acknowledged.

So like this?

When I send a vital chunk I bump m_Sequence
When I receive a vital chunk I bump m_Ack
When I receive a sequence number from the other party I set m_PeerAck

from teeworlds.

ChillerDragon avatar ChillerDragon commented on June 1, 2024

Okay now I understand but do not feel comfortable forming proper english comments :D

from teeworlds.

heinrich5991 avatar heinrich5991 commented on June 1, 2024

When I send a vital chunk I bump m_Sequence

Yes.

When I receive a vital chunk I bump m_Ack

Only if you've seen all previous ones, too. But yes.

When I receive a sequence number from the other party I set m_PeerAck

When you receive an ack in the packet header from the remote party, you set m_PeerAck.

What are you doing, if I may ask? :)

from teeworlds.

ChillerDragon avatar ChillerDragon commented on June 1, 2024

What are you doing, if I may ask? :)

Trying to fix my ddos script

Documenting the protocol: https://chillerdragon.github.io/teeworlds-protocol/07/fundamentals.html#sequence_numbers

from teeworlds.

Related Issues (20)

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.