Commit 9b293bd

Richard Luby <richluby@gmail.com>
2016-10-25 11:57:00
improved comments
1 parent 5e5b2a4
Changed files (1)
questioner.go
@@ -79,7 +79,8 @@ func handleConnections(writer http.ResponseWriter, request *http.Request) {
 	io.WriteString(writer, "Welcome to the questioning server.\n")
 }
 
-//Listen sets binds the listening server and starts the listening loop
+// Listen binds the listening server and starts the listening loop
+// serverConfig : contains the configuration to be used
 func Listen(serverConfig CONFIG) {
 	http.HandleFunc("/", handleConnections)
 	log.Fatal(http.ListenAndServe(
@@ -89,6 +90,7 @@ func Listen(serverConfig CONFIG) {
 }
 
 // main handles starting the listening server
+// the server reads the questions file before establishing a listener
 func main() {
 	var confFile string
 	flag.StringVar(&confFile, "file", "", "define a specific configuration file to read")