class EL_REMOTE_ROUTINE_CALL_SERVER_APPLICATION

(source code)

Client examples: FOURIER_MATH_SERVER_APP

Description

Remote routine call server application

note
	description: "Remote routine call server application"

	author: "Finnian Reilly"
	copyright: "Copyright (c) 2001-2017 Finnian Reilly"
	contact: "finnian at eiffel hyphen loop dot com"

	license: "MIT license (See: en.wikipedia.org/wiki/MIT_License)"
	date: "2018-09-20 11:35:14 GMT (Thursday 20th September 2018)"
	revision: "7"

deferred class
	EL_REMOTE_ROUTINE_CALL_SERVER_APPLICATION

inherit
	EL_LOGGED_SUB_APPLICATION

feature {NONE} -- Initialization

	initialize
			--
		do
			create port_number
			create request_handler_count_max
			Args.set_integer_from_word_option (
				"port", agent port_number.set_item , Default_port_number
			)
			Args.set_integer_from_word_option (
				"max_threads", agent request_handler_count_max.set_item , Default_request_handler_count_max
			)
			create gui.make (name, port_number, request_handler_count_max)
		end

feature -- Basic operations

	run
		do
			gui.launch
		end

	name: ZSTRING
			--

		deferred
		end

	gui: EL_REMOTE_ROUTINE_CALL_SERVER_UI

feature {NONE} -- Remotely callable types

	callable_classes: TUPLE
			--
		deferred
		end

	port_number, request_handler_count_max: INTEGER_REF

feature {NONE} -- Constants

	Default_request_handler_count_max: INTEGER = 30

	Default_port_number: INTEGER = 8001

end