mocket
mocket copied to clipboard
Message handling by priority
Would be nice if packets could be prioritized based on a priority level.
For instance a location packet taking priority over a request packet.
Nice proposal. It was there in our minds while developing. I am not getting much time to work on this, but I can surely help if you wants to contribute to this.
I’ll take a look. Can you provide guidance as to where to dig?
Also, how does the intermittent/flaky network functionality work?
Package level description are as follows:
- allocator, Maintains pool for free buffers/packet, allocated and release packets.
- builder, Build different flavour of client and server.
- channel, server and client channel, contains 2 package.
- manager, which manages channel, have logic to resend / retry packets.
- udp, udp implementation of channel manager.
- example, client and server implementation of
- file transfer client.
- typeSafeReadWrite client.
- echo server/client.
- handler, handler to encode decode byte stream.
- helper, few helper classes.
- packet, implementation of packets on top of byte stream.
- parser, parser by byte buffer to packets.
- plugin, plugin to wrap on top of existing socket channel. I believe it is completed.
Check manager package to start with for retry logics. Please also do the code review and share your inputs.