core.portmanager

API

Normally used via Module API as such:

module:provides("net", {
    listeners = {
        onconnect = function(conn)
        end;
        onincoming = function(conn, data)
        end;
        ondisconnect = function(conn, err)
        end;
    };
    default_port = 9999;
});