Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NTR Heartbeat #37

Merged
merged 12 commits into from
Oct 8, 2024
Merged

NTR Heartbeat #37

merged 12 commits into from
Oct 8, 2024

Conversation

Eiim
Copy link
Owner

@Eiim Eiim commented Oct 1, 2024

@ChainSwordCS's work is about ready to merge, time to review

ChainSwordCS and others added 12 commits March 6, 2024 04:58
Currently broken :)
NTR actually works, but NTR-HR is more borked for some NTR-HR reason.
heartbeat:
- Added error-handling for non-matching seq and cmd values.  Also added a simple seq implementation.
- Made custom text formatting a little smarter (aesthetic change)
recvPacket:
- Restructured and reorganized things.
- Moved most of the code for logging raw packet data to the end, so the main section of the method is a bit less cluttered.
- Added somewhat more robust error-handling.
Packet:
- Constructor that converts from raw data now throws exceptions in some cases of bad data.
misc:
- Added a 10-second timeout to the Socket, just in case. Made a few minor changes to implement it.
- Minor rewording of some log text to be more consistent in style.
- Now actually close the NTR UDP thread if communications seem to have failed. (I should have done this earlier.)
- Generally safer behavior for socket init and closing, to properly handle edge-cases.
- Specifically, there was an issue that would arise if "java.net.ConnectException: Connection refused: connect" was thrown during socket init, that is now fixed.
Can't be bothered making this less dumb at the moment.
@ChainSwordCS
Copy link
Collaborator

If this merge causes any issues that I missed, I'll do my best to take care of them. etc, etc.

@ChainSwordCS ChainSwordCS merged commit da31c5f into main Oct 8, 2024
1 of 2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants