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); }
public extern static int GetUdpStatistics(ref MIB_UDPSTATS pStats);
public static extern int GetUdpStatistics(ref MIB_UDPSTATS pStats);
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; }