i started to play with 1.5.1 and took a look to the "new" remote control via the "lan"-networks.
i started building a datacenter(some servers and lots of disk drives) and noticed that there are no remoteMethods for the diskDrive. after they are connected the drives appear in the root directory as disk1, disk2…disk32. but these numbers aren't assigned to the Remotenames of the drives. so i can't manage the drives when floppies where pulled out. then all disks loaded after it get a smaller value than berfore.
so my first idea is to add remoteMethods to the drives like:
wiredModem = peripheral("side")
wiredModem.callRemote("disk_1", "getLabel")
and this with all methods from the disk(api). the problem with the identification isn't solved with this.
second and easier way for identifying different drives is to change the way the numbers get assigned to the disks.
example(how it is just yet):
3 disk drives and one computer in one network:
drive_0
drive_1
dirve_2
computer_0
if i put a disk into "drive_2" it appears as "disk"
put another into "drive_1" you get "disk" and "disk2"
remove the one from "drive_2". now you get only "disk"
you see the disk in "drive_2" is "disk" first.
(but in the last step the disk from "drive_1" is assigned as "disk" too) equals (no identification of disks possible.)
now the example including my idea:
3 disk drives and one computer in one network:
drive_0
drive_1
dirve_2
computer_0
if i put a disk into "drive_2" it appears as "remoteDisk2"
put another into "drive_1" you get "remoteDisk2" and "remoteDisk1"
remove the one from "drive_2". now you get only "remoteDisk1"
the "remote" is just an indicator for a remoteDrive so the solution doesn't cross the directly attached disk drives
additional improvement to the directly attached disk drives were "diskRight", "diskLeft", ect, to identify them as well as in the network
yeah, thats it. if there are any things i missunderstood, pls tell me. but i think there were no cons to these changes i would like to have. if you have other ideas to get better identification you're welcome. i hope my grammar isn't too bad :S I'm from germany.
~InDieTasten