custom handlers for arbitrary channel types in cwtch peer-peer connections #149

Samengevoegd
dan heeft 1 commits samengevoegd van handlers naar master 2018-10-29 19:32:02 +00:00
Eigenaar
  • create an ApplicationInstanceFactory with handlers for as many channels of any types you like, and register them with a cwtch peer
    • doesn't clobber the underlying aif and its associated cwtch management channels
    • set by SetApplicationInstanceFactory(...) instead of in the constructor to preserve backwards compatibility
  • use DoOnChannel(...) to perform an operation on an arbitrary channel type
    • provides .Do(func) wrapping
  • requires an update to libricochet-go as well

I have some good example code for this coming up in [redacted]

* create an ApplicationInstanceFactory with handlers for as many channels of any types you like, and register them with a cwtch peer * doesn't clobber the underlying aif and its associated cwtch management channels * set by SetApplicationInstanceFactory(...) instead of in the constructor to preserve backwards compatibility * use DoOnChannel(...) to perform an operation on an arbitrary channel type * provides .Do(func) wrapping * requires an update to libricochet-go as well I have some good example code for this coming up in [redacted]
Lid
Drone Build Status: failure https://build.openprivacy.ca/cwtch.im/cwtch/232
Lid
Drone Build Status: failure https://build.openprivacy.ca/cwtch.im/cwtch/233
Lid
Drone Build Status: success https://build.openprivacy.ca/cwtch.im/cwtch/235
dan heeft deze pull request gesloten 2018-10-29 19:32:01 +00:00
Log in om deel te nemen aan deze discussie.
Geen beoordelaars
Geen mijlpaal
Niet toegewezen
2 deelnemers
Notificaties
Vervaldatum
De deadline is ongeldig of buiten bereik. Gebruik het formaat 'jjjj-mm-dd'.

Geen vervaldatum ingesteld.

Afhankelijkheden

Geen afhankelijkheden ingesteld.

Referentie: cwtch.im/cwtch#149
No description provided.