DevdNetworkDevice

DevdNetworkDevice — represetnts an available network device

Functions

Properties

GInetSocketAddress * address Read / Write / Construct Only
GTlsCertificate * certificate Read / Write / Construct Only

Types and Values

Object Hierarchy

    GObject
    ╰── DevdDevice
        ╰── DevdNetworkDevice

Description

DevdNetworkDevice is a DevdDevice implementation that represents a discovered device on a local network segment.

Use devd_device_create_client() to create a client to communicate with the network device.

Functions

devd_network_device_get_address ()

GInetSocketAddress *
devd_network_device_get_address (DevdNetworkDevice *self);

Gets the GInetSocketAddress that can be used to connect to the device daemon.

Parameters

self

a DevdNetworkDevice

 

Returns

a GInetSocketAddress or NULL.

[transfer none]

Since: 3.28


devd_network_device_get_certificate ()

GTlsCertificate *
devd_network_device_get_certificate (DevdNetworkDevice *self);

Gets the GTlsCertificate that will be used as the client-side certificate when communicating with this network device.

Parameters

self

a DevdNetworkDevice

 

Returns

a GTlsCertificate or NULL.

[nullable][transfer none]

Since: 3.28

Types and Values

DEVD_TYPE_NETWORK_DEVICE

#define DEVD_TYPE_NETWORK_DEVICE (devd_network_device_get_type())

DevdNetworkDevice

typedef struct _DevdNetworkDevice DevdNetworkDevice;

Property Details

The “address” property

  “address”                  GInetSocketAddress *

The inet socket address to connect to.

Owner: DevdNetworkDevice

Flags: Read / Write / Construct Only


The “certificate” property

  “certificate”              GTlsCertificate *

The client certificate to use in communication.

Owner: DevdNetworkDevice

Flags: Read / Write / Construct Only