Software /
code /
prosody
Comparison
net/server_epoll.lua @ 12974:ba409c67353b
net: Prefix module imports with prosody namespace
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Fri, 17 Mar 2023 16:23:12 +0100 |
parent | 12828:f33887f925e1 |
comparison
equal
deleted
inserted
replaced
12973:cc215923297f | 12974:ba409c67353b |
---|---|
13 local type = type; | 13 local type = type; |
14 local next = next; | 14 local next = next; |
15 local pairs = pairs; | 15 local pairs = pairs; |
16 local ipairs = ipairs; | 16 local ipairs = ipairs; |
17 local traceback = debug.traceback; | 17 local traceback = debug.traceback; |
18 local logger = require "util.logger"; | 18 local logger = require "prosody.util.logger"; |
19 local log = logger.init("server_epoll"); | 19 local log = logger.init("server_epoll"); |
20 local socket = require "socket"; | 20 local socket = require "socket"; |
21 local realtime = require "util.time".now; | 21 local realtime = require "prosody.util.time".now; |
22 local monotonic = require "util.time".monotonic; | 22 local monotonic = require "prosody.util.time".monotonic; |
23 local indexedbheap = require "util.indexedbheap"; | 23 local indexedbheap = require "prosody.util.indexedbheap"; |
24 local createtable = require "util.table".create; | 24 local createtable = require "prosody.util.table".create; |
25 local inet = require "util.net"; | 25 local inet = require "prosody.util.net"; |
26 local inet_pton = inet.pton; | 26 local inet_pton = inet.pton; |
27 local _SOCKETINVALID = socket._SOCKETINVALID or -1; | 27 local _SOCKETINVALID = socket._SOCKETINVALID or -1; |
28 local new_id = require "util.id".short; | 28 local new_id = require "prosody.util.id".short; |
29 local xpcall = require "util.xpcall".xpcall; | 29 local xpcall = require "prosody.util.xpcall".xpcall; |
30 local sslconfig = require "util.sslconfig"; | 30 local sslconfig = require "prosody.util.sslconfig"; |
31 local tls_impl = require "net.tls_luasec"; | 31 local tls_impl = require "prosody.net.tls_luasec"; |
32 | 32 |
33 local poller = require "util.poll" | 33 local poller = require "prosody.util.poll" |
34 local EEXIST = poller.EEXIST; | 34 local EEXIST = poller.EEXIST; |
35 local ENOENT = poller.ENOENT; | 35 local ENOENT = poller.ENOENT; |
36 | 36 |
37 local poll = assert(poller.new()); | 37 local poll = assert(poller.new()); |
38 | 38 |