<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
<title>Help a noob with online functionality.</title>
<description> Hi. I&amp;#039;m sure the answer is probably fairly obvious but I&amp;#039;ve been going through what I can find about how to do anything internet related with Wii and I still cant figure out how to do what I want to do. I just want to be able to download and read the contents of a text file (TXT, HTML, whatever) from a website. A simple example would be greatly appreciated. I&amp;#039;m seriously stuck and clueless.

On a unrelated note has anyone else been occasionally having trouble with Libwiisprite where it has incorrectly renders sprites that are overlapping each other when one of both of them are significantly zoomed in? Wish I had a screenshot to show but if its happened to you then I&amp;#039;m sure you know what i mean. Is there any way to fix it or is it just an unavoidable flaw/limitation of Libwiisprite? Its not really important and not worth starting another thread to ask but if anybody knows it would be cool to find out.</description><link>http://forum.wiibrew.org/read.php?11,7669,7669#msg-7669</link><lastBuildDate>Wed, 22 Apr 2026 03:16:44 +0200</lastBuildDate>
<generator>Phorum 5.2.23</generator>
<item>
<guid>http://forum.wiibrew.org/read.php?11,7669,8049#msg-8049</guid>
<title>Re: Help a noob with online functionality.</title><link>http://forum.wiibrew.org/read.php?11,7669,8049#msg-8049</link><description><![CDATA[ Oh really? I assumed it would be restricted to only string constants. Thanks, I will change that right away then.]]></description>
<dc:creator>iofthestorm</dc:creator>
<category>Coding</category><pubDate>Fri, 16 Jan 2009 03:31:07 +0100</pubDate></item>
<item>
<guid>http://forum.wiibrew.org/read.php?11,7669,7988#msg-7988</guid>
<title>Re: Help a noob with online functionality.</title><link>http://forum.wiibrew.org/read.php?11,7669,7988#msg-7988</link><description><![CDATA[ const means that the function will not change the data, it does not mean that the data can not vary due to other code.]]></description>
<dc:creator>henke37</dc:creator>
<category>Coding</category><pubDate>Thu, 15 Jan 2009 17:10:56 +0100</pubDate></item>
<item>
<guid>http://forum.wiibrew.org/read.php?11,7669,7879#msg-7879</guid>
<title>Re: Help a noob with online functionality.</title><link>http://forum.wiibrew.org/read.php?11,7669,7879#msg-7879</link><description><![CDATA[ Oh ok, didn&#039;t understand what it meant by const. I&#039;m still working out pointers. And for the other one, I didn&#039;t realize that one was signed and one wasn&#039;t. I&#039;ll just make them both signed since they are filesizes, although that does mean I&#039;ll have to subtract off the header length at the end.<br /><br />Oh huh, didn&#039;t realize that C distinguishes between a string constant and a char *. I should probably just change the URL i load into a variable char *, as this is going to evolve into something more modular anyway. From now on, all changes will be on the google code SVN repo I linked to above. Pastebin is pretty nice when you&#039;re just banging away at the keyboard but having real revision control is much nicer.<br /><br />Wait, could you clarify what I would have to do to make a string constant into a char *? I&#039;m really confused, because this function will need to take in a char * and not a const char * eventually since it will be loading a URL from the user&#039;s input, but for now I&#039;m just testing it with a default url.]]></description>
<dc:creator>iofthestorm</dc:creator>
<category>Coding</category><pubDate>Wed, 14 Jan 2009 07:30:09 +0100</pubDate></item>
<item>
<guid>http://forum.wiibrew.org/read.php?11,7669,7878#msg-7878</guid>
<title>Re: Help a noob with online functionality.</title><link>http://forum.wiibrew.org/read.php?11,7669,7878#msg-7878</link><description><![CDATA[ You really should fix the warnings instead of just dodging them. They indicate real issues that you should fix.<br />The first one is quite easy, use the right pointer datatype, it&#039;s not const correct.<br />The later one means what it says, you are comparing signed with unsigned, this is an error because on how very big numbers are represented differently in each type, fix it by making both operands either both be signed or none be signed.]]></description>
<dc:creator>henke37</dc:creator>
<category>Coding</category><pubDate>Wed, 14 Jan 2009 07:19:47 +0100</pubDate></item>
<item>
<guid>http://forum.wiibrew.org/read.php?11,7669,7864#msg-7864</guid>
<title>Re: Help a noob with online functionality.</title><link>http://forum.wiibrew.org/read.php?11,7669,7864#msg-7864</link><description><![CDATA[ Never mind. It was my copy of devkitPro. turns out my version was out of date (not sure when I updated it last) so I got the update, recompiled, and its working now :D]]></description>
<dc:creator>ThatOtherPerson</dc:creator>
<category>Coding</category><pubDate>Wed, 14 Jan 2009 01:15:42 +0100</pubDate></item>
<item>
<guid>http://forum.wiibrew.org/read.php?11,7669,7863#msg-7863</guid>
<title>Re: Help a noob with online functionality.</title><link>http://forum.wiibrew.org/read.php?11,7669,7863#msg-7863</link><description><![CDATA[ Oh, okay. I really don&#039;t know what the problem is then because I just used the if_config() function which initializes the network automatically for you. It gives up after a set number of times, so maybe you just need to keep trying. You could try throwing that part in a while loop so that it keeps trying until you press a button or something, maybe it just takes more tries on your network.<br /><br />As for the libwiisprite stuff, I suppose I&#039;ll figure it out. I guess C is mostly compatible with C++ but I don&#039;t know the subtleties yet (or really, I don&#039;t know anything C++ specific besides cout and the different headers).]]></description>
<dc:creator>iofthestorm</dc:creator>
<category>Coding</category><pubDate>Wed, 14 Jan 2009 00:56:47 +0100</pubDate></item>
<item>
<guid>http://forum.wiibrew.org/read.php?11,7669,7862#msg-7862</guid>
<title>Re: Help a noob with online functionality.</title><link>http://forum.wiibrew.org/read.php?11,7669,7862#msg-7862</link><description><![CDATA[ I switched over to C and it compiled fine without anymore warnings :) I still get "Failed to initialize network" when I run it though. I was actually moving it back and forth from my PC to Wii on SD card but I don&#039;t think there is anything wrong with my network (All my online Wii games like Mario Kart and Call of Duty: World at War work fine when I&#039;m playing online) and I just tried sending it over with wiiload which worked fine (though it still had the same failure when it ran).<br /><br />To be honest I dont even really know what exactly the differances are between c and C++ and I wasn&#039;t even sure which I was using initially. I&#039;ve made some half complete games that work as they should but like I said in the title I&#039;m still fairly noobish. So I don&#039;t really know whether or not Libwiisprite would work with C but the wiibrew wiki about it makes a point of stating that its a C++ sprite library so I think it probable is made specifically to be used with C++.]]></description>
<dc:creator>ThatOtherPerson</dc:creator>
<category>Coding</category><pubDate>Wed, 14 Jan 2009 00:52:45 +0100</pubDate></item>
<item>
<guid>http://forum.wiibrew.org/read.php?11,7669,7822#msg-7822</guid>
<title>Re: Help a noob with online functionality.</title><link>http://forum.wiibrew.org/read.php?11,7669,7822#msg-7822</link><description><![CDATA[ I&#039;m using C, not C++. That might make a difference, since C++ is more strict than C. Oh, and you need to add libfat to your makefile, if you didn&#039;t already, but I assume you did or else you would have a compile error about fatInitDefault(). Also, are you running the latest devkitPPC? It compiles fine on my machine with the latest devkitPPC as of a few days ago, dunno if something was added recently or not.<br /><br />To continue your other random thread, I&#039;ve never used libwiisprite and I haven&#039;t really written any nontrivial C++ code. Do I have to use C++ to use libwiisprite? I was hoping I would be able to switch to C++ without changing anything but it looks like I can&#039;t.<br /><br />If your network is failing to initialize, I don&#039;t know whether your network might be the problem. But I guess if you&#039;re sending it via wiiload it probably isn&#039;t.<br /><br />Aaand, here&#039;s my Google Code site complete with SVN repos. [<a href="http://code.google.com/p/wiihttp/" rel="nofollow">code.google.com</a>]]]></description>
<dc:creator>iofthestorm</dc:creator>
<category>Coding</category><pubDate>Tue, 13 Jan 2009 19:50:47 +0100</pubDate></item>
<item>
<guid>http://forum.wiibrew.org/read.php?11,7669,7819#msg-7819</guid>
<title>Re: Help a noob with online functionality.</title><link>http://forum.wiibrew.org/read.php?11,7669,7819#msg-7819</link><description><![CDATA[ I&#039;m not sure what I&#039;m doing wrong but it never seems to work. I keep getting the "Failed to initialize network" response and it shuts down. I haven&#039;t tried any address other then example.com/index.html yet but I assume the result would still be the same with another. Also I get the following warnings when compiling.<br /><br /><pre class="bbcode">
&gt; "make" 
source.cpp
c:/devkitPro/projects/wiinode/source/source.cpp: In function &#039;int displayInetFile(char*)&#039;:
c:/devkitPro/projects/wiinode/source/source.cpp:104: warning: comparison between signed and unsigned integer expressions
c:/devkitPro/projects/wiinode/source/source.cpp: In function &#039;int main(int, char**)&#039;:
c:/devkitPro/projects/wiinode/source/source.cpp:124: warning: deprecated conversion from string constant to &#039;char*&#039;
linking ... boot.elf
output ... boot.dol

&gt; Process Exit Code: 0
&gt; Time Taken: 00:04</pre><br />The previous two versions you posted got errors and wouldn&#039;t compile at all.]]></description>
<dc:creator>ThatOtherPerson</dc:creator>
<category>Coding</category><pubDate>Tue, 13 Jan 2009 19:01:46 +0100</pubDate></item>
<item>
<guid>http://forum.wiibrew.org/read.php?11,7669,7809#msg-7809</guid>
<title>Re: Help a noob with online functionality.</title><link>http://forum.wiibrew.org/read.php?11,7669,7809#msg-7809</link><description><![CDATA[ Woah, I&#039;m not writing a library (wouldn&#039;t know how - this is my first nontrivial C program) but I&#039;ll be sure to try and make it as general as possible. The HTTP header stuff goes in a struct so I think that should make it easy to access the header once I start storing all the header fields. Anyway, here&#039;s a nicer version of the above that downloads the file to temp.txt on the root of your SD, and doesn&#039;t print out headers, and checks to see if the amount downloaded matches the content length header field.<br /><br />[<a href="http://pastebin.com/m8cad49d" rel="nofollow">pastebin.com</a>]<br /><br />Tomorrow I will throw this into an SVN repo though, and begin actually developing my rss reader app.]]></description>
<dc:creator>iofthestorm</dc:creator>
<category>Coding</category><pubDate>Tue, 13 Jan 2009 10:33:37 +0100</pubDate></item>
<item>
<guid>http://forum.wiibrew.org/read.php?11,7669,7785#msg-7785</guid>
<title>Re: Help a noob with online functionality.</title><link>http://forum.wiibrew.org/read.php?11,7669,7785#msg-7785</link><description><![CDATA[ Please do at the very least add proxy support, there will always be people that has to use a proxy for one reason or another.<br />Also, do remember that http requests can have quite a lot of headers. You should ideally design the library to make it easy to access any header, no matter the name.]]></description>
<dc:creator>henke37</dc:creator>
<category>Coding</category><pubDate>Tue, 13 Jan 2009 07:08:12 +0100</pubDate></item>
<item>
<guid>http://forum.wiibrew.org/read.php?11,7669,7702#msg-7702</guid>
<title>Re: Help a noob with online functionality.</title><link>http://forum.wiibrew.org/read.php?11,7669,7702#msg-7702</link><description><![CDATA[ Sure, no problem. You should really check out all the links I included in my posts though, if you want to do something besides download the index of google and display it flying past on your screen in bare HTML glory you will need to understand everything. I tried to comment it as well as I could but I&#039;ll break it down some more later. By the way, if you try to run it you might want to choose a simple page with just a line of text or something, because even Google&#039;s simple homepage is not so simple anymore and quickly flies past on your screen, so you can&#039;t see the HTTP headers which are probably useful to see. But you can see examples of those on some of the tutorials and informative links I listed. Anyway, good luck with your projects, I&#039;ll probably update with some more stuff in a few hours.<br /><br />Edit: OK, here&#039;s a nicer version.<br /><br />[<a href="http://pastebin.com/m686441a4" rel="nofollow">pastebin.com</a>]<br /><br />It lets you specify the file URL you want to download and fetches it appropriately. The default is example.com/index.html, which is much smaller than Google&#039;s home page and lets you see more info about the headers and stuff. Although you can get that info from the RFCs as well, I like looking at real examples. I put the downloading bit in its own function so that you can copy it out easily if you want. I&#039;ll try to tackle writing to SD in maybe half an hour or so, after I grab some lunch.<br /><br />There&#039;s a struct at the top that I&#039;m going to be using for when I start parsing the http response, but currently it does nothing. On second thought, I should tackle that before I do writing to a file.<br /><br />I intend to write a tutorial eventually once I finish all this, because there&#039;s a distinct dearth of tutorials on Wii network coding, or well Wii coding in general.]]></description>
<dc:creator>iofthestorm</dc:creator>
<category>Coding</category><pubDate>Mon, 12 Jan 2009 19:23:58 +0100</pubDate></item>
<item>
<guid>http://forum.wiibrew.org/read.php?11,7669,7696#msg-7696</guid>
<title>Re: Help a noob with online functionality.</title><link>http://forum.wiibrew.org/read.php?11,7669,7696#msg-7696</link><description><![CDATA[ Thank you so much for your reply! Your shoddy example is probably the simplest most helpful thing I&#039;ve seen on the subject :) I just read through it and I&#039;m really hyped to compile/test/edit it later when I have more time and I&#039;m looking forward to seeing you update it.]]></description>
<dc:creator>ThatOtherPerson</dc:creator>
<category>Coding</category><pubDate>Mon, 12 Jan 2009 17:36:29 +0100</pubDate></item>
<item>
<guid>http://forum.wiibrew.org/read.php?11,7669,7670#msg-7670</guid>
<title>Re: Help a noob with online functionality.</title><link>http://forum.wiibrew.org/read.php?11,7669,7670#msg-7670</link><description><![CDATA[ I&#039;m actually in the process of writing something like that, but if you don&#039;t want to wait for me to finish you should look at the ftpii code or teknecal&#039;s netsend example on the Homebrew Browser wiki page.<br /><br />Also, this tutorial seems pretty good for learning the sockets interface in general. [<a href="http://beej.us/guide/bgnet/output/html/multipage/index.html" rel="nofollow">beej.us</a>]<br /><br />The stuff about IPv6 isn&#039;t relevant to Wii, and in some places he mentions functions that are obsolete but they are the ones that are on the wii. Check network.h in your libogc folder to see what functions you have.<br /><br />OK, here&#039;s my shoddy example thing:<br />[<a href="http://pastebin.com/m78a38c2a" rel="nofollow">pastebin.com</a>]<br /><br />I cobbled it together from tutorials and such, so if anyone could critique it that would be great. It probably does a lot of things unnecessarily or wrong since I used different parts of different tutorials, but it will download the index of google, or any other site.<br /><br />I used the beej.us tutorial, this tutorial on <a href="http://www.garshol.priv.no/download/text/http-tut.html" rel="nofollow">HTTP</a> (also see <a href="http://www.w3.org/Protocols/rfc1945/rfc1945" rel="nofollow">RFC 1945</a> for reference), this other <a href="http://shoe.bocks.com/net/" rel="nofollow">general network tutorial</a>, and <a href="http://wiibrew.org/wiki/Image:Sample_netsend.zip" rel="nofollow">teknecal&#039;s netsend example</a>.<br /><br />Note that this only prints out the contents of the file, but doesn&#039;t save it anywhere. That&#039;s my goal for tomorrow, as well as some cleanup/reducing random bits of code that might not be necessary.]]></description>
<dc:creator>iofthestorm</dc:creator>
<category>Coding</category><pubDate>Mon, 12 Jan 2009 05:10:52 +0100</pubDate></item>
<item>
<guid>http://forum.wiibrew.org/read.php?11,7669,7669#msg-7669</guid>
<title>Help a noob with online functionality.</title><link>http://forum.wiibrew.org/read.php?11,7669,7669#msg-7669</link><description><![CDATA[ Hi. I&#039;m sure the answer is probably fairly obvious but I&#039;ve been going through what I can find about how to do anything internet related with Wii and I still cant figure out how to do what I want to do. I just want to be able to download and read the contents of a text file (TXT, HTML, whatever) from a website. A simple example would be greatly appreciated. I&#039;m seriously stuck and clueless.<br /><br />On a unrelated note has anyone else been occasionally having trouble with Libwiisprite where it has incorrectly renders sprites that are overlapping each other when one of both of them are significantly zoomed in? Wish I had a screenshot to show but if its happened to you then I&#039;m sure you know what i mean. Is there any way to fix it or is it just an unavoidable flaw/limitation of Libwiisprite? Its not really important and not worth starting another thread to ask but if anybody knows it would be cool to find out.]]></description>
<dc:creator>ThatOtherPerson</dc:creator>
<category>Coding</category><pubDate>Mon, 12 Jan 2009 05:04:17 +0100</pubDate></item>
</channel>
</rss>