<?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"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: A simple C++/SDL_net chat server &amp; client rewritten</title>
	<atom:link href="http://r3dux.org/2011/11/a-simple-csdl_net-chat-server-client-rewritten/feed/" rel="self" type="application/rss+xml" />
	<link>http://r3dux.org/2011/11/a-simple-csdl_net-chat-server-client-rewritten/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=a-simple-csdl_net-chat-server-client-rewritten</link>
	<description>A number-pimping side project from the valleys in *NEW* upside-down flavour.</description>
	<lastBuildDate>Mon, 13 May 2013 03:00:11 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=</generator>
	<item>
		<title>By: Howard</title>
		<link>http://r3dux.org/2011/11/a-simple-csdl_net-chat-server-client-rewritten/#comment-7905</link>
		<dc:creator>Howard</dc:creator>
		<pubDate>Fri, 27 Jul 2012 18:57:52 +0000</pubDate>
		<guid isPermaLink="false">http://r3dux.org/?p=5772#comment-7905</guid>
		<description><![CDATA[Came across your revamped work while looking for serverless, P2P sample code - if you ever get motivated, or have to teach on this subject again, that would be a nice addition. - thank you for publishing your code. - Howard in Florida]]></description>
		<content:encoded><![CDATA[<p>Came across your revamped work while looking for serverless, P2P sample code &#8211; if you ever get motivated, or have to teach on this subject again, that would be a nice addition. &#8211; thank you for publishing your code. &#8211; Howard in Florida</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: r3dux</title>
		<link>http://r3dux.org/2011/11/a-simple-csdl_net-chat-server-client-rewritten/#comment-7790</link>
		<dc:creator>r3dux</dc:creator>
		<pubDate>Sat, 26 May 2012 22:43:03 +0000</pubDate>
		<guid isPermaLink="false">http://r3dux.org/?p=5772#comment-7790</guid>
		<description><![CDATA[You need the server to be running before you can connect with a client, so I assume you mean you&#039;re getting the error &quot;cannot bind to local port&quot; when running the server.

This could possibly be because something else is already running on port 1234, so try changing the port to something else, like &lt;strong&gt;2012&lt;/strong&gt;. For example:

&lt;b&gt;Server code change&lt;/b&gt;:
&lt;pre lang=&quot;cpp&quot;&gt;
ss = new ServerSocket(2012, 512, 3);
&lt;/pre&gt;

&lt;b&gt;Client code change&lt;/b&gt;:
&lt;pre lang=&quot;cpp&quot;&gt;
cs = new ClientSocket(&quot;127.0.0.1&quot;, 2012, 512);
&lt;/pre&gt;


Then, when you run the client (which you&#039;ll need to do &quot;standalone&quot; if you&#039;ve just run the server through Visual Studio [i.e. you&#039;ll need to launch the client exe from windows explorer or the command line]) make sure you have the &lt;strong&gt;SDL.dll&lt;/strong&gt; and &lt;strong&gt;SDL_net.dll&lt;/strong&gt; files copied into the same location as the client executable, as it says in the &lt;em&gt;Notes on building for WIndows&lt;/em&gt; section.

Also, it just occurs to me that your firewall &lt;em&gt;could&lt;/em&gt;, potentially, be blocking applications from opening ports, so you might want to try temporarily disabling it and trying again if the above doesn&#039;t solve your problem.

Hope this helps.]]></description>
		<content:encoded><![CDATA[<p>You need the server to be running before you can connect with a client, so I assume you mean you&#8217;re getting the error &#8220;cannot bind to local port&#8221; when running the server.</p>
<p>This could possibly be because something else is already running on port 1234, so try changing the port to something else, like <strong>2012</strong>. For example:</p>
<p><b>Server code change</b>:</p>

<div class="wp_syntax"><table><tr><td class="code"><pre class="cpp" style="font-family:monospace;">ss <span style="color: #000080;">=</span> <span style="color: #0000dd;">new</span> ServerSocket<span style="color: #008000;">&#40;</span><span style="color: #0000dd;">2012</span>, <span style="color: #0000dd;">512</span>, <span style="color: #0000dd;">3</span><span style="color: #008000;">&#41;</span><span style="color: #008080;">;</span></pre></td></tr></table></div>

<p><b>Client code change</b>:</p>

<div class="wp_syntax"><table><tr><td class="code"><pre class="cpp" style="font-family:monospace;">cs <span style="color: #000080;">=</span> <span style="color: #0000dd;">new</span> ClientSocket<span style="color: #008000;">&#40;</span><span style="color: #FF0000;">&quot;127.0.0.1&quot;</span>, <span style="color: #0000dd;">2012</span>, <span style="color: #0000dd;">512</span><span style="color: #008000;">&#41;</span><span style="color: #008080;">;</span></pre></td></tr></table></div>

<p>Then, when you run the client (which you&#8217;ll need to do &#8220;standalone&#8221; if you&#8217;ve just run the server through Visual Studio [i.e. you'll need to launch the client exe from windows explorer or the command line]) make sure you have the <strong>SDL.dll</strong> and <strong>SDL_net.dll</strong> files copied into the same location as the client executable, as it says in the <em>Notes on building for WIndows</em> section.</p>
<p>Also, it just occurs to me that your firewall <em>could</em>, potentially, be blocking applications from opening ports, so you might want to try temporarily disabling it and trying again if the above doesn&#8217;t solve your problem.</p>
<p>Hope this helps.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: nate</title>
		<link>http://r3dux.org/2011/11/a-simple-csdl_net-chat-server-client-rewritten/#comment-7789</link>
		<dc:creator>nate</dc:creator>
		<pubDate>Sat, 26 May 2012 14:00:14 +0000</pubDate>
		<guid isPermaLink="false">http://r3dux.org/?p=5772#comment-7789</guid>
		<description><![CDATA[error is : cannot bind to local port...please help]]></description>
		<content:encoded><![CDATA[<p>error is : cannot bind to local port&#8230;please help</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: alexoffspring</title>
		<link>http://r3dux.org/2011/11/a-simple-csdl_net-chat-server-client-rewritten/#comment-7696</link>
		<dc:creator>alexoffspring</dc:creator>
		<pubDate>Tue, 24 Apr 2012 11:48:48 +0000</pubDate>
		<guid isPermaLink="false">http://r3dux.org/?p=5772#comment-7696</guid>
		<description><![CDATA[Tnx for the answer. Or probably storing temporarily the input using a simple scanf can be a nice solution.

I was wondering if SDL can be used to create a socket to a client passing through a proxy. I did not find any documentation about it yet.]]></description>
		<content:encoded><![CDATA[<p>Tnx for the answer. Or probably storing temporarily the input using a simple scanf can be a nice solution.</p>
<p>I was wondering if SDL can be used to create a socket to a client passing through a proxy. I did not find any documentation about it yet.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: r3dux</title>
		<link>http://r3dux.org/2011/11/a-simple-csdl_net-chat-server-client-rewritten/#comment-7687</link>
		<dc:creator>r3dux</dc:creator>
		<pubDate>Sun, 22 Apr 2012 05:15:06 +0000</pubDate>
		<guid isPermaLink="false">http://r3dux.org/?p=5772#comment-7687</guid>
		<description><![CDATA[Hmm, you&#039;ll prolly need to look for the ASCII code for backspace (8) in the getUserInput function and remove the last character from the message when you detect it.

There&#039;s also the issue of moving the text carat back one character, which you could get around by re-displaying the prompt each time, but that&#039;s not very elegant. It&#039;s all do-able, it just might be a little fiddly to nail it with a nice cross-platform solution.]]></description>
		<content:encoded><![CDATA[<p>Hmm, you&#8217;ll prolly need to look for the ASCII code for backspace (8) in the getUserInput function and remove the last character from the message when you detect it.</p>
<p>There&#8217;s also the issue of moving the text carat back one character, which you could get around by re-displaying the prompt each time, but that&#8217;s not very elegant. It&#8217;s all do-able, it just might be a little fiddly to nail it with a nice cross-platform solution.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: alexoffspring</title>
		<link>http://r3dux.org/2011/11/a-simple-csdl_net-chat-server-client-rewritten/#comment-7683</link>
		<dc:creator>alexoffspring</dc:creator>
		<pubDate>Fri, 20 Apr 2012 15:27:49 +0000</pubDate>
		<guid isPermaLink="false">http://r3dux.org/?p=5772#comment-7683</guid>
		<description><![CDATA[Nice job. 
I downloaded it and i&#039;m actually enjoying &#039;customizing&#039; it :)

I have some problems when using BACKSPACE. Any idea for solving it?

Tnx 
alex]]></description>
		<content:encoded><![CDATA[<p>Nice job.<br />
I downloaded it and i&#8217;m actually enjoying &#8216;customizing&#8217; it <img src='http://r3dux.org/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>I have some problems when using BACKSPACE. Any idea for solving it?</p>
<p>Tnx<br />
alex</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: r3dux</title>
		<link>http://r3dux.org/2011/11/a-simple-csdl_net-chat-server-client-rewritten/#comment-7508</link>
		<dc:creator>r3dux</dc:creator>
		<pubDate>Mon, 27 Feb 2012 10:22:57 +0000</pubDate>
		<guid isPermaLink="false">http://r3dux.org/?p=5772#comment-7508</guid>
		<description><![CDATA[Oops! My bad - fixed!

Glad you like =D]]></description>
		<content:encoded><![CDATA[<p>Oops! My bad &#8211; fixed!</p>
<p>Glad you like =D</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: FOX51</title>
		<link>http://r3dux.org/2011/11/a-simple-csdl_net-chat-server-client-rewritten/#comment-7505</link>
		<dc:creator>FOX51</dc:creator>
		<pubDate>Mon, 27 Feb 2012 02:12:28 +0000</pubDate>
		<guid isPermaLink="false">http://r3dux.org/?p=5772#comment-7505</guid>
		<description><![CDATA[Nice work man, really good job, only one thing, can you put the windows download link corrected? and thanks for sharing]]></description>
		<content:encoded><![CDATA[<p>Nice work man, really good job, only one thing, can you put the windows download link corrected? and thanks for sharing</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: r3dux</title>
		<link>http://r3dux.org/2011/11/a-simple-csdl_net-chat-server-client-rewritten/#comment-7491</link>
		<dc:creator>r3dux</dc:creator>
		<pubDate>Fri, 24 Feb 2012 06:16:10 +0000</pubDate>
		<guid isPermaLink="false">http://r3dux.org/?p=5772#comment-7491</guid>
		<description><![CDATA[Cheers, Reilly :D]]></description>
		<content:encoded><![CDATA[<p>Cheers, Reilly <img src='http://r3dux.org/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: reilly davis</title>
		<link>http://r3dux.org/2011/11/a-simple-csdl_net-chat-server-client-rewritten/#comment-7490</link>
		<dc:creator>reilly davis</dc:creator>
		<pubDate>Fri, 24 Feb 2012 06:04:15 +0000</pubDate>
		<guid isPermaLink="false">http://r3dux.org/?p=5772#comment-7490</guid>
		<description><![CDATA[wow nice work there al]]></description>
		<content:encoded><![CDATA[<p>wow nice work there al</p>
]]></content:encoded>
	</item>
</channel>
</rss>
