Simple Server
In this activity you will create a web server that serves a simple message.
Download
simpleServer.c
,
or copy it into your current directory on a CSE system by running
$ cp /web/cs1511/17s2/week06/files/simpleServer.c .
All you need to do
is change the serveText
function
so that it sends a simple message
rather than the current message.
When you run the server program you can see the poem you made by connecting to the server in your browser at [http://localhost:1511/][].
To run Styl-o-matic:
$ 1511 stylomatic simpleServer.c Looks good!
You’ll get advice if you need to make changes to your code.
Submit your work with the give command, like so:
$ give cs1511 wk06_simpleServer
Or, if you are working from home, upload the relevant file(s) to the wk06_simpleServer activity on Give Online.