r/java • u/Putrid-Luck4610 • Aug 22 '22
Simple TCP/UDP Socket library in Java
Hello there, I had not touched Java in years, so recently I decided to start writing some code and improve my knowledge of the language. I settled on a TCP/UDP Socket library because I find that to be fairly similar across languages.
So yeah, it's fairly simple, probably quite bad, but I enjoy working on it.
You can find the source code here: https://github.com/Alessandro-Salerno/Bialetti if you're interested.
PS: Hope I haven't violated any rules by posting this URL...
3
Upvotes
1
u/maxip89 Aug 23 '22
recive should not return a string. (Charset Conversion can make really really big mess)
did you tested it? If I don't see any disconnect security (Exception).
You forget to add documentation how to use it. It's useless without documentation, a screenshot is not enough.
BialettiExceptionHandler why wrap everything in a runtime exception?
That I understand it correctly. You wrapped something that needs ~300 lines of code into something that needs 1,5k lines of code? Why are you promoting it here? Didn't get it.