Protocols/netfolder: Difference between revisions
No edit summary |
No edit summary |
||
(One intermediate revision by the same user not shown) | |||
Line 2: | Line 2: | ||
the getfolder and putfolder commands don't require special communication, the client lists the folder then uses getfile to download each file seperate. | 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 | '''test server''' - used to see if a server is online | ||
Line 8: | Line 13: | ||
server: "NETFOL-ACK" - string - answer positive | server: "NETFOL-ACK" - string - answer positive | ||
'''getfile''' - used to download a file from the server | '''getfile''' - used to download a file from the server |
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