Fixing compilation of specific example using the WGI connector directly

This commit is contained in:
Jocelyn Fiat
2012-03-20 12:15:45 +01:00
parent 482f8e41e7
commit d256ec3944
2 changed files with 8 additions and 5 deletions

View File

@@ -10,7 +10,7 @@ feature -- Access
local
libfcgi: WGI_LIBFCGI_CONNECTOR
do
create libfcgi.make (Current)
create libfcgi.make (to_wgi_service)
libfcgi.launch
end

View File

@@ -7,6 +7,9 @@ note
class
HELLO_WORLD
inherit
WGI_SERVICE
create
make
@@ -15,7 +18,7 @@ feature {NONE} -- Initialization
make
do
print ("Example: start a Nino web server on port " + port_number.out + ", %Nand reply Hello World for any request such as http://localhost:8123/%N")
(create {NINO_SERVICE}.make_custom (agent execute, "")).listen (port_number)
(create {NINO_SERVICE}.make_custom (Current, "")).listen (port_number)
end
execute (req: WGI_REQUEST; res: WGI_RESPONSE)
@@ -28,7 +31,7 @@ feature {NONE} -- Initialization
port_number: INTEGER = 8123
note
copyright: "2011-2011, Eiffel Software and others"
copyright: "2011-2012, Eiffel Software and others"
license: "Eiffel Forum License v2 (see http://www.eiffel.com/licensing/forum.txt)"
source: "[
Eiffel Software