<?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: Sending and Receiving Packets</title>
	<atom:link href="http://gafferongames.com/networking-for-game-programmers/sending-and-receiving-packets/feed/" rel="self" type="application/rss+xml" />
	<link>http://gafferongames.com</link>
	<description>Glenn Fiedler&#039;s Game Development Articles and Tutorials</description>
	<lastBuildDate>Mon, 07 May 2012 17:08:09 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
	<item>
		<title>By: Glenn Fiedler</title>
		<link>http://gafferongames.com/networking-for-game-programmers/sending-and-receiving-packets/#comment-48498</link>
		<dc:creator>Glenn Fiedler</dc:creator>
		<pubDate>Mon, 07 May 2012 17:08:09 +0000</pubDate>
		<guid isPermaLink="false">http://gafferongames.wordpress.com/?page_id=127#comment-48498</guid>
		<description>That depends whether you are little endian or not, and whether you translate the address to network order before passing in to sockets like I do, eg.:

		address.sin_addr.s_addr = htonl( destination.GetAddress() );</description>
		<content:encoded><![CDATA[<p>That depends whether you are little endian or not, and whether you translate the address to network order before passing in to sockets like I do, eg.:</p>
<p>		address.sin_addr.s_addr = htonl( destination.GetAddress() );</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jake See</title>
		<link>http://gafferongames.com/networking-for-game-programmers/sending-and-receiving-packets/#comment-48465</link>
		<dc:creator>Jake See</dc:creator>
		<pubDate>Mon, 07 May 2012 12:13:25 +0000</pubDate>
		<guid isPermaLink="false">http://gafferongames.wordpress.com/?page_id=127#comment-48465</guid>
		<description>If I am not wrong, inet_addr seems to OR the a.b.d.c in the reverse order

i.e. instead of

unsigned int destination_address = ( a &lt;&lt; 24 ) &#124; ( b &lt;&lt; 16 ) &#124; ( c &lt;&lt; 8 ) &#124; d;

if should be 

unsigned int destination_address = ( d &lt;&lt; 24 ) &#124; ( c &lt;&lt; 16 ) &#124; ( b &lt;&lt; 8 ) &#124; a;</description>
		<content:encoded><![CDATA[<p>If I am not wrong, inet_addr seems to OR the a.b.d.c in the reverse order</p>
<p>i.e. instead of</p>
<p>unsigned int destination_address = ( a &lt;&lt; 24 ) | ( b &lt;&lt; 16 ) | ( c &lt;&lt; 8 ) | d;</p>
<p>if should be </p>
<p>unsigned int destination_address = ( d &lt;&lt; 24 ) | ( c &lt;&lt; 16 ) | ( b &lt;&lt; 8 ) | a;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Glenn Fiedler</title>
		<link>http://gafferongames.com/networking-for-game-programmers/sending-and-receiving-packets/#comment-48178</link>
		<dc:creator>Glenn Fiedler</dc:creator>
		<pubDate>Sat, 05 May 2012 16:42:22 +0000</pubDate>
		<guid isPermaLink="false">http://gafferongames.wordpress.com/?page_id=127#comment-48178</guid>
		<description>http://en.wikipedia.org/wiki/Stream_Control_Transmission_Protocol</description>
		<content:encoded><![CDATA[<p><a href="http://en.wikipedia.org/wiki/Stream_Control_Transmission_Protocol" rel="nofollow">http://en.wikipedia.org/wiki/Stream_Control_Transmission_Protocol</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: nyrtZi</title>
		<link>http://gafferongames.com/networking-for-game-programmers/sending-and-receiving-packets/#comment-47948</link>
		<dc:creator>nyrtZi</dc:creator>
		<pubDate>Fri, 04 May 2012 11:46:02 +0000</pubDate>
		<guid isPermaLink="false">http://gafferongames.wordpress.com/?page_id=127#comment-47948</guid>
		<description>Anyone ever considered SCTP? Seems like an interesting mix of TCP and UDP features and could maybe provide a shortcut allowing one to get UDP with benefits without having to write the hard parts.</description>
		<content:encoded><![CDATA[<p>Anyone ever considered SCTP? Seems like an interesting mix of TCP and UDP features and could maybe provide a shortcut allowing one to get UDP with benefits without having to write the hard parts.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sockets for chat? &#124; Smash Company</title>
		<link>http://gafferongames.com/networking-for-game-programmers/sending-and-receiving-packets/#comment-44110</link>
		<dc:creator>Sockets for chat? &#124; Smash Company</dc:creator>
		<pubDate>Tue, 10 Apr 2012 00:57:34 +0000</pubDate>
		<guid isPermaLink="false">http://gafferongames.wordpress.com/?page_id=127#comment-44110</guid>
		<description>[...] I&#8217;m going to try to write my own chat software soon. This is part of my research. I&#8217;m thinking a lot about how much I should try to handle in my own code and how much I should rely on the functionality that is already there in Unix systems.  BSD sockets [...]</description>
		<content:encoded><![CDATA[<p>[...] I&#8217;m going to try to write my own chat software soon. This is part of my research. I&#8217;m thinking a lot about how much I should try to handle in my own code and how much I should rely on the functionality that is already there in Unix systems.  BSD sockets [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Glenn Fiedler</title>
		<link>http://gafferongames.com/networking-for-game-programmers/sending-and-receiving-packets/#comment-40424</link>
		<dc:creator>Glenn Fiedler</dc:creator>
		<pubDate>Thu, 08 Mar 2012 00:34:08 +0000</pubDate>
		<guid isPermaLink="false">http://gafferongames.wordpress.com/?page_id=127#comment-40424</guid>
		<description>Thank you!</description>
		<content:encoded><![CDATA[<p>Thank you!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jeaye</title>
		<link>http://gafferongames.com/networking-for-game-programmers/sending-and-receiving-packets/#comment-40351</link>
		<dc:creator>Jeaye</dc:creator>
		<pubDate>Wed, 07 Mar 2012 09:02:59 +0000</pubDate>
		<guid isPermaLink="false">http://gafferongames.wordpress.com/?page_id=127#comment-40351</guid>
		<description>Years later and you&#039;re still helping out those who ask. My hat goes off to you, sir; thanks for the fine article. ;)</description>
		<content:encoded><![CDATA[<p>Years later and you&#8217;re still helping out those who ask. My hat goes off to you, sir; thanks for the fine article. <img src='http://gafferongames.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Glenn Fiedler</title>
		<link>http://gafferongames.com/networking-for-game-programmers/sending-and-receiving-packets/#comment-37784</link>
		<dc:creator>Glenn Fiedler</dc:creator>
		<pubDate>Sun, 12 Feb 2012 17:04:37 +0000</pubDate>
		<guid isPermaLink="false">http://gafferongames.wordpress.com/?page_id=127#comment-37784</guid>
		<description>Could be. Try to find an example for your compiler that links and reverse engineer from there.</description>
		<content:encoded><![CDATA[<p>Could be. Try to find an example for your compiler that links and reverse engineer from there.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Karsten Malmquist</title>
		<link>http://gafferongames.com/networking-for-game-programmers/sending-and-receiving-packets/#comment-37572</link>
		<dc:creator>Karsten Malmquist</dc:creator>
		<pubDate>Fri, 10 Feb 2012 22:24:12 +0000</pubDate>
		<guid isPermaLink="false">http://gafferongames.wordpress.com/?page_id=127#comment-37572</guid>
		<description>I&#039;m having problems with linker errors on windows, all of the functioncalls to members of the winsock2 library are generating linker errors, I tried to link different files:
wsock2.lib, wsock2.dll, winsock2.lib, winsock2.dll, ws2_32.lib, ws2_32.dll

Maybe the Dev-C++ compiler is causing the problem?</description>
		<content:encoded><![CDATA[<p>I&#8217;m having problems with linker errors on windows, all of the functioncalls to members of the winsock2 library are generating linker errors, I tried to link different files:<br />
wsock2.lib, wsock2.dll, winsock2.lib, winsock2.dll, ws2_32.lib, ws2_32.dll</p>
<p>Maybe the Dev-C++ compiler is causing the problem?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Glenn Fiedler</title>
		<link>http://gafferongames.com/networking-for-game-programmers/sending-and-receiving-packets/#comment-31220</link>
		<dc:creator>Glenn Fiedler</dc:creator>
		<pubDate>Tue, 27 Dec 2011 08:58:35 +0000</pubDate>
		<guid isPermaLink="false">http://gafferongames.wordpress.com/?page_id=127#comment-31220</guid>
		<description>It changes a lot, the second code is incorrect and is equivalent to always returning true.</description>
		<content:encoded><![CDATA[<p>It changes a lot, the second code is incorrect and is equivalent to always returning true.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Dynamic page generated in 0.253 seconds. -->
<!-- Cached page generated by WP-Super-Cache on 2012-05-07 19:44:17 -->

