Mercurial Hosting > luan
comparison src/luan/modules/Io.luan @ 1280:781ec0a92bb5
add Boot.luan
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Thu, 20 Dec 2018 13:38:16 -0700 |
parents | 5ba660381bd5 |
children | 8432d20a2729 |
comparison
equal
deleted
inserted
replaced
1279:323743a7f317 | 1280:781ec0a92bb5 |
---|---|
1 java() | 1 java() |
2 local IoLuan = require "java:luan.modules.IoLuan" | 2 local IoLuan = require "java:luan.modules.IoLuan" |
3 local System = require "java:java.lang.System" | 3 local System = require "java:java.lang.System" |
4 local Boot = require "luan:Boot.luan" | |
5 | |
4 | 6 |
5 local Io = {} | 7 local Io = {} |
6 | 8 |
7 Io.ip = IoLuan.ip | 9 Io.ip = IoLuan.ip |
8 Io.my_ips = IoLuan.my_ips | 10 Io.my_ips = IoLuan.my_ips |
9 Io.read_console_line = IoLuan.read_console_line | 11 Io.read_console_line = IoLuan.read_console_line |
10 Io.schemes = IoLuan.newSchemes() | 12 Io.schemes = Boot.schemes |
11 Io.uri = IoLuan.uri | 13 Io.uri = Boot.uri |
12 Io.stdin = IoLuan.defaultStdin.table() | 14 Io.stdin = Boot.new_LuanIn( IoLuan.defaultStdin ) |
13 --Io.socket_server = IoLuan.socket_server | 15 Io.stdout = Boot.text_writer(System.out) |
14 Io.stdout = IoLuan.textWriter(System.out) | 16 Io.stderr = Boot.text_writer(System.err) |
15 Io.stderr = IoLuan.textWriter(System.err) | |
16 Io.unrestricted = IoLuan.unrestricted | 17 Io.unrestricted = IoLuan.unrestricted |
17 | 18 |
18 -- used by http and rpc | 19 -- used by http and rpc |
19 Io.password = "password" | 20 Io.password = "password" |
20 | 21 |