Method code for $daemon.parse_listen()

[Turn on line numbering]
arg value, @args;
var out, p, m, port, ip;

if (!value)
    throw(~parse, "Invalid listen setting, must be a list of ports or host:ports.");
out = map p in (value.explode_english_list()) to ((> .parse_port(p) <));
if (!out)
    throw(~parse, "Invalid listen setting, must be a list of ports or host:ports.");
return out;

// Created 22-Aug-1995 as a part of ColdCore, see: @help Credit

Tlon