reliable_udp
reliable_udp copied to clipboard
Make protocol generate 'rudp_received' message on incoming send_udp(..) packet
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!
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.