forked from razakal/Qora
-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Mostly tidying of code that excessively re-calls itself. Normalized duplicate code in Peer that was used for connecting to new peer or accepting a connection from another peer. Added MessageException so different, specific situations in Peer's main run() thread can be treated differently instead of one, broad catch-all Exception. Added documentation and reformatted code to "Eclipse" format but with extra indent on switch "case:" statements. Network.java still needs work in terms of calling both peer.close() and peer.interrupt(). (Has comments added to this effect).
- Loading branch information
Showing
6 changed files
with
307 additions
and
131 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.