<?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</title>
	<atom:link href="http://r3dux.org/2011/01/a-simple-sdl_net-chat-server-client/feed/" rel="self" type="application/rss+xml" />
	<link>http://r3dux.org/2011/01/a-simple-sdl_net-chat-server-client/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=a-simple-sdl_net-chat-server-client</link>
	<description>A number-pimping side project from the valleys in *NEW* upside-down flavour.</description>
	<lastBuildDate>Tue, 15 May 2012 23:01:55 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=</generator>
	<item>
		<title>By: A simple C++/SDL_net chat server &#38; client rewritten &#124; r3dux.org</title>
		<link>http://r3dux.org/2011/01/a-simple-sdl_net-chat-server-client/#comment-7218</link>
		<dc:creator>A simple C++/SDL_net chat server &#38; client rewritten &#124; r3dux.org</dc:creator>
		<pubDate>Fri, 25 Nov 2011 06:28:12 +0000</pubDate>
		<guid isPermaLink="false">http://r3dux.org/?p=3859#comment-7218</guid>
		<description>[...] deal with network programming with sockets and stuff, so I duly did my research and put together a simple chat server and client in SDL_net. And then my classes changed and I got moved on to teach other stuff. I wasn&#8217;t too [...]</description>
		<content:encoded><![CDATA[<p>[...] deal with network programming with sockets and stuff, so I duly did my research and put together a simple chat server and client in SDL_net. And then my classes changed and I got moved on to teach other stuff. I wasn&#8217;t too [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: r3dux</title>
		<link>http://r3dux.org/2011/01/a-simple-sdl_net-chat-server-client/#comment-7182</link>
		<dc:creator>r3dux</dc:creator>
		<pubDate>Thu, 17 Nov 2011 07:25:29 +0000</pubDate>
		<guid isPermaLink="false">http://r3dux.org/?p=3859#comment-7182</guid>
		<description>Thanks - and glad you&#039;ve found it useful.

I&#039;d love to take a look sometime if you do anything cool with it! =D</description>
		<content:encoded><![CDATA[<p>Thanks &#8211; and glad you&#8217;ve found it useful.</p>
<p>I&#8217;d love to take a look sometime if you do anything cool with it! =D</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ComputerCowboy</title>
		<link>http://r3dux.org/2011/01/a-simple-sdl_net-chat-server-client/#comment-7179</link>
		<dc:creator>ComputerCowboy</dc:creator>
		<pubDate>Wed, 16 Nov 2011 20:45:54 +0000</pubDate>
		<guid isPermaLink="false">http://r3dux.org/?p=3859#comment-7179</guid>
		<description>this code was so well designed that i added sdl to it and made it a regular, non terminal code with minimal effort. I hope you do get teaching gigs cuz you are a good example.</description>
		<content:encoded><![CDATA[<p>this code was so well designed that i added sdl to it and made it a regular, non terminal code with minimal effort. I hope you do get teaching gigs cuz you are a good example.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Su</title>
		<link>http://r3dux.org/2011/01/a-simple-sdl_net-chat-server-client/#comment-7156</link>
		<dc:creator>Su</dc:creator>
		<pubDate>Sun, 13 Nov 2011 15:29:16 +0000</pubDate>
		<guid isPermaLink="false">http://r3dux.org/?p=3859#comment-7156</guid>
		<description>hi Sir, after looking at some example of C++ and socket programming, i already successful modify the client code to ask for user name and broadcast it together with the message..  The received message will be like this 

Received: My message :User Name /Client Name 

That is the best that i can do.. :)

Thanks for the clue.. i really appreciate it.. 
Cheers!</description>
		<content:encoded><![CDATA[<p>hi Sir, after looking at some example of C++ and socket programming, i already successful modify the client code to ask for user name and broadcast it together with the message..  The received message will be like this </p>
<p>Received: My message :User Name /Client Name </p>
<p>That is the best that i can do.. <img src='http://r3dux.org/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Thanks for the clue.. i really appreciate it..<br />
Cheers!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: r3dux</title>
		<link>http://r3dux.org/2011/01/a-simple-sdl_net-chat-server-client/#comment-7101</link>
		<dc:creator>r3dux</dc:creator>
		<pubDate>Thu, 03 Nov 2011 06:00:29 +0000</pubDate>
		<guid isPermaLink="false">http://r3dux.org/?p=3859#comment-7101</guid>
		<description>Easiest way to do this is to modify the client to ask for a username (i.e. who is using the client) and then just prepend that username to each message sent from the client.</description>
		<content:encoded><![CDATA[<p>Easiest way to do this is to modify the client to ask for a username (i.e. who is using the client) and then just prepend that username to each message sent from the client.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Su</title>
		<link>http://r3dux.org/2011/01/a-simple-sdl_net-chat-server-client/#comment-7100</link>
		<dc:creator>Su</dc:creator>
		<pubDate>Thu, 03 Nov 2011 01:20:08 +0000</pubDate>
		<guid isPermaLink="false">http://r3dux.org/?p=3859#comment-7100</guid>
		<description>Sir, i have try this program using LAN and the program work great.. We can communicate with each other. but i have something to adjust. for this program, at client side we wouldn&#039;t know the message is sent by which client. If we have multiple client, we are going to have a little bit problem to detect which client sent the message.Only the server know who is sending the message. But never mind. I will configure it out and will let you know the progress. Thanks a lot Sir/Teacher</description>
		<content:encoded><![CDATA[<p>Sir, i have try this program using LAN and the program work great.. We can communicate with each other. but i have something to adjust. for this program, at client side we wouldn&#8217;t know the message is sent by which client. If we have multiple client, we are going to have a little bit problem to detect which client sent the message.Only the server know who is sending the message. But never mind. I will configure it out and will let you know the progress. Thanks a lot Sir/Teacher</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: r3dux</title>
		<link>http://r3dux.org/2011/01/a-simple-sdl_net-chat-server-client/#comment-7089</link>
		<dc:creator>r3dux</dc:creator>
		<pubDate>Tue, 01 Nov 2011 09:46:35 +0000</pubDate>
		<guid isPermaLink="false">http://r3dux.org/?p=3859#comment-7089</guid>
		<description>1 - The server CAN tell which client sent which message - it needs to know so that it can broadcast the message to all the other clients. You can even see in the server output that it says &quot;Received [some message] from client [some client number]&quot;.

2 - Each client already has its own (unique) randomly assigned port. To see which ports the client(s) are using, try using the command:
&lt;pre lang=&quot;bash&quot;&gt;netstat --tcp &#124; grep 1234&lt;/pre&gt;

This will find all tcp sockets which are currently open on the machine, and the &quot;1234&quot; bit is the default port number of the server.

If you want to assign specific ports to clients, then you&#039;ll have to look up how to do that in the SDL_net documentation.

Best of luck.</description>
		<content:encoded><![CDATA[<p>1 &#8211; The server CAN tell which client sent which message &#8211; it needs to know so that it can broadcast the message to all the other clients. You can even see in the server output that it says &#8220;Received [some message] from client [some client number]&#8220;.</p>
<p>2 &#8211; Each client already has its own (unique) randomly assigned port. To see which ports the client(s) are using, try using the command:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">netstat</span> <span style="color: #660033;">--tcp</span> <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">grep</span> <span style="color: #000000;">1234</span></pre></div></div>

<p>This will find all tcp sockets which are currently open on the machine, and the &#8220;1234&#8243; bit is the default port number of the server.</p>
<p>If you want to assign specific ports to clients, then you&#8217;ll have to look up how to do that in the SDL_net documentation.</p>
<p>Best of luck.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: loh</title>
		<link>http://r3dux.org/2011/01/a-simple-sdl_net-chat-server-client/#comment-7087</link>
		<dc:creator>loh</dc:creator>
		<pubDate>Tue, 01 Nov 2011 07:55:37 +0000</pubDate>
		<guid isPermaLink="false">http://r3dux.org/?p=3859#comment-7087</guid>
		<description>I&#039;m quite interesting to the server- multiple client program..may I know if all client simultaneously click the Enter after type the message then the server cant detect which client sent, correct??

May I know isn&#039;t need to allocate different port to different client?? I&#039;m new to ubuntu and chat programming..may I know which part of the above program need to modify in order using different port for each client?? 

Thanks a lot for the help...
Just wonder if using different port the program can work @@</description>
		<content:encoded><![CDATA[<p>I&#8217;m quite interesting to the server- multiple client program..may I know if all client simultaneously click the Enter after type the message then the server cant detect which client sent, correct??</p>
<p>May I know isn&#8217;t need to allocate different port to different client?? I&#8217;m new to ubuntu and chat programming..may I know which part of the above program need to modify in order using different port for each client?? </p>
<p>Thanks a lot for the help&#8230;<br />
Just wonder if using different port the program can work @@</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Su</title>
		<link>http://r3dux.org/2011/01/a-simple-sdl_net-chat-server-client/#comment-7072</link>
		<dc:creator>Su</dc:creator>
		<pubDate>Fri, 28 Oct 2011 00:07:48 +0000</pubDate>
		<guid isPermaLink="false">http://r3dux.org/?p=3859#comment-7072</guid>
		<description>can i have your name to put in my reference together with your website address. if u don&#039;t want to reveal your name here may be u can email me..anis152003@yahoo.com. thanks a lot ..sir/madam. actually i&#039;m doing this for my Laboratory.. I&#039;m university Student. I take electric telecommunication and this is my final year. Since i have only 3 week to complete this and i know nothing about socket programming and UBUNTU, so i just take your example. Hope u don&#039;t mind</description>
		<content:encoded><![CDATA[<p>can i have your name to put in my reference together with your website address. if u don&#8217;t want to reveal your name here may be u can email <a href="mailto:me..anis152003@yahoo.com">me..anis152003@yahoo.com</a>. thanks a lot ..sir/madam. actually i&#8217;m doing this for my Laboratory.. I&#8217;m university Student. I take electric telecommunication and this is my final year. Since i have only 3 week to complete this and i know nothing about socket programming and UBUNTU, so i just take your example. Hope u don&#8217;t mind</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Su</title>
		<link>http://r3dux.org/2011/01/a-simple-sdl_net-chat-server-client/#comment-7071</link>
		<dc:creator>Su</dc:creator>
		<pubDate>Thu, 27 Oct 2011 23:41:43 +0000</pubDate>
		<guid isPermaLink="false">http://r3dux.org/?p=3859#comment-7071</guid>
		<description>:) . orite.. thanks for ur reply.. i have learn a lot from u.. i will try my best to fix this thing.. thank u very much.. may god bless u..</description>
		<content:encoded><![CDATA[<p> <img src='http://r3dux.org/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  . orite.. thanks for ur reply.. i have learn a lot from u.. i will try my best to fix this thing.. thank u very much.. may god bless u..</p>
]]></content:encoded>
	</item>
</channel>
</rss>

