added access to the effective port that the server is listening to (useful when we set port to 0 it use a random free port)

added verbose , so that we write message to the console only if desired.
This commit is contained in:
Jocelyn Fiat
2011-11-03 18:13:55 +01:00
parent 7fd4cdbe44
commit c53d4d37a7
3 changed files with 42 additions and 9 deletions

View File

@@ -23,7 +23,7 @@ feature {NONE} -- Initialization
feature -- Access
Server_details : STRING = "Server : NANO Eiffel Server"
Server_details : STRING = "Server : NINO Eiffel Server"
document_root: STRING assign set_document_root
http_server_port: INTEGER assign set_http_server_port
@@ -32,6 +32,9 @@ feature -- Access
socket_connect_timeout: INTEGER assign set_socket_connect_timeout
force_single_threaded: BOOLEAN assign set_force_single_threaded
is_verbose: BOOLEAN assign set_is_verbose
-- Display verbose message to the output?
feature -- Element change
set_http_server_port (v: like http_server_port)
@@ -64,6 +67,11 @@ feature -- Element change
force_single_threaded := v
end
set_is_verbose (b: BOOLEAN)
-- Set `is_verbose' to `b'
do
is_verbose := b
end
note
copyright: "2011-2011, Javier Velilla and others"