openLuat / LuatOS

LuatOS -- Powerful embedded Lua Engine for IoT devices, with many components and low memory requirements (16K RAM, 128K Flash)
https://wiki.luatos.com
MIT License
452 stars 102 forks source link

win #66

Closed Layty closed 1 year ago

Layty commented 2 years ago

对于socket,是否需要导入模块

require "sys" socket.tsend("www.baidu.com", 80, "GET / HTTP/1.0\r\n\r\n")

Layty commented 2 years ago

win32 是不是不支持socket 库? 提示

E/lua.err luatos.exe: 
E/lua.err tt.lua:2: attempt to index a nil value (global 'socket')
stack traceback:
        tt.lua:2: in main chunk
        [C]: in ?

是否需要类似一个 socket.lua的文件?

wendal commented 2 years ago

win32没做网络适配

Layty commented 1 year ago

现在支持了吗 linux 或者win32