ComputerCraft

ComputerCraft

21M Downloads

[Suggestion] Native socket API

DevelopedLogic opened this issue · 4 comments

commented

No seen anything on implementing a native socket API into CC like the one in CCTweaks. Any thoughts?

commented

#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 and receive methods) or a binary file (with read(size) and write methods).
commented

@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.

commented

Oops. Sorry. Closed it accidentally.

commented

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.. ¯_(ツ)_/¯)