Comparison

init.lua @ 463:98fe3ed54639

Update to new tls_builder() API in net.server upstream
author Matthew Wild <mwild1@gmail.com>
date Thu, 16 Mar 2023 16:40:57 +0000
parent 461:fa5c40e5e079
child 464:dc05a8d6dbfb
comparison
equal deleted inserted replaced
462:51c3da615ff4 463:98fe3ed54639
95 95
96 function verse.quit() 96 function verse.quit()
97 return server.setquitting("once"); 97 return server.setquitting("once");
98 end 98 end
99 99
100 function verse.tls_builder(...)
101 return server.tls_builder(...);
102 end
103
100 function stream:listen(host, port) 104 function stream:listen(host, port)
101 host = host or "localhost"; 105 host = host or "localhost";
102 port = port or 0; 106 port = port or 0;
103 local conn, err = server.addserver(host, port, verse.new_listener(self, "server"), "*a"); 107 local conn, err = server.addserver(host, port, verse.new_listener(self, "server"), "*a");
104 if conn then 108 if conn then