File: FileTransferProtocol.txt

package info (click to toggle)
coccinella 0.96.20-7
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 13,108 kB
  • ctags: 5,908
  • sloc: tcl: 124,744; xml: 206; makefile: 66; sh: 62
file content (47 lines) | stat: -rw-r--r-- 1,704 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47

Description of various protocols used in the Whiteboard.

--------------------------------------------------------------------------------
The PUT protocol: Put file from client to server.

    client                         server          comments
    ------                         ------          --------

      o----------------------------->.             open a socket to the server

   "PUT: file optList" ->

                                <- "TCLWB/1.0 200 Ok"
                                                   it is not necessary to 
                                                   return the 'optList'

    fcopy ------------------------> fcopy

--------------------------------------------------------------------------------

The GET protocol: Get file from server to client.

    client                         server          comments
    ------                         ------          --------

      o----------------------------->.             open a socket to the server

   "GET: file" ->

                                <- "TCLWB/1.0 200 Ok"
                                <- "key: value key:value ..."
                                                   it is necessary to return 
                                                   an 'optList' that 
                                                   specifies byte size and 
                                                   MIME type

    fcopy <------------------------ fcopy

--------------------------------------------------------------------------------



Legend:
         file      name of the file, only the tail
         optList   "key: value key:value ..." which resembles the HTTP 
                   protocol