Difference: ProtocolOvervew (2 vs. 3)

Revision 32017-02-15 - JimSkon

Line: 1 to 1
 
META TOPICPARENT name="Spring2017"

Communications Protocol

Project 3 will require that web applications that will need to communicate with a server program. This will require a carefully designed set of unambiguous rules for how the communication process will work. More Here.

Example: Protocol Table for the US Census Name Program

The Name program had a very simple protocol between the web page and the CGI program and CGI program and the server:

Communications Protocol between web page and the CGI program (Table Form)
From To Format Meaning Example
Web Page CGI ?&type_select=type
&name= name
type is LAST, MALE or FEMALE
name is the name to look up
?&type_select=Last&name=Smith
Changed:
<
<
Web Page CGI name, %, rank, ... A comma delimited list of 10 triplets consisting of: name, %, and rank SMILLIE,0.000,32817, SMILY,0.000,67745, SMINK,0.000,54155, SMISEK,0.000,67744, SMIT,0.001,12725, SMITH,1.006,1, SMITHBERGER,0.000,67743, SMITHE,0.000,78005, SMITHEE,0.000,34689, SMITHEN,0.000,67742
>
>
CGI Web Page name, %, rank, ... A comma delimited list of 10 triplets consisting of: name, %, and rank SMILLIE,0.000,32817, SMILY,0.000,67745, SMINK,0.000,54155, SMISEK,0.000,67744, SMIT,0.001,12725, SMITH,1.006,1, SMITHBERGER,0.000,67743, SMITHE,0.000,78005, SMITHEE,0.000,34689, SMITHEN,0.000,67742
 
CGI Server $type* name type is LAST, MALE or FEMALE
name is the name to look up
$LAST*Smith
Server CGI name, %, rank, ... A comma delimited list of 10 triplets consisting of: name, %, and rank SMILLIE,0.000,32817, SMILY,0.000,67745, SMINK,0.000,54155, SMISEK,0.000,67744, SMIT,0.001,12725, SMITH,1.006,1, SMITHBERGER,0.000,67743, SMITHE,0.000,78005, SMITHEE,0.000,34689, SMITHEN,0.000,67742

Example: Protocol diagram for Shakespeare System

Protocol.png

Where
  • word is a word to look up
  • line is a line with a matching word

META FILEATTACHMENT attachment="Protocol.png" attr="" comment="" date="1487132438" name="Protocol.png" path="Protocol.png" size="17722" user="JimSkon" version="1"
 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2019 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback