CPCWiki forum

General Category => Applications => Topic started by: m_dr_m on 18:56, 17 February 21

Title: Internet: Uploading from CPC?
Post by: m_dr_m on 18:56, 17 February 21
Hej! SymbOs has a `wget`, which is super sweet.
Goal: collaborate and share new programs without having to leave the CPC!
Title: Re: Internet: Uploading from CPC?
Post by: Ast on 19:58, 17 February 21

Hi @m_dr_m (https://www.cpcwiki.eu/forum/index.php?action=profile;u=3015)


Do you ever try this ?

CPC Rulez • Consulter le sujet - Kit De téléchargement M4Wifi pour CPCRULEZ (https://cpcrulez.fr/forum/viewtopic.php?f=2&t=6426&hilit=rulez)
Title: Re: Internet: Uploading from CPC?
Post by: GUNHED on 03:22, 18 February 21
Gentleman, I love your attitude. Doing it all on the CPC/Plus is (imho) the highest goal.  :)
Title: Re: Internet: Uploading from CPC?
Post by: m_dr_m on 22:32, 27 April 21
Do you ever try this ?

CPC Rulez • Consulter le sujet - Kit De téléchargement M4Wifi pour CPCRULEZ

It's only for downloading. I've propose the upload feature, but no news since then.
Title: Re: Internet: Uploading from CPC?
Post by: zhulien on 08:33, 28 April 21
You can upload 'slowly' using URL parameter encoded JSONP-like webservice calls, but it is far from ideal.


It is however perfectly ok for communications to the server for multiplayer games as well as fetch requests.


You could do a speed test for making multiple calls with eg: 128 encoded bytes per call... if you aren't transferring megabytes it could suffice.
Title: Re: Internet: Uploading from CPC?
Post by: zhulien on 08:44, 28 April 21
Goal: collaborate and share new programs without having to leave the CPC!


I am in the process of coding an internet filesystem for CPC as a UniDOS plugin.  First I get the logic right so that I can code the webservice bit, then... get myself (if I am capable) or convince another person to code the Z80 bit.


The status: I only started a few weeks ago,


I've pseudocoded the logic for 15 of 25 functions required:  init, checkDrive, getStatus, getName, getDesc, getFreeSpace, rename, delete, createDir, setProtection, openNVRAM, closeNVRAM, readNVRAM, writeNVRAM, seekNVRAM


10 remaining: inOpenStream, inReadStream, inCloseStream, inSeekStream, outOpenStream, outWriteStream, outCloseStream, outSeekStream, examine, examineNext


To keep it simple from a design point of view: 


- either 1 drive 'n' with an owner and shared folder.  The owner folder is your writable copies of files, the shared is readonly everyones files including your own as readonly.


or


- 2 drives 'n' for your own files writable, 's' for shared


If you don't want to share, you delete the file from your area.  Everyone in the readonly area has a folder based on their userid they register with the server.




It will be treated as a mass storage device - with a defined per user limit on the server.




Collaboration is a great idea.  I setup 8bitology.net for creation of an API and browser spec that a CPC is capable of.  I had some interest from Prodatron to incorporate the Lobby into Symbos for multiplayer games but I think he has become very busy.  Nobody else seems interested in a CPC browser, CPC-capable websites (SDK is already on 8bitology.net) or the 8bitology API (messaging, lobby, achievements, file sharing).  Nor is anyone interested in the JS Compiler, VB6 compiler, or coding multiplayer games... not from a collaboration point of view anyway.