Evd.Service

g Evd.IoStreamGroup Evd.IoStreamGroup Evd.Service Evd.Service Evd.IoStreamGroup->Evd.Service GObject.Object GObject.Object GObject.Object->Evd.IoStreamGroup

Subclasses:

Evd.Reproxy, Evd.WebService

Methods

Inherited:

Evd.IoStreamGroup (3), GObject.Object (37)

Structs:

GObject.ObjectClass (5)

class

new ()

accept_connection (conn)

add_listener (socket)

get_io_stream_type ()

get_tls_autostart ()

get_tls_credentials ()

listen (address, cancellable, callback, *user_data)

listen_finish (result)

reject_connection (conn)

remove_listener (socket)

set_io_stream_type (io_stream_type)

set_tls_autostart (autostart)

set_tls_credentials (credentials)

Virtual Methods

Inherited:

Evd.IoStreamGroup (2), GObject.Object (7)

do_connection_accepted (conn)

do_connection_rejected (conn)

do_signal_validate_connection (socket, *user_data)

do_signal_validate_tls_connection (socket, *user_data)

Properties

Inherited:

Evd.IoStreamGroup (2)

Name

Type

Flags

Short Description

tls-autostart

bool

r/w

Returns True if TLS upgrade should be performed automatically upon incoming connections

tls-credentials

Evd.TlsCredentials

r/w

The TLS credentials that will be passed to the connections of the service

Signals

Inherited:

GObject.Object (1)

Name

Short Description

validate-connection

validate-tls-connection

Fields

Inherited:

GObject.Object (1)

Name

Type

Access

Description

parent

Evd.IoStreamGroup

r

Class Details

class Evd.Service(**kwargs)
Bases:

Evd.IoStreamGroup

Abstract:

No

Structure:

Evd.ServiceClass

classmethod new()
Return type:

Evd.Service

accept_connection(conn)
Parameters:

conn (Evd.Connection) –

add_listener(socket)
Parameters:

socket (Evd.Socket) –

get_io_stream_type()
Return type:

int

get_tls_autostart()
Return type:

bool

get_tls_credentials()
Returns:

The Evd.TlsCredentials object of this session

Return type:

Evd.TlsCredentials

listen(address, cancellable, callback, *user_data)
Parameters:
listen_finish(result)
Parameters:

result (Gio.AsyncResult) –

Raises:

GLib.Error

Return type:

bool

reject_connection(conn)
Parameters:

conn (Evd.Connection) –

remove_listener(socket)
Parameters:

socket (Evd.Socket) –

Return type:

bool

set_io_stream_type(io_stream_type)
Parameters:

io_stream_type (GObject.GType) –

set_tls_autostart(autostart)
Parameters:

autostart (bool) –

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:
Return type:

int

do_signal_validate_tls_connection(socket, *user_data) virtual
Parameters:
Return type:

int

Signal Details

Evd.Service.signals.validate_connection(service, object)
Signal Name:

validate-connection

Flags:

ACTION

Parameters:
Return type:

int

Evd.Service.signals.validate_tls_connection(service, object)
Signal Name:

validate-tls-connection

Flags:

ACTION

Parameters:
Return type:

int

Property Details

Evd.Service.props.tls_autostart
Name:

tls-autostart

Type:

bool

Default Value:

False

Flags:

READABLE, WRITABLE

Returns True if TLS upgrade should be performed automatically upon incoming connections

Evd.Service.props.tls_credentials
Name:

tls-credentials

Type:

Evd.TlsCredentials

Default Value:

None

Flags:

READABLE, WRITABLE

The TLS credentials that will be passed to the connections of the service