Jump to content
  • Sky
  • Blueberry
  • Slate
  • Blackcurrant
  • Watermelon
  • Strawberry
  • Orange
  • Banana
  • Apple
  • Emerald
  • Chocolate
  • Charcoal
gamax92

OCNetFS, filesystem over internet

Recommended Posts

Description:
What OCNetFS allows you to do is mount a folder from an actual server over the internet, as a filesystem component.

Server implementations:
There are two server implementations so far:
Love2D Server: Features the sandbox and love.filesystem api from Love2D, but conf.lua/main.lua will be listed, and cannot specify which folder to host.
All required libraries are included.

LuaFilesystem Server: Uses an experimental/bad sandbox, and lfs isn't too great, but can run in places without Xorg, and the folder to use is the working directory.
Its easy to change the folder, by setting "currentdir" in sanitizePath to a specific location.

Configuration:
By default it tries to listen to port 14948, but if that fails it allocates a random port.
The starting label and ability to modify are listed near the top of the file, as label and change respectively
The port itself is in socket.bind, which is still not too far away from the config section.
totalspace cannot really be calculated, and modifying it doesn't actually limit, so its just a visual thing.

Limitation:
ocnetfs does basic argument type checks, but doesn't validate specifics such as (attempting to open a file under mode "apple")
Both server unserialize using a custom unserializer to prevent the server from executing error, but the unserializer isn't very robust and may not always be correct.

For what OC's serializer produces, it should be valid

Downloads:
If you use oppm, ocnetfs is available from there
Else, it and the server programs can be downloaded from here

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use and Privacy Policy.