QmiProxy

QmiProxy — QMI proxy handling routines

Synopsis

#define             QMI_PROXY_SOCKET_PATH
#define             QMI_PROXY_N_CLIENTS
struct              QmiProxy;
QmiProxy *          qmi_proxy_new                       (GError **error);
guint               qmi_proxy_get_n_clients             (QmiProxy *self);

Object Hierarchy

  GObject
   +----QmiProxy

Properties

  "qmi-proxy-n-clients"      guint                 : Read

Description

The QmiProxy will setup an abstract socket listening on a predefined address, and will take care of synchronizing the access to a set of shared QMI ports.

Multiple QmiDevices may be connected to the QmiProxy at any given time. The QmiProxy acts as a stateless proxy for non-CTL services (messages are transferred unmodified), and as a stateful proxy for the CTL service (all remote QmiDevices will need to share the same CTL message sequence ID).

Details

QMI_PROXY_SOCKET_PATH

#define QMI_PROXY_SOCKET_PATH "qmi-proxy"

QMI_PROXY_N_CLIENTS

#define QMI_PROXY_N_CLIENTS   "qmi-proxy-n-clients"

struct QmiProxy

struct QmiProxy;

qmi_proxy_new ()

QmiProxy *          qmi_proxy_new                       (GError **error);

Creates a QmiProxy listening in the default proxy addess.

error :

Return location for error or NULL.

Returns :

A newly created QmiProxy, or NULL if error is set.

qmi_proxy_get_n_clients ()

guint               qmi_proxy_get_n_clients             (QmiProxy *self);

Get the number of clients currently connected to the proxy.

self :

a QmiProxy.

Returns :

a guint.

Property Details

The "qmi-proxy-n-clients" property

  "qmi-proxy-n-clients"      guint                 : Read

Number of clients currently connected to the proxy.

Default value: 0