Back to Seed Clases

Gio


Classes

Interfaces

Structs

Unions

Enums

Class Gio.ThreadedSocketService

Import line: Gio = imports.gi.Gio;
GIR File: Gio-2.0.gir
C documentation: GThreadedSocketService
Class : ThreadedSocketService
Extends: Gio.SocketService
A GThreadedSocketService is a simple subclass of GSocketService
that handles incoming connections by creating a worker thread and
dispatching the connection to it by emitting the ::run signal in
the new thread.
The signal handler may perform blocking IO and need not return
until the connection is closed.
The service is implemented using a thread pool, so there is a
limited amount of threads availible to serve incomming requests.
The service automatically stops the GSocketService from accepting
new connections when all threads are busy.
As with GSocketService, you may connect to GThreadedSocketService:run,
or subclass and override the default handler.
Properties
Properties Defined By
Methods / Constructors
Method / Constructor Defined By
Events - usage syntax: this.signals.EVENTNAME.connect( Function )
Event Defined By
Used by These Methods / Signals / Properties- Nowhere other than here
Documentation generated by Introspection Doc Generator Loosely Based on JsDoc Toolkit on Sat Apr 16 2011 17:11:18 GMT+0800 (HKT)