[Suggestion] Native socket API
DevelopedLogic opened this issue · 4 comments
No seen anything on implementing a native socket API into CC like the one in CCTweaks. Any thoughts?
#161 is sort of related, as it talks about web sockets instead. I'd quite like both as each has their different uses. A couple of things to consider:
- TLS/SSL support? If you do it using the nio libraries (which is what CCTweaks does), it's a pain to get working.
- How do you interact with it? I'm not sure if it would be better to treat it like rednet (
send
andreceive
methods) or a binary file (withread(size)
andwrite
methods).
@SquidDev The API which is implemented in CCTweaks suffices perfectly for what I do - Unencrypted basic connections between a java/python server and the in-game computer. The current CCTweaks syntax is also very simple and works perfectly well.
A socket API would be awesome. @SquidDev should send in a PR which does that.
Finally IRC chat programs could exist without using webchat (probs every server hates that one).
And OC would be competing with CC, I guess... (although both mods are good to have so.. ¯_(ツ)_/¯)