This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
CuperCupu's profile picture

[Networking] Fileshare v1.0

Started by CuperCupu, 03 August 2012 - 02:55 PM
CuperCupu #1
Posted 03 August 2012 - 04:55 PM
Hello there!

With this program you can share you files between computer with modem instead of floppy disk!

Feature:
  • Sending and receiving a file!
Installation(normal program installation)

Require cLib

Usage:
Sending:
  1. Specify modem's position
  2. Specify destination computer's ID
  3. Select "send" (press enter to select, UP and Down button to change selection)
  4. Specify file path to send
  5. Wait for other
  6. Press any key to continue!
Receiving:
  1. Specify modem's position
  2. Specify destination computer's ID
  3. Select "receive" (press enter to select, UP and Down button to select)
  4. Wait for other
  5. Specify file path to save
  6. Press any key to continue!
Download

Feel free to post any feedback!
Feel free to edit and learn too!
Tiin57 #2
Posted 03 August 2012 - 09:33 PM
What does this do? Is it just reading the contents of x file and sending them over rednet to a computer which writes the message into a file? If so, I have some generic code suggestions for you.
First, make the client (receiving the file) run in the background, so you don't have it unusable while waiting to receive file.
Second, have the sender send a variable at the start, determined by read(), which tells the receiver what path/name to store the file under.
Just a couple of ideas.
If you want, I could write out some of the code for you.
CuperCupu #3
Posted 04 August 2012 - 03:47 AM
OK, thanks for the suggestion, but I can do them by myself :P/>/>

What does this do? Is it just reading the contents of x file and sending them over rednet to a computer which writes the message into a file?
Also isn't that is how you send file over internet?(but with binary instead)