<?xml version="1.0" encoding="utf-8" ?><rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns="http://purl.org/rss/1.0/" 
			xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" 
			xmlns:cc="http://web.resource.org/cc/" xml:lang="ja">
<channel rdf:about="http://ngxsejm.blog105.fc2.com/?xml">
<title>Piz&amp;Yumina's programming note Engrish version</title>
<link>http://ngxsejm.blog105.fc2.com/</link>
<description></description>
<dc:language>ja</dc:language>
<items>
<rdf:Seq>
<rdf:li rdf:resource="http://ngxsejm.blog105.fc2.com/blog-entry-1.html" />
</rdf:Seq>
</items>
</channel>
<item rdf:about="http://ngxsejm.blog105.fc2.com/blog-entry-1.html">
<link>http://ngxsejm.blog105.fc2.com/blog-entry-1.html</link>
<title>[.NET(C#)]How to monitor the bandwidth of an application</title>
<description> It is important for a network application to figure out the bandwidth (bytes sent and received per second) across a network..NET provides a variety of predefined performance counters and you can make use of &amp;quot;.NET CLR Networking/Bytes Sent&amp;quot; and &amp;quot;.NET CLR Networking/Bytes Received&amp;quot; counters for your application. These values are the total amount of bytes sent or received via the 
 </description>
<content:encoded>
<![CDATA[ <p style="MARGIN: 0mm 0mm 0pt" class="MsoNormal"><span style="FONT-FAMILY: &quot;ＭＳ ゴシック&quot;; FONT-SIZE: 9pt; mso-ascii-theme-font: major-fareast; mso-fareast-theme-font: major-fareast; mso-hansi-theme-font: major-fareast" lang="EN-US">It is important for a network application to figure out the bandwidth (bytes sent and received per second) across a network.<o:p></o:p></span></p><p style="MARGIN: 0mm 0mm 0pt" class="MsoNormal"><span style="FONT-FAMILY: &quot;ＭＳ ゴシック&quot;; FONT-SIZE: 9pt; mso-ascii-theme-font: major-fareast; mso-fareast-theme-font: major-fareast; mso-hansi-theme-font: major-fareast" lang="EN-US">.NET provides a variety of predefined performance counters and you can make use of &quot;.NET CLR Networking/Bytes Sent&quot; and &quot;.NET CLR Networking/Bytes Received&quot; counters for your application. These values are the total amount of bytes sent or received via the network since the application started, so you need to retrieve these values second by second and take the difference between the current value and the previous value to calculate the bandwidth.<o:p></o:p></span></p><p style="MARGIN: 0mm 0mm 0pt" class="MsoNormal"><span style="FONT-FAMILY: &quot;ＭＳ ゴシック&quot;; FONT-SIZE: 9pt; mso-ascii-theme-font: major-fareast; mso-fareast-theme-font: major-fareast; mso-hansi-theme-font: major-fareast" lang="EN-US"><o:p>&nbsp;</o:p></span></p><p style="MARGIN: 0mm 0mm 0pt" class="MsoNormal"><span style="FONT-FAMILY: &quot;ＭＳ ゴシック&quot;; FONT-SIZE: 9pt; mso-ascii-theme-font: major-fareast; mso-fareast-theme-font: major-fareast; mso-hansi-theme-font: major-fareast" lang="EN-US">The following is a minimum sample program that illustrates a concise implementation of a bandwidth monitor.<o:p></o:p></span></p><table style="BORDER-BOTTOM: medium none; BORDER-LEFT: medium none; BORDER-COLLAPSE: collapse; BORDER-TOP: medium none; BORDER-RIGHT: medium none; mso-border-alt: solid #F9B074 1.0pt; mso-border-themecolor: accent6; mso-border-themetint: 191; mso-yfti-tbllook: 1184; mso-padding-alt: 0mm 5.4pt 0mm 5.4pt" class="MsoTableMediumGrid1Accent6" border="1" cellspacing="0" cellpadding="0"><tbody><tr style="mso-yfti-irow: -1; mso-yfti-firstrow: yes; mso-yfti-lastrow: yes"><td style="BORDER-BOTTOM: #f9b074 1pt solid; BORDER-LEFT: #f9b074 1pt solid; PADDING-BOTTOM: 0mm; PADDING-LEFT: 5.4pt; WIDTH: 435.1pt; PADDING-RIGHT: 5.4pt; BACKGROUND: #fde4d0; BORDER-TOP: #f9b074 1pt solid; BORDER-RIGHT: #f9b074 1pt solid; PADDING-TOP: 0mm; mso-border-themecolor: accent6; mso-border-themetint: 191; mso-background-themecolor: accent6; mso-background-themetint: 63" valign="top" width="580"><p style="TEXT-ALIGN: left; MARGIN: 0mm 0mm 0pt; mso-pagination: none; mso-layout-grid-align: none; mso-yfti-cnfc: 5" class="MsoNormal" align="left"><span style="FONT-FAMILY: &quot;ＭＳ ゴシック&quot;; COLOR: blue; FONT-SIZE: 9pt; mso-ascii-theme-font: major-fareast; mso-fareast-theme-font: major-fareast; mso-hansi-theme-font: major-fareast; mso-bidi-font-family: 'Times New Roman'; mso-font-kerning: 1.0pt; mso-bidi-font-weight: bold; mso-no-proof: yes" lang="EN-US">using</span><span style="FONT-FAMILY: &quot;ＭＳ ゴシック&quot;; COLOR: black; FONT-SIZE: 9pt; mso-ascii-theme-font: major-fareast; mso-fareast-theme-font: major-fareast; mso-hansi-theme-font: major-fareast; mso-bidi-font-family: 'Times New Roman'; mso-font-kerning: 1.0pt; mso-bidi-font-weight: bold; mso-no-proof: yes; mso-themecolor: text1" lang="EN-US"> System;<o:p></o:p></span></p><p style="TEXT-ALIGN: left; MARGIN: 0mm 0mm 0pt; mso-pagination: none; mso-layout-grid-align: none; mso-yfti-cnfc: 5" class="MsoNormal" align="left"><span style="FONT-FAMILY: &quot;ＭＳ ゴシック&quot;; COLOR: blue; FONT-SIZE: 9pt; mso-ascii-theme-font: major-fareast; mso-fareast-theme-font: major-fareast; mso-hansi-theme-font: major-fareast; mso-bidi-font-family: 'Times New Roman'; mso-font-kerning: 1.0pt; mso-bidi-font-weight: bold; mso-no-proof: yes" lang="EN-US">using</span><span style="FONT-FAMILY: &quot;ＭＳ ゴシック&quot;; COLOR: black; FONT-SIZE: 9pt; mso-ascii-theme-font: major-fareast; mso-fareast-theme-font: major-fareast; mso-hansi-theme-font: major-fareast; mso-bidi-font-family: 'Times New Roman'; mso-font-kerning: 1.0pt; mso-bidi-font-weight: bold; mso-no-proof: yes; mso-themecolor: text1" lang="EN-US"> System.Diagnostics;<o:p></o:p></span></p><p style="TEXT-ALIGN: left; MARGIN: 0mm 0mm 0pt; mso-pagination: none; mso-layout-grid-align: none; mso-yfti-cnfc: 5" class="MsoNormal" align="left"><span style="FONT-FAMILY: &quot;ＭＳ ゴシック&quot;; COLOR: blue; FONT-SIZE: 9pt; mso-ascii-theme-font: major-fareast; mso-fareast-theme-font: major-fareast; mso-hansi-theme-font: major-fareast; mso-bidi-font-family: 'Times New Roman'; mso-font-kerning: 1.0pt; mso-bidi-font-weight: bold; mso-no-proof: yes" lang="EN-US">using</span><span style="FONT-FAMILY: &quot;ＭＳ ゴシック&quot;; COLOR: black; FONT-SIZE: 9pt; mso-ascii-theme-font: major-fareast; mso-fareast-theme-font: major-fareast; mso-hansi-theme-font: major-fareast; mso-bidi-font-family: 'Times New Roman'; mso-font-kerning: 1.0pt; mso-bidi-font-weight: bold; mso-no-proof: yes; mso-themecolor: text1" lang="EN-US"> System.Threading;<o:p></o:p></span></p><p style="TEXT-ALIGN: left; MARGIN: 0mm 0mm 0pt; mso-pagination: none; mso-layout-grid-align: none; mso-yfti-cnfc: 5" class="MsoNormal" align="left"><span style="FONT-FAMILY: &quot;ＭＳ ゴシック&quot;; COLOR: black; FONT-SIZE: 9pt; mso-ascii-theme-font: major-fareast; mso-fareast-theme-font: major-fareast; mso-hansi-theme-font: major-fareast; mso-bidi-font-family: 'Times New Roman'; mso-font-kerning: 1.0pt; mso-bidi-font-weight: bold; mso-no-proof: yes; mso-themecolor: text1" lang="EN-US"><o:p>&nbsp;</o:p></span></p><p style="TEXT-ALIGN: left; MARGIN: 0mm 0mm 0pt; mso-pagination: none; mso-layout-grid-align: none; mso-yfti-cnfc: 5" class="MsoNormal" align="left"><span style="FONT-FAMILY: &quot;ＭＳ ゴシック&quot;; COLOR: blue; FONT-SIZE: 9pt; mso-ascii-theme-font: major-fareast; mso-fareast-theme-font: major-fareast; mso-hansi-theme-font: major-fareast; mso-bidi-font-family: 'Times New Roman'; mso-font-kerning: 1.0pt; mso-bidi-font-weight: bold; mso-no-proof: yes" lang="EN-US">namespace</span><span style="FONT-FAMILY: &quot;ＭＳ ゴシック&quot;; COLOR: black; FONT-SIZE: 9pt; mso-ascii-theme-font: major-fareast; mso-fareast-theme-font: major-fareast; mso-hansi-theme-font: major-fareast; mso-bidi-font-family: 'Times New Roman'; mso-font-kerning: 1.0pt; mso-bidi-font-weight: bold; mso-no-proof: yes; mso-themecolor: text1" lang="EN-US"> Bandwith<o:p></o:p></span></p><p style="TEXT-ALIGN: left; MARGIN: 0mm 0mm 0pt; mso-pagination: none; mso-layout-grid-align: none; mso-yfti-cnfc: 5" class="MsoNormal" align="left"><span style="FONT-FAMILY: &quot;ＭＳ ゴシック&quot;; COLOR: black; FONT-SIZE: 9pt; mso-ascii-theme-font: major-fareast; mso-fareast-theme-font: major-fareast; mso-hansi-theme-font: major-fareast; mso-bidi-font-family: 'Times New Roman'; mso-font-kerning: 1.0pt; mso-bidi-font-weight: bold; mso-no-proof: yes; mso-themecolor: text1" lang="EN-US">{<o:p></o:p></span></p><p style="TEXT-ALIGN: left; MARGIN: 0mm 0mm 0pt; mso-pagination: none; mso-layout-grid-align: none; mso-yfti-cnfc: 5" class="MsoNormal" align="left"><span style="FONT-FAMILY: &quot;ＭＳ ゴシック&quot;; COLOR: black; FONT-SIZE: 9pt; mso-ascii-theme-font: major-fareast; mso-fareast-theme-font: major-fareast; mso-hansi-theme-font: major-fareast; mso-bidi-font-family: 'Times New Roman'; mso-font-kerning: 1.0pt; mso-bidi-font-weight: bold; mso-no-proof: yes; mso-themecolor: text1" lang="EN-US"><span style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp; </span></span><span style="FONT-FAMILY: &quot;ＭＳ ゴシック&quot;; COLOR: blue; FONT-SIZE: 9pt; mso-ascii-theme-font: major-fareast; mso-fareast-theme-font: major-fareast; mso-hansi-theme-font: major-fareast; mso-bidi-font-family: 'Times New Roman'; mso-font-kerning: 1.0pt; mso-bidi-font-weight: bold; mso-no-proof: yes" lang="EN-US">class</span><span style="FONT-FAMILY: &quot;ＭＳ ゴシック&quot;; COLOR: black; FONT-SIZE: 9pt; mso-ascii-theme-font: major-fareast; mso-fareast-theme-font: major-fareast; mso-hansi-theme-font: major-fareast; mso-bidi-font-family: 'Times New Roman'; mso-font-kerning: 1.0pt; mso-bidi-font-weight: bold; mso-no-proof: yes; mso-themecolor: text1" lang="EN-US"> </span><span style="FONT-FAMILY: &quot;ＭＳ ゴシック&quot;; COLOR: #2b91af; FONT-SIZE: 9pt; mso-ascii-theme-font: major-fareast; mso-fareast-theme-font: major-fareast; mso-hansi-theme-font: major-fareast; mso-bidi-font-family: 'Times New Roman'; mso-font-kerning: 1.0pt; mso-bidi-font-weight: bold; mso-no-proof: yes" lang="EN-US">Program<o:p></o:p></span></p><p style="TEXT-ALIGN: left; MARGIN: 0mm 0mm 0pt; mso-pagination: none; mso-layout-grid-align: none; mso-yfti-cnfc: 5" class="MsoNormal" align="left"><span style="FONT-FAMILY: &quot;ＭＳ ゴシック&quot;; COLOR: black; FONT-SIZE: 9pt; mso-ascii-theme-font: major-fareast; mso-fareast-theme-font: major-fareast; mso-hansi-theme-font: major-fareast; mso-bidi-font-family: 'Times New Roman'; mso-font-kerning: 1.0pt; mso-bidi-font-weight: bold; mso-no-proof: yes; mso-themecolor: text1" lang="EN-US"><span style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp; </span>{<o:p></o:p></span></p><p style="TEXT-ALIGN: left; MARGIN: 0mm 0mm 0pt; mso-pagination: none; mso-layout-grid-align: none; mso-yfti-cnfc: 5" class="MsoNormal" align="left"><span style="FONT-FAMILY: &quot;ＭＳ ゴシック&quot;; COLOR: black; FONT-SIZE: 9pt; mso-ascii-theme-font: major-fareast; mso-fareast-theme-font: major-fareast; mso-hansi-theme-font: major-fareast; mso-bidi-font-family: 'Times New Roman'; mso-font-kerning: 1.0pt; mso-bidi-font-weight: bold; mso-no-proof: yes; mso-themecolor: text1" lang="EN-US"><span style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span><span style="FONT-FAMILY: &quot;ＭＳ ゴシック&quot;; COLOR: blue; FONT-SIZE: 9pt; mso-ascii-theme-font: major-fareast; mso-fareast-theme-font: major-fareast; mso-hansi-theme-font: major-fareast; mso-bidi-font-family: 'Times New Roman'; mso-font-kerning: 1.0pt; mso-bidi-font-weight: bold; mso-no-proof: yes" lang="EN-US">public</span><span style="FONT-FAMILY: &quot;ＭＳ ゴシック&quot;; COLOR: black; FONT-SIZE: 9pt; mso-ascii-theme-font: major-fareast; mso-fareast-theme-font: major-fareast; mso-hansi-theme-font: major-fareast; mso-bidi-font-family: 'Times New Roman'; mso-font-kerning: 1.0pt; mso-bidi-font-weight: bold; mso-no-proof: yes; mso-themecolor: text1" lang="EN-US"> </span><span style="FONT-FAMILY: &quot;ＭＳ ゴシック&quot;; COLOR: blue; FONT-SIZE: 9pt; mso-ascii-theme-font: major-fareast; mso-fareast-theme-font: major-fareast; mso-hansi-theme-font: major-fareast; mso-bidi-font-family: 'Times New Roman'; mso-font-kerning: 1.0pt; mso-bidi-font-weight: bold; mso-no-proof: yes" lang="EN-US">static</span><span style="FONT-FAMILY: &quot;ＭＳ ゴシック&quot;; COLOR: black; FONT-SIZE: 9pt; mso-ascii-theme-font: major-fareast; mso-fareast-theme-font: major-fareast; mso-hansi-theme-font: major-fareast; mso-bidi-font-family: 'Times New Roman'; mso-font-kerning: 1.0pt; mso-bidi-font-weight: bold; mso-no-proof: yes; mso-themecolor: text1" lang="EN-US"> </span><span style="FONT-FAMILY: &quot;ＭＳ ゴシック&quot;; COLOR: blue; FONT-SIZE: 9pt; mso-ascii-theme-font: major-fareast; mso-fareast-theme-font: major-fareast; mso-hansi-theme-font: major-fareast; mso-bidi-font-family: 'Times New Roman'; mso-font-kerning: 1.0pt; mso-bidi-font-weight: bold; mso-no-proof: yes" lang="EN-US">float</span><span style="FONT-FAMILY: &quot;ＭＳ ゴシック&quot;; COLOR: black; FONT-SIZE: 9pt; mso-ascii-theme-font: major-fareast; mso-fareast-theme-font: major-fareast; mso-hansi-theme-font: major-fareast; mso-bidi-font-family: 'Times New Roman'; mso-font-kerning: 1.0pt; mso-bidi-font-weight: bold; mso-no-proof: yes; mso-themecolor: text1" lang="EN-US"> bytesSent1;<o:p></o:p></span></p><p style="TEXT-ALIGN: left; MARGIN: 0mm 0mm 0pt; mso-pagination: none; mso-layout-grid-align: none; mso-yfti-cnfc: 5" class="MsoNormal" align="left"><span style="FONT-FAMILY: &quot;ＭＳ ゴシック&quot;; COLOR: black; FONT-SIZE: 9pt; mso-ascii-theme-font: major-fareast; mso-fareast-theme-font: major-fareast; mso-hansi-theme-font: major-fareast; mso-bidi-font-family: 'Times New Roman'; mso-font-kerning: 1.0pt; mso-bidi-font-weight: bold; mso-no-proof: yes; mso-themecolor: text1" lang="EN-US"><span style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span><span style="FONT-FAMILY: &quot;ＭＳ ゴシック&quot;; COLOR: blue; FONT-SIZE: 9pt; mso-ascii-theme-font: major-fareast; mso-fareast-theme-font: major-fareast; mso-hansi-theme-font: major-fareast; mso-bidi-font-family: 'Times New Roman'; mso-font-kerning: 1.0pt; mso-bidi-font-weight: bold; mso-no-proof: yes" lang="EN-US">public</span><span style="FONT-FAMILY: &quot;ＭＳ ゴシック&quot;; COLOR: black; FONT-SIZE: 9pt; mso-ascii-theme-font: major-fareast; mso-fareast-theme-font: major-fareast; mso-hansi-theme-font: major-fareast; mso-bidi-font-family: 'Times New Roman'; mso-font-kerning: 1.0pt; mso-bidi-font-weight: bold; mso-no-proof: yes; mso-themecolor: text1" lang="EN-US"> </span><span style="FONT-FAMILY: &quot;ＭＳ ゴシック&quot;; COLOR: blue; FONT-SIZE: 9pt; mso-ascii-theme-font: major-fareast; mso-fareast-theme-font: major-fareast; mso-hansi-theme-font: major-fareast; mso-bidi-font-family: 'Times New Roman'; mso-font-kerning: 1.0pt; mso-bidi-font-weight: bold; mso-no-proof: yes" lang="EN-US">static</span><span style="FONT-FAMILY: &quot;ＭＳ ゴシック&quot;; COLOR: black; FONT-SIZE: 9pt; mso-ascii-theme-font: major-fareast; mso-fareast-theme-font: major-fareast; mso-hansi-theme-font: major-fareast; mso-bidi-font-family: 'Times New Roman'; mso-font-kerning: 1.0pt; mso-bidi-font-weight: bold; mso-no-proof: yes; mso-themecolor: text1" lang="EN-US"> </span><span style="FONT-FAMILY: &quot;ＭＳ ゴシック&quot;; COLOR: blue; FONT-SIZE: 9pt; mso-ascii-theme-font: major-fareast; mso-fareast-theme-font: major-fareast; mso-hansi-theme-font: major-fareast; mso-bidi-font-family: 'Times New Roman'; mso-font-kerning: 1.0pt; mso-bidi-font-weight: bold; mso-no-proof: yes" lang="EN-US">float</span><span style="FONT-FAMILY: &quot;ＭＳ ゴシック&quot;; COLOR: black; FONT-SIZE: 9pt; mso-ascii-theme-font: major-fareast; mso-fareast-theme-font: major-fareast; mso-hansi-theme-font: major-fareast; mso-bidi-font-family: 'Times New Roman'; mso-font-kerning: 1.0pt; mso-bidi-font-weight: bold; mso-no-proof: yes; mso-themecolor: text1" lang="EN-US"> bytesSent2;<o:p></o:p></span></p><p style="TEXT-ALIGN: left; MARGIN: 0mm 0mm 0pt; mso-pagination: none; mso-layout-grid-align: none; mso-yfti-cnfc: 5" class="MsoNormal" align="left"><span style="FONT-FAMILY: &quot;ＭＳ ゴシック&quot;; COLOR: black; FONT-SIZE: 9pt; mso-ascii-theme-font: major-fareast; mso-fareast-theme-font: major-fareast; mso-hansi-theme-font: major-fareast; mso-bidi-font-family: 'Times New Roman'; mso-font-kerning: 1.0pt; mso-bidi-font-weight: bold; mso-no-proof: yes; mso-themecolor: text1" lang="EN-US"><o:p>&nbsp;</o:p></span></p><p style="TEXT-ALIGN: left; MARGIN: 0mm 0mm 0pt; mso-pagination: none; mso-layout-grid-align: none; mso-yfti-cnfc: 5" class="MsoNormal" align="left"><span style="FONT-FAMILY: &quot;ＭＳ ゴシック&quot;; COLOR: black; FONT-SIZE: 9pt; mso-ascii-theme-font: major-fareast; mso-fareast-theme-font: major-fareast; mso-hansi-theme-font: major-fareast; mso-bidi-font-family: 'Times New Roman'; mso-font-kerning: 1.0pt; mso-bidi-font-weight: bold; mso-no-proof: yes; mso-themecolor: text1" lang="EN-US"><span style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span><span style="FONT-FAMILY: &quot;ＭＳ ゴシック&quot;; COLOR: blue; FONT-SIZE: 9pt; mso-ascii-theme-font: major-fareast; mso-fareast-theme-font: major-fareast; mso-hansi-theme-font: major-fareast; mso-bidi-font-family: 'Times New Roman'; mso-font-kerning: 1.0pt; mso-bidi-font-weight: bold; mso-no-proof: yes" lang="EN-US">public</span><span style="FONT-FAMILY: &quot;ＭＳ ゴシック&quot;; COLOR: black; FONT-SIZE: 9pt; mso-ascii-theme-font: major-fareast; mso-fareast-theme-font: major-fareast; mso-hansi-theme-font: major-fareast; mso-bidi-font-family: 'Times New Roman'; mso-font-kerning: 1.0pt; mso-bidi-font-weight: bold; mso-no-proof: yes; mso-themecolor: text1" lang="EN-US"> </span><span style="FONT-FAMILY: &quot;ＭＳ ゴシック&quot;; COLOR: blue; FONT-SIZE: 9pt; mso-ascii-theme-font: major-fareast; mso-fareast-theme-font: major-fareast; mso-hansi-theme-font: major-fareast; mso-bidi-font-family: 'Times New Roman'; mso-font-kerning: 1.0pt; mso-bidi-font-weight: bold; mso-no-proof: yes" lang="EN-US">static</span><span style="FONT-FAMILY: &quot;ＭＳ ゴシック&quot;; COLOR: black; FONT-SIZE: 9pt; mso-ascii-theme-font: major-fareast; mso-fareast-theme-font: major-fareast; mso-hansi-theme-font: major-fareast; mso-bidi-font-family: 'Times New Roman'; mso-font-kerning: 1.0pt; mso-bidi-font-weight: bold; mso-no-proof: yes; mso-themecolor: text1" lang="EN-US"> </span><span style="FONT-FAMILY: &quot;ＭＳ ゴシック&quot;; COLOR: blue; FONT-SIZE: 9pt; mso-ascii-theme-font: major-fareast; mso-fareast-theme-font: major-fareast; mso-hansi-theme-font: major-fareast; mso-bidi-font-family: 'Times New Roman'; mso-font-kerning: 1.0pt; mso-bidi-font-weight: bold; mso-no-proof: yes" lang="EN-US">float</span><span style="FONT-FAMILY: &quot;ＭＳ ゴシック&quot;; COLOR: black; FONT-SIZE: 9pt; mso-ascii-theme-font: major-fareast; mso-fareast-theme-font: major-fareast; mso-hansi-theme-font: major-fareast; mso-bidi-font-family: 'Times New Roman'; mso-font-kerning: 1.0pt; mso-bidi-font-weight: bold; mso-no-proof: yes; mso-themecolor: text1" lang="EN-US"> bytesReceived1;<o:p></o:p></span></p><p style="TEXT-ALIGN: left; MARGIN: 0mm 0mm 0pt; mso-pagination: none; mso-layout-grid-align: none; mso-yfti-cnfc: 5" class="MsoNormal" align="left"><span style="FONT-FAMILY: &quot;ＭＳ ゴシック&quot;; COLOR: black; FONT-SIZE: 9pt; mso-ascii-theme-font: major-fareast; mso-fareast-theme-font: major-fareast; mso-hansi-theme-font: major-fareast; mso-bidi-font-family: 'Times New Roman'; mso-font-kerning: 1.0pt; mso-bidi-font-weight: bold; mso-no-proof: yes; mso-themecolor: text1" lang="EN-US"><span style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span><span style="FONT-FAMILY: &quot;ＭＳ ゴシック&quot;; COLOR: blue; FONT-SIZE: 9pt; mso-ascii-theme-font: major-fareast; mso-fareast-theme-font: major-fareast; mso-hansi-theme-font: major-fareast; mso-bidi-font-family: 'Times New Roman'; mso-font-kerning: 1.0pt; mso-bidi-font-weight: bold; mso-no-proof: yes" lang="EN-US">public</span><span style="FONT-FAMILY: &quot;ＭＳ ゴシック&quot;; COLOR: black; FONT-SIZE: 9pt; mso-ascii-theme-font: major-fareast; mso-fareast-theme-font: major-fareast; mso-hansi-theme-font: major-fareast; mso-bidi-font-family: 'Times New Roman'; mso-font-kerning: 1.0pt; mso-bidi-font-weight: bold; mso-no-proof: yes; mso-themecolor: text1" lang="EN-US"> </span><span style="FONT-FAMILY: &quot;ＭＳ ゴシック&quot;; COLOR: blue; FONT-SIZE: 9pt; mso-ascii-theme-font: major-fareast; mso-fareast-theme-font: major-fareast; mso-hansi-theme-font: major-fareast; mso-bidi-font-family: 'Times New Roman'; mso-font-kerning: 1.0pt; mso-bidi-font-weight: bold; mso-no-proof: yes" lang="EN-US">static</span><span style="FONT-FAMILY: &quot;ＭＳ ゴシック&quot;; COLOR: black; FONT-SIZE: 9pt; mso-ascii-theme-font: major-fareast; mso-fareast-theme-font: major-fareast; mso-hansi-theme-font: major-fareast; mso-bidi-font-family: 'Times New Roman'; mso-font-kerning: 1.0pt; mso-bidi-font-weight: bold; mso-no-proof: yes; mso-themecolor: text1" lang="EN-US"> </span><span style="FONT-FAMILY: &quot;ＭＳ ゴシック&quot;; COLOR: blue; FONT-SIZE: 9pt; mso-ascii-theme-font: major-fareast; mso-fareast-theme-font: major-fareast; mso-hansi-theme-font: major-fareast; mso-bidi-font-family: 'Times New Roman'; mso-font-kerning: 1.0pt; mso-bidi-font-weight: bold; mso-no-proof: yes" lang="EN-US">float</span><span style="FONT-FAMILY: &quot;ＭＳ ゴシック&quot;; COLOR: black; FONT-SIZE: 9pt; mso-ascii-theme-font: major-fareast; mso-fareast-theme-font: major-fareast; mso-hansi-theme-font: major-fareast; mso-bidi-font-family: 'Times New Roman'; mso-font-kerning: 1.0pt; mso-bidi-font-weight: bold; mso-no-proof: yes; mso-themecolor: text1" lang="EN-US"> bytesReceived2;<o:p></o:p></span></p><p style="TEXT-ALIGN: left; MARGIN: 0mm 0mm 0pt; mso-pagination: none; mso-layout-grid-align: none; mso-yfti-cnfc: 5" class="MsoNormal" align="left"><span style="FONT-FAMILY: &quot;ＭＳ ゴシック&quot;; COLOR: black; FONT-SIZE: 9pt; mso-ascii-theme-font: major-fareast; mso-fareast-theme-font: major-fareast; mso-hansi-theme-font: major-fareast; mso-bidi-font-family: 'Times New Roman'; mso-font-kerning: 1.0pt; mso-bidi-font-weight: bold; mso-no-proof: yes; mso-themecolor: text1" lang="EN-US"><o:p>&nbsp;</o:p></span></p><p style="TEXT-ALIGN: left; MARGIN: 0mm 0mm 0pt; mso-pagination: none; mso-layout-grid-align: none; mso-yfti-cnfc: 5" class="MsoNormal" align="left"><span style="FONT-FAMILY: &quot;ＭＳ ゴシック&quot;; COLOR: black; FONT-SIZE: 9pt; mso-ascii-theme-font: major-fareast; mso-fareast-theme-font: major-fareast; mso-hansi-theme-font: major-fareast; mso-bidi-font-family: 'Times New Roman'; mso-font-kerning: 1.0pt; mso-bidi-font-weight: bold; mso-no-proof: yes; mso-themecolor: text1" lang="EN-US"><span style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span><span style="FONT-FAMILY: &quot;ＭＳ ゴシック&quot;; COLOR: blue; FONT-SIZE: 9pt; mso-ascii-theme-font: major-fareast; mso-fareast-theme-font: major-fareast; mso-hansi-theme-font: major-fareast; mso-bidi-font-family: 'Times New Roman'; mso-font-kerning: 1.0pt; mso-bidi-font-weight: bold; mso-no-proof: yes" lang="EN-US">public</span><span style="FONT-FAMILY: &quot;ＭＳ ゴシック&quot;; COLOR: black; FONT-SIZE: 9pt; mso-ascii-theme-font: major-fareast; mso-fareast-theme-font: major-fareast; mso-hansi-theme-font: major-fareast; mso-bidi-font-family: 'Times New Roman'; mso-font-kerning: 1.0pt; mso-bidi-font-weight: bold; mso-no-proof: yes; mso-themecolor: text1" lang="EN-US"> </span><span style="FONT-FAMILY: &quot;ＭＳ ゴシック&quot;; COLOR: blue; FONT-SIZE: 9pt; mso-ascii-theme-font: major-fareast; mso-fareast-theme-font: major-fareast; mso-hansi-theme-font: major-fareast; mso-bidi-font-family: 'Times New Roman'; mso-font-kerning: 1.0pt; mso-bidi-font-weight: bold; mso-no-proof: yes" lang="EN-US">static</span><span style="FONT-FAMILY: &quot;ＭＳ ゴシック&quot;; COLOR: black; FONT-SIZE: 9pt; mso-ascii-theme-font: major-fareast; mso-fareast-theme-font: major-fareast; mso-hansi-theme-font: major-fareast; mso-bidi-font-family: 'Times New Roman'; mso-font-kerning: 1.0pt; mso-bidi-font-weight: bold; mso-no-proof: yes; mso-themecolor: text1" lang="EN-US"> </span><span style="FONT-FAMILY: &quot;ＭＳ ゴシック&quot;; COLOR: blue; FONT-SIZE: 9pt; mso-ascii-theme-font: major-fareast; mso-fareast-theme-font: major-fareast; mso-hansi-theme-font: major-fareast; mso-bidi-font-family: 'Times New Roman'; mso-font-kerning: 1.0pt; mso-bidi-font-weight: bold; mso-no-proof: yes" lang="EN-US">void</span><span style="FONT-FAMILY: &quot;ＭＳ ゴシック&quot;; COLOR: black; FONT-SIZE: 9pt; mso-ascii-theme-font: major-fareast; mso-fareast-theme-font: major-fareast; mso-hansi-theme-font: major-fareast; mso-bidi-font-family: 'Times New Roman'; mso-font-kerning: 1.0pt; mso-bidi-font-weight: bold; mso-no-proof: yes; mso-themecolor: text1" lang="EN-US"> Main(</span><span style="FONT-FAMILY: &quot;ＭＳ ゴシック&quot;; COLOR: blue; FONT-SIZE: 9pt; mso-ascii-theme-font: major-fareast; mso-fareast-theme-font: major-fareast; mso-hansi-theme-font: major-fareast; mso-bidi-font-family: 'Times New Roman'; mso-font-kerning: 1.0pt; mso-bidi-font-weight: bold; mso-no-proof: yes" lang="EN-US">string</span><span style="FONT-FAMILY: &quot;ＭＳ ゴシック&quot;; COLOR: black; FONT-SIZE: 9pt; mso-ascii-theme-font: major-fareast; mso-fareast-theme-font: major-fareast; mso-hansi-theme-font: major-fareast; mso-bidi-font-family: 'Times New Roman'; mso-font-kerning: 1.0pt; mso-bidi-font-weight: bold; mso-no-proof: yes; mso-themecolor: text1" lang="EN-US">[] args)<o:p></o:p></span></p><p style="TEXT-ALIGN: left; MARGIN: 0mm 0mm 0pt; mso-pagination: none; mso-layout-grid-align: none; mso-yfti-cnfc: 5" class="MsoNormal" align="left"><span style="FONT-FAMILY: &quot;ＭＳ ゴシック&quot;; COLOR: black; FONT-SIZE: 9pt; mso-ascii-theme-font: major-fareast; mso-fareast-theme-font: major-fareast; mso-hansi-theme-font: major-fareast; mso-bidi-font-family: 'Times New Roman'; mso-font-kerning: 1.0pt; mso-bidi-font-weight: bold; mso-no-proof: yes; mso-themecolor: text1" lang="EN-US"><span style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>{<o:p></o:p></span></p><p style="TEXT-ALIGN: left; MARGIN: 0mm 0mm 0pt; mso-pagination: none; mso-layout-grid-align: none; mso-yfti-cnfc: 5" class="MsoNormal" align="left"><span style="FONT-FAMILY: &quot;ＭＳ ゴシック&quot;; COLOR: black; FONT-SIZE: 9pt; mso-ascii-theme-font: major-fareast; mso-fareast-theme-font: major-fareast; mso-hansi-theme-font: major-fareast; mso-bidi-font-family: 'Times New Roman'; mso-font-kerning: 1.0pt; mso-bidi-font-weight: bold; mso-no-proof: yes; mso-themecolor: text1" lang="EN-US"><span style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span><span style="FONT-FAMILY: &quot;ＭＳ ゴシック&quot;; COLOR: #2b91af; FONT-SIZE: 9pt; mso-ascii-theme-font: major-fareast; mso-fareast-theme-font: major-fareast; mso-hansi-theme-font: major-fareast; mso-bidi-font-family: 'Times New Roman'; mso-font-kerning: 1.0pt; mso-bidi-font-weight: bold; mso-no-proof: yes" lang="EN-US">PerformanceCounter</span><span style="FONT-FAMILY: &quot;ＭＳ ゴシック&quot;; COLOR: black; FONT-SIZE: 9pt; mso-ascii-theme-font: major-fareast; mso-fareast-theme-font: major-fareast; mso-hansi-theme-font: major-fareast; mso-bidi-font-family: 'Times New Roman'; mso-font-kerning: 1.0pt; mso-bidi-font-weight: bold; mso-no-proof: yes; mso-themecolor: text1" lang="EN-US"> bytesSentPerformanceCounter = </span><span style="FONT-FAMILY: &quot;ＭＳ ゴシック&quot;; COLOR: blue; FONT-SIZE: 9pt; mso-ascii-theme-font: major-fareast; mso-fareast-theme-font: major-fareast; mso-hansi-theme-font: major-fareast; mso-bidi-font-family: 'Times New Roman'; mso-font-kerning: 1.0pt; mso-bidi-font-weight: bold; mso-no-proof: yes" lang="EN-US">new</span><span style="FONT-FAMILY: &quot;ＭＳ ゴシック&quot;; COLOR: black; FONT-SIZE: 9pt; mso-ascii-theme-font: major-fareast; mso-fareast-theme-font: major-fareast; mso-hansi-theme-font: major-fareast; mso-bidi-font-family: 'Times New Roman'; mso-font-kerning: 1.0pt; mso-bidi-font-weight: bold; mso-no-proof: yes; mso-themecolor: text1" lang="EN-US"> </span><span style="FONT-FAMILY: &quot;ＭＳ ゴシック&quot;; COLOR: #2b91af; FONT-SIZE: 9pt; mso-ascii-theme-font: major-fareast; mso-fareast-theme-font: major-fareast; mso-hansi-theme-font: major-fareast; mso-bidi-font-family: 'Times New Roman'; mso-font-kerning: 1.0pt; mso-bidi-font-weight: bold; mso-no-proof: yes" lang="EN-US">PerformanceCounter</span><span style="FONT-FAMILY: &quot;ＭＳ ゴシック&quot;; COLOR: black; FONT-SIZE: 9pt; mso-ascii-theme-font: major-fareast; mso-fareast-theme-font: major-fareast; mso-hansi-theme-font: major-fareast; mso-bidi-font-family: 'Times New Roman'; mso-font-kerning: 1.0pt; mso-bidi-font-weight: bold; mso-no-proof: yes; mso-themecolor: text1" lang="EN-US">();<o:p></o:p></span></p><p style="TEXT-ALIGN: left; MARGIN: 0mm 0mm 0pt; mso-pagination: none; mso-layout-grid-align: none; mso-yfti-cnfc: 5" class="MsoNormal" align="left"><span style="FONT-FAMILY: &quot;ＭＳ ゴシック&quot;; COLOR: black; FONT-SIZE: 9pt; mso-ascii-theme-font: major-fareast; mso-fareast-theme-font: major-fareast; mso-hansi-theme-font: major-fareast; mso-bidi-font-family: 'Times New Roman'; mso-font-kerning: 1.0pt; mso-bidi-font-weight: bold; mso-no-proof: yes; mso-themecolor: text1" lang="EN-US"><span style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>bytesSentPerformanceCounter.CategoryName = </span><span style="FONT-FAMILY: &quot;ＭＳ ゴシック&quot;; COLOR: #a31515; FONT-SIZE: 9pt; mso-ascii-theme-font: major-fareast; mso-fareast-theme-font: major-fareast; mso-hansi-theme-font: major-fareast; mso-bidi-font-family: 'Times New Roman'; mso-font-kerning: 1.0pt; mso-bidi-font-weight: bold; mso-no-proof: yes" lang="EN-US">&quot;.NET CLR Networking&quot;</span><span style="FONT-FAMILY: &quot;ＭＳ ゴシック&quot;; COLOR: black; FONT-SIZE: 9pt; mso-ascii-theme-font: major-fareast; mso-fareast-theme-font: major-fareast; mso-hansi-theme-font: major-fareast; mso-bidi-font-family: 'Times New Roman'; mso-font-kerning: 1.0pt; mso-bidi-font-weight: bold; mso-no-proof: yes; mso-themecolor: text1" lang="EN-US">;<o:p></o:p></span></p><p style="TEXT-ALIGN: left; MARGIN: 0mm 0mm 0pt; mso-pagination: none; mso-layout-grid-align: none; mso-yfti-cnfc: 5" class="MsoNormal" align="left"><span style="FONT-FAMILY: &quot;ＭＳ ゴシック&quot;; COLOR: black; FONT-SIZE: 9pt; mso-ascii-theme-font: major-fareast; mso-fareast-theme-font: major-fareast; mso-hansi-theme-font: major-fareast; mso-bidi-font-family: 'Times New Roman'; mso-font-kerning: 1.0pt; mso-bidi-font-weight: bold; mso-no-proof: yes; mso-themecolor: text1" lang="EN-US"><span style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>bytesSentPerformanceCounter.CounterName = </span><span style="FONT-FAMILY: &quot;ＭＳ ゴシック&quot;; COLOR: #a31515; FONT-SIZE: 9pt; mso-ascii-theme-font: major-fareast; mso-fareast-theme-font: major-fareast; mso-hansi-theme-font: major-fareast; mso-bidi-font-family: 'Times New Roman'; mso-font-kerning: 1.0pt; mso-bidi-font-weight: bold; mso-no-proof: yes" lang="EN-US">&quot;Bytes Sent&quot;</span><span style="FONT-FAMILY: &quot;ＭＳ ゴシック&quot;; COLOR: black; FONT-SIZE: 9pt; mso-ascii-theme-font: major-fareast; mso-fareast-theme-font: major-fareast; mso-hansi-theme-font: major-fareast; mso-bidi-font-family: 'Times New Roman'; mso-font-kerning: 1.0pt; mso-bidi-font-weight: bold; mso-no-proof: yes; mso-themecolor: text1" lang="EN-US">;<o:p></o:p></span></p><p style="TEXT-ALIGN: left; MARGIN: 0mm 0mm 0pt; mso-pagination: none; mso-layout-grid-align: none; mso-yfti-cnfc: 5" class="MsoNormal" align="left"><span style="FONT-FAMILY: &quot;ＭＳ ゴシック&quot;; COLOR: black; FONT-SIZE: 9pt; mso-ascii-theme-font: major-fareast; mso-fareast-theme-font: major-fareast; mso-hansi-theme-font: major-fareast; mso-bidi-font-family: 'Times New Roman'; mso-font-kerning: 1.0pt; mso-bidi-font-weight: bold; mso-no-proof: yes; mso-themecolor: text1" lang="EN-US"><span style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>bytesSentPerformanceCounter.InstanceName = </span><span style="FONT-FAMILY: &quot;ＭＳ ゴシック&quot;; COLOR: #a31515; FONT-SIZE: 9pt; mso-ascii-theme-font: major-fareast; mso-fareast-theme-font: major-fareast; mso-hansi-theme-font: major-fareast; mso-bidi-font-family: 'Times New Roman'; mso-font-kerning: 1.0pt; mso-bidi-font-weight: bold; mso-no-proof: yes" lang="EN-US">&quot;</span><span style="FONT-FAMILY: &quot;ＭＳ ゴシック&quot;; COLOR: #a31515; FONT-SIZE: 9pt; mso-ascii-theme-font: major-fareast; mso-fareast-theme-font: major-fareast; mso-hansi-theme-font: major-fareast; mso-bidi-font-family: 'Times New Roman'; mso-font-kerning: 1.0pt; mso-bidi-font-weight: bold; mso-no-proof: yes">＜<span lang="EN-US">app name</span>＞<span lang="EN-US">[</span>＜<span lang="EN-US">process ID</span>＞<span lang="EN-US">]&quot;</span></span><span style="FONT-FAMILY: &quot;ＭＳ ゴシック&quot;; COLOR: black; FONT-SIZE: 9pt; mso-ascii-theme-font: major-fareast; mso-fareast-theme-font: major-fareast; mso-hansi-theme-font: major-fareast; mso-bidi-font-family: 'Times New Roman'; mso-font-kerning: 1.0pt; mso-bidi-font-weight: bold; mso-no-proof: yes; mso-themecolor: text1" lang="EN-US">;<o:p></o:p></span></p><p style="TEXT-ALIGN: left; MARGIN: 0mm 0mm 0pt; mso-pagination: none; mso-layout-grid-align: none; mso-yfti-cnfc: 5" class="MsoNormal" align="left"><span style="FONT-FAMILY: &quot;ＭＳ ゴシック&quot;; COLOR: black; FONT-SIZE: 9pt; mso-ascii-theme-font: major-fareast; mso-fareast-theme-font: major-fareast; mso-hansi-theme-font: major-fareast; mso-bidi-font-family: 'Times New Roman'; mso-font-kerning: 1.0pt; mso-bidi-font-weight: bold; mso-no-proof: yes; mso-themecolor: text1" lang="EN-US"><span style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>bytesSentPerformanceCounter.ReadOnly = </span><span style="FONT-FAMILY: &quot;ＭＳ ゴシック&quot;; COLOR: blue; FONT-SIZE: 9pt; mso-ascii-theme-font: major-fareast; mso-fareast-theme-font: major-fareast; mso-hansi-theme-font: major-fareast; mso-bidi-font-family: 'Times New Roman'; mso-font-kerning: 1.0pt; mso-bidi-font-weight: bold; mso-no-proof: yes" lang="EN-US">true</span><span style="FONT-FAMILY: &quot;ＭＳ ゴシック&quot;; COLOR: black; FONT-SIZE: 9pt; mso-ascii-theme-font: major-fareast; mso-fareast-theme-font: major-fareast; mso-hansi-theme-font: major-fareast; mso-bidi-font-family: 'Times New Roman'; mso-font-kerning: 1.0pt; mso-bidi-font-weight: bold; mso-no-proof: yes; mso-themecolor: text1" lang="EN-US">;<o:p></o:p></span></p><p style="TEXT-ALIGN: left; MARGIN: 0mm 0mm 0pt; mso-pagination: none; mso-layout-grid-align: none; mso-yfti-cnfc: 5" class="MsoNormal" align="left"><span style="FONT-FAMILY: &quot;ＭＳ ゴシック&quot;; COLOR: black; FONT-SIZE: 9pt; mso-ascii-theme-font: major-fareast; mso-fareast-theme-font: major-fareast; mso-hansi-theme-font: major-fareast; mso-bidi-font-family: 'Times New Roman'; mso-font-kerning: 1.0pt; mso-bidi-font-weight: bold; mso-no-proof: yes; mso-themecolor: text1" lang="EN-US"><o:p>&nbsp;</o:p></span></p><p style="TEXT-ALIGN: left; MARGIN: 0mm 0mm 0pt; mso-pagination: none; mso-layout-grid-align: none; mso-yfti-cnfc: 5" class="MsoNormal" align="left"><span style="FONT-FAMILY: &quot;ＭＳ ゴシック&quot;; COLOR: black; FONT-SIZE: 9pt; mso-ascii-theme-font: major-fareast; mso-fareast-theme-font: major-fareast; mso-hansi-theme-font: major-fareast; mso-bidi-font-family: 'Times New Roman'; mso-font-kerning: 1.0pt; mso-bidi-font-weight: bold; mso-no-proof: yes; mso-themecolor: text1" lang="EN-US"><span style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span><span style="FONT-FAMILY: &quot;ＭＳ ゴシック&quot;; COLOR: #2b91af; FONT-SIZE: 9pt; mso-ascii-theme-font: major-fareast; mso-fareast-theme-font: major-fareast; mso-hansi-theme-font: major-fareast; mso-bidi-font-family: 'Times New Roman'; mso-font-kerning: 1.0pt; mso-bidi-font-weight: bold; mso-no-proof: yes" lang="EN-US">PerformanceCounter</span><span style="FONT-FAMILY: &quot;ＭＳ ゴシック&quot;; COLOR: black; FONT-SIZE: 9pt; mso-ascii-theme-font: major-fareast; mso-fareast-theme-font: major-fareast; mso-hansi-theme-font: major-fareast; mso-bidi-font-family: 'Times New Roman'; mso-font-kerning: 1.0pt; mso-bidi-font-weight: bold; mso-no-proof: yes; mso-themecolor: text1" lang="EN-US"> bytesReceivedPerformanceCounter = </span><span style="FONT-FAMILY: &quot;ＭＳ ゴシック&quot;; COLOR: blue; FONT-SIZE: 9pt; mso-ascii-theme-font: major-fareast; mso-fareast-theme-font: major-fareast; mso-hansi-theme-font: major-fareast; mso-bidi-font-family: 'Times New Roman'; mso-font-kerning: 1.0pt; mso-bidi-font-weight: bold; mso-no-proof: yes" lang="EN-US">new</span><span style="FONT-FAMILY: &quot;ＭＳ ゴシック&quot;; COLOR: black; FONT-SIZE: 9pt; mso-ascii-theme-font: major-fareast; mso-fareast-theme-font: major-fareast; mso-hansi-theme-font: major-fareast; mso-bidi-font-family: 'Times New Roman'; mso-font-kerning: 1.0pt; mso-bidi-font-weight: bold; mso-no-proof: yes; mso-themecolor: text1" lang="EN-US"> </span><span style="FONT-FAMILY: &quot;ＭＳ ゴシック&quot;; COLOR: #2b91af; FONT-SIZE: 9pt; mso-ascii-theme-font: major-fareast; mso-fareast-theme-font: major-fareast; mso-hansi-theme-font: major-fareast; mso-bidi-font-family: 'Times New Roman'; mso-font-kerning: 1.0pt; mso-bidi-font-weight: bold; mso-no-proof: yes" lang="EN-US">PerformanceCounter</span><span style="FONT-FAMILY: &quot;ＭＳ ゴシック&quot;; COLOR: black; FONT-SIZE: 9pt; mso-ascii-theme-font: major-fareast; mso-fareast-theme-font: major-fareast; mso-hansi-theme-font: major-fareast; mso-bidi-font-family: 'Times New Roman'; mso-font-kerning: 1.0pt; mso-bidi-font-weight: bold; mso-no-proof: yes; mso-themecolor: text1" lang="EN-US">();<o:p></o:p></span></p><p style="TEXT-ALIGN: left; MARGIN: 0mm 0mm 0pt; mso-pagination: none; mso-layout-grid-align: none; mso-yfti-cnfc: 5" class="MsoNormal" align="left"><span style="FONT-FAMILY: &quot;ＭＳ ゴシック&quot;; COLOR: black; FONT-SIZE: 9pt; mso-ascii-theme-font: major-fareast; mso-fareast-theme-font: major-fareast; mso-hansi-theme-font: major-fareast; mso-bidi-font-family: 'Times New Roman'; mso-font-kerning: 1.0pt; mso-bidi-font-weight: bold; mso-no-proof: yes; mso-themecolor: text1" lang="EN-US"><span style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>bytesReceivedPerformanceCounter.CategoryName = </span><span style="FONT-FAMILY: &quot;ＭＳ ゴシック&quot;; COLOR: #a31515; FONT-SIZE: 9pt; mso-ascii-theme-font: major-fareast; mso-fareast-theme-font: major-fareast; mso-hansi-theme-font: major-fareast; mso-bidi-font-family: 'Times New Roman'; mso-font-kerning: 1.0pt; mso-bidi-font-weight: bold; mso-no-proof: yes" lang="EN-US">&quot;.NET CLR Networking&quot;</span><span style="FONT-FAMILY: &quot;ＭＳ ゴシック&quot;; COLOR: black; FONT-SIZE: 9pt; mso-ascii-theme-font: major-fareast; mso-fareast-theme-font: major-fareast; mso-hansi-theme-font: major-fareast; mso-bidi-font-family: 'Times New Roman'; mso-font-kerning: 1.0pt; mso-bidi-font-weight: bold; mso-no-proof: yes; mso-themecolor: text1" lang="EN-US">;<o:p></o:p></span></p><p style="TEXT-ALIGN: left; MARGIN: 0mm 0mm 0pt; mso-pagination: none; mso-layout-grid-align: none; mso-yfti-cnfc: 5" class="MsoNormal" align="left"><span style="FONT-FAMILY: &quot;ＭＳ ゴシック&quot;; COLOR: black; FONT-SIZE: 9pt; mso-ascii-theme-font: major-fareast; mso-fareast-theme-font: major-fareast; mso-hansi-theme-font: major-fareast; mso-bidi-font-family: 'Times New Roman'; mso-font-kerning: 1.0pt; mso-bidi-font-weight: bold; mso-no-proof: yes; mso-themecolor: text1" lang="EN-US"><span style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>bytesReceivedPerformanceCounter.CounterName = </span><span style="FONT-FAMILY: &quot;ＭＳ ゴシック&quot;; COLOR: #a31515; FONT-SIZE: 9pt; mso-ascii-theme-font: major-fareast; mso-fareast-theme-font: major-fareast; mso-hansi-theme-font: major-fareast; mso-bidi-font-family: 'Times New Roman'; mso-font-kerning: 1.0pt; mso-bidi-font-weight: bold; mso-no-proof: yes" lang="EN-US">&quot;Bytes Received&quot;</span><span style="FONT-FAMILY: &quot;ＭＳ ゴシック&quot;; COLOR: black; FONT-SIZE: 9pt; mso-ascii-theme-font: major-fareast; mso-fareast-theme-font: major-fareast; mso-hansi-theme-font: major-fareast; mso-bidi-font-family: 'Times New Roman'; mso-font-kerning: 1.0pt; mso-bidi-font-weight: bold; mso-no-proof: yes; mso-themecolor: text1" lang="EN-US">;<o:p></o:p></span></p><p style="TEXT-ALIGN: left; MARGIN: 0mm 0mm 0pt; mso-pagination: none; mso-layout-grid-align: none; mso-yfti-cnfc: 5" class="MsoNormal" align="left"><span style="FONT-FAMILY: &quot;ＭＳ ゴシック&quot;; COLOR: black; FONT-SIZE: 9pt; mso-ascii-theme-font: major-fareast; mso-fareast-theme-font: major-fareast; mso-hansi-theme-font: major-fareast; mso-bidi-font-family: 'Times New Roman'; mso-font-kerning: 1.0pt; mso-bidi-font-weight: bold; mso-no-proof: yes; mso-themecolor: text1" lang="EN-US"><span style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>bytesReceivedPerformanceCounter.InstanceName = </span><span style="FONT-FAMILY: &quot;ＭＳ ゴシック&quot;; COLOR: #a31515; FONT-SIZE: 9pt; mso-ascii-theme-font: major-fareast; mso-fareast-theme-font: major-fareast; mso-hansi-theme-font: major-fareast; mso-bidi-font-family: 'Times New Roman'; mso-font-kerning: 1.0pt; mso-bidi-font-weight: bold; mso-no-proof: yes" lang="EN-US">&quot;</span><span style="FONT-FAMILY: &quot;ＭＳ ゴシック&quot;; COLOR: #a31515; FONT-SIZE: 9pt; mso-ascii-theme-font: major-fareast; mso-fareast-theme-font: major-fareast; mso-hansi-theme-font: major-fareast; mso-bidi-font-family: 'Times New Roman'; mso-font-kerning: 1.0pt; mso-bidi-font-weight: bold; mso-no-proof: yes">＜<span lang="EN-US">app name</span>＞<span lang="EN-US">[</span>＜<span lang="EN-US">process ID</span>＞<span lang="EN-US">]&quot;</span></span><span style="FONT-FAMILY: &quot;ＭＳ ゴシック&quot;; COLOR: black; FONT-SIZE: 9pt; mso-ascii-theme-font: major-fareast; mso-fareast-theme-font: major-fareast; mso-hansi-theme-font: major-fareast; mso-bidi-font-family: 'Times New Roman'; mso-font-kerning: 1.0pt; mso-bidi-font-weight: bold; mso-no-proof: yes; mso-themecolor: text1" lang="EN-US">;<o:p></o:p></span></p><p style="TEXT-ALIGN: left; MARGIN: 0mm 0mm 0pt; mso-pagination: none; mso-layout-grid-align: none; mso-yfti-cnfc: 5" class="MsoNormal" align="left"><span style="FONT-FAMILY: &quot;ＭＳ ゴシック&quot;; COLOR: black; FONT-SIZE: 9pt; mso-ascii-theme-font: major-fareast; mso-fareast-theme-font: major-fareast; mso-hansi-theme-font: major-fareast; mso-bidi-font-family: 'Times New Roman'; mso-font-kerning: 1.0pt; mso-bidi-font-weight: bold; mso-no-proof: yes; mso-themecolor: text1" lang="EN-US"><span style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>bytesReceivedPerformanceCounter.ReadOnly = </span><span style="FONT-FAMILY: &quot;ＭＳ ゴシック&quot;; COLOR: blue; FONT-SIZE: 9pt; mso-ascii-theme-font: major-fareast; mso-fareast-theme-font: major-fareast; mso-hansi-theme-font: major-fareast; mso-bidi-font-family: 'Times New Roman'; mso-font-kerning: 1.0pt; mso-bidi-font-weight: bold; mso-no-proof: yes" lang="EN-US">true</span><span style="FONT-FAMILY: &quot;ＭＳ ゴシック&quot;; COLOR: black; FONT-SIZE: 9pt; mso-ascii-theme-font: major-fareast; mso-fareast-theme-font: major-fareast; mso-hansi-theme-font: major-fareast; mso-bidi-font-family: 'Times New Roman'; mso-font-kerning: 1.0pt; mso-bidi-font-weight: bold; mso-no-proof: yes; mso-themecolor: text1" lang="EN-US">;<o:p></o:p></span></p><p style="TEXT-ALIGN: left; MARGIN: 0mm 0mm 0pt; mso-pagination: none; mso-layout-grid-align: none; mso-yfti-cnfc: 5" class="MsoNormal" align="left"><span style="FONT-FAMILY: &quot;ＭＳ ゴシック&quot;; COLOR: black; FONT-SIZE: 9pt; mso-ascii-theme-font: major-fareast; mso-fareast-theme-font: major-fareast; mso-hansi-theme-font: major-fareast; mso-bidi-font-family: 'Times New Roman'; mso-font-kerning: 1.0pt; mso-bidi-font-weight: bold; mso-no-proof: yes; mso-themecolor: text1" lang="EN-US"><o:p>&nbsp;</o:p></span></p><p style="TEXT-ALIGN: left; MARGIN: 0mm 0mm 0pt; mso-pagination: none; mso-layout-grid-align: none; mso-yfti-cnfc: 5" class="MsoNormal" align="left"><span style="FONT-FAMILY: &quot;ＭＳ ゴシック&quot;; COLOR: black; FONT-SIZE: 9pt; mso-ascii-theme-font: major-fareast; mso-fareast-theme-font: major-fareast; mso-hansi-theme-font: major-fareast; mso-bidi-font-family: 'Times New Roman'; mso-font-kerning: 1.0pt; mso-bidi-font-weight: bold; mso-no-proof: yes; mso-themecolor: text1" lang="EN-US"><span style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span><span style="FONT-FAMILY: &quot;ＭＳ ゴシック&quot;; COLOR: blue; FONT-SIZE: 9pt; mso-ascii-theme-font: major-fareast; mso-fareast-theme-font: major-fareast; mso-hansi-theme-font: major-fareast; mso-bidi-font-family: 'Times New Roman'; mso-font-kerning: 1.0pt; mso-bidi-font-weight: bold; mso-no-proof: yes" lang="EN-US">using</span><span style="FONT-FAMILY: &quot;ＭＳ ゴシック&quot;; COLOR: black; FONT-SIZE: 9pt; mso-ascii-theme-font: major-fareast; mso-fareast-theme-font: major-fareast; mso-hansi-theme-font: major-fareast; mso-bidi-font-family: 'Times New Roman'; mso-font-kerning: 1.0pt; mso-bidi-font-weight: bold; mso-no-proof: yes; mso-themecolor: text1" lang="EN-US"> (</span><span style="FONT-FAMILY: &quot;ＭＳ ゴシック&quot;; COLOR: #2b91af; FONT-SIZE: 9pt; mso-ascii-theme-font: major-fareast; mso-fareast-theme-font: major-fareast; mso-hansi-theme-font: major-fareast; mso-bidi-font-family: 'Times New Roman'; mso-font-kerning: 1.0pt; mso-bidi-font-weight: bold; mso-no-proof: yes" lang="EN-US">Timer</span><span style="FONT-FAMILY: &quot;ＭＳ ゴシック&quot;; COLOR: black; FONT-SIZE: 9pt; mso-ascii-theme-font: major-fareast; mso-fareast-theme-font: major-fareast; mso-hansi-theme-font: major-fareast; mso-bidi-font-family: 'Times New Roman'; mso-font-kerning: 1.0pt; mso-bidi-font-weight: bold; mso-no-proof: yes; mso-themecolor: text1" lang="EN-US"> timer = </span><span style="FONT-FAMILY: &quot;ＭＳ ゴシック&quot;; COLOR: blue; FONT-SIZE: 9pt; mso-ascii-theme-font: major-fareast; mso-fareast-theme-font: major-fareast; mso-hansi-theme-font: major-fareast; mso-bidi-font-family: 'Times New Roman'; mso-font-kerning: 1.0pt; mso-bidi-font-weight: bold; mso-no-proof: yes" lang="EN-US">new</span><span style="FONT-FAMILY: &quot;ＭＳ ゴシック&quot;; COLOR: black; FONT-SIZE: 9pt; mso-ascii-theme-font: major-fareast; mso-fareast-theme-font: major-fareast; mso-hansi-theme-font: major-fareast; mso-bidi-font-family: 'Times New Roman'; mso-font-kerning: 1.0pt; mso-bidi-font-weight: bold; mso-no-proof: yes; mso-themecolor: text1" lang="EN-US"> </span><span style="FONT-FAMILY: &quot;ＭＳ ゴシック&quot;; COLOR: #2b91af; FONT-SIZE: 9pt; mso-ascii-theme-font: major-fareast; mso-fareast-theme-font: major-fareast; mso-hansi-theme-font: major-fareast; mso-bidi-font-family: 'Times New Roman'; mso-font-kerning: 1.0pt; mso-bidi-font-weight: bold; mso-no-proof: yes" lang="EN-US">Timer</span><span style="FONT-FAMILY: &quot;ＭＳ ゴシック&quot;; COLOR: black; FONT-SIZE: 9pt; mso-ascii-theme-font: major-fareast; mso-fareast-theme-font: major-fareast; mso-hansi-theme-font: major-fareast; mso-bidi-font-family: 'Times New Roman'; mso-font-kerning: 1.0pt; mso-bidi-font-weight: bold; mso-no-proof: yes; mso-themecolor: text1" lang="EN-US">((state) =&gt;<o:p></o:p></span></p><p style="TEXT-ALIGN: left; MARGIN: 0mm 0mm 0pt; mso-pagination: none; mso-layout-grid-align: none; mso-yfti-cnfc: 5" class="MsoNormal" align="left"><span style="FONT-FAMILY: &quot;ＭＳ ゴシック&quot;; COLOR: black; FONT-SIZE: 9pt; mso-ascii-theme-font: major-fareast; mso-fareast-theme-font: major-fareast; mso-hansi-theme-font: major-fareast; mso-bidi-font-family: 'Times New Roman'; mso-font-kerning: 1.0pt; mso-bidi-font-weight: bold; mso-no-proof: yes; mso-themecolor: text1" lang="EN-US"><span style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>{<o:p></o:p></span></p><p style="TEXT-ALIGN: left; MARGIN: 0mm 0mm 0pt; mso-pagination: none; mso-layout-grid-align: none; mso-yfti-cnfc: 5" class="MsoNormal" align="left"><span style="FONT-FAMILY: &quot;ＭＳ ゴシック&quot;; COLOR: black; FONT-SIZE: 9pt; mso-ascii-theme-font: major-fareast; mso-fareast-theme-font: major-fareast; mso-hansi-theme-font: major-fareast; mso-bidi-font-family: 'Times New Roman'; mso-font-kerning: 1.0pt; mso-bidi-font-weight: bold; mso-no-proof: yes; mso-themecolor: text1" lang="EN-US"><span style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>bytesSent2 = bytesSentPerformanceCounter.NextValue();<o:p></o:p></span></p><p style="TEXT-ALIGN: left; MARGIN: 0mm 0mm 0pt; mso-pagination: none; mso-layout-grid-align: none; mso-yfti-cnfc: 5" class="MsoNormal" align="left"><span style="FONT-FAMILY: &quot;ＭＳ ゴシック&quot;; COLOR: black; FONT-SIZE: 9pt; mso-ascii-theme-font: major-fareast; mso-fareast-theme-font: major-fareast; mso-hansi-theme-font: major-fareast; mso-bidi-font-family: 'Times New Roman'; mso-font-kerning: 1.0pt; mso-bidi-font-weight: bold; mso-no-proof: yes; mso-themecolor: text1" lang="EN-US"><span style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span><span style="FONT-FAMILY: &quot;ＭＳ ゴシック&quot;; COLOR: blue; FONT-SIZE: 9pt; mso-ascii-theme-font: major-fareast; mso-fareast-theme-font: major-fareast; mso-hansi-theme-font: major-fareast; mso-bidi-font-family: 'Times New Roman'; mso-font-kerning: 1.0pt; mso-bidi-font-weight: bold; mso-no-proof: yes" lang="EN-US">float</span><span style="FONT-FAMILY: &quot;ＭＳ ゴシック&quot;; COLOR: black; FONT-SIZE: 9pt; mso-ascii-theme-font: major-fareast; mso-fareast-theme-font: major-fareast; mso-hansi-theme-font: major-fareast; mso-bidi-font-family: 'Times New Roman'; mso-font-kerning: 1.0pt; mso-bidi-font-weight: bold; mso-no-proof: yes; mso-themecolor: text1" lang="EN-US"> difSent = bytesSent2 - bytesSent1;<o:p></o:p></span></p><p style="TEXT-ALIGN: left; MARGIN: 0mm 0mm 0pt; mso-pagination: none; mso-layout-grid-align: none; mso-yfti-cnfc: 5" class="MsoNormal" align="left"><span style="FONT-FAMILY: &quot;ＭＳ ゴシック&quot;; COLOR: black; FONT-SIZE: 9pt; mso-ascii-theme-font: major-fareast; mso-fareast-theme-font: major-fareast; mso-hansi-theme-font: major-fareast; mso-bidi-font-family: 'Times New Roman'; mso-font-kerning: 1.0pt; mso-bidi-font-weight: bold; mso-no-proof: yes; mso-themecolor: text1" lang="EN-US"><span style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>bytesSent1 = bytesSent2;<o:p></o:p></span></p><p style="TEXT-ALIGN: left; MARGIN: 0mm 0mm 0pt; mso-pagination: none; mso-layout-grid-align: none; mso-yfti-cnfc: 5" class="MsoNormal" align="left"><span style="FONT-FAMILY: &quot;ＭＳ ゴシック&quot;; COLOR: black; FONT-SIZE: 9pt; mso-ascii-theme-font: major-fareast; mso-fareast-theme-font: major-fareast; mso-hansi-theme-font: major-fareast; mso-bidi-font-family: 'Times New Roman'; mso-font-kerning: 1.0pt; mso-bidi-font-weight: bold; mso-no-proof: yes; mso-themecolor: text1" lang="EN-US"><o:p>&nbsp;</o:p></span></p><p style="TEXT-ALIGN: left; MARGIN: 0mm 0mm 0pt; mso-pagination: none; mso-layout-grid-align: none; mso-yfti-cnfc: 5" class="MsoNormal" align="left"><span style="FONT-FAMILY: &quot;ＭＳ ゴシック&quot;; COLOR: black; FONT-SIZE: 9pt; mso-ascii-theme-font: major-fareast; mso-fareast-theme-font: major-fareast; mso-hansi-theme-font: major-fareast; mso-bidi-font-family: 'Times New Roman'; mso-font-kerning: 1.0pt; mso-bidi-font-weight: bold; mso-no-proof: yes; mso-themecolor: text1" lang="EN-US"><span style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>bytesReceived2 = bytesReceivedPerformanceCounter.NextValue();<o:p></o:p></span></p><p style="TEXT-ALIGN: left; MARGIN: 0mm 0mm 0pt; mso-pagination: none; mso-layout-grid-align: none; mso-yfti-cnfc: 5" class="MsoNormal" align="left"><span style="FONT-FAMILY: &quot;ＭＳ ゴシック&quot;; COLOR: black; FONT-SIZE: 9pt; mso-ascii-theme-font: major-fareast; mso-fareast-theme-font: major-fareast; mso-hansi-theme-font: major-fareast; mso-bidi-font-family: 'Times New Roman'; mso-font-kerning: 1.0pt; mso-bidi-font-weight: bold; mso-no-proof: yes; mso-themecolor: text1" lang="EN-US"><span style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span><span style="FONT-FAMILY: &quot;ＭＳ ゴシック&quot;; COLOR: blue; FONT-SIZE: 9pt; mso-ascii-theme-font: major-fareast; mso-fareast-theme-font: major-fareast; mso-hansi-theme-font: major-fareast; mso-bidi-font-family: 'Times New Roman'; mso-font-kerning: 1.0pt; mso-bidi-font-weight: bold; mso-no-proof: yes" lang="EN-US">float</span><span style="FONT-FAMILY: &quot;ＭＳ ゴシック&quot;; COLOR: black; FONT-SIZE: 9pt; mso-ascii-theme-font: major-fareast; mso-fareast-theme-font: major-fareast; mso-hansi-theme-font: major-fareast; mso-bidi-font-family: 'Times New Roman'; mso-font-kerning: 1.0pt; mso-bidi-font-weight: bold; mso-no-proof: yes; mso-themecolor: text1" lang="EN-US"> difReceived = bytesReceived2 - bytesReceived1;<o:p></o:p></span></p><p style="TEXT-ALIGN: left; MARGIN: 0mm 0mm 0pt; mso-pagination: none; mso-layout-grid-align: none; mso-yfti-cnfc: 5" class="MsoNormal" align="left"><span style="FONT-FAMILY: &quot;ＭＳ ゴシック&quot;; COLOR: black; FONT-SIZE: 9pt; mso-ascii-theme-font: major-fareast; mso-fareast-theme-font: major-fareast; mso-hansi-theme-font: major-fareast; mso-bidi-font-family: 'Times New Roman'; mso-font-kerning: 1.0pt; mso-bidi-font-weight: bold; mso-no-proof: yes; mso-themecolor: text1" lang="EN-US"><span style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>bytesReceived1 = bytesReceived2;<o:p></o:p></span></p><p style="TEXT-ALIGN: left; MARGIN: 0mm 0mm 0pt; mso-pagination: none; mso-layout-grid-align: none; mso-yfti-cnfc: 5" class="MsoNormal" align="left"><span style="FONT-FAMILY: &quot;ＭＳ ゴシック&quot;; COLOR: black; FONT-SIZE: 9pt; mso-ascii-theme-font: major-fareast; mso-fareast-theme-font: major-fareast; mso-hansi-theme-font: major-fareast; mso-bidi-font-family: 'Times New Roman'; mso-font-kerning: 1.0pt; mso-bidi-font-weight: bold; mso-no-proof: yes; mso-themecolor: text1" lang="EN-US"><o:p>&nbsp;</o:p></span></p><p style="TEXT-ALIGN: left; MARGIN: 0mm 0mm 0pt; mso-pagination: none; mso-layout-grid-align: none; mso-yfti-cnfc: 5" class="MsoNormal" align="left"><span style="FONT-FAMILY: &quot;ＭＳ ゴシック&quot;; COLOR: black; FONT-SIZE: 9pt; mso-ascii-theme-font: major-fareast; mso-fareast-theme-font: major-fareast; mso-hansi-theme-font: major-fareast; mso-bidi-font-family: 'Times New Roman'; mso-font-kerning: 1.0pt; mso-bidi-font-weight: bold; mso-no-proof: yes; mso-themecolor: text1" lang="EN-US"><span style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp; </span><span style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span></span><span style="FONT-FAMILY: &quot;ＭＳ ゴシック&quot;; COLOR: #2b91af; FONT-SIZE: 9pt; mso-ascii-theme-font: major-fareast; mso-fareast-theme-font: major-fareast; mso-hansi-theme-font: major-fareast; mso-bidi-font-family: 'Times New Roman'; mso-font-kerning: 1.0pt; mso-bidi-font-weight: bold; mso-no-proof: yes" lang="EN-US">Console</span><span style="FONT-FAMILY: &quot;ＭＳ ゴシック&quot;; COLOR: black; FONT-SIZE: 9pt; mso-ascii-theme-font: major-fareast; mso-fareast-theme-font: major-fareast; mso-hansi-theme-font: major-fareast; mso-bidi-font-family: 'Times New Roman'; mso-font-kerning: 1.0pt; mso-bidi-font-weight: bold; mso-no-proof: yes; mso-themecolor: text1" lang="EN-US">.WriteLine(</span><span style="FONT-FAMILY: &quot;ＭＳ ゴシック&quot;; COLOR: #a31515; FONT-SIZE: 9pt; mso-ascii-theme-font: major-fareast; mso-fareast-theme-font: major-fareast; mso-hansi-theme-font: major-fareast; mso-bidi-font-family: 'Times New Roman'; mso-font-kerning: 1.0pt; mso-bidi-font-weight: bold; mso-no-proof: yes" lang="EN-US">&quot;</span><span style="FONT-FAMILY: &quot;ＭＳ ゴシック&quot;; COLOR: #a31515; FONT-SIZE: 9pt; mso-ascii-theme-font: major-fareast; mso-fareast-theme-font: major-fareast; mso-hansi-theme-font: major-fareast; mso-bidi-font-family: 'Times New Roman'; mso-font-kerning: 1.0pt; mso-bidi-font-weight: bold; mso-no-proof: yes">送信：<span lang="EN-US">{0}KB/s, </span>受信：<span lang="EN-US">{1}KB/s&quot;</span></span><span style="FONT-FAMILY: &quot;ＭＳ ゴシック&quot;; COLOR: black; FONT-SIZE: 9pt; mso-ascii-theme-font: major-fareast; mso-fareast-theme-font: major-fareast; mso-hansi-theme-font: major-fareast; mso-bidi-font-family: 'Times New Roman'; mso-font-kerning: 1.0pt; mso-bidi-font-weight: bold; mso-no-proof: yes; mso-themecolor: text1" lang="EN-US">, difSent / 1000, difReceived / 1000);<o:p></o:p></span></p><p style="TEXT-ALIGN: left; MARGIN: 0mm 0mm 0pt; mso-pagination: none; mso-layout-grid-align: none; mso-yfti-cnfc: 5" class="MsoNormal" align="left"><span style="FONT-FAMILY: &quot;ＭＳ ゴシック&quot;; COLOR: black; FONT-SIZE: 9pt; mso-ascii-theme-font: major-fareast; mso-fareast-theme-font: major-fareast; mso-hansi-theme-font: major-fareast; mso-bidi-font-family: 'Times New Roman'; mso-font-kerning: 1.0pt; mso-bidi-font-weight: bold; mso-no-proof: yes; mso-themecolor: text1" lang="EN-US"><span style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>}, </span><span style="FONT-FAMILY: &quot;ＭＳ ゴシック&quot;; COLOR: blue; FONT-SIZE: 9pt; mso-ascii-theme-font: major-fareast; mso-fareast-theme-font: major-fareast; mso-hansi-theme-font: major-fareast; mso-bidi-font-family: 'Times New Roman'; mso-font-kerning: 1.0pt; mso-bidi-font-weight: bold; mso-no-proof: yes" lang="EN-US">null</span><span style="FONT-FAMILY: &quot;ＭＳ ゴシック&quot;; COLOR: black; FONT-SIZE: 9pt; mso-ascii-theme-font: major-fareast; mso-fareast-theme-font: major-fareast; mso-hansi-theme-font: major-fareast; mso-bidi-font-family: 'Times New Roman'; mso-font-kerning: 1.0pt; mso-bidi-font-weight: bold; mso-no-proof: yes; mso-themecolor: text1" lang="EN-US">, 0, 1000))<o:p></o:p></span></p><p style="TEXT-ALIGN: left; MARGIN: 0mm 0mm 0pt; mso-pagination: none; mso-layout-grid-align: none; mso-yfti-cnfc: 5" class="MsoNormal" align="left"><span style="FONT-FAMILY: &quot;ＭＳ ゴシック&quot;; COLOR: black; FONT-SIZE: 9pt; mso-ascii-theme-font: major-fareast; mso-fareast-theme-font: major-fareast; mso-hansi-theme-font: major-fareast; mso-bidi-font-family: 'Times New Roman'; mso-font-kerning: 1.0pt; mso-bidi-font-weight: bold; mso-no-proof: yes; mso-themecolor: text1" lang="EN-US"><span style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>{<o:p></o:p></span></p><p style="TEXT-ALIGN: left; MARGIN: 0mm 0mm 0pt; mso-pagination: none; mso-layout-grid-align: none; mso-yfti-cnfc: 5" class="MsoNormal" align="left"><span style="FONT-FAMILY: &quot;ＭＳ ゴシック&quot;; COLOR: black; FONT-SIZE: 9pt; mso-ascii-theme-font: major-fareast; mso-fareast-theme-font: major-fareast; mso-hansi-theme-font: major-fareast; mso-bidi-font-family: 'Times New Roman'; mso-font-kerning: 1.0pt; mso-bidi-font-weight: bold; mso-no-proof: yes; mso-themecolor: text1" lang="EN-US"><span style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span><span style="FONT-FAMILY: &quot;ＭＳ ゴシック&quot;; COLOR: #2b91af; FONT-SIZE: 9pt; mso-ascii-theme-font: major-fareast; mso-fareast-theme-font: major-fareast; mso-hansi-theme-font: major-fareast; mso-bidi-font-family: 'Times New Roman'; mso-font-kerning: 1.0pt; mso-bidi-font-weight: bold; mso-no-proof: yes" lang="EN-US">Console</span><span style="FONT-FAMILY: &quot;ＭＳ ゴシック&quot;; COLOR: black; FONT-SIZE: 9pt; mso-ascii-theme-font: major-fareast; mso-fareast-theme-font: major-fareast; mso-hansi-theme-font: major-fareast; mso-bidi-font-family: 'Times New Roman'; mso-font-kerning: 1.0pt; mso-bidi-font-weight: bold; mso-no-proof: yes; mso-themecolor: text1" lang="EN-US">.ReadKey();<o:p></o:p></span></p><p style="TEXT-ALIGN: left; MARGIN: 0mm 0mm 0pt; mso-pagination: none; mso-layout-grid-align: none; mso-yfti-cnfc: 5" class="MsoNormal" align="left"><span style="FONT-FAMILY: &quot;ＭＳ ゴシック&quot;; COLOR: black; FONT-SIZE: 9pt; mso-ascii-theme-font: major-fareast; mso-fareast-theme-font: major-fareast; mso-hansi-theme-font: major-fareast; mso-bidi-font-family: 'Times New Roman'; mso-font-kerning: 1.0pt; mso-bidi-font-weight: bold; mso-no-proof: yes; mso-themecolor: text1" lang="EN-US"><span style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>}<o:p></o:p></span></p><p style="TEXT-ALIGN: left; MARGIN: 0mm 0mm 0pt; mso-pagination: none; mso-layout-grid-align: none; mso-yfti-cnfc: 5" class="MsoNormal" align="left"><span style="FONT-FAMILY: &quot;ＭＳ ゴシック&quot;; COLOR: black; FONT-SIZE: 9pt; mso-ascii-theme-font: major-fareast; mso-fareast-theme-font: major-fareast; mso-hansi-theme-font: major-fareast; mso-bidi-font-family: 'Times New Roman'; mso-font-kerning: 1.0pt; mso-bidi-font-weight: bold; mso-no-proof: yes; mso-themecolor: text1" lang="EN-US"><span style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>}<o:p></o:p></span></p><p style="TEXT-ALIGN: left; MARGIN: 0mm 0mm 0pt; mso-pagination: none; mso-layout-grid-align: none; mso-yfti-cnfc: 5" class="MsoNormal" align="left"><span style="FONT-FAMILY: &quot;ＭＳ ゴシック&quot;; COLOR: black; FONT-SIZE: 9pt; mso-ascii-theme-font: major-fareast; mso-fareast-theme-font: major-fareast; mso-hansi-theme-font: major-fareast; mso-bidi-font-family: 'Times New Roman'; mso-font-kerning: 1.0pt; mso-bidi-font-weight: bold; mso-no-proof: yes; mso-themecolor: text1" lang="EN-US"><span style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp; </span>}<o:p></o:p></span></p><p style="TEXT-ALIGN: left; MARGIN: 0mm 0mm 0pt; mso-layout-grid-align: none; mso-yfti-cnfc: 5" class="MsoNormal" align="left"><span style="FONT-FAMILY: &quot;ＭＳ ゴシック&quot;; COLOR: black; FONT-SIZE: 9pt; mso-ascii-theme-font: major-fareast; mso-fareast-theme-font: major-fareast; mso-hansi-theme-font: major-fareast; mso-bidi-font-family: 'Times New Roman'; mso-font-kerning: 1.0pt; mso-bidi-font-weight: bold; mso-no-proof: yes; mso-themecolor: text1" lang="EN-US">}</span><span style="FONT-FAMILY: &quot;ＭＳ ゴシック&quot;; FONT-SIZE: 9pt; mso-ascii-theme-font: major-fareast; mso-fareast-theme-font: major-fareast; mso-hansi-theme-font: major-fareast; mso-bidi-font-family: 'Times New Roman'; mso-no-proof: yes" lang="EN-US"><o:p></o:p></span></p></td></tr></tbody></table><p style="MARGIN: 0mm 0mm 0pt" class="MsoNormal"><span style="FONT-FAMILY: &quot;ＭＳ ゴシック&quot;; FONT-SIZE: 9pt; mso-ascii-theme-font: major-fareast; mso-fareast-theme-font: major-fareast; mso-hansi-theme-font: major-fareast" lang="EN-US"><o:p>&nbsp;</o:p></span></p><p style="MARGIN: 0mm 0mm 0pt" class="MsoNormal"><span style="FONT-FAMILY: &quot;ＭＳ ゴシック&quot;; FONT-SIZE: 9pt; mso-ascii-theme-font: major-fareast; mso-fareast-theme-font: major-fareast; mso-hansi-theme-font: major-fareast" lang="EN-US">The program is very simple but there is a pitfall in that program. Network performance counters in .NET is disabled by default and you can not have access to these counters out of the box. To enable network performance counters in .NET, you can tweak the config file of the application as follows: <o:p></o:p></span></p><table style="BORDER-BOTTOM: medium none; BORDER-LEFT: medium none; BORDER-COLLAPSE: collapse; BORDER-TOP: medium none; BORDER-RIGHT: medium none; mso-border-alt: solid #F9B074 1.0pt; mso-border-themecolor: accent6; mso-border-themetint: 191; mso-yfti-tbllook: 1184; mso-padding-alt: 0mm 5.4pt 0mm 5.4pt" class="MsoTableMediumGrid1Accent6" border="1" cellspacing="0" cellpadding="0"><tbody><tr style="mso-yfti-irow: -1; mso-yfti-firstrow: yes; mso-yfti-lastrow: yes"><td style="BORDER-BOTTOM: #f9b074 1pt solid; BORDER-LEFT: #f9b074 1pt solid; PADDING-BOTTOM: 0mm; PADDING-LEFT: 5.4pt; WIDTH: 435.1pt; PADDING-RIGHT: 5.4pt; BACKGROUND: #fde4d0; BORDER-TOP: #f9b074 1pt solid; BORDER-RIGHT: #f9b074 1pt solid; PADDING-TOP: 0mm; mso-border-themecolor: accent6; mso-border-themetint: 191; mso-background-themecolor: accent6; mso-background-themetint: 63" valign="top" width="580"><p style="MARGIN: 0mm 0mm 0pt; mso-yfti-cnfc: 5" class="MsoNormal"><span style="FONT-FAMILY: &quot;ＭＳ ゴシック&quot;; COLOR: black; FONT-SIZE: 9pt; mso-ascii-theme-font: major-fareast; mso-fareast-theme-font: major-fareast; mso-hansi-theme-font: major-fareast; mso-font-kerning: 1.0pt; mso-bidi-font-weight: bold; mso-themecolor: text1" lang="EN-US">&lt;configuration&gt;<o:p></o:p></span></p><p style="MARGIN: 0mm 0mm 0pt; mso-yfti-cnfc: 5" class="MsoNormal"><span style="FONT-FAMILY: &quot;ＭＳ ゴシック&quot;; COLOR: black; FONT-SIZE: 9pt; mso-ascii-theme-font: major-fareast; mso-fareast-theme-font: major-fareast; mso-hansi-theme-font: major-fareast; mso-font-kerning: 1.0pt; mso-bidi-font-weight: bold; mso-themecolor: text1" lang="EN-US"><span style="mso-spacerun: yes">&nbsp; </span>&lt;system.net&gt;<o:p></o:p></span></p><p style="MARGIN: 0mm 0mm 0pt; mso-yfti-cnfc: 5" class="MsoNormal"><span style="FONT-FAMILY: &quot;ＭＳ ゴシック&quot;; COLOR: black; FONT-SIZE: 9pt; mso-ascii-theme-font: major-fareast; mso-fareast-theme-font: major-fareast; mso-hansi-theme-font: major-fareast; mso-font-kerning: 1.0pt; mso-bidi-font-weight: bold; mso-themecolor: text1" lang="EN-US"><span style="mso-spacerun: yes">&nbsp; </span><span style="mso-spacerun: yes">&nbsp;&nbsp;</span>&lt;settings&gt;<o:p></o:p></span></p><p style="MARGIN: 0mm 0mm 0pt; mso-yfti-cnfc: 5" class="MsoNormal"><span style="FONT-FAMILY: &quot;ＭＳ ゴシック&quot;; COLOR: black; FONT-SIZE: 9pt; mso-ascii-theme-font: major-fareast; mso-fareast-theme-font: major-fareast; mso-hansi-theme-font: major-fareast; mso-font-kerning: 1.0pt; mso-bidi-font-weight: bold; mso-themecolor: text1" lang="EN-US"><span style="mso-spacerun: yes">&nbsp; </span><span style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;</span>&lt;performanceCounters enabled=&quot;true&quot;/&gt;<o:p></o:p></span></p><p style="MARGIN: 0mm 0mm 0pt; mso-yfti-cnfc: 5" class="MsoNormal"><span style="FONT-FAMILY: &quot;ＭＳ ゴシック&quot;; COLOR: black; FONT-SIZE: 9pt; mso-ascii-theme-font: major-fareast; mso-fareast-theme-font: major-fareast; mso-hansi-theme-font: major-fareast; mso-font-kerning: 1.0pt; mso-bidi-font-weight: bold; mso-themecolor: text1" lang="EN-US"><span style="mso-spacerun: yes">&nbsp; </span><span style="mso-spacerun: yes">&nbsp;&nbsp;</span>&lt;/settings&gt;<o:p></o:p></span></p><p style="MARGIN: 0mm 0mm 0pt; mso-yfti-cnfc: 5" class="MsoNormal"><span style="FONT-FAMILY: &quot;ＭＳ ゴシック&quot;; COLOR: black; FONT-SIZE: 9pt; mso-ascii-theme-font: major-fareast; mso-fareast-theme-font: major-fareast; mso-hansi-theme-font: major-fareast; mso-font-kerning: 1.0pt; mso-bidi-font-weight: bold; mso-themecolor: text1" lang="EN-US"><span style="mso-spacerun: yes">&nbsp; </span>&lt;/system.net&gt;<o:p></o:p></span></p><p style="MARGIN: 0mm 0mm 0pt; mso-yfti-cnfc: 5" class="MsoNormal"><span style="FONT-FAMILY: &quot;ＭＳ ゴシック&quot;; COLOR: black; FONT-SIZE: 9pt; mso-ascii-theme-font: major-fareast; mso-fareast-theme-font: major-fareast; mso-hansi-theme-font: major-fareast; mso-font-kerning: 1.0pt; mso-bidi-font-weight: bold; mso-themecolor: text1" lang="EN-US">&lt;/configuration&gt;<o:p></o:p></span></p></td></tr></tbody></table><p style="MARGIN: 0mm 0mm 0pt" class="MsoNormal"><span style="FONT-FAMILY: &quot;ＭＳ ゴシック&quot;; FONT-SIZE: 9pt; mso-ascii-theme-font: major-fareast; mso-fareast-theme-font: major-fareast; mso-hansi-theme-font: major-fareast" lang="EN-US"><o:p>&nbsp;</o:p></span></p><p style="MARGIN: 0mm 0mm 0pt" class="MsoNormal"><span style="FONT-FAMILY: &quot;ＭＳ ゴシック&quot;; FONT-SIZE: 9pt; mso-ascii-theme-font: major-fareast; mso-fareast-theme-font: major-fareast; mso-hansi-theme-font: major-fareast" lang="EN-US">Now that the performance counters work well, the program is displaying the bandwidth value successfully.<o:p></o:p></span></p> ]]>
</content:encoded>
<dc:subject>.NET</dc:subject>
<dc:date>2009-04-23T01:49:41+09:00</dc:date>
<dc:creator>Piz&amp;Yumina</dc:creator>
<dc:publisher>FC2-BLOG</dc:publisher>
</item>
</rdf:RDF>