ucode icon indicating copy to clipboard operation
ucode copied to clipboard

Add sockets support

Open jasle opened this issue 1 year ago • 2 comments

Would it be possible to add support for using sockets in ucode?

I am especially interested in ethernet sockets, I want to communicate with the management interface of a vdsl modem.

jasle avatar Feb 25 '24 02:02 jasle

We've been tinkering with sockets over FFI a little here: https://github.com/jow-/ucode/pull/121

Far from ideal, but maybe just enough for you

pktpls avatar Mar 29 '24 23:03 pktpls

In the meanwhile OpenWrt also gained an ucode binding for libuclient, which provides support for doing HTTP requests: https://github.com/openwrt/uclient/commit/e611e6d0ff0ba31070abacdb53037d3e9a4115a6

jow- avatar Apr 15 '24 06:04 jow-

See also https://github.com/jow-/ucode/pull/196

jow- avatar Apr 19 '24 07:04 jow-

Fixed by #196

jow- avatar Apr 24 '24 10:04 jow-