Browse Source

Added link to test.cpp

Paul-Louis Ageneau 6 years ago
parent
commit
9f3d54680d
1 changed files with 8 additions and 1 deletions
  1. 8 1
      README.md

+ 8 - 1
README.md

@@ -27,10 +27,14 @@ make
 
 ## Example
 
-In the following examples, note the callbacks are called in another thread.
+In the following example, notes the callbacks are called in another thread.
 
 ### Signal a PeerConnection
 
+```cpp
+#include "rtc/rtc.hpp"
+```
+
 ```cpp
 rtc::Configuration config;
 config.iceServers.emplace_back("stunserver.org:3478");
@@ -83,3 +87,6 @@ pc->onDataChannel([&dc](const shared_ptr<rtc::DataChannel> &incoming) {
 });
 
 ```
+
+See [test/main.cpp](https://github.com/paullouisageneau/libdatachannel/blob/master/test/main.cpp) for a complete local connection example.
+