Talk:TCP Loader: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
WiibrewBot (talk | contribs) m Robot: Cosmetic changes |
||
(4 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
== *nix way of doing this? == | == *nix way of doing this? == | ||
Hi, I was wondering about the protocol of this loader.<br> | Hi, I was wondering about the protocol of this loader.<br /> | ||
If it's just "client sends size of file to load, client send file" how is that size represented? Bytes, bits, kbytes, mbytes? | If it's just "client sends size of file to load, client send file" how is that size represented? Bytes, bits, kbytes, mbytes? | ||
Line 8: | Line 8: | ||
ls -la <filename> | awk '{print $5}' | nc <Wii IP> 8080 && cat <filename> | nc <Wii IP> 8080 | ls -la <filename> | awk '{print $5}' | nc <Wii IP> 8080 && cat <filename> | nc <Wii IP> 8080 | ||
</pre> | </pre> | ||
--[[User:jlor|jlor]] (sorry for not signing originally) | |||
This just sends the bytesize of the file to the Wii IP at port 8080, then sends the data afterwards. | This just sends the bytesize of the file to the Wii IP at port 8080, then sends the data afterwards. | ||
Line 16: | Line 17: | ||
:: or <pre>( ls -l <filename> | awk '{print $5}' ; cat <filename> ) | nc <Wii IP> 8080</pre>[[User:130.237.152.216|130.237.152.216]] 21:56, 22 April 2008 (PDT) | :: or <pre>( ls -l <filename> | awk '{print $5}' ; cat <filename> ) | nc <Wii IP> 8080</pre>[[User:130.237.152.216|130.237.152.216]] 21:56, 22 April 2008 (PDT) | ||
::: I doubt this would work since the code reads it into an uint32 (big endian too..), and nc would just send it as a character string.. I put together a small [http://fixme.se/dump/tlc.c c-program] that should work. --[[User:heanol|heanol]] |
Latest revision as of 04:53, 12 August 2009
*nix way of doing this?
Hi, I was wondering about the protocol of this loader.
If it's just "client sends size of file to load, client send file" how is that size represented? Bytes, bits, kbytes, mbytes?
I'm currently not able to test this by a trial-and-error progress, but would this work:
ls -la <filename> | awk '{print $5}' | nc <Wii IP> 8080 && cat <filename> | nc <Wii IP> 8080
--jlor (sorry for not signing originally)
This just sends the bytesize of the file to the Wii IP at port 8080, then sends the data afterwards.
Please sign your comments. I do not think that would work, you need to send it during the same connection, not during two connections.--henke37 06:04, 22 April 2008 (PDT)
- So write the bytesize and then the data to a file and send that. 198.166.12.229 15:05, 22 April 2008 (PDT)
- or
( ls -l <filename> | awk '{print $5}' ; cat <filename> ) | nc <Wii IP> 8080
130.237.152.216 21:56, 22 April 2008 (PDT)
- or