Evd.Socket¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
class |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Virtual Methods¶
- Inherited:
|
|
|
|
|
|
|
|
|
|
|
Properties¶
Name |
Type |
Flags |
Short Description |
---|---|---|---|
r/w |
The sockets address family |
||
r/w |
The |
||
r/w |
The priority of the socket when dispatching its events in the loop |
||
r/w |
The id of the protocol to use, or -1 for unknown |
||
r |
The underlaying socket |
||
r |
The current status of the socket (closed, connected, listening, etc) |
||
r/w |
The sockets type |
Signals¶
- Inherited:
Name |
Short Description |
---|---|
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
---|---|---|---|
parent |
r |
Class Details¶
- class Evd.Socket(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
- classmethod new()¶
- Return type:
- bind(address, cancellable, callback, *user_data)¶
- Parameters:
address (
str
) –cancellable (
Gio.Cancellable
orNone
) –callback (
Gio.AsyncReadyCallback
orNone
) –
- bind_addr(address, allow_reuse)¶
- Parameters:
address (
Gio.SocketAddress
) –allow_reuse (
bool
) –
- Raises:
- Return type:
- bind_finish(result)¶
- Parameters:
result (
Gio.AsyncResult
) –- Raises:
- Return type:
- close()¶
- Raises:
- Return type:
- connect_addr(address, cancellable, callback, *user_data)¶
- Parameters:
address (
Gio.SocketAddress
) –cancellable (
Gio.Cancellable
orNone
) –callback (
Gio.AsyncReadyCallback
orNone
) –
- connect_finish(result)¶
- Parameters:
result (
Gio.AsyncResult
) –- Raises:
- Return type:
- connect_to(address, cancellable, callback, *user_data)¶
- Parameters:
address (
str
) –cancellable (
Gio.Cancellable
orNone
) –callback (
Gio.AsyncReadyCallback
orNone
) –
- get_condition()¶
- Return type:
- get_family()¶
- Return type:
- get_local_address()¶
- Raises:
- Return type:
- get_remote_address()¶
- Raises:
- Return type:
- get_socket()¶
- Return type:
- get_status()¶
- Return type:
- listen(address, cancellable, callback, *user_data)¶
- Parameters:
address (
str
) –cancellable (
Gio.Cancellable
orNone
) –callback (
Gio.AsyncReadyCallback
orNone
) –
- listen_addr(address)¶
- Parameters:
address (
Gio.SocketAddress
) –- Raises:
- Return type:
- listen_finish(result)¶
- Parameters:
result (
Gio.AsyncResult
) –- Raises:
- Return type:
- set_notify_condition_callback(callback, *user_data)¶
- Parameters:
callback (
Evd.SocketNotifyConditionCallback
orNone
) –
- shutdown(shutdown_read, shutdown_write)¶
- Parameters:
- Raises:
- Return type:
- watch_condition(cond)¶
- Parameters:
cond (
GLib.IOCondition
) –- Raises:
- Return type:
- do_close() virtual¶
- do_error(error_domain, error_code, error_message, *user_data) virtual¶
- do_handle_condition(condition) virtual¶
- Parameters:
condition (
GLib.IOCondition
) –- Return type:
- do_new_connection(socket, *user_data) virtual¶
- Parameters:
socket (
Gio.IOStream
) –
- do_state_changed(new_state, old_state) virtual¶
- Parameters:
new_state (
Evd.SocketState
) –old_state (
Evd.SocketState
) –
Signal Details¶
- Evd.Socket.signals.close(socket)¶
- Signal Name:
close
- Flags:
- Parameters:
socket (
Evd.Socket
) – The object which received the signal
- Evd.Socket.signals.error(socket, object, p0, p1)¶
- Evd.Socket.signals.new_connection(socket, object)¶
- Signal Name:
new-connection
- Flags:
- Parameters:
socket (
Evd.Socket
) – The object which received the signalobject (
Gio.IOStream
) –
Property Details¶
- Evd.Socket.props.family¶
- Name:
family
- Type:
- Default Value:
- Flags:
The sockets address family
- Evd.Socket.props.io_stream_type¶
- Name:
io-stream-type
- Type:
- Default Value:
<GType EvdConnection>
- Flags:
The
GObject.GType
of the IO stream returned by socket when connected
- Evd.Socket.props.priority¶
-
The priority of the socket when dispatching its events in the loop
- Evd.Socket.props.protocol¶
- Name:
protocol
- Type:
- Default Value:
- Flags:
The id of the protocol to use, or -1 for unknown
- Evd.Socket.props.socket¶
- Name:
socket
- Type:
- Default Value:
- Flags:
The underlaying socket
- Evd.Socket.props.status¶
-
The current status of the socket (closed, connected, listening, etc)
- Evd.Socket.props.type¶
- Name:
type
- Type:
- Default Value:
- Flags:
The sockets type