Autobahn|Cpp Callee behaviour not implemented

#1

The README.md states that the callee behaviour is implemented but in session<IStream, OStream>::got_msg it isn’t implemented:

1146 case msg_code::CALL:

1147 throw protocol_error(“received CALL message unexpected for WAMP client roles”);

1148

``

Am I correct then to say that the current Autobahn|Cpp cannot be used to fully implement a component?

0 Likes

#2

Ok had a read through the specs and found the right code for callee is INVOCATION. So yes it can be fully used to implement a component.

···

On Saturday, 22 November 2014 21:38:04 UTC-5, David Chappelle wrote:

The README.md states that the callee behaviour is implemented but in session<IStream, OStream>::got_msg it isn’t implemented:

1146 case msg_code::CALL:

1147 throw protocol_error(“received CALL message unexpected for WAMP client roles”);

1148

``

Am I correct then to say that the current Autobahn|Cpp cannot be used to fully implement a component?

0 Likes

#3

The README.md states that the callee behaviour is implemented but

Yes. AutobahnCpp implements all 4 roles.

You can verify yourself by testing:

http://crossbar.io/docs/Getting-started-with-Cplusplus/

This template is using this C++ component

https://github.com/crossbario/crossbar/blob/master/crossbar/crossbar/templates/hello/cpp/hello.cpp

in session<IStream, OStream>::got_msg it isn't implemented:

>
1146 case msg_code::CALL:
1147 throw protocol_error("received CALL message unexpected
for WAMP client roles");
1148

No. This error is handling is correct, since a WAMP client cannot process a WAMP CALL message, only a WAMP INVOCATION message. CALL messages are processes by routers only.

See here:

https://github.com/tavendo/WAMP/blob/master/spec/basic.md#calling-and-invocations

···

Am 23.11.2014 03:38, schrieb David Chappelle:

0 Likes

#4

Ok had a read through the specs and found the right code for callee is
INVOCATION. So yes it can be fully used to implement a component.

Yes. That being said, there are still some bits missing .. grep for "FIXME" in the source and compare https://github.com/tavendo/AutobahnCpp/issues/9

···

Am 23.11.2014 06:18, schrieb David Chappelle:

On Saturday, 22 November 2014 21:38:04 UTC-5, David Chappelle wrote:

    The README.md states that the callee behaviour is implemented but
    in session<IStream, OStream>::got_msg it isn't implemented:

    >
    1146 case msg_code::CALL:
    1147 throw protocol_error("received CALL message
    unexpected for WAMP client roles");
    1148

    >

    Am I correct then to say that the current Autobahn|Cpp cannot be
    used to fully implement a component?

--
You received this message because you are subscribed to the Google
Groups "Autobahn" group.
To unsubscribe from this group and stop receiving emails from it, send
an email to autobahnws+...@googlegroups.com
<mailto:autobahnws+...@googlegroups.com>.
To post to this group, send email to autob...@googlegroups.com
<mailto:autob...@googlegroups.com>.
To view this discussion on the web visit
https://groups.google.com/d/msgid/autobahnws/7db4cb96-013c-4b9f-a577-1d4f92a7e52d%40googlegroups.com
<https://groups.google.com/d/msgid/autobahnws/7db4cb96-013c-4b9f-a577-1d4f92a7e52d%40googlegroups.com?utm_medium=email&utm_source=footer>.
For more options, visit https://groups.google.com/d/optout.

0 Likes