Beispiel #1
0
        void IModule.BindScript(MISP.Engine scriptEngine)
        {
            scriptEngine.AddFunction("get-client", "Retreive a client object.", (context, arguments) =>
            {
                var n = MISP.AutoBind.IntArgument(arguments[0]);
                return(netSession.getPeer(n));
            }, MISP.Arguments.Arg("client"));

            scriptEngine.AddFunction("client-count", "Get the number of connected clients.", (context, arguments) =>
            {
                return(netSession.clientCount);
            });
        }
Beispiel #2
0
 void IModule.BindScript(MISP.Engine scriptEngine)
 {
 }