Horje
c# network traffic Code Example
c# network traffic
using System;
using System.Net.NetworkInformation;

class MainClass
{
    static void Main()
    {
        if (!NetworkInterface.GetIsNetworkAvailable())
           return;

        NetworkInterface[] interfaces 
            = NetworkInterface.GetAllNetworkInterfaces();

        foreach (NetworkInterface ni in interfaces)
        {                
            Console.WriteLine("    Bytes Sent: {0}", 
                ni.GetIPv4Statistics().BytesSent);
            Console.WriteLine("    Bytes Received: {0}",
                ni.GetIPv4Statistics().BytesReceived);
        }
    }
}




Csharp

Related
dataset empty check C# Code Example dataset empty check C# Code Example
csharp get decimal part of number Code Example csharp get decimal part of number Code Example
c# convert list to string and back Code Example c# convert list to string and back Code Example
c# new dictionary linq Code Example c# new dictionary linq Code Example
cant see my classes in inspector Code Example cant see my classes in inspector Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
9