<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	>
<channel>
	<title>Comments on: Sending data over TCP using TcpClient and TcpListener</title>
	<atom:link href="http://devblog.antongochev.net/2008/07/01/sending-data-via-tcp-using-tcpclient-and-tcplistener/feed/" rel="self" type="application/rss+xml" />
	<link>http://devblog.antongochev.net/2008/07/01/sending-data-via-tcp-using-tcpclient-and-tcplistener/</link>
	<description>Programming is an art...</description>
	<pubDate>Thu, 09 Feb 2012 07:34:31 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.5.1</generator>
		<item>
		<title>By: ganton</title>
		<link>http://devblog.antongochev.net/2008/07/01/sending-data-via-tcp-using-tcpclient-and-tcplistener/#comment-229</link>
		<dc:creator>ganton</dc:creator>
		<pubDate>Fri, 06 Mar 2009 14:39:09 +0000</pubDate>
		<guid isPermaLink="false">http://ganton.wordpress.com/?p=29#comment-229</guid>
		<description>Hi ken,

As you may notice the SimpleClient&lt;T&gt; class is a generic class (more about generics you can read at MSDN - http://msdn.microsoft.com/en-us/library/ms379564(VS.80).aspx). 

T is a generic type parameter that is used further by server side and client side compilers. You can think about T like a real type that you can specify at the time of the class use. For instance,

SimpleClient&lt;String&gt; client = new SimpleClient&lt;String&gt;();

In this sample the T will represent type string and the code below

T message = (T)formatter.Deserialize(memStream);

will have the same effect as if you was wrote 

String message = (String)formatter.Deserialize(memStream);.

But using generic to declare the SimpleClient&lt;T&gt; class allows you to reuse the class implementation with different types.

Regards,
Anton</description>
		<content:encoded><![CDATA[<p>Hi ken,</p>
<p>As you may notice the SimpleClient<t> class is a generic class (more about generics you can read at MSDN - <a href="http://msdn.microsoft.com/en-us/library/ms379564" rel="nofollow" onclick="javascript:urchinTracker ('/outbound/comment/msdn.microsoft.com');">http://msdn.microsoft.com/en-us/library/ms379564</a>(VS.80).aspx). </p>
<p>T is a generic type parameter that is used further by server side and client side compilers. You can think about T like a real type that you can specify at the time of the class use. For instance,</p>
<p>SimpleClient<string> client = new SimpleClient</string><string>();</p>
<p>In this sample the T will represent type string and the code below</p>
<p>T message = (T)formatter.Deserialize(memStream);</p>
<p>will have the same effect as if you was wrote </p>
<p>String message = (String)formatter.Deserialize(memStream);.</p>
<p>But using generic to declare the SimpleClient<t> class allows you to reuse the class implementation with different types.</p>
<p>Regards,<br />
Anton</t></string></t></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ken</title>
		<link>http://devblog.antongochev.net/2008/07/01/sending-data-via-tcp-using-tcpclient-and-tcplistener/#comment-228</link>
		<dc:creator>ken</dc:creator>
		<pubDate>Fri, 06 Mar 2009 14:20:03 +0000</pubDate>
		<guid isPermaLink="false">http://ganton.wordpress.com/?p=29#comment-228</guid>
		<description>T message = (T)formatter.Deserialize(memStream);  

what is "T" ???</description>
		<content:encoded><![CDATA[<p>T message = (T)formatter.Deserialize(memStream);  </p>
<p>what is &#8220;T&#8221; ???</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sending Data over UDP using UdpClient : Anton Gochev&#8217;s Weblog</title>
		<link>http://devblog.antongochev.net/2008/07/01/sending-data-via-tcp-using-tcpclient-and-tcplistener/#comment-22</link>
		<dc:creator>Sending Data over UDP using UdpClient : Anton Gochev&#8217;s Weblog</dc:creator>
		<pubDate>Thu, 10 Jul 2008 15:41:39 +0000</pubDate>
		<guid isPermaLink="false">http://ganton.wordpress.com/?p=29#comment-22</guid>
		<description>[...] days ago I wrote a post how to send data over TCP. Today, I&#8217;d like to share a sample how to do it over UDP using [...]</description>
		<content:encoded><![CDATA[<p>[...] days ago I wrote a post how to send data over TCP. Today, I&#8217;d like to share a sample how to do it over UDP using [...]</p>
]]></content:encoded>
	</item>
</channel>
</rss>

