status.xpl

来自「OpenCDN内容分发系统」· XPL 代码 · 共 59 行

XPL
59
字号
<?xml version="1.0"?><!DOCTYPE methoddef SYSTEM "rpc-method.dtd"><methoddef><name>Status</name><version>1.0</version><signature>string string</signature><help>Description     Read-Only access to the Core dataArguments       a string whith the name of the requested data structReturns         a reference to the requested data struct</help><code language="perl"><![CDATA[#!/usr/bin/perluse CommLib qw(node_log);###############################################################################   Sub Name:       Status#   Description:    Read-Only access to the Core data##   Arguments:      a string whith the name of the requested data struct#   #   Returns:        a reference to the requested data struct##############################################################################sub Status {require RRDMlib;   my $class = shift;   my $val = shift;    node_log ( "*** Status method entered for $val data", 1, 'r');if ($val eq "node") {   $retval = \%RRDMlib::nodes;  }if ($val eq "footp") {   $retval = \%RRDMlib::footp;  }if ($val eq "program") {   $retval = \%RRDMlib::surro;   }if ($val eq "peers") {   $retval = \%RRDMlib::peers;   }if ($val eq "origin") {   $retval = \%RRDMlib::origins;   }return  $retval;}   __END__]]></code></methoddef>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?