aboutsummaryrefslogtreecommitdiff
path: root/azalea-protocol/src/connect.rs
AgeCommit message (Collapse)Author
2022-10-23Add Client::set_client_information (#33)mat
* start adding options * add default options * send options packet by default * mention set_options in Client::join doc * make TranslatableComponent::read return TextComponent * change set_options to set_client_information * clean up some code * Add `Initialize` event * fix some clippy warnings * change `Client::options` to `client_information`
2022-10-23add `# Examples` to some docsmat
2022-10-23write more documentationmat
2022-10-16Microsoft Authentication (#29)mat
* a * try to do more work on auth signing (untested) * well auth works when i remove the d= so * auth stuff * sessionserver stuff * add auth in azalea-protocol/client * caching* refreshing microsoft auth tokens isn't implemented yet, also i haven't tested it * how did i not notice that i had the code duplicated * fix cache * add refreshing msa token * replace some printlns with log::trace * auth works! * Update main.rs * fix clippy warnings
2022-10-07fix errors with rewritten packet readingmat
i forgot i never tested it before LMAO
2022-10-07Replace impl Read with Cursor<&[u8]> (#26)mat
* Start getting rid of Cursor * try to make the tests pass and fail * make the tests pass * remove unused uses * fix clippy warnings * fix potential OOM exploits * fix OOM in az-nbt * fix nbt benchmark * fix a test * start replacing it with Cursor<Vec<u8>> * wip * fix all the issues * fix all tests * fix nbt benchmark * fix warnings
2022-09-19Fix connection writer being locked (#23)mat
* Split connection struct in az-protocol * az-client uses split conns * fix errors * add a convenience write_packet fn to az-client
2022-08-31test gravityUbuntu
2022-08-06Better errors (#14)mat
* make reading use thiserror * finish implementing all the error things * clippy warnings related to ok_or * fix some errors in other places * thiserror in more places * don't use closures in a couple places * errors in writing packet * rip backtraces * change some BufReadError::Custom to UnexpectedEnumVariant * Errors say what packet is bad * error on leftover data and fix it wasn't reading the properties for gameprofile
2022-07-30remove unnecessary empty implsmat
2022-07-29simplify switching packet statesmat
2022-07-29remove unused structsmat
2022-07-29make Connection a single struct with genericsmat
This isn't that good of a solution but I couldn't come up with a better one and this was pretty simple to implement
2022-07-29Split clientbound and serverbound packetsmat
2022-05-07clientbound add player packetmat
2022-04-30azalea_auth::encryption -> azalea_cryptomat
2022-04-29upgrade aes and cfb8mat
2022-04-24ENCRYPTION WORKS!!!!!!!!!!!mat
2022-04-22simplify error handlingmat
2021-12-17writing compressed packetsmat
2021-12-17fix packetsmat
2021-12-16try to implement compressionmat
2021-12-15azaleamat