Qrtr.Client¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
class |
|
|
|
|
|
|
|
|
Virtual Methods¶
- Inherited:
Properties¶
Name |
Type |
Flags |
Short Description |
|---|---|---|---|
r/w/co |
The QRTR node |
||
r/w/co |
The QRTR node port |
Signals¶
- Inherited:
Name |
Short Description |
|---|---|
The |
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
|---|---|---|---|
parent |
r |
Class Details¶
- class Qrtr.Client(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
The
Qrtr.Clientstructure contains private data and should only be accessed using the provided API.New in version 1.0.
- classmethod new(node, port, cancellable)¶
- Parameters:
port (
int) – a node port.cancellable (
Gio.CancellableorNone) – optionalGio.Cancellableobject,Noneto ignore.
- Raises:
- Returns:
a newly allocated
Qrtr.Client, orNoneif error is set.- Return type:
Creates a new
Qrtr.Clientto communicate with port atQrtr.Node.New in version 1.0.
- get_node()¶
- Returns:
a
Qrtr.Nodethat must be freed withGObject.Object.unref().- Return type:
Get the
Qrtr.Nodethat this client refers to.New in version 1.0.
- get_port()¶
- Returns:
the node port.
- Return type:
Gets the node port where this client communicates.
New in version 1.0.
- peek_node()¶
-
Get the
Qrtr.Nodethat this client refers to, without increasing the reference count on the returned object.New in version 1.0.
- send(message, cancellable)¶
- Parameters:
message (
bytes) – the message.cancellable (
Gio.CancellableorNone) – aGio.Cancellable.
- Raises:
- Returns:
- Return type:
Sends a message to the port at the node.
New in version 1.0.
Signal Details¶
- Qrtr.Client.signals.client_message(client, message)¶
- Signal Name:
client-message- Flags:
- Parameters:
client (
Qrtr.Client) – The object which received the signalmessage (
bytes) – the message data.
The
::client-messagesignal is emitted when a message is received from the port in the node.There must be one single user connected to this signal, because it is not guaranteed that the contents of the message byte array aren’t modified by multiple users. In other words, the user connected to this signal may modify the contents of the message byte array if needed.
New in version 1.0.
Property Details¶
- Qrtr.Client.props.client_node¶
- Name:
client-node- Type:
- Default Value:
- Flags:
The QRTR node
New in version 1.0.
- Qrtr.Client.props.client_port¶
- Name:
client-port- Type:
- Default Value:
0- Flags:
The QRTR node port
New in version 1.0.