#7478 NORM Never A: Simpler stream tubes interface

Zarro Boogs per Child bugtracker at laptop.org
Thu Jul 10 18:36:27 EDT 2008


#7478: Simpler stream tubes interface
------------------------------+---------------------------------------------
 Reporter:  bert              |         Owner:  Collabora         
     Type:  enhancement       |        Status:  new               
 Priority:  normal            |     Milestone:  Never Assigned    
Component:  presence-service  |       Version:  Git as of bug date
 Keywords:                    |   Next_action:  never set         
 Verified:  0                 |     Blockedby:                    
 Blocking:                    |  
------------------------------+---------------------------------------------
 It would be nice to be able to use Tubes while talking to the Presence
 Service only, not having to deal with Telepathy directly.

 To offer a local socket as a stream tube I propose:
 {{{
 shared_activity.OpenStreamTube(s: service, u: address_type, v: address,
 a{sv}: parameters)
 }}}
 Behind the scenes this would find out the tubes channel and call
 OfferStreamTube(), filling in default access control, and adding the
 address_type as a parameter so the remote side can know the address type
 that was used.

 On the receiving side there would be a signal:
 {{{
 OpenedStreamTube(o: buddy, s: service, u: address_type, v: address, a{sv}:
 parameters)
 }}}
 which would only get sent once the tube was received via NewTube() and had
 changed its state to "open" via TubeStateChanged(), and AcceptStreamTube()
 had been called behind the scenes using the socket_type passed in the
 parameters, so the user code gets a socket ready to use (of the same type
 that was used on the other end), plus the buddy path of the tube
 initiator.

-- 
Ticket URL: <http://dev.laptop.org/ticket/7478>
One Laptop Per Child <http://laptop.org/>
OLPC bug tracking system


More information about the Bugs mailing list