@@ -5,7 +5,7 @@ C++11 client library for the [WAMP][wamp] protocol.
55
66** Features** :
77
8- - Supports the [ WAMP Basic Profile ] [ wamp-basic ]
8+ - Supports the WAMP _ Basic Profile _
99- Supports [ some advanced WAMP profile features] ( #advanced )
1010- Roles: _ Caller_ , _ Callee_ , _ Subscriber_ , _ Publisher_
1111- Transports: TCP and Unix domain raw sockets (with and without handshaking support)
@@ -28,8 +28,7 @@ C++11 client library for the [WAMP][wamp] protocol.
2828 [ Boost.Context] [ boost-context ]
2929- (for testing) [ CMake] [ cmake ] and the [ Catch] [ catch ] unit test framework
3030
31- [ wamp ] : http://wamp.ws/
32- [ wamp-basic ] : https://github.com/tavendo/WAMP/blob/master/spec/basic.md
31+ [ wamp ] : http://wamp-proto.org/
3332[ boost-asio ] : http://www.boost.org/doc/libs/release/doc/html/boost_asio.html
3433[ boost-endian ] : https://github.com/boostorg/endian
3534[ boost ] : http://boost.org
@@ -96,8 +95,8 @@ iosvc.run();
9695boost::asio::spawn(iosvc, [&](boost::asio::yield_context yield)
9796{
9897 :::
99- session->enroll(Procedure("add"), unpackedRpc< int, int>(
100- [](wamp::Invocation inv, int n, int m) {return { n+m} ;}),
98+ session->enroll(Procedure("add"), basicRpc<int, int, int>(
99+ [](int n, int m) -> int {return n+m;}),
101100 yield);
102101 :::
103102});
@@ -111,17 +110,16 @@ std::cout << "2 + 2 is " << result[0].to<int>() << "\n";
111110
112111### Subscribing to a topic
113112```c++
114- void sensorSampled(wamp::Event event, float value)
113+ void sensorSampled(float value)
115114{
116- std::cout << "Sensor sampled, publication ID = " << event.pubId()
117- << " value = " << value << "\n";
115+ std::cout << "Sensor sampled, value = " << value << "\n";
118116}
119117
120118boost::asio::spawn(iosvc, [&](boost::asio::yield_context yield)
121119{
122120 :::
123121 session->subscribe(Topic("sensorSampled"),
124- unpackedEvent <float>(&sensorSampled),
122+ basicEvent <float>(&sensorSampled),
125123 yield);
126124 :::
127125});
@@ -138,7 +136,7 @@ session->publish(Pub("sensorSampled").withArgs(value));
138136
139137- General: agent identification, feature announcement
140138- _Callee_: `call_trustlevels`, `caller_identification`, `pattern_based_registration`, `progressive_call_results`
141- - _Caller_: `call_timeout`, `callee_blackwhite_listing`, `caller_exclusion`, ` caller_identification`
139+ - _Caller_: `call_timeout`, `caller_identification`
142140- _Publisher_: `publisher_exclusion`, `publisher_identification`, `subscriber_blackwhite_listing`
143141- _Subscriber_: `pattern_based_subscription`, `publication_trustlevels`, `publisher_identification`
144142
0 commit comments