<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
 <channel>
  <atom:link href="https://smaugmuds.afkmods.com/index.php?a=rssfeed&amp;f=7" rel="self" type="application/rss+xml" />
  <title>SmaugMuds - Forum: Coding</title>
  <link>https://smaugmuds.afkmods.com/index.php?a=rssfeed&amp;f=7</link>
  <description>The largest Smaug community resource site. - Discussion of general coding issues that are not necessarily codebase specific, or that cover a codebase that does not have a designated forum.</description>
  <language>en</language>
  <generator>SmaugMuds</generator>
  <ttl>60</ttl>
  <item>
   <title>IPv6</title>
   <link>https://smaugmuds.afkmods.com/topic/ipv6-4537/&amp;p=24367#p24367</link>
   <description>It would need to be an OS that&#039;s at least 20 years old before this would become an issue. That&#039;s a vanishingly unlikely scenario for someone to be in these days. I honestly figured Cygwin would be where the problems would arise but it handled it like a beast.</description>
   <guid isPermaLink="true">https://smaugmuds.afkmods.com/topic/ipv6-4537/&amp;p=24367#p24367</guid>
   <pubDate>Sat, 25 Jan 2025 22:45:49 CST</pubDate>
   <category>Coding</category>
   <author>nobody@example.com (Samson)</author>
  </item>
  <item>
   <title>IPv6</title>
   <link>https://smaugmuds.afkmods.com/topic/ipv6-4537/&amp;p=24366#p24366</link>
   <description>Fair enough.  :shrug:  I&#039;ll agree to disagree on portability, since I thought the principle argument against a dual stack socket was that not all (legacy) OS would support it, instead requiring an approach with multiple sockets (like the RFC was showing). That said, it&#039;s not my base to maintain and I suppose few people will try and compile and run this on hardware that ancient. Guess we&#039;ll find out if they do, should they find themselves here asking for support.  :imp: </description>
   <guid isPermaLink="true">https://smaugmuds.afkmods.com/topic/ipv6-4537/&amp;p=24366#p24366</guid>
   <pubDate>Mon, 20 Jan 2025 12:38:29 CST</pubDate>
   <category>Coding</category>
   <author>nobody@example.com (GatewaySysop)</author>
  </item>
  <item>
   <title>IPv6</title>
   <link>https://smaugmuds.afkmods.com/topic/ipv6-4537/&amp;p=24364#p24364</link>
   <description>Also for the record I&#039;ve now gotten AFKMud to compile under Cygwin again (damn libraries) and confirmed that even on my Windows 10 Home PC that the code bound both addresses and accepted a connection from another PC in the house. Neither of which get assigned IPv6 addresses because our router is so backward it doesn&#039;t even support it at all. I don&#039;t think portability is an issue here. It&#039;s just a matter of getting the DNS resolver process to play along now.</description>
   <guid isPermaLink="true">https://smaugmuds.afkmods.com/topic/ipv6-4537/&amp;p=24364#p24364</guid>
   <pubDate>Mon, 20 Jan 2025 00:09:52 CST</pubDate>
   <category>Coding</category>
   <author>nobody@example.com (Samson)</author>
  </item>
  <item>
   <title>IPv6</title>
   <link>https://smaugmuds.afkmods.com/topic/ipv6-4537/&amp;p=24363#p24363</link>
   <description>I had a look at the RFC, and I really can&#039;t make heads or tails of what it&#039;s trying to say. So I did some more digging and everything I&#039;m turning up says that the function I posted will work just fine on a server that only supports IPv4. It simply won&#039;t be able to bind the IPv6 part to the port. There is nothing out there to indicate that the code would refuse to work at all. They all simply say you&#039;d only get one type or the other in a single protocol setup. They also said if you run into</description>
   <guid isPermaLink="true">https://smaugmuds.afkmods.com/topic/ipv6-4537/&amp;p=24363#p24363</guid>
   <pubDate>Sun, 19 Jan 2025 23:04:38 CST</pubDate>
   <category>Coding</category>
   <author>nobody@example.com (Samson)</author>
  </item>
  <item>
   <title>IPv6</title>
   <link>https://smaugmuds.afkmods.com/topic/ipv6-4537/&amp;p=24362#p24362</link>
   <description>Do have a look at the RFC I linked in my edited post. I think that&#039;s a good way to go, albeit a bit more complicated. Should allow one to have their cake and eat it too, from a portability perspective.  :cool: </description>
   <guid isPermaLink="true">https://smaugmuds.afkmods.com/topic/ipv6-4537/&amp;p=24362#p24362</guid>
   <pubDate>Sun, 19 Jan 2025 01:02:23 CST</pubDate>
   <category>Coding</category>
   <author>nobody@example.com (GatewaySysop)</author>
  </item>
  <item>
   <title>IPv6</title>
   <link>https://smaugmuds.afkmods.com/topic/ipv6-4537/&amp;p=24361#p24361</link>
   <description>I don&#039;t have an exclusively IPv4 setup to test it on aside from my personal PC. However, the impression I got from the information I gathered (not from the AI btw) was that setting things up this way should still work because you aren&#039;t specifying a particular address. You&#039;re simply binding to the machine itself. If you have a machine where you can try this that doesn&#039;t have an IPv6 address assigned at all then we&#039;d know for sure. The function I posted should be usable on regular SmaugFUSS to</description>
   <guid isPermaLink="true">https://smaugmuds.afkmods.com/topic/ipv6-4537/&amp;p=24361#p24361</guid>
   <pubDate>Sun, 19 Jan 2025 00:20:23 CST</pubDate>
   <category>Coding</category>
   <author>nobody@example.com (Samson)</author>
  </item>
  <item>
   <title>IPv6</title>
   <link>https://smaugmuds.afkmods.com/topic/ipv6-4537/&amp;p=24360#p24360</link>
   <description>I guess my point (my question?) was what happens if someone with an OS that doesn&#039;t have IPv6 support tries to compile and run the mud? Guessing if it&#039;s exclusively trying to do IPv6 (and listen for both v6 and v4 traffic) that it&#039;s going to puke its guts and not work, right? For the sake or portability, wouldn&#039;t you want a solution that works whether the user is compiling on a machine with IPv4 or IPv6 support? Again forgive me if I&#039;m off base here, but that&#039;s where my question was coming fr</description>
   <guid isPermaLink="true">https://smaugmuds.afkmods.com/topic/ipv6-4537/&amp;p=24360#p24360</guid>
   <pubDate>Sun, 19 Jan 2025 00:08:46 CST</pubDate>
   <category>Coding</category>
   <author>nobody@example.com (GatewaySysop)</author>
  </item>
  <item>
   <title>IPv6</title>
   <link>https://smaugmuds.afkmods.com/topic/ipv6-4537/&amp;p=24359#p24359</link>
   <description>If all you want is IPv4 only then there&#039;s no reason to use the changes I&#039;ve made. You&#039;d just stick to what you have already. The whole idea was that we wanted a way for a system to run both IPv4 and IPv6. The code I&#039;ve posted does this. If you just want IPv6, then all you have to do is set the ipv6only value to 1 instead of 0. The operating systems these days all have IPv6 support so I&#039;d imagine that it will listen on both sides but if you only have an IPv4 address it would only ever respo</description>
   <guid isPermaLink="true">https://smaugmuds.afkmods.com/topic/ipv6-4537/&amp;p=24359#p24359</guid>
   <pubDate>Sat, 18 Jan 2025 23:28:38 CST</pubDate>
   <category>Coding</category>
   <author>nobody@example.com (Samson)</author>
  </item>
  <item>
   <title>IPv6</title>
   <link>https://smaugmuds.afkmods.com/topic/ipv6-4537/&amp;p=24358#p24358</link>
   <description>Maybe this is a dumb question, but will this still work on a machine that is on IPv4 or is this [i]only [/i]so that a mud with IPv6 connectivity can listen on IPv4 [b]and [/b]IPv6, as you demonstrated it doing? Is this still going to be able to listen for IPv4 (only, obviously) on an IPv4 connected machine? At first glance it doesn&#039;t appear so, but maybe I&#039;m ignorant or overthinking it. I was poking around some time ago with something like this instead:  [url=https://datatracker.ietf.org/d</description>
   <guid isPermaLink="true">https://smaugmuds.afkmods.com/topic/ipv6-4537/&amp;p=24358#p24358</guid>
   <pubDate>Sat, 18 Jan 2025 19:55:12 CST</pubDate>
   <category>Coding</category>
   <author>nobody@example.com (GatewaySysop)</author>
  </item>
  <item>
   <title>IPv6</title>
   <link>https://smaugmuds.afkmods.com/topic/ipv6-4537/&amp;p=24354#p24354</link>
   <description>So I know this is literally a decade old topic now, but as I was going through old posts I stumbled on this and decided to have a go at it - with the help of Google&#039;s Search AI. Yes, I know, trusting AI etc. I only used what it told me as an example. In doing so, this is what I currently have for init_socket(): [code]int init_socket( int mudport ) { struct sockaddr_in6 serv_addr6; int x = 1, ipv6only = 0; int fd; if( ( fd = socket( AF_INET6, SOCK_STREAM, 0 ) ) &amp;lt; 0 ) { </description>
   <guid isPermaLink="true">https://smaugmuds.afkmods.com/topic/ipv6-4537/&amp;p=24354#p24354</guid>
   <pubDate>Sat, 18 Jan 2025 01:49:51 CST</pubDate>
   <category>Coding</category>
   <author>nobody@example.com (Samson)</author>
  </item>
 </channel>
</rss>
