File

teal-src/util/net.d.tl @ 11697:6c3d8aa3bbd9

net.server_epoll: Avoid allocating a buffer table for single writes writebuffer is now string | { string } Saves the allocation of a buffer table until the second write, which could be rare, especially with opportunistic writes.
author Kim Alvefur <zash@zash.se>
date Fri, 16 Jul 2021 15:38:38 +0200
parent 11577:60bee6822d79
line wrap: on
line source


local enum type_strings
	"both"
	"ipv4"
	"ipv6"
end

local record lib
	local_addresses : function (type_strings, boolean) : { string }
	pton : function (string):string
	ntop : function (string):string
end
return lib