StabbyCutyou / buffstreams

A library to simplify writing applications using TCP sockets to stream protobuff messages
Apache License 2.0
253 stars 34 forks source link

Is order of packet recieve guaranteed ? #27

Open snsg opened 4 years ago

snsg commented 4 years ago

Got a question - not so much an issue - am working with protobuffers that i want to stream over tcp - and i came across your project here which really sounds like the same - but if i would try to use this as base for :

Clients is a c-sharp application.

Would your project here guarantee the order in which the packets are sent or do i need to implement some ordering id in the packet ?

Would you think it will be fast enough ?

Would you have any idea how i could 'broadcast'an incoming stream onto all connected clients ?

And the fixes you committed will they become master soon ?

StabbyCutyou commented 3 years ago

Packet ordering is as the networking stack determines it. So for TCP, you should be fine.

I haven't had time to maintain this unfortunately, and I need to test the proposed fixes and simply haven't had time. I apologize for that.