<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
<title>remote file descriptors [Updated: now with windows driver]</title>
<description> UPDATE: Added windows drivers and directory operations (chdir, opendir, etc). I&amp;#039;m using scons to build, so I&amp;#039;m not sure how well that works on windows.

--
Hi..

I wrote a small library to provide access to the console and filesystem of my computer to my wii app, I put together an example using wiiload. I think this should be a useful tool for development. I&amp;#039;d love to get some feedback from the dev community. Here&amp;#039;s the download link:

[www.codenix.com]

I&amp;#039;m pasting the README file with more details below.

thanks!

--

RFD (Remote File descriptor) is a portable library that provides file i/o over
a remote connection.

My motivation was to be able to open files on my hard drive and print to a
console from my wii game without the need for elaborate samba or netcat setups.

The operations supported are open, read, write, close and (limited) stat. Also
chdir, getcwd, opendir, readdir and closedir for directories.

This package contains an example using a modified wiiload that starts a server,
and a wii program that connects to the server, opens a file and prints it to the
console of the running wiiload.

Build requirements:

- scons
- devkitppc, etc

How to build:

run &quot;scons &quot;, where targets can be:

wiiload (on linux)
wiiload.exe (on windows or linux using mingw)
template.elf (the wii demo)

For example, &quot;scons wiiload.exe template.elf&quot; will give you wiiload.exe and
template.elf

How to run:

For wiiload, set the WIILOAD env var with the IP of your wii. Also you need to
set the env variable &amp;#039;WIILOAD_RFD_HOST&amp;#039; with the IP of your computer (it has to
be accessible from the wii).
Then, use wiiload to launch template.elf (eg &quot;./wiiload template.elf&quot;)

The wii program should print some stuff to the wiiload console, list the current
directory contents, and open the &amp;#039;SConstruct&amp;#039; file and print it.

TODO:

- Figure out the local IP of the host machine (so we don&amp;#039;t need WIILOAD_RFD_HOST)
- Setup a device so we can use this with the fopen/printf/opendir API (don&amp;#039;t know
how to do this)
- Maybe use one of the reserved file descriptors to talk to gdb, so we can debug
over the network?

Contact:

&amp;#112;&amp;#117;&amp;#110;&amp;#116;&amp;#111;&amp;#98;&amp;#64;&amp;#103;&amp;#109;&amp;#97;&amp;#105;&amp;#108;&amp;#46;&amp;#99;&amp;#111;&amp;#109;</description><link>http://forum.wiibrew.org/read.php?12,23273,23273#msg-23273</link><lastBuildDate>Tue, 10 Nov 2026 22:55:33 +0100</lastBuildDate>
<generator>Phorum 5.2.23</generator>
<item>
<guid>http://forum.wiibrew.org/read.php?12,23273,29283#msg-29283</guid>
<title>Re: remote file descriptors [Updated: now with windows driver]</title><link>http://forum.wiibrew.org/read.php?12,23273,29283#msg-29283</link><description><![CDATA[ punto,<br /><br />I was having a problem that the server was only able to receive a few connections/disconnections and then it was entering an infinite loop on rfd_server_run.<br /><br />I added the following lines of code in rfd_server.c -&gt; rfd_server_run:<br /><pre class="bbcode">
<b>case RFD_SHUTDOWN: {

rfd_server_shutdown(p_server);
return 1;

} break;</b></pre><br />And also in rfd_net_winsock.c -&gt; tcp_read<br /><pre class="bbcode">
if (read == 0) {

// orderly shutdown
<b>buf[0] = RFD_SHUTDOWN;</b>
tcp_shutdown(p_ro);
return total_read;
};</pre><br /><br />I&#039;m not sure if this is the ideal fix, but it worked for me!]]></description>
<dc:creator>thiagolr</dc:creator>
<category>Testing Corner</category><pubDate>Sun, 16 Aug 2009 19:04:37 +0200</pubDate></item>
<item>
<guid>http://forum.wiibrew.org/read.php?12,23273,28127#msg-28127</guid>
<title>Re: remote file descriptors [Updated: now with windows driver]</title><link>http://forum.wiibrew.org/read.php?12,23273,28127#msg-28127</link><description><![CDATA[ <a href="http://www.opensource.org/licenses/mit-license.html" rel="nofollow">MIT License</a> (friendlier with wii development, since there&#039;s no dynamic linker..)<br /><br />I added a notice to the readme file.]]></description>
<dc:creator>punto</dc:creator>
<category>Testing Corner</category><pubDate>Fri, 07 Aug 2009 21:18:50 +0200</pubDate></item>
<item>
<guid>http://forum.wiibrew.org/read.php?12,23273,28074#msg-28074</guid>
<title>Re: remote file descriptors [Updated: now with windows driver]</title><link>http://forum.wiibrew.org/read.php?12,23273,28074#msg-28074</link><description><![CDATA[ What is the RFD license? GPL? LGPL?]]></description>
<dc:creator>thiagolr</dc:creator>
<category>Testing Corner</category><pubDate>Fri, 07 Aug 2009 16:02:19 +0200</pubDate></item>
<item>
<guid>http://forum.wiibrew.org/read.php?12,23273,27397#msg-27397</guid>
<title>Re: remote file descriptors [Updated: now with windows driver]</title><link>http://forum.wiibrew.org/read.php?12,23273,27397#msg-27397</link><description><![CDATA[ <blockquote class="bbcode"><div><small>Quote<br /></small><strong>thiagolr</strong><br />I tested yesterday and it is working as expected!<br /><br />It would be nice to have it as libs win32/linux/wii so we could just include it!<br />What do you think?<br /><br />Thanks!</div></blockquote><br />thanks for the feedback.. yeah, that&#039;s probably the way to go, I just didn&#039;t get the time to package it properly yet. Since I&#039;m compiling my own wiiload to use it, I just included the sources on my project. The wii client should probably be integrated with the fopen/fread/etc API too..<br /><br />I was just wondering if there&#039;d be interest from de development community (as an alternative to whatever we&#039;re using now to avoid loading all the assets on the wii before testing something).]]></description>
<dc:creator>punto</dc:creator>
<category>Testing Corner</category><pubDate>Sun, 02 Aug 2009 11:16:36 +0200</pubDate></item>
<item>
<guid>http://forum.wiibrew.org/read.php?12,23273,27107#msg-27107</guid>
<title>Re: remote file descriptors [Updated: now with windows driver]</title><link>http://forum.wiibrew.org/read.php?12,23273,27107#msg-27107</link><description><![CDATA[ I tested yesterday and it is working as expected!<br /><br />It would be nice to have it as libs win32/linux/wii so we could just include it!<br />What do you think?<br /><br />Thanks!]]></description>
<dc:creator>thiagolr</dc:creator>
<category>Testing Corner</category><pubDate>Thu, 30 Jul 2009 15:20:35 +0200</pubDate></item>
<item>
<guid>http://forum.wiibrew.org/read.php?12,23273,26727#msg-26727</guid>
<title>Re: remote file descriptors [Updated: now with windows driver]</title><link>http://forum.wiibrew.org/read.php?12,23273,26727#msg-26727</link><description><![CDATA[ I will test it!<br />Why don&#039;t you make a library?<br /><br /><br /><br /><br />Thiago]]></description>
<dc:creator>thiagolr</dc:creator>
<category>Testing Corner</category><pubDate>Mon, 27 Jul 2009 22:18:26 +0200</pubDate></item>
<item>
<guid>http://forum.wiibrew.org/read.php?12,23273,23273#msg-23273</guid>
<title>remote file descriptors [Updated: now with windows driver]</title><link>http://forum.wiibrew.org/read.php?12,23273,23273#msg-23273</link><description><![CDATA[ UPDATE: Added windows drivers and directory operations (chdir, opendir, etc). I&#039;m using scons to build, so I&#039;m not sure how well that works on windows.<br /><br />--<br />Hi..<br /><br />I wrote a small library to provide access to the console and filesystem of my computer to my wii app, I put together an example using wiiload. I think this should be a useful tool for development. I&#039;d love to get some feedback from the dev community. Here&#039;s the download link:<br /><br />[<a href="http://www.codenix.com/rfd.tar.bz2" rel="nofollow">www.codenix.com</a>]<br /><br />I&#039;m pasting the README file with more details below.<br /><br />thanks!<br /><br />--<br /><br />RFD (Remote File descriptor) is a portable library that provides file i/o over<br />a remote connection.<br /><br />My motivation was to be able to open files on my hard drive and print to a<br />console from my wii game without the need for elaborate samba or netcat setups.<br /><br />The operations supported are open, read, write, close and (limited) stat. Also<br />chdir, getcwd, opendir, readdir and closedir for directories.<br /><br />This package contains an example using a modified wiiload that starts a server,<br />and a wii program that connects to the server, opens a file and prints it to the<br />console of the running wiiload.<br /><br />Build requirements:<br /><br />- scons<br />- devkitppc, etc<br /><br />How to build:<br /><br />run "scons <target(s)>", where targets can be:<br /><br />wiiload (on linux)<br />wiiload.exe (on windows or linux using mingw)<br />template.elf (the wii demo)<br /><br />For example, "scons wiiload.exe template.elf" will give you wiiload.exe and<br />template.elf<br /><br />How to run:<br /><br />For wiiload, set the WIILOAD env var with the IP of your wii. Also you need to<br />set the env variable &#039;WIILOAD_RFD_HOST&#039; with the IP of your computer (it has to<br />be accessible from the wii).<br />Then, use wiiload to launch template.elf (eg "./wiiload template.elf")<br /><br />The wii program should print some stuff to the wiiload console, list the current<br />directory contents, and open the &#039;SConstruct&#039; file and print it.<br /><br />TODO:<br /><br />- Figure out the local IP of the host machine (so we don&#039;t need WIILOAD_RFD_HOST)<br />- Setup a device so we can use this with the fopen/printf/opendir API (don&#039;t know<br />how to do this)<br />- Maybe use one of the reserved file descriptors to talk to gdb, so we can debug<br />over the network?<br /><br />Contact:<br /><br /><a href="mailto:&#112;&#117;&#110;&#116;&#111;&#98;&#64;&#103;&#109;&#97;&#105;&#108;&#46;&#99;&#111;&#109;">&#112;&#117;&#110;&#116;&#111;&#98;&#64;&#103;&#109;&#97;&#105;&#108;&#46;&#99;&#111;&#109;</a>]]></description>
<dc:creator>punto</dc:creator>
<category>Testing Corner</category><pubDate>Thu, 02 Jul 2009 03:13:05 +0200</pubDate></item>
</channel>
</rss>