<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	xmlns:series="http://unfoldingneurons.com/"
	>

<channel>
	<title>w3mentor &#187; C# Network Programming</title>
	<atom:link href="http://w3mentor.com/learn/category/asp-dot-net-c-sharp/c-network-programming/feed/" rel="self" type="application/rss+xml" />
	<link>http://w3mentor.com</link>
	<description>Learning web technologies simplified!</description>
	<lastBuildDate>Sat, 28 Jan 2012 20:16:19 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Check if remote files exist using C#</title>
		<link>http://w3mentor.com/learn/asp-dot-net-c-sharp/c-network-programming/check-if-remote-files-exist-using-c/</link>
		<comments>http://w3mentor.com/learn/asp-dot-net-c-sharp/c-network-programming/check-if-remote-files-exist-using-c/#comments</comments>
		<pubDate>Mon, 11 Apr 2011 00:10:52 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[C# Network Programming]]></category>

		<guid isPermaLink="false">http://w3mentor.com/?p=11631</guid>
		<description><![CDATA[public void CheckFile&#40;&#41; &#123; // The two different files as strings. string urlfile1 = &#34;http://remotehost.com/file1.zip&#34;; string urlfile2 = &#34;http://remotehost.com/file2.zip&#34;; &#160; try &#123; // Check to see if urlfile1 exists HttpWebRequest myrequest = &#40;HttpWebRequest&#41;WebRequest.Create&#40;urlfile1&#41;; myrequest.Credentials = System.Net.CredentialCache.DefaultCredentials; HttpWebResponse response = &#40;HttpWebResponse&#41;myrequest.GetResponse&#40;&#41;; &#8230; <a href="http://w3mentor.com/learn/asp-dot-net-c-sharp/c-network-programming/check-if-remote-files-exist-using-c/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
		<wfw:commentRss>http://w3mentor.com/learn/asp-dot-net-c-sharp/c-network-programming/check-if-remote-files-exist-using-c/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Ping a host machine to check uptime in C#</title>
		<link>http://w3mentor.com/learn/asp-dot-net-c-sharp/c-network-programming/ping-a-host-machine-to-check-uptime-in-c/</link>
		<comments>http://w3mentor.com/learn/asp-dot-net-c-sharp/c-network-programming/ping-a-host-machine-to-check-uptime-in-c/#comments</comments>
		<pubDate>Tue, 05 Apr 2011 19:40:52 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[C# Network Programming]]></category>

		<guid isPermaLink="false">http://w3mentor.com/?p=11628</guid>
		<description><![CDATA[using System; using System.Collections.Generic; using System.Linq; using System.Text; &#160; namespace ProgramSendPingtoHost &#123; class ProgramSendPingtoHost &#123; static void Main&#40;string&#91;&#93; args&#41; &#123; try &#123; string hostAddress = &#34;127.0.0.1&#34;; System.Net.NetworkInformation.Ping ping = new System.Net.NetworkInformation.Ping&#40;&#41;; System.Net.NetworkInformation.PingReply reply = ping.Send&#40;hostAddress&#41;; Console.WriteLine&#40;&#34;The Host Address: {0}&#34;, reply.Address&#41;; &#8230; <a href="http://w3mentor.com/learn/asp-dot-net-c-sharp/c-network-programming/ping-a-host-machine-to-check-uptime-in-c/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
		<wfw:commentRss>http://w3mentor.com/learn/asp-dot-net-c-sharp/c-network-programming/ping-a-host-machine-to-check-uptime-in-c/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to Deserialize string returned by webservice to an object in C#(CSharp)</title>
		<link>http://w3mentor.com/learn/asp-dot-net-c-sharp/c-network-programming/how-to-deserialize-string-returned-by-webservice-to-an-object-in-ccsharp/</link>
		<comments>http://w3mentor.com/learn/asp-dot-net-c-sharp/c-network-programming/how-to-deserialize-string-returned-by-webservice-to-an-object-in-ccsharp/#comments</comments>
		<pubDate>Fri, 04 Mar 2011 17:24:55 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[C# Network Programming]]></category>

		<guid isPermaLink="false">http://w3mentor.com/?p=11537</guid>
		<description><![CDATA[public static T Deserialize&#60;T&#62;&#40;string data&#41; &#123; T result; XmlSerializer xSer = new XmlSerializer&#40;typeof&#40;T&#41;&#41;; using &#40;StringReader sr = new StringReader&#40;data&#41;&#41; &#123; result = &#40;T&#41;xSer.Deserialize&#40;sr&#41;; &#125; return result; &#125; Using it: string result = &#34;&#60;?xml 1.0 ... &#60;person&#62;&#60;site&#62;w3mentor.com&#60;/site&#62;&#60;/person&#62;...&#34;; //returned from web service &#8230; <a href="http://w3mentor.com/learn/asp-dot-net-c-sharp/c-network-programming/how-to-deserialize-string-returned-by-webservice-to-an-object-in-ccsharp/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
		<wfw:commentRss>http://w3mentor.com/learn/asp-dot-net-c-sharp/c-network-programming/how-to-deserialize-string-returned-by-webservice-to-an-object-in-ccsharp/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to Serialize any object to string using XmlSerializer for Webservices in C#(CSharp)</title>
		<link>http://w3mentor.com/learn/asp-dot-net-c-sharp/c-network-programming/how-to-serialize-any-object-to-string-using-xmlserializer-for-webservices-in-ccsharp/</link>
		<comments>http://w3mentor.com/learn/asp-dot-net-c-sharp/c-network-programming/how-to-serialize-any-object-to-string-using-xmlserializer-for-webservices-in-ccsharp/#comments</comments>
		<pubDate>Fri, 04 Mar 2011 17:08:34 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[C# Network Programming]]></category>

		<guid isPermaLink="false">http://w3mentor.com/?p=11534</guid>
		<description><![CDATA[public static string Serialize&#60;T&#62;&#40;T dataObject&#41; &#123; StringBuilder sb = new StringBuilder&#40;&#41;; if &#40;dataObject != null&#41; &#123; XmlSerializer xSer = new XmlSerializer&#40;typeof&#40;T&#41;&#41;; using &#40;StringWriter sw = new StringWriter&#40;sb&#41;&#41; &#123; //for empty namespace XmlSerializerNamespaces ns = new XmlSerializerNamespaces&#40;&#41;; ns.Add&#40;&#34;&#34;, &#34;&#34;&#41;; &#160; xSer.Serialize&#40;sw, &#8230; <a href="http://w3mentor.com/learn/asp-dot-net-c-sharp/c-network-programming/how-to-serialize-any-object-to-string-using-xmlserializer-for-webservices-in-ccsharp/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
		<wfw:commentRss>http://w3mentor.com/learn/asp-dot-net-c-sharp/c-network-programming/how-to-serialize-any-object-to-string-using-xmlserializer-for-webservices-in-ccsharp/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Send a webrequest and display webresponse along with headers in C#</title>
		<link>http://w3mentor.com/learn/asp-dot-net-c-sharp/c-network-programming/send-a-webrequest-and-display-webresponse-along-with-headers-in-c/</link>
		<comments>http://w3mentor.com/learn/asp-dot-net-c-sharp/c-network-programming/send-a-webrequest-and-display-webresponse-along-with-headers-in-c/#comments</comments>
		<pubDate>Thu, 08 Jul 2010 20:47:46 +0000</pubDate>
		<dc:creator>madhu</dc:creator>
				<category><![CDATA[C# Network Programming]]></category>
		<category><![CDATA[request]]></category>

		<guid isPermaLink="false">http://w3mentor.com/?p=10331</guid>
		<description><![CDATA[&#60;%@ Import Namespace=&#34;System.IO&#34; %&#62; &#60;%@ Import Namespace=&#34;System.Net&#34; %&#62; &#60;script language=&#34;C#&#34; runat=&#34;server&#34;&#62; void btnSubmit_OnClick&#40;Object source, EventArgs e&#41; &#123; // Create a WebRequest WebRequest wrRequest; wrRequest = WebRequestFactory.Create&#40;txtURL.Text&#41;; &#160; // Get the Response from the Request WebResponse wrResponse = wrRequest.GetResponse&#40;&#41;; // Display &#8230; <a href="http://w3mentor.com/learn/asp-dot-net-c-sharp/c-network-programming/send-a-webrequest-and-display-webresponse-along-with-headers-in-c/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
		<wfw:commentRss>http://w3mentor.com/learn/asp-dot-net-c-sharp/c-network-programming/send-a-webrequest-and-display-webresponse-along-with-headers-in-c/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>DnsPermissionAttribute example in C#</title>
		<link>http://w3mentor.com/learn/asp-dot-net-c-sharp/c-network-programming/dnspermissionattribute-example-in-c/</link>
		<comments>http://w3mentor.com/learn/asp-dot-net-c-sharp/c-network-programming/dnspermissionattribute-example-in-c/#comments</comments>
		<pubDate>Thu, 10 Jun 2010 19:09:10 +0000</pubDate>
		<dc:creator>madhu</dc:creator>
				<category><![CDATA[C# Network Programming]]></category>
		<category><![CDATA[dns]]></category>
		<category><![CDATA[example]]></category>

		<guid isPermaLink="false">http://w3mentor.com/?p=9832</guid>
		<description><![CDATA[using System; using System.Net; using System.Security; using System.Security.Permissions; &#91;DnsPermission&#40;SecurityAction.Demand, Unrestricted = true&#41;&#93; public class DnsTest &#123; public static String GetLocalHostName&#40;&#41; &#123; return Dns.GetHostName&#40;&#41;; &#125; &#125; public class DnsPermissionAttributeSample &#123; public static void Main&#40;&#41; &#123; try &#123; Console.WriteLine&#40;&#34;DnsTest.GetLocalHostName returned: '{0}'&#34;, DnsTest.GetLocalHostName&#40;&#41;&#41;; &#8230; <a href="http://w3mentor.com/learn/asp-dot-net-c-sharp/c-network-programming/dnspermissionattribute-example-in-c/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
		<wfw:commentRss>http://w3mentor.com/learn/asp-dot-net-c-sharp/c-network-programming/dnspermissionattribute-example-in-c/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Get domain information from the Domain Name System in C#</title>
		<link>http://w3mentor.com/learn/asp-dot-net-c-sharp/c-network-programming/get-domain-information-from-the-domain-name-system-in-c/</link>
		<comments>http://w3mentor.com/learn/asp-dot-net-c-sharp/c-network-programming/get-domain-information-from-the-domain-name-system-in-c/#comments</comments>
		<pubDate>Thu, 10 Jun 2010 19:05:57 +0000</pubDate>
		<dc:creator>madhu</dc:creator>
				<category><![CDATA[C# Network Programming]]></category>
		<category><![CDATA[dns]]></category>
		<category><![CDATA[domain]]></category>

		<guid isPermaLink="false">http://w3mentor.com/?p=9830</guid>
		<description><![CDATA[We can use the Dns class creates and sends queries to obtain information about a host server from the Internet Domain Name System. using System; using System.Net; public class DnsSample &#123; private static bool bDone = false; public static void &#8230; <a href="http://w3mentor.com/learn/asp-dot-net-c-sharp/c-network-programming/get-domain-information-from-the-domain-name-system-in-c/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
		<wfw:commentRss>http://w3mentor.com/learn/asp-dot-net-c-sharp/c-network-programming/get-domain-information-from-the-domain-name-system-in-c/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Caching credentials using System.Net CredentialCache in C#</title>
		<link>http://w3mentor.com/learn/asp-dot-net-c-sharp/c-network-programming/caching-credentials-using-system-net-credentialcache-in-c/</link>
		<comments>http://w3mentor.com/learn/asp-dot-net-c-sharp/c-network-programming/caching-credentials-using-system-net-credentialcache-in-c/#comments</comments>
		<pubDate>Thu, 10 Jun 2010 18:59:52 +0000</pubDate>
		<dc:creator>madhu</dc:creator>
				<category><![CDATA[C# Network Programming]]></category>
		<category><![CDATA[cache]]></category>

		<guid isPermaLink="false">http://w3mentor.com/?p=9828</guid>
		<description><![CDATA[The System.Net CredentialCache class provides storage for multiple credentials. Applications that need to access multiple resources can store the credentials for those resources in a CredentialCache instance that then provides the proper set of credentials for a given resource when &#8230; <a href="http://w3mentor.com/learn/asp-dot-net-c-sharp/c-network-programming/caching-credentials-using-system-net-credentialcache-in-c/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
		<wfw:commentRss>http://w3mentor.com/learn/asp-dot-net-c-sharp/c-network-programming/caching-credentials-using-system-net-credentialcache-in-c/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Authorization class example in C#</title>
		<link>http://w3mentor.com/learn/asp-dot-net-c-sharp/c-network-programming/authorization-class-example-in-c/</link>
		<comments>http://w3mentor.com/learn/asp-dot-net-c-sharp/c-network-programming/authorization-class-example-in-c/#comments</comments>
		<pubDate>Thu, 10 Jun 2010 18:56:44 +0000</pubDate>
		<dc:creator>madhu</dc:creator>
				<category><![CDATA[C# Network Programming]]></category>
		<category><![CDATA[authorization]]></category>
		<category><![CDATA[class]]></category>
		<category><![CDATA[example]]></category>

		<guid isPermaLink="false">http://w3mentor.com/?p=9826</guid>
		<description><![CDATA[The Authorization class contains authentication information returned by an IAuthenticationModule module. Authorization instances are used to pass server challenge responses and client preauthentication information. using System; using System.Net; using System.Text; public class AuthorizationSample &#123; public static void Main&#40;&#41; &#123; String &#8230; <a href="http://w3mentor.com/learn/asp-dot-net-c-sharp/c-network-programming/authorization-class-example-in-c/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
		<wfw:commentRss>http://w3mentor.com/learn/asp-dot-net-c-sharp/c-network-programming/authorization-class-example-in-c/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>AuthenticationManager class example in C#</title>
		<link>http://w3mentor.com/learn/asp-dot-net-c-sharp/c-network-programming/authenticationmanager-class-example-in-c/</link>
		<comments>http://w3mentor.com/learn/asp-dot-net-c-sharp/c-network-programming/authenticationmanager-class-example-in-c/#comments</comments>
		<pubDate>Thu, 10 Jun 2010 18:53:13 +0000</pubDate>
		<dc:creator>madhu</dc:creator>
				<category><![CDATA[C# Network Programming]]></category>
		<category><![CDATA[authentication]]></category>
		<category><![CDATA[class]]></category>
		<category><![CDATA[example]]></category>

		<guid isPermaLink="false">http://w3mentor.com/?p=9824</guid>
		<description><![CDATA[The AuthenticationManager class (System.Net) manages the authentication modules called during the client authentication process. using System; using System.Net; using System.Collections; public class AuthenticationManagerSample &#123; public class MyModule:IAuthenticationModule &#123; public MyModule&#40;&#41; &#123;&#125; public String AuthenticationType &#123; get &#123; return &#34;TEST&#34;; &#125; &#8230; <a href="http://w3mentor.com/learn/asp-dot-net-c-sharp/c-network-programming/authenticationmanager-class-example-in-c/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
		<wfw:commentRss>http://w3mentor.com/learn/asp-dot-net-c-sharp/c-network-programming/authenticationmanager-class-example-in-c/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to specify the type of socket in C#</title>
		<link>http://w3mentor.com/learn/asp-dot-net-c-sharp/c-network-programming/how-to-specifies-the-type-of-socket-in-c/</link>
		<comments>http://w3mentor.com/learn/asp-dot-net-c-sharp/c-network-programming/how-to-specifies-the-type-of-socket-in-c/#comments</comments>
		<pubDate>Thu, 10 Jun 2010 18:48:56 +0000</pubDate>
		<dc:creator>madhu</dc:creator>
				<category><![CDATA[C# Network Programming]]></category>
		<category><![CDATA[example]]></category>
		<category><![CDATA[socket]]></category>

		<guid isPermaLink="false">http://w3mentor.com/?p=9821</guid>
		<description><![CDATA[The System.Net.Sockets SocketType Enumeration can be used to specify the type of socket in C#. It specifies the type of socket an instance of the Socket class represents. A SocketType member is required when constructing instances of the Socket class &#8230; <a href="http://w3mentor.com/learn/asp-dot-net-c-sharp/c-network-programming/how-to-specifies-the-type-of-socket-in-c/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
		<wfw:commentRss>http://w3mentor.com/learn/asp-dot-net-c-sharp/c-network-programming/how-to-specifies-the-type-of-socket-in-c/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Terminate the ability to send or receive data using the Socket.Shutdown method in C#</title>
		<link>http://w3mentor.com/learn/asp-dot-net-c-sharp/c-network-programming/terminate-the-ability-to-send-or-receive-data-using-the-socket-shutdown-method-in-c/</link>
		<comments>http://w3mentor.com/learn/asp-dot-net-c-sharp/c-network-programming/terminate-the-ability-to-send-or-receive-data-using-the-socket-shutdown-method-in-c/#comments</comments>
		<pubDate>Wed, 09 Jun 2010 21:34:05 +0000</pubDate>
		<dc:creator>madhu</dc:creator>
				<category><![CDATA[C# Network Programming]]></category>
		<category><![CDATA[data]]></category>
		<category><![CDATA[socket]]></category>

		<guid isPermaLink="false">http://w3mentor.com/?p=9819</guid>
		<description><![CDATA[using System; using System.Net; using System.Net.Sockets; using System.Text; public class SocketShutdownSample &#123; public static void Main&#40;&#41; &#123; IPAddress ip = IPAddress.Parse&#40;&#34;127.0.0.1&#34;&#41;; string targ = &#34;/default.htm&#34;; Socket skt = new Socket&#40;AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.Tcp&#41;; try &#123; IPEndPoint ep = new IPEndPoint&#40;ip, 80&#41;; &#8230; <a href="http://w3mentor.com/learn/asp-dot-net-c-sharp/c-network-programming/terminate-the-ability-to-send-or-receive-data-using-the-socket-shutdown-method-in-c/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
		<wfw:commentRss>http://w3mentor.com/learn/asp-dot-net-c-sharp/c-network-programming/terminate-the-ability-to-send-or-receive-data-using-the-socket-shutdown-method-in-c/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to secure socket connections in C#</title>
		<link>http://w3mentor.com/learn/asp-dot-net-c-sharp/c-network-programming/how-to-secure-socket-connections-in-c/</link>
		<comments>http://w3mentor.com/learn/asp-dot-net-c-sharp/c-network-programming/how-to-secure-socket-connections-in-c/#comments</comments>
		<pubDate>Wed, 09 Jun 2010 21:30:16 +0000</pubDate>
		<dc:creator>madhu</dc:creator>
				<category><![CDATA[C# Network Programming]]></category>
		<category><![CDATA[security]]></category>
		<category><![CDATA[socket]]></category>

		<guid isPermaLink="false">http://w3mentor.com/?p=9817</guid>
		<description><![CDATA[We can use the System.Net SocketPermission to secure socket connections in C#. SocketPermission instances control permission to accept connections or initiate socket connections. A socket permission can secure access based on host name or IP address, a port number, and &#8230; <a href="http://w3mentor.com/learn/asp-dot-net-c-sharp/c-network-programming/how-to-secure-socket-connections-in-c/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
		<wfw:commentRss>http://w3mentor.com/learn/asp-dot-net-c-sharp/c-network-programming/how-to-secure-socket-connections-in-c/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Socket options in C#</title>
		<link>http://w3mentor.com/learn/asp-dot-net-c-sharp/c-network-programming/socket-options-in-c/</link>
		<comments>http://w3mentor.com/learn/asp-dot-net-c-sharp/c-network-programming/socket-options-in-c/#comments</comments>
		<pubDate>Wed, 09 Jun 2010 21:24:27 +0000</pubDate>
		<dc:creator>madhu</dc:creator>
				<category><![CDATA[C# Network Programming]]></category>
		<category><![CDATA[example]]></category>
		<category><![CDATA[socket]]></category>

		<guid isPermaLink="false">http://w3mentor.com/?p=9815</guid>
		<description><![CDATA[Socket options determine the behavior of an instance of the Socket class. Some socket options apply only to specific protocols while others apply to all types. Members of the SocketOptionLevel enumeration specify which protocol applies to a specific socket option. &#8230; <a href="http://w3mentor.com/learn/asp-dot-net-c-sharp/c-network-programming/socket-options-in-c/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
		<wfw:commentRss>http://w3mentor.com/learn/asp-dot-net-c-sharp/c-network-programming/socket-options-in-c/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>System.Net.Sockets SocketOptionLevel example</title>
		<link>http://w3mentor.com/learn/asp-dot-net-c-sharp/c-network-programming/system-net-sockets-socketoptionlevel-example/</link>
		<comments>http://w3mentor.com/learn/asp-dot-net-c-sharp/c-network-programming/system-net-sockets-socketoptionlevel-example/#comments</comments>
		<pubDate>Wed, 09 Jun 2010 21:22:55 +0000</pubDate>
		<dc:creator>madhu</dc:creator>
				<category><![CDATA[C# Network Programming]]></category>
		<category><![CDATA[example]]></category>
		<category><![CDATA[socket]]></category>

		<guid isPermaLink="false">http://w3mentor.com/?p=9813</guid>
		<description><![CDATA[using System; using System.Net; using System.Net.Sockets; using System.Text; public class SocketOptionLevelSample &#123; public static void Main&#40;&#41; &#123; IPAddress ip = IPAddress.Parse&#40;&#34;127.0.0.1&#34;&#41;; IPEndPoint ep = new IPEndPoint&#40;ip, 9999&#41;; Socket skt = new Socket&#40;AddressFamily.InterNetwork, SocketType.Dgram, ProtocolType.Udp&#41;; skt.SetSocketOption&#40;SocketOptionLevel.Socket, SocketOptionName.SendTimeout, 5000&#41;; try &#123; Byte&#91;&#93; &#8230; <a href="http://w3mentor.com/learn/asp-dot-net-c-sharp/c-network-programming/system-net-sockets-socketoptionlevel-example/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
		<wfw:commentRss>http://w3mentor.com/learn/asp-dot-net-c-sharp/c-network-programming/system-net-sockets-socketoptionlevel-example/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to control the transfer behavior when sending and receiving data on a Socket instance in C#</title>
		<link>http://w3mentor.com/learn/asp-dot-net-c-sharp/c-network-programming/how-to-control-the-transfer-behavior-when-sending-and-receiving-data-on-a-socket-instance-in-c/</link>
		<comments>http://w3mentor.com/learn/asp-dot-net-c-sharp/c-network-programming/how-to-control-the-transfer-behavior-when-sending-and-receiving-data-on-a-socket-instance-in-c/#comments</comments>
		<pubDate>Wed, 09 Jun 2010 21:21:29 +0000</pubDate>
		<dc:creator>madhu</dc:creator>
				<category><![CDATA[C# Network Programming]]></category>
		<category><![CDATA[data]]></category>
		<category><![CDATA[socket]]></category>

		<guid isPermaLink="false">http://w3mentor.com/?p=9811</guid>
		<description><![CDATA[We can use the System.Net.Sockets SocketFlags Enumeration to control the transfer behavior when sending and receiving data on a Socket instance in C#. using System; using System.Net; using System.Net.Sockets; using System.Text; public class SocketFlagsSample &#123; public static void Main&#40;&#41; &#123; &#8230; <a href="http://w3mentor.com/learn/asp-dot-net-c-sharp/c-network-programming/how-to-control-the-transfer-behavior-when-sending-and-receiving-data-on-a-socket-instance-in-c/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
		<wfw:commentRss>http://w3mentor.com/learn/asp-dot-net-c-sharp/c-network-programming/how-to-control-the-transfer-behavior-when-sending-and-receiving-data-on-a-socket-instance-in-c/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Catch socket errors in C#</title>
		<link>http://w3mentor.com/learn/asp-dot-net-c-sharp/c-network-programming/catch-socket-errors-in-c/</link>
		<comments>http://w3mentor.com/learn/asp-dot-net-c-sharp/c-network-programming/catch-socket-errors-in-c/#comments</comments>
		<pubDate>Wed, 09 Jun 2010 21:18:23 +0000</pubDate>
		<dc:creator>madhu</dc:creator>
				<category><![CDATA[C# Network Programming]]></category>
		<category><![CDATA[error]]></category>
		<category><![CDATA[socket]]></category>

		<guid isPermaLink="false">http://w3mentor.com/?p=9809</guid>
		<description><![CDATA[The System.Net.Sockets SocketException represents the error that occurs when a socket error occurs. A SocketException is thrown by the Socket and System.Net.Dns classes when a network error occurs. using System; using System.Net; using System.Net.Sockets; using System.Text; public class SocketExceptionSample &#123; &#8230; <a href="http://w3mentor.com/learn/asp-dot-net-c-sharp/c-network-programming/catch-socket-errors-in-c/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
		<wfw:commentRss>http://w3mentor.com/learn/asp-dot-net-c-sharp/c-network-programming/catch-socket-errors-in-c/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Get socket address in C#</title>
		<link>http://w3mentor.com/learn/asp-dot-net-c-sharp/c-network-programming/get-socket-address-in-c/</link>
		<comments>http://w3mentor.com/learn/asp-dot-net-c-sharp/c-network-programming/get-socket-address-in-c/#comments</comments>
		<pubDate>Wed, 09 Jun 2010 21:15:17 +0000</pubDate>
		<dc:creator>madhu</dc:creator>
				<category><![CDATA[C# Network Programming]]></category>
		<category><![CDATA[address]]></category>
		<category><![CDATA[enumeration]]></category>
		<category><![CDATA[socket]]></category>

		<guid isPermaLink="false">http://w3mentor.com/?p=9807</guid>
		<description><![CDATA[The System.Net SocketAddress provides a socket address stored in a System.Byte array. A socket address consists of a member of the System.Net.Sockets.AddressFamily enumeration stored in the first two bytes of the array. using System; using System.Net; using System.Net.Sockets; public class &#8230; <a href="http://w3mentor.com/learn/asp-dot-net-c-sharp/c-network-programming/get-socket-address-in-c/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
		<wfw:commentRss>http://w3mentor.com/learn/asp-dot-net-c-sharp/c-network-programming/get-socket-address-in-c/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Socket communication mechanism on the client side in C#</title>
		<link>http://w3mentor.com/learn/asp-dot-net-c-sharp/c-network-programming/socket-communication-mechanism-on-the-client-side-in-c/</link>
		<comments>http://w3mentor.com/learn/asp-dot-net-c-sharp/c-network-programming/socket-communication-mechanism-on-the-client-side-in-c/#comments</comments>
		<pubDate>Wed, 09 Jun 2010 17:00:26 +0000</pubDate>
		<dc:creator>madhu</dc:creator>
				<category><![CDATA[C# Network Programming]]></category>
		<category><![CDATA[clientside]]></category>
		<category><![CDATA[socket]]></category>

		<guid isPermaLink="false">http://w3mentor.com/?p=9805</guid>
		<description><![CDATA[1. Create the client socket. 2. Connect to the server socket using the Connect method. This sets both the local and remote endpoints for the client socket. 3. Use the Send and Receive methods to communicate with the server socket. &#8230; <a href="http://w3mentor.com/learn/asp-dot-net-c-sharp/c-network-programming/socket-communication-mechanism-on-the-client-side-in-c/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
		<wfw:commentRss>http://w3mentor.com/learn/asp-dot-net-c-sharp/c-network-programming/socket-communication-mechanism-on-the-client-side-in-c/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Socket communication mechanism on the server side in C#</title>
		<link>http://w3mentor.com/learn/asp-dot-net-c-sharp/c-network-programming/socket-communication-mechanism-on-the-server-side-in-c/</link>
		<comments>http://w3mentor.com/learn/asp-dot-net-c-sharp/c-network-programming/socket-communication-mechanism-on-the-server-side-in-c/#comments</comments>
		<pubDate>Wed, 09 Jun 2010 16:59:48 +0000</pubDate>
		<dc:creator>madhu</dc:creator>
				<category><![CDATA[C# Network Programming]]></category>
		<category><![CDATA[server]]></category>
		<category><![CDATA[socket]]></category>

		<guid isPermaLink="false">http://w3mentor.com/?p=9803</guid>
		<description><![CDATA[1. Create a socket to listen for incoming connection requests. 2. Set the local endpoint using the Bind method. 3. Put the socket in the listening state using the Listen method. 4. At this point incoming connection requests from a &#8230; <a href="http://w3mentor.com/learn/asp-dot-net-c-sharp/c-network-programming/socket-communication-mechanism-on-the-server-side-in-c/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
		<wfw:commentRss>http://w3mentor.com/learn/asp-dot-net-c-sharp/c-network-programming/socket-communication-mechanism-on-the-server-side-in-c/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to specify the mode used by the Poll method of the Socket class in C#</title>
		<link>http://w3mentor.com/learn/asp-dot-net-c-sharp/c-network-programming/how-to-specify-the-mode-used-by-the-poll-method-of-the-socket-class-in-c/</link>
		<comments>http://w3mentor.com/learn/asp-dot-net-c-sharp/c-network-programming/how-to-specify-the-mode-used-by-the-poll-method-of-the-socket-class-in-c/#comments</comments>
		<pubDate>Wed, 09 Jun 2010 16:57:31 +0000</pubDate>
		<dc:creator>madhu</dc:creator>
				<category><![CDATA[C# Network Programming]]></category>
		<category><![CDATA[methods]]></category>
		<category><![CDATA[poll]]></category>
		<category><![CDATA[socket]]></category>

		<guid isPermaLink="false">http://w3mentor.com/?p=9801</guid>
		<description><![CDATA[We can use the System.Net.Sockets SelectMode Enum to specify the mode used by the Poll method of the Socket class in C#. A SelectMode member specifies the status information (read, write, or error) to retrieve from the current Socket instance. &#8230; <a href="http://w3mentor.com/learn/asp-dot-net-c-sharp/c-network-programming/how-to-specify-the-mode-used-by-the-poll-method-of-the-socket-class-in-c/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
		<wfw:commentRss>http://w3mentor.com/learn/asp-dot-net-c-sharp/c-network-programming/how-to-specify-the-mode-used-by-the-poll-method-of-the-socket-class-in-c/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to specify the protocol to be used by the Socket class in C#</title>
		<link>http://w3mentor.com/learn/asp-dot-net-c-sharp/c-network-programming/how-to-specify-the-protocol-to-be-used-by-the-socket-class-in-c/</link>
		<comments>http://w3mentor.com/learn/asp-dot-net-c-sharp/c-network-programming/how-to-specify-the-protocol-to-be-used-by-the-socket-class-in-c/#comments</comments>
		<pubDate>Wed, 09 Jun 2010 16:54:23 +0000</pubDate>
		<dc:creator>madhu</dc:creator>
				<category><![CDATA[C# Network Programming]]></category>
		<category><![CDATA[class]]></category>
		<category><![CDATA[protocol]]></category>
		<category><![CDATA[socket]]></category>

		<guid isPermaLink="false">http://w3mentor.com/?p=9799</guid>
		<description><![CDATA[The System.Net.Sockets ProtocolType Enum class can be used to specify the protocol to be used by the Socket class in C#. The ProtocolType enumeration is used with the Socket class. This enumeration specifies the protocols that a socket instance can &#8230; <a href="http://w3mentor.com/learn/asp-dot-net-c-sharp/c-network-programming/how-to-specify-the-protocol-to-be-used-by-the-socket-class-in-c/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
		<wfw:commentRss>http://w3mentor.com/learn/asp-dot-net-c-sharp/c-network-programming/how-to-specify-the-protocol-to-be-used-by-the-socket-class-in-c/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>NetworkStream in C# Socket</title>
		<link>http://w3mentor.com/learn/asp-dot-net-c-sharp/c-network-programming/networkstream-in-c-socket/</link>
		<comments>http://w3mentor.com/learn/asp-dot-net-c-sharp/c-network-programming/networkstream-in-c-socket/#comments</comments>
		<pubDate>Wed, 09 Jun 2010 16:50:36 +0000</pubDate>
		<dc:creator>madhu</dc:creator>
				<category><![CDATA[C# Network Programming]]></category>
		<category><![CDATA[filestream]]></category>
		<category><![CDATA[socket]]></category>

		<guid isPermaLink="false">http://w3mentor.com/?p=9795</guid>
		<description><![CDATA[The NetworkStream class implements the standard stream mechanism to read and write network data through an instance of the Socket class. The NetworkStream class allows network data to be read and written in the same manner as the System.IO.Stream class. &#8230; <a href="http://w3mentor.com/learn/asp-dot-net-c-sharp/c-network-programming/networkstream-in-c-socket/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
		<wfw:commentRss>http://w3mentor.com/learn/asp-dot-net-c-sharp/c-network-programming/networkstream-in-c-socket/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>MulticastOption in C# socket</title>
		<link>http://w3mentor.com/learn/asp-dot-net-c-sharp/c-network-programming/multicastoption-in-c-socket/</link>
		<comments>http://w3mentor.com/learn/asp-dot-net-c-sharp/c-network-programming/multicastoption-in-c-socket/#comments</comments>
		<pubDate>Wed, 09 Jun 2010 16:48:29 +0000</pubDate>
		<dc:creator>madhu</dc:creator>
				<category><![CDATA[C# Network Programming]]></category>
		<category><![CDATA[multi]]></category>
		<category><![CDATA[socket]]></category>

		<guid isPermaLink="false">http://w3mentor.com/?p=9793</guid>
		<description><![CDATA[The MulticastOption contains Internet Protocol (IP) addresses used when joining or leaving an IP multicast group. The hosts listening to a specific IP multicast address (the group address) are called a multicast group. Each member of the group receives any &#8230; <a href="http://w3mentor.com/learn/asp-dot-net-c-sharp/c-network-programming/multicastoption-in-c-socket/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
		<wfw:commentRss>http://w3mentor.com/learn/asp-dot-net-c-sharp/c-network-programming/multicastoption-in-c-socket/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>LingerOption in C# sockets</title>
		<link>http://w3mentor.com/learn/asp-dot-net-c-sharp/c-network-programming/lingeroption-in-c-sockets-2/</link>
		<comments>http://w3mentor.com/learn/asp-dot-net-c-sharp/c-network-programming/lingeroption-in-c-sockets-2/#comments</comments>
		<pubDate>Wed, 09 Jun 2010 16:45:33 +0000</pubDate>
		<dc:creator>madhu</dc:creator>
				<category><![CDATA[C# Network Programming]]></category>
		<category><![CDATA[example]]></category>
		<category><![CDATA[socket]]></category>

		<guid isPermaLink="false">http://w3mentor.com/?p=9791</guid>
		<description><![CDATA[The LingerOption maintains information that specifies how a Socket instance with pending data behaves when the Close method of the socket is called. When the Enabled property is true, any queued data continues to be sent until time equal to &#8230; <a href="http://w3mentor.com/learn/asp-dot-net-c-sharp/c-network-programming/lingeroption-in-c-sockets-2/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
		<wfw:commentRss>http://w3mentor.com/learn/asp-dot-net-c-sharp/c-network-programming/lingeroption-in-c-sockets-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>AddressFamily in C# Sockets</title>
		<link>http://w3mentor.com/learn/asp-dot-net-c-sharp/c-network-programming/addressfamily-in-c-sockets/</link>
		<comments>http://w3mentor.com/learn/asp-dot-net-c-sharp/c-network-programming/addressfamily-in-c-sockets/#comments</comments>
		<pubDate>Wed, 09 Jun 2010 16:41:54 +0000</pubDate>
		<dc:creator>madhu</dc:creator>
				<category><![CDATA[C# Network Programming]]></category>
		<category><![CDATA[socket]]></category>

		<guid isPermaLink="false">http://w3mentor.com/?p=9788</guid>
		<description><![CDATA[The AddressFamily specifies the addressing schemes used by the Socket class in C#. using System; using System.Net; using System.Net.Sockets; using System.Text; public class AddressFamilySample &#123; public static void Main&#40;&#41; &#123; IPAddress ip = IPAddress.Parse&#40;&#34;127.0.0.1&#34;&#41;; Socket skt = new Socket&#40;AddressFamily.InterNetwork, SocketType.Dgram, &#8230; <a href="http://w3mentor.com/learn/asp-dot-net-c-sharp/c-network-programming/addressfamily-in-c-sockets/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
		<wfw:commentRss>http://w3mentor.com/learn/asp-dot-net-c-sharp/c-network-programming/addressfamily-in-c-sockets/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/


Served from: w3mentor.com @ 2012-02-07 23:38:20 -->
