SpiceClientGLib.PortChannel¶
- Subclasses:
Methods¶
- Inherited:
- Structs:
|
|
|
|
|
Virtual Methods¶
- Inherited:
Properties¶
- Inherited:
Name |
Type |
Flags |
Short Description |
---|---|---|---|
r |
Port name |
||
r |
Port opened |
Signals¶
- Inherited:
Name |
Short Description |
---|---|
The |
|
The |
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
---|---|---|---|
parent |
r |
Class Details¶
- class SpiceClientGLib.PortChannel(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
The
SpiceClientGLib.PortChannel
struct is opaque and should not be accessed directly.- event(event)¶
- Parameters:
event (
int
) – a SPICE_PORT_EVENT value
Send an event to the port.
Note: The values SPICE_PORT_EVENT_CLOSED and SPICE_PORT_EVENT_OPENED are managed by the channel connection state.
New in version 0.35.
- write_async(buffer, cancellable, callback, *user_data)¶
- Parameters:
buffer (
bytes
) – the buffer containing the data to writecancellable (
Gio.Cancellable
orNone
) – optionalGio.Cancellable
object,None
to ignorecallback (
Gio.AsyncReadyCallback
orNone
) – callback to call when the request is satisfieduser_data (
object
orNone
) – the data to pass to callback function
Request an asynchronous write of count bytes from buffer into the self. When the operation is finished callback will be called. You can then call
SpiceClientGLib.port_write_finish
() to get the result of the operation.New in version 0.35.
- write_finish(result)¶
- Parameters:
result (
Gio.AsyncResult
) – aGio.AsyncResult
- Raises:
- Returns:
a #gssize containing the number of bytes written to the stream.
- Return type:
Finishes a port write operation.
New in version 0.35.
Signal Details¶
- SpiceClientGLib.PortChannel.signals.port_data(port_channel, data, size)¶
- Signal Name:
port-data
- Flags:
- Parameters:
port_channel (
SpiceClientGLib.PortChannel
) – The object which received the signalsize (
int
) – number of bytes read
The
SpiceClientGLib.PortChannel
::port-data
signal is emitted when new port data is received.New in version 0.15.
- SpiceClientGLib.PortChannel.signals.port_event(port_channel, event)¶
- Signal Name:
port-event
- Flags:
- Parameters:
port_channel (
SpiceClientGLib.PortChannel
) – The object which received the signalevent (
int
) – the event received
The
SpiceClientGLib.PortChannel
::port-event
signal is emitted when new port event is received.New in version 0.15.
Property Details¶
- SpiceClientGLib.PortChannel.props.port_name¶
-
Port name