package obus

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

Module OBus_contextSource

Message contexts

Types

A context contains information about the reception of a message.

Sourcetype t

Type of a context.

Creation
Sourceval make : connection:OBus_connection.t -> message:OBus_message.t -> t

Creates a context from the given connection and message

Retreival
Sourceval get : unit -> t

In a method call handler, this returns the context of the method call.

Sourceval key : t Lwt.key

The key used for storing the context.

Projections
Sourceval connection : t -> OBus_connection.t

Returns the connection part of a context

Sourceval sender : t -> OBus_peer.t

sender context returns the peer who sends the message

Sourceval destination : t -> OBus_peer.t

destinatino context returns the peer to which the message was sent

flags context returns the flags of the message that was received

Returns the serial of the message