Skip to content

Commit f17db90

Browse files
committed
Updated README
Updated WAMP URLs (fixes #83)
1 parent 5751bc8 commit f17db90

File tree

2 files changed

+9
-11
lines changed

2 files changed

+9
-11
lines changed

README.md

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -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();
9695
boost::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
120118
boost::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

cppwamp/include/cppwamp/internal/clientinterface.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ inline const Object& ClientInterface::roles()
8787
}}}}},
8888
{"caller", Object{{"features", Object{{
8989
{"call_timeout", true},
90-
{"callee_blackwhite_listing", true},
90+
{"callee_blackwhite_listing", true}, // Deprecated
9191
{"caller_exclusion", true},
9292
{"caller_identification", true}
9393
}}}}},

0 commit comments

Comments
 (0)