Evd.Transport¶
- Implementations:
Evd.LongpollingServer
,Evd.WebTransportServer
,Evd.WebsocketClient
,Evd.WebsocketServer
Methods¶
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Virtual Methods¶
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Properties¶
None
Signals¶
Name |
Short Description |
---|---|
Fields¶
None
Class Details¶
- class Evd.Transport¶
- Bases:
- Structure:
- close_peer(peer, gracefully)¶
- Parameters:
- Raises:
- get_peer_manager()¶
- Return type:
- open(address, cancellable, callback, *user_data)¶
- Parameters:
address (
str
) –cancellable (
Gio.Cancellable
orNone
) –callback (
Gio.AsyncReadyCallback
orNone
) –
- open_finish(result)¶
- Parameters:
result (
Gio.AsyncResult
) –- Raises:
- Return type:
- send(peer, buffer, size)¶
- Parameters:
- Raises:
- Return type:
- send_text(peer, text)¶
- Parameters:
- Raises:
- Return type:
- set_peer_manager(peer_manager)¶
- Parameters:
peer_manager (
Evd.PeerManager
) –
- do_open(address, async_result, cancellable) virtual¶
- Parameters:
address (
str
) –async_result (
Gio.SimpleAsyncResult
) –cancellable (
Gio.Cancellable
orNone
) –
- do_send(peer, buffer, size, type) virtual¶
- Parameters:
peer (
Evd.Peer
) –buffer (
str
) –size (
int
) –type (
Evd.MessageType
) –
- Return type:
- do_signal_new_peer(peer, *user_data) virtual¶
- do_signal_peer_closed(peer, gracefully, *user_data) virtual¶
- do_signal_receive(peer, *user_data) virtual¶
Signal Details¶
- Evd.Transport.signals.new_peer(transport, object)¶
- Signal Name:
new-peer
- Flags:
- Parameters:
transport (
Evd.Transport
) – The object which received the signalobject (
Evd.Peer
) –
- Evd.Transport.signals.peer_closed(transport, object, p0)¶
- Signal Name:
peer-closed
- Flags:
- Parameters:
transport (
Evd.Transport
) – The object which received the signalobject (
Evd.Peer
) –p0 (
bool
) –
- Evd.Transport.signals.receive(transport, object)¶
- Signal Name:
receive
- Flags:
- Parameters:
transport (
Evd.Transport
) – The object which received the signalobject (
Evd.Peer
) –
- Evd.Transport.signals.validate_peer(transport, object)¶
- Signal Name:
validate-peer
- Flags:
- Parameters:
transport (
Evd.Transport
) – The object which received the signalobject (
Evd.Peer
) –
- Return type: