Class: Gio::ThreadedSocketService

Inherits:
SocketService show all
Defined in:
(unknown)

Instance Method Summary collapse

Methods inherited from SocketService

#active=, #active?, #is_active, #start, #stop

Methods inherited from SocketListener

#accept, #accept_async, #accept_finish, #accept_socket, #accept_socket_async, #accept_socket_finish, #add_address, #add_any_inet_port, #add_inet_port, #add_socket, #backlog=, #close, #listen_backlog, #listen_backlog=

Constructor Details

#initialize(max_threads) ⇒ Gio::SocketService

Creates a new GThreaded::SocketService with no listeners. Listeners must be added with one of the GSocket::Listener "add" methods.

Parameters:

  • max_threads (Integer)

    the maximal number of threads to execute concurrently handling incoming clients, -1 means no limit

Instance Method Details

#max_threadsInteger

The maximum number of threads handling clients for this service.

Returns:

  • (Integer)

    max-threads

#max_threads=(max_threads) ⇒ Integer

The maximum number of threads handling clients for this service.

Parameters:

  • max_threads (Integer)

Returns:

  • (Integer)

    max-threads

  • (Integer)

    max-threads