Telepathy

http://www.aosabook.org/en/telepathy.html


1 communications as a service


2 D-Bus messaging

a. an asynchronous message bus for interprocess communication that forms the backbone of most GNU/Linux systems inkling the GNOME and KDE desktop environments. 

b. transmit a targeted message or broadcast a signal through the bus

c. every application have a bus address and can claim a number of well-known names

d. D-bus daemon handles message passing and name registration

e. D-bus protocol libraries are lib dubs, GDBus, QtBus, and python-dbus.


3 Components

a. Connection manager : provides the interfere between Telepathy and the communication services ( XMPP, SIP, IRC etc)

b. Account manager: store accounts and establish a connection to each account 

c. The Channel Dispatcher: listening for incoming channels signalled by each connection manager; provide outgoing service 

d. Client : handle or observe communications channels.

e. Account manager and channel dispatcher are provided in a single process called Mission Control

f. components are talking with each other through use's session bus.


4 D-bus in telepathy

Each service publishes objects which a strictly namespaced object path.

Each object implements a number of interfaces.

Each interface provides methods, signals and properties that you call, listen to, or request



Mission control --- connection manager and channel dispatcher

Client --- a client object that can be accessed by channel dispatcher

connection manager -- a service object that can be used by the Account Manager to request new connections, an object per open connection, and an object per open channel.



ofd means org.freedesktop.Dbus


Connection object : ofdT.Connection.Interface,Avatars, ContactList, Location

Channel : ofdT.Channel.Type.Text, Call, FileTransfer, Messages, Group



Concept:

Handles : represent identifiers ( e.g. contacts and room names)

Connection -- Channel( an IM conversion, voice or video  call)  --- Clients

Clients have three types : observers, approvers, handlers


high-level bindings are Glib and Qt4 bindings

low-level bindings are Python and lib telepathy C bindings


D-Bus integrates well with Glib main loop used by the GTK+ and Qt toolkits.







  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值