<?xml version="1.0"?>
<rss version="2.0">
	<channel>
		<title>AF_INET or PF_INET?</title>
		<link>http://www.allegro.cc/forums/view/563350</link>
		<description>Allegro.cc Forum Thread</description>
		<webMaster>matthew@allegro.cc (Matthew Leverton)</webMaster>
		<lastBuildDate>Thu, 02 Feb 2006 05:51:21 +0000</lastBuildDate>
	</channel>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>Which one is considered to be better style? I had a look in the man page for socket, and it showed PF_INET. However, it later refers to AF_INET further down the page.  A shocking lack of consistency...</p><p>I searched the web with no good results, some people use one, some people use the other. One thing I noticed: most people who use PF_INET place it in the socket() parameter, but use AF_INET <a href="http://www.citi.umich.edu/u/aglo/eecs482-fall04/11.15-17.txt">elsewhere</a> in their program. Any reason for this, or does it even matter?
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Myrdos)</author>
		<pubDate>Thu, 02 Feb 2006 04:49:08 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>AF_INET = Address Format, Internet = IP Addresses<br />PF_INET = Packet Format, Internet = IP, TCP/IP or UDP/IP</p><p>[edit]</p><p>According to the link, it&#39;s:</p><p>AF_INET = Address Family, Internet = IP Addresses<br />PF_INET = Protocol Family, Internet = IP, TCP/IP or UDP/IP</p><p>You should read the comments <img src="http://www.allegro.cc/forums/smileys/rolleyes.gif" alt="::)" />
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (CGamesPlay)</author>
		<pubDate>Thu, 02 Feb 2006 05:35:10 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>O .... K.</p><p>I think I get it now. We want to use protocol families for sockets, and address families for addresses. Makes sense. It&#39;s just a happy coincidence that they&#39;re both equal to two, and are therefore interchangeable. A coincidence that I should not rely on.</p><p>I did read the comments, but somehow their meaning escaped me...:-[
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Myrdos)</author>
		<pubDate>Thu, 02 Feb 2006 05:51:21 +0000</pubDate>
	</item>
</rss>
