<?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: Socket programming in C on Linux &#8211; The Ultimate Guide for Beginners	</title>
	<atom:link href="https://www.binarytides.com/socket-programming-c-linux-tutorial/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.binarytides.com/socket-programming-c-linux-tutorial/</link>
	<description>News, Technology, Entertainment and more</description>
	<lastBuildDate>Wed, 16 Aug 2023 01:30:38 +0000</lastBuildDate>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.8.2</generator>
	<item>
		<title>
		By: Silver Moon		</title>
		<link>https://www.binarytides.com/socket-programming-c-linux-tutorial/comment-page-3/#comment-358428</link>

		<dc:creator><![CDATA[Silver Moon]]></dc:creator>
		<pubDate>Wed, 16 Aug 2023 01:30:38 +0000</pubDate>
		<guid isPermaLink="false">http://www.binarytides.com/blog/?p=1271#comment-358428</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://www.binarytides.com/socket-programming-c-linux-tutorial/comment-page-3/#comment-358417&quot;&gt;Mike Kelly&lt;/a&gt;.

thanks for the feedback. shall improve in future.
glad that you found the guide useful.]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://www.binarytides.com/socket-programming-c-linux-tutorial/comment-page-3/#comment-358417">Mike Kelly</a>.</p>
<p>thanks for the feedback. shall improve in future.<br />
glad that you found the guide useful.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Mike Kelly		</title>
		<link>https://www.binarytides.com/socket-programming-c-linux-tutorial/comment-page-3/#comment-358417</link>

		<dc:creator><![CDATA[Mike Kelly]]></dc:creator>
		<pubDate>Tue, 15 Aug 2023 02:58:55 +0000</pubDate>
		<guid isPermaLink="false">http://www.binarytides.com/blog/?p=1271#comment-358417</guid>

					<description><![CDATA[Thanks for this tutorial.  Much better than the usual recv/send server side examples.   Using this info I wrote a server side program for my GPS tracker, a Carscop CCTR-803.

Re: improvements, on the server side code, zero out the buffer after the write (ie: after &quot;send the message back to client&quot;) in the connection handler.]]></description>
			<content:encoded><![CDATA[<p>Thanks for this tutorial.  Much better than the usual recv/send server side examples.   Using this info I wrote a server side program for my GPS tracker, a Carscop CCTR-803.</p>
<p>Re: improvements, on the server side code, zero out the buffer after the write (ie: after &#8220;send the message back to client&#8221;) in the connection handler.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Nick		</title>
		<link>https://www.binarytides.com/socket-programming-c-linux-tutorial/comment-page-2/#comment-329881</link>

		<dc:creator><![CDATA[Nick]]></dc:creator>
		<pubDate>Sun, 26 Dec 2021 02:01:01 +0000</pubDate>
		<guid isPermaLink="false">http://www.binarytides.com/blog/?p=1271#comment-329881</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://www.binarytides.com/socket-programming-c-linux-tutorial/comment-page-2/#comment-123465&quot;&gt;Jeroen&lt;/a&gt;.

Hi, you can’t compare strings with == .]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://www.binarytides.com/socket-programming-c-linux-tutorial/comment-page-2/#comment-123465">Jeroen</a>.</p>
<p>Hi, you can’t compare strings with == .</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Steve		</title>
		<link>https://www.binarytides.com/socket-programming-c-linux-tutorial/comment-page-3/#comment-325601</link>

		<dc:creator><![CDATA[Steve]]></dc:creator>
		<pubDate>Sun, 10 Oct 2021 10:58:30 +0000</pubDate>
		<guid isPermaLink="false">http://www.binarytides.com/blog/?p=1271#comment-325601</guid>

					<description><![CDATA[Thank you so much. Very well explained and so helpful. Congratulations!]]></description>
			<content:encoded><![CDATA[<p>Thank you so much. Very well explained and so helpful. Congratulations!</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: red		</title>
		<link>https://www.binarytides.com/socket-programming-c-linux-tutorial/comment-page-3/#comment-320722</link>

		<dc:creator><![CDATA[red]]></dc:creator>
		<pubDate>Tue, 13 Jul 2021 14:55:56 +0000</pubDate>
		<guid isPermaLink="false">http://www.binarytides.com/blog/?p=1271#comment-320722</guid>

					<description><![CDATA[thank you soo much , helpful and perfect explanation]]></description>
			<content:encoded><![CDATA[<p>thank you soo much , helpful and perfect explanation</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Oin-oin		</title>
		<link>https://www.binarytides.com/socket-programming-c-linux-tutorial/comment-page-3/#comment-320434</link>

		<dc:creator><![CDATA[Oin-oin]]></dc:creator>
		<pubDate>Mon, 05 Jul 2021 14:43:01 +0000</pubDate>
		<guid isPermaLink="false">http://www.binarytides.com/blog/?p=1271#comment-320434</guid>

					<description><![CDATA[You never mention CLOSING the socket.  Let&#039;s suppose we have clients contacting a server to receive a file of arbitrary length.  So the client now has to read the response from the server until the server reaches the end-of-file EOF.  Can the server simply close the socket when it has finished ?  Or will the client receive a &quot;Socket reset by peer&quot; ?]]></description>
			<content:encoded><![CDATA[<p>You never mention CLOSING the socket.  Let&#8217;s suppose we have clients contacting a server to receive a file of arbitrary length.  So the client now has to read the response from the server until the server reaches the end-of-file EOF.  Can the server simply close the socket when it has finished ?  Or will the client receive a &#8220;Socket reset by peer&#8221; ?</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Nico		</title>
		<link>https://www.binarytides.com/socket-programming-c-linux-tutorial/comment-page-3/#comment-319308</link>

		<dc:creator><![CDATA[Nico]]></dc:creator>
		<pubDate>Fri, 11 Jun 2021 22:26:29 +0000</pubDate>
		<guid isPermaLink="false">http://www.binarytides.com/blog/?p=1271#comment-319308</guid>

					<description><![CDATA[Thank you! Exactly what I was looking for in a post about the basics of sockets in C.]]></description>
			<content:encoded><![CDATA[<p>Thank you! Exactly what I was looking for in a post about the basics of sockets in C.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: salil		</title>
		<link>https://www.binarytides.com/socket-programming-c-linux-tutorial/comment-page-3/#comment-319061</link>

		<dc:creator><![CDATA[salil]]></dc:creator>
		<pubDate>Sun, 06 Jun 2021 18:10:02 +0000</pubDate>
		<guid isPermaLink="false">http://www.binarytides.com/blog/?p=1271#comment-319061</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://www.binarytides.com/socket-programming-c-linux-tutorial/comment-page-3/#comment-306235&quot;&gt;Mike&lt;/a&gt;.

Can you send me the code client]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://www.binarytides.com/socket-programming-c-linux-tutorial/comment-page-3/#comment-306235">Mike</a>.</p>
<p>Can you send me the code client</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Manu		</title>
		<link>https://www.binarytides.com/socket-programming-c-linux-tutorial/comment-page-3/#comment-318833</link>

		<dc:creator><![CDATA[Manu]]></dc:creator>
		<pubDate>Tue, 01 Jun 2021 06:26:43 +0000</pubDate>
		<guid isPermaLink="false">http://www.binarytides.com/blog/?p=1271#comment-318833</guid>

					<description><![CDATA[Brilliantly written and explained.]]></description>
			<content:encoded><![CDATA[<p>Brilliantly written and explained.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Constantin		</title>
		<link>https://www.binarytides.com/socket-programming-c-linux-tutorial/comment-page-3/#comment-317925</link>

		<dc:creator><![CDATA[Constantin]]></dc:creator>
		<pubDate>Wed, 19 May 2021 07:29:44 +0000</pubDate>
		<guid isPermaLink="false">http://www.binarytides.com/blog/?p=1271#comment-317925</guid>

					<description><![CDATA[The tutorial is very well written and it teaches the main concept of the Linux sockets and the examples are useful, thanks for your work.]]></description>
			<content:encoded><![CDATA[<p>The tutorial is very well written and it teaches the main concept of the Linux sockets and the examples are useful, thanks for your work.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Walter Milner		</title>
		<link>https://www.binarytides.com/socket-programming-c-linux-tutorial/comment-page-3/#comment-314255</link>

		<dc:creator><![CDATA[Walter Milner]]></dc:creator>
		<pubDate>Mon, 01 Mar 2021 14:05:59 +0000</pubDate>
		<guid isPermaLink="false">http://www.binarytides.com/blog/?p=1271#comment-314255</guid>

					<description><![CDATA[Your http read code usually gets a &#039;bad request&#039; response. 
This is because http 1.1 requires a host = in the header. Something like
 char * message = &quot;GET / HTTP/1.1\r\nHost: example.com\r\n\r\n&quot;;
	if( send(socketID , message , strlen(message) , 0) &#060; 0)]]></description>
			<content:encoded><![CDATA[<p>Your http read code usually gets a &#8216;bad request&#8217; response.<br />
This is because http 1.1 requires a host = in the header. Something like<br />
 char * message = &#8220;GET / HTTP/1.1\r\nHost: example.com\r\n\r\n&#8221;;<br />
	if( send(socketID , message , strlen(message) , 0) &lt; 0)</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Paul Antonucci		</title>
		<link>https://www.binarytides.com/socket-programming-c-linux-tutorial/comment-page-3/#comment-313611</link>

		<dc:creator><![CDATA[Paul Antonucci]]></dc:creator>
		<pubDate>Tue, 16 Feb 2021 17:59:09 +0000</pubDate>
		<guid isPermaLink="false">http://www.binarytides.com/blog/?p=1271#comment-313611</guid>

					<description><![CDATA[Thanks for this tutorial.
Is the second like below supposed to be commented out?


		//Now join the thread , so that we dont terminate before the thread
		//pthread_join( sniffer_thread , NULL);
		puts(&quot;Handler assigned&quot;);]]></description>
			<content:encoded><![CDATA[<p>Thanks for this tutorial.<br />
Is the second like below supposed to be commented out?</p>
<p>		//Now join the thread , so that we dont terminate before the thread<br />
		//pthread_join( sniffer_thread , NULL);<br />
		puts(&#8220;Handler assigned&#8221;);</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Prathibha		</title>
		<link>https://www.binarytides.com/socket-programming-c-linux-tutorial/comment-page-3/#comment-307791</link>

		<dc:creator><![CDATA[Prathibha]]></dc:creator>
		<pubDate>Tue, 12 Jan 2021 07:19:30 +0000</pubDate>
		<guid isPermaLink="false">http://www.binarytides.com/blog/?p=1271#comment-307791</guid>

					<description><![CDATA[Explanation is good. Concepts are made very clear with detailed explanation and example.]]></description>
			<content:encoded><![CDATA[<p>Explanation is good. Concepts are made very clear with detailed explanation and example.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Mike		</title>
		<link>https://www.binarytides.com/socket-programming-c-linux-tutorial/comment-page-3/#comment-306235</link>

		<dc:creator><![CDATA[Mike]]></dc:creator>
		<pubDate>Wed, 06 Jan 2021 08:00:26 +0000</pubDate>
		<guid isPermaLink="false">http://www.binarytides.com/blog/?p=1271#comment-306235</guid>

					<description><![CDATA[Very nice and helpful tutorial , thank you a lot for sharing
I would like to make a question in you example. I would like to send two variables from client to server (a) &#038; (b) and to make the sumution of those to server and after that the server to reply the result to client.
which change can i make to your example , can you help me?

Thank you a lot]]></description>
			<content:encoded><![CDATA[<p>Very nice and helpful tutorial , thank you a lot for sharing<br />
I would like to make a question in you example. I would like to send two variables from client to server (a) &amp; (b) and to make the sumution of those to server and after that the server to reply the result to client.<br />
which change can i make to your example , can you help me?</p>
<p>Thank you a lot</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Wang, Huan-Sheng		</title>
		<link>https://www.binarytides.com/socket-programming-c-linux-tutorial/comment-page-2/#comment-301080</link>

		<dc:creator><![CDATA[Wang, Huan-Sheng]]></dc:creator>
		<pubDate>Wed, 16 Dec 2020 05:02:05 +0000</pubDate>
		<guid isPermaLink="false">http://www.binarytides.com/blog/?p=1271#comment-301080</guid>

					<description><![CDATA[Great tutorial article!]]></description>
			<content:encoded><![CDATA[<p>Great tutorial article!</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: mamakmert		</title>
		<link>https://www.binarytides.com/socket-programming-c-linux-tutorial/comment-page-2/#comment-277059</link>

		<dc:creator><![CDATA[mamakmert]]></dc:creator>
		<pubDate>Tue, 01 Sep 2020 08:22:37 +0000</pubDate>
		<guid isPermaLink="false">http://www.binarytides.com/blog/?p=1271#comment-277059</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://www.binarytides.com/socket-programming-c-linux-tutorial/comment-page-2/#comment-203920&quot;&gt;Michael&lt;/a&gt;.

You can simply do it with Packet Sender]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://www.binarytides.com/socket-programming-c-linux-tutorial/comment-page-2/#comment-203920">Michael</a>.</p>
<p>You can simply do it with Packet Sender</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Gerald		</title>
		<link>https://www.binarytides.com/socket-programming-c-linux-tutorial/comment-page-2/#comment-235316</link>

		<dc:creator><![CDATA[Gerald]]></dc:creator>
		<pubDate>Sat, 29 Feb 2020 21:36:55 +0000</pubDate>
		<guid isPermaLink="false">http://www.binarytides.com/blog/?p=1271#comment-235316</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://www.binarytides.com/socket-programming-c-linux-tutorial/comment-page-2/#comment-69886&quot;&gt;Utku&lt;/a&gt;.

if ( socket_desc = -1) =&#062; means 
socket_desc = -1;
if (socket_desc != 0 ) { // true 
 this code will be executed every time
}

best regards]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://www.binarytides.com/socket-programming-c-linux-tutorial/comment-page-2/#comment-69886">Utku</a>.</p>
<p>if ( socket_desc = -1) =&gt; means<br />
socket_desc = -1;<br />
if (socket_desc != 0 ) { // true<br />
 this code will be executed every time<br />
}</p>
<p>best regards</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Michael		</title>
		<link>https://www.binarytides.com/socket-programming-c-linux-tutorial/comment-page-2/#comment-203920</link>

		<dc:creator><![CDATA[Michael]]></dc:creator>
		<pubDate>Tue, 06 Aug 2019 11:30:02 +0000</pubDate>
		<guid isPermaLink="false">http://www.binarytides.com/blog/?p=1271#comment-203920</guid>

					<description><![CDATA[It would be nice to show a File Transfer over Sockets, possibly using &#039;sendfile&#039; ?]]></description>
			<content:encoded><![CDATA[<p>It would be nice to show a File Transfer over Sockets, possibly using &#8216;sendfile&#8217; ?</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Rajyalakshmi		</title>
		<link>https://www.binarytides.com/socket-programming-c-linux-tutorial/comment-page-2/#comment-199426</link>

		<dc:creator><![CDATA[Rajyalakshmi]]></dc:creator>
		<pubDate>Tue, 18 Jun 2019 07:18:35 +0000</pubDate>
		<guid isPermaLink="false">http://www.binarytides.com/blog/?p=1271#comment-199426</guid>

					<description><![CDATA[nice helpful tutorial :) Have you written any such tutorial for writing sockets in non-blocking mode and with polling option C ?]]></description>
			<content:encoded><![CDATA[<p>nice helpful tutorial :) Have you written any such tutorial for writing sockets in non-blocking mode and with polling option C ?</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Everett White		</title>
		<link>https://www.binarytides.com/socket-programming-c-linux-tutorial/comment-page-2/#comment-195965</link>

		<dc:creator><![CDATA[Everett White]]></dc:creator>
		<pubDate>Sun, 05 May 2019 17:02:46 +0000</pubDate>
		<guid isPermaLink="false">http://www.binarytides.com/blog/?p=1271#comment-195965</guid>

					<description><![CDATA[Can the source code presented in this tutorial &#039;open source?&#039;  Can I use, modify, make derivative works, etc?  Is the source code available on github, and is there a license attached?

This is a great tutorial, and very helpful to me.]]></description>
			<content:encoded><![CDATA[<p>Can the source code presented in this tutorial &#8216;open source?&#8217;  Can I use, modify, make derivative works, etc?  Is the source code available on github, and is there a license attached?</p>
<p>This is a great tutorial, and very helpful to me.</p>
]]></content:encoded>
		
			</item>
	</channel>
</rss>
