add channel, poller and testing docs

This commit is contained in:
Dennis Klein
2017-05-24 17:07:07 +02:00
committed by Mohammad Al-Turany
parent 5e2926e0da
commit 25a75c1f82
2 changed files with 19 additions and 4 deletions

View File

@@ -4,7 +4,11 @@
# 3.1 Testing
TODO
For unit testing it is often not feasible to boot up a full-blown distributed system with dozens of processes.
In some scenarios it is useful to not even instantiate a `FairMQDevice` at all. Please see [this example](../test/protocols/_push_pull_multipart.cxx) for single and multi threaded unit test without a device instance. If you store your transport factories and channels on the heap, pls make sure, you destroy the channels before you destroy the related transport factory for proper shutdown. Channels provide all the `Send/Receive` and `New*Message/New*Poller` APIs provided by the device too.
TODO Multiple devices in one process.
# 3.2 Implementation details