Fixing compilation of specific example using the WGI connector directly
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user