b23r0 / rust-raknet

RakNet Protocol implementation by Rust.
MIT License
218 stars 18 forks source link

Fix typo in RaknetError and set motd methods #20

Open mikhaillav opened 5 months ago

mikhaillav commented 5 months ago

Typo in RaknetError:

I renamed BindAdressError to BindAddressError

Set motd methods:

Fix of #19 issue

I created motd_receiver and motd_sender. Every iteration in RaknetListener::listen() it will check if there is message in motd_receiver. If there is, server will use updated motd and if not will use last recived.

Also set_motd() and set_full_motd() methods now will also send message to the motd_sender and if it wasn't successful return RaknetError::SetMotdError

theaddonn commented 4 months ago

LGTM!