Evd.Connection

g Evd.Connection Evd.Connection Evd.IoStream Evd.IoStream Evd.IoStream->Evd.Connection GObject.Object GObject.Object Gio.IOStream Gio.IOStream GObject.Object->Gio.IOStream Gio.IOStream->Evd.IoStream

Subclasses:

Evd.HttpConnection

Methods

Inherited:

Evd.IoStream (4), Gio.IOStream (11), GObject.Object (37)

Structs:

GObject.ObjectClass (5)

class

new (socket)

flush_and_shutdown (cancellable)

get_max_readable ()

get_max_writable ()

get_priority ()

get_remote_address_as_string ()

get_socket ()

get_tls_active ()

get_tls_session ()

is_connected ()

lock_close ()

set_socket (socket)

starttls (mode, cancellable, callback, *user_data)

starttls_finish (result)

unlock_close ()

Virtual Methods

Inherited:

Evd.IoStream (3), Gio.IOStream (5), GObject.Object (7)

do_close ()

do_write ()

Properties

Inherited:

Evd.IoStream (3), Gio.IOStream (3)

Name

Type

Flags

Short Description

socket

Evd.Socket

r/w

The socket this HTTP connection will use

tls

Evd.TlsSession

r

The underlaying SSL/TLS session object

tls-active

bool

r

Returns True if connection has SSL/TLS active, False otherwise. SSL/TLS is activated by calling ‘starttls’ on a connection

Signals

Inherited:

Evd.IoStream (2), GObject.Object (1)

Name

Short Description

write

Fields

Inherited:

Evd.IoStream (2), GObject.Object (1)

Name

Type

Access

Description

parent

Evd.IoStream

r

Class Details

class Evd.Connection(**kwargs)
Bases:

Evd.IoStream

Abstract:

No

Structure:

Evd.ConnectionClass

classmethod new(socket)
Parameters:

socket (Evd.Socket) –

Return type:

Evd.Connection

flush_and_shutdown(cancellable)
Parameters:

cancellable (Gio.Cancellable or None) –

get_max_readable()
Return type:

int

get_max_writable()
Return type:

int

get_priority()
Return type:

int

get_remote_address_as_string()
Raises:

GLib.Error

Return type:

str

get_socket()
Returns:

The Evd.Socket object

Return type:

Evd.Socket

get_tls_active()
Return type:

bool

get_tls_session()
Returns:

The Evd.TlsSession object

Return type:

Evd.TlsSession

is_connected()
Return type:

bool

lock_close()
set_socket(socket)
Parameters:

socket (Evd.Socket) –

starttls(mode, cancellable, callback, *user_data)
Parameters:
starttls_finish(result)
Parameters:

result (Gio.AsyncResult) –

Raises:

GLib.Error

Return type:

bool

unlock_close()
do_close() virtual
do_write() virtual

Signal Details

Evd.Connection.signals.write(connection)
Signal Name:

write

Flags:

RUN_LAST, ACTION

Parameters:

connection (Evd.Connection) – The object which received the signal

Property Details

Evd.Connection.props.socket
Name:

socket

Type:

Evd.Socket

Default Value:

None

Flags:

READABLE, WRITABLE

The socket this HTTP connection will use

Evd.Connection.props.tls
Name:

tls

Type:

Evd.TlsSession

Default Value:

None

Flags:

READABLE

The underlaying SSL/TLS session object

Evd.Connection.props.tls_active
Name:

tls-active

Type:

bool

Default Value:

False

Flags:

READABLE

Returns True if connection has SSL/TLS active, False otherwise. SSL/TLS is activated by calling ‘starttls’ on a connection