Protocols/netfolder: Difference between revisions
(Created page with "this protocol explains how netfolder talks over the network putfile client: "NETFOL-TEST" - string client: path - string, server location client: login - string, username to be used client: pass - string, password for this user server: path - bounce server: login - bounce server: pass - bounce client: sync reply - string - must be = "SYNC-SUCC" to proceed. server: "NETFOLDER-DENIED" if refused or "NETFOLDER-PUTFILE" if accepted, both strings. se...") |
No edit summary |
||
(2 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
this [[Protocols|protocol]] explains how netfolder talks over the network | this [[Protocols|protocol]] explains how netfolder talks over the network | ||
the getfolder and putfolder commands don't require special communication, the client lists the folder then uses getfile to download each file seperate. | |||
bouce means we send the same data back to compare tegridy | |||
client: "NETFOL-TEST" - string | |||
'''test server''' - used to see if a server is online | |||
client: "NETFOL-TEST - string - request test | |||
server: "NETFOL-ACK" - string - answer positive | |||
'''getfile''' - used to download a file from the server | |||
client: "NETFOL-GET" - string - request getfile | |||
client: path - string, server location | |||
client: login - string, username to be used | |||
client: pass - string, password for this user | |||
server: path - bounce | |||
server: login - bounce | |||
server: pass - bounce | |||
client: sync reply - string - must be = "SYNC-SUCC" to proceed. | |||
server: "NETFOLDER-DENIED" if refused or "NETFOLDER-SENDFILE" if accepted, "NETFOLDER-NOEXIST" if it doesn't exist. all strings. server either stops or sends file data | |||
server: file data - the actual file read in a string | |||
client= file data - bounce | |||
server: bool - true if success, false if fail, the client can write the file if true. | |||
'''putfile -''' used to upload a file to the server | |||
client: "NETFOL-PUT" - string - request putfile | |||
client: path - string, server location | client: path - string, server location | ||
Line 29: | Line 70: | ||
the server can now write the file | the server can now write the file | ||
'''file list''' - used to obtain a file list from the server | |||
client: "NETFOL-LS" - request file list | |||
client: path - string, server location | |||
client: login - string, username to be used | |||
client: pass - string, password for this user | |||
server: path - bounce | |||
server: login - bounce | |||
server: pass - bounce | |||
client: sync reply - string - must be = "SYNC-SUCC" to proceed. | |||
server: "NETFOLDER-DENIED" if refused, "NETFOLDER-NOEXIST" if not found, "NETFOLDER-NODIR" if not a directory, "NETFOLDER-LS" to proceed. | |||
server: file list - this is a file stored in a single string to write down on the client side for further processing. | |||
'''delete''' - used to delete a file or folder | |||
client: "NETFOL-DEL" - request file deletion | |||
client: path - string, server location | |||
client: login - string, username to be used | |||
client: pass - string, password for this user | |||
server: path - bounce | |||
server: login - bounce | |||
server: pass - bounce | |||
client: sync reply - string - must be = "SYNC-SUCC" to proceed. | |||
server: "NETFOLDER-DENIED" if refused or "NETFOLDER-DEL" if accepted, "NETFOLDER-NOEXIST" if it doesn't exist. all strings. server either stops or deletes the file |
Latest revision as of 08:42, 27 September 2024
this protocol explains how netfolder talks over the network
the getfolder and putfolder commands don't require special communication, the client lists the folder then uses getfile to download each file seperate.
bouce means we send the same data back to compare tegridy
test server - used to see if a server is online
client: "NETFOL-TEST - string - request test
server: "NETFOL-ACK" - string - answer positive
getfile - used to download a file from the server
client: "NETFOL-GET" - string - request getfile
client: path - string, server location
client: login - string, username to be used
client: pass - string, password for this user
server: path - bounce
server: login - bounce
server: pass - bounce
client: sync reply - string - must be = "SYNC-SUCC" to proceed.
server: "NETFOLDER-DENIED" if refused or "NETFOLDER-SENDFILE" if accepted, "NETFOLDER-NOEXIST" if it doesn't exist. all strings. server either stops or sends file data
server: file data - the actual file read in a string
client= file data - bounce
server: bool - true if success, false if fail, the client can write the file if true.
putfile - used to upload a file to the server
client: "NETFOL-PUT" - string - request putfile
client: path - string, server location
client: login - string, username to be used
client: pass - string, password for this user
server: path - bounce
server: login - bounce
server: pass - bounce
client: sync reply - string - must be = "SYNC-SUCC" to proceed.
server: "NETFOLDER-DENIED" if refused or "NETFOLDER-PUTFILE" if accepted, both strings. server either stops or listens for file data
client: filedata - the actual file read in a string
server: filedata - bounce the data
client: sync reply - bool - must be true to proceed
the server can now write the file
file list - used to obtain a file list from the server
client: "NETFOL-LS" - request file list
client: path - string, server location
client: login - string, username to be used
client: pass - string, password for this user
server: path - bounce
server: login - bounce
server: pass - bounce
client: sync reply - string - must be = "SYNC-SUCC" to proceed.
server: "NETFOLDER-DENIED" if refused, "NETFOLDER-NOEXIST" if not found, "NETFOLDER-NODIR" if not a directory, "NETFOLDER-LS" to proceed.
server: file list - this is a file stored in a single string to write down on the client side for further processing.
delete - used to delete a file or folder
client: "NETFOL-DEL" - request file deletion
client: path - string, server location
client: login - string, username to be used
client: pass - string, password for this user
server: path - bounce
server: login - bounce
server: pass - bounce
client: sync reply - string - must be = "SYNC-SUCC" to proceed.
server: "NETFOLDER-DENIED" if refused or "NETFOLDER-DEL" if accepted, "NETFOLDER-NOEXIST" if it doesn't exist. all strings. server either stops or deletes the file