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,9 +10,9 @@ feature -- Access
local local
libfcgi: WGI_LIBFCGI_CONNECTOR libfcgi: WGI_LIBFCGI_CONNECTOR
do do
create libfcgi.make (Current) create libfcgi.make (to_wgi_service)
libfcgi.launch libfcgi.launch
end end
gateway_name: STRING = "libFCGI" gateway_name: STRING = "libFCGI"
@@ -20,7 +20,7 @@ feature -- Access
do do
(create {EXCEPTIONS}).die (a_code) (create {EXCEPTIONS}).die (a_code)
end end
note note
copyright: "Copyright (c) 1984-2011, Eiffel Software and others" copyright: "Copyright (c) 1984-2011, Eiffel Software and others"

View File

@@ -7,6 +7,9 @@ note
class class
HELLO_WORLD HELLO_WORLD
inherit
WGI_SERVICE
create create
make make
@@ -15,7 +18,7 @@ feature {NONE} -- Initialization
make make
do 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") 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 end
execute (req: WGI_REQUEST; res: WGI_RESPONSE) execute (req: WGI_REQUEST; res: WGI_RESPONSE)
@@ -28,7 +31,7 @@ feature {NONE} -- Initialization
port_number: INTEGER = 8123 port_number: INTEGER = 8123
note 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)" license: "Eiffel Forum License v2 (see http://www.eiffel.com/licensing/forum.txt)"
source: "[ source: "[
Eiffel Software Eiffel Software