package obus

  1. Overview
  2. Docs
Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source

Module OBus_addressSource

Manipulation of D-Bus addresses

Types
Sourcetype guid = OBus_uuid.t

A unique address identifier. Each server's listening address has a unique one.

Sourcetype t = {
  1. name : string;
    (*

    The transport name

    *)
  2. args : (string * string) list;
    (*

    Arguments of the address

    *)
}

Type of an address

Sourceval name : t -> string

name projection

Sourceval args : t -> (string * string) list

args Projection

Sourceval make : name:string -> args:(string * string) list -> t

Creates an address

Sourceval arg : string -> t -> string option

arg key address returns the value of argument key, if any

Sourceval guid : t -> guid option

Returns the address guid, if any

To/from string conversion
Sourceexception Parse_failure of string * int * string

Parse_failure(string, position, reason) exception raised when parsing a string failed.

Sourceval of_string : string -> t list

of_string str parse str and return the list of addresses defined in it.

Sourceval to_string : t list -> string

to_string addresses return a string representation of a list of addresses

Well-known addresses
Sourceval system : t list Lwt.t Lazy.t

The list of addresses for system bus

Sourceval session : t list Lwt.t Lazy.t

The list of addresses for session bus

Sourceval default_system : t list

The default addresses for the system bus

Sourceval default_session : t list

The default addresses for the session bus