Mercurial Hosting > luan
comparison src/luan/modules/Rpc.luan @ 1578:c922446f53aa
immutable threading
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Mon, 08 Feb 2021 14:16:19 -0700 |
parents | d9a5405a3102 |
children | a9ff30fb5d89 |
comparison
equal
deleted
inserted
replaced
1577:60e5c324adf9 | 1578:c922446f53aa |
---|---|
124 end | 124 end |
125 end_function | 125 end_function |
126 end_function | 126 end_function |
127 | 127 |
128 Rpc.functions = {} | 128 Rpc.functions = {} |
129 Luan.set_metatable( Rpc.functions, Boot.local_metatable ) | |
129 | 130 |
130 local function rpc_responder(socket,fns) | 131 local function rpc_responder(socket,fns) |
131 local server = RpcServer.new(socket) | 132 local server = RpcServer.new(socket) |
132 local responder = {} | 133 local responder = {} |
133 function responder.is_closed() | 134 function responder.is_closed() |