Mercurial > prosody-hg
comparison plugins/mod_net_multiplex.lua @ 12977:74b9e05af71e
plugins: Prefix module imports with prosody namespace
| author | Kim Alvefur <zash@zash.se> |
|---|---|
| date | Fri, 24 Mar 2023 13:15:28 +0100 |
| parents | 1c7602c70d1f |
| children | 50324f66ca2a |
comparison
equal
deleted
inserted
replaced
| 12976:a187600ec7d6 | 12977:74b9e05af71e |
|---|---|
| 1 module:set_global(); | 1 module:set_global(); |
| 2 | 2 |
| 3 local array = require "util.array"; | 3 local array = require "prosody.util.array"; |
| 4 local max_buffer_len = module:get_option_number("multiplex_buffer_size", 1024); | 4 local max_buffer_len = module:get_option_number("multiplex_buffer_size", 1024); |
| 5 local default_mode = module:get_option_number("network_default_read_size", 4096); | 5 local default_mode = module:get_option_number("network_default_read_size", 4096); |
| 6 | 6 |
| 7 local portmanager = require "core.portmanager"; | 7 local portmanager = require "prosody.core.portmanager"; |
| 8 | 8 |
| 9 local available_services = {}; | 9 local available_services = {}; |
| 10 local service_by_protocol = {}; | 10 local service_by_protocol = {}; |
| 11 local available_protocols = array(); | 11 local available_protocols = array(); |
| 12 | 12 |
