Evd.Service¶
- Subclasses:
Methods¶
- Inherited:
- Structs:
class |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Virtual Methods¶
- Inherited:
|
|
|
|
|
|
|
Properties¶
- Inherited:
Name |
Type |
Flags |
Short Description |
---|---|---|---|
r/w |
Returns |
||
r/w |
The TLS credentials that will be passed to the connections of the service |
Signals¶
- Inherited:
Name |
Short Description |
---|---|
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
---|---|---|---|
parent |
r |
Class Details¶
- class Evd.Service(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
- classmethod new()¶
- Return type:
- accept_connection(conn)¶
- Parameters:
conn (
Evd.Connection
) –
- add_listener(socket)¶
- Parameters:
socket (
Evd.Socket
) –
- get_tls_credentials()¶
- Returns:
The
Evd.TlsCredentials
object of this session- Return type:
- listen(address, cancellable, callback, *user_data)¶
- Parameters:
address (
str
) –cancellable (
Gio.Cancellable
orNone
) –callback (
Gio.AsyncReadyCallback
orNone
) –
- listen_finish(result)¶
- Parameters:
result (
Gio.AsyncResult
) –- Raises:
- Return type:
- reject_connection(conn)¶
- Parameters:
conn (
Evd.Connection
) –
- remove_listener(socket)¶
- Parameters:
socket (
Evd.Socket
) –- Return type:
- set_io_stream_type(io_stream_type)¶
- Parameters:
io_stream_type (
GObject.GType
) –
- set_tls_credentials(credentials)¶
- Parameters:
credentials (
Evd.TlsCredentials
) –
- do_connection_accepted(conn) virtual¶
- Parameters:
conn (
Evd.Connection
) –
- do_connection_rejected(conn) virtual¶
- Parameters:
conn (
Evd.Connection
) –
- do_signal_validate_connection(socket, *user_data) virtual¶
- Parameters:
socket (
Evd.Connection
) –
- Return type:
- do_signal_validate_tls_connection(socket, *user_data) virtual¶
- Parameters:
socket (
Evd.Connection
) –
- Return type:
Signal Details¶
- Evd.Service.signals.validate_connection(service, object)¶
- Signal Name:
validate-connection
- Flags:
- Parameters:
service (
Evd.Service
) – The object which received the signalobject (
Evd.Connection
) –
- Return type:
- Evd.Service.signals.validate_tls_connection(service, object)¶
- Signal Name:
validate-tls-connection
- Flags:
- Parameters:
service (
Evd.Service
) – The object which received the signalobject (
Evd.Connection
) –
- Return type:
Property Details¶
- Evd.Service.props.tls_autostart¶
-
Returns
True
if TLS upgrade should be performed automatically upon incoming connections
- Evd.Service.props.tls_credentials¶
- Name:
tls-credentials
- Type:
- Default Value:
- Flags:
The TLS credentials that will be passed to the connections of the service