reliable_udp icon indicating copy to clipboard operation
reliable_udp copied to clipboard

Make protocol generate 'rudp_received' message on incoming send_udp(..) packet

Open DrewGilpin opened this issue 5 years ago • 1 comments

The send_udp(..) function packets were not generating messages on the receiver, those packets were being passed down to:

handle_packet(Packet, St, State) -> ?ERROR("Bad packet ~p for state ~p", [ Packet, St ]), State.

Not sure if that was working as intended but for my uses I would like those packets to also generate { rudp_received, Socket, Binary } messages, so I added a function to do that.

Thank you for the rudp library, it has saved me so much time!

DrewGilpin avatar Jul 06 '20 15:07 DrewGilpin

Hello @DrewGilpin Sorry for big delay of this response. Actually i think it was half implemented feature, as there is no function to send data_udp_packet. You could implement it fully, then i will merge this pull request.

loguntsov avatar Aug 24 '20 23:08 loguntsov