示例#1
0
        public static string dump_MIB_UDPSTATS(MIB_UDPSTATS mib)
        {
            string s = "";

            //
            s += "in datagrams: ".PadLeft(34) + mib.dwInDatagrams.ToString();
            s += "\r\n" + "in errors: ".PadLeft(34) + mib.dwInErrors.ToString();
            s += "\r\n" + "num ports: ".PadLeft(34) + mib.dwNoPorts.ToString();
            s += "\r\n" + "num addresses: ".PadLeft(34) + mib.dwNumAddrs.ToString();
            s += "\r\n" + "out datagrams: ".PadLeft(34) + mib.dwOutDatagrams.ToString();
            return(s);
        }
示例#2
0
 public extern static int GetUdpStatistics(ref MIB_UDPSTATS pStats);
示例#3
0
 public static extern int GetUdpStatistics(ref MIB_UDPSTATS pStats);
示例#4
0
 public static string dump_MIB_UDPSTATS(MIB_UDPSTATS mib)
 {
     string s = "";
     //
     s += "in datagrams: ".PadLeft(34) + mib.dwInDatagrams.ToString();
     s += "\r\n" + "in errors: ".PadLeft(34) + mib.dwInErrors.ToString();
     s += "\r\n" + "num ports: ".PadLeft(34) + mib.dwNoPorts.ToString();
     s += "\r\n" + "num addresses: ".PadLeft(34) + mib.dwNumAddrs.ToString();
     s += "\r\n" + "out datagrams: ".PadLeft(34) + mib.dwOutDatagrams.ToString();
     return s;
 }