lemunozm / message-io

Fast and easy-to-use event-driven network library.
Apache License 2.0
1.12k stars 75 forks source link

Cancelable send_with_timer #114

Closed balliegojr closed 2 years ago

balliegojr commented 2 years ago

Hi,

It would be very nice to have a way to cancel messages scheduled with send_with_timer.

I also have a question. I need to encrypt the network traffic, do you recommend implementing an adapter for this or just encrypt the content of the messages before sending them?

lemunozm commented 2 years ago

Hi @balliegojr,

Yeah! it could be a great addition. I think it is easy, later I will make a PR with this feature.

Regarding encryption, you can do it in both ways with its pros/cons:

lemunozm commented 2 years ago

Done in https://github.com/lemunozm/message-io/pull/115 Version 0.14.4 has this change

balliegojr commented 2 years ago

Hi @lemunozm,

Wow, that was fast!. Thank you very much

I will see what to do regarding the encryption thing... still not decided yet