You are viewing a plain text version of this content. The canonical link for it is here.
Posted to proton@qpid.apache.org by "ASF subversion and git services (JIRA)" <ji...@apache.org> on 2016/01/24 08:19:39 UTC

[jira] [Commented] (PROTON-1062) proton::engine as a client example

    [ https://issues.apache.org/jira/browse/PROTON-1062?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15114229#comment-15114229 ] 

ASF subversion and git services commented on PROTON-1062:
---------------------------------------------------------

Commit b0c6654486a26e16d3877a23fb9580b4b021f50b in qpid-proton's branch refs/heads/master from [~aconway]
[ https://git-wip-us.apache.org/repos/asf?p=qpid-proton.git;h=b0c6654 ]

PROTON-1062: c++: proton::connection_engine with client and server examples.

Easier to use proton::connction_engine:
- inherit and override io_read, io_write, io_close to provide IO functionality.
- processing logic (read/write/dispatch) built into connction_engine.

Support for socket IO out of the box
- socket_engine implements socket-based IO
- examples/engine/direct_*.cpp simple single connection servers.
- examples/engine/broker.cpp is a full select-based broker
  - uses same handler as the reactor broker, only changes the IO logic

Full set of engine-based examples using socket IO.

TODO:
- Broker example needs to be ported to windows.
- Documentation& fixes.


> proton::engine as a client example
> ----------------------------------
>
>                 Key: PROTON-1062
>                 URL: https://issues.apache.org/jira/browse/PROTON-1062
>             Project: Qpid Proton
>          Issue Type: Improvement
>          Components: cpp-binding
>    Affects Versions: 0.12.0
>            Reporter: Scott Matloff
>            Assignee: Alan Conway
>            Priority: Minor
>
> The existing example which demonstrates the proton::engine functionality is a broker.  To better demonstrate the disassociation between the connection and the container, I think there should be an example using memory streams.
> The example would look like:
> 1) Create some data
> 2) Encode the data using the engine 
> 3) Place the result into a memory buffer
> 4) Decode the data from the buffer using a different engine instance
> 5) Display the data



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)