Skip to content

Commit

Permalink
usage: Update create_session parameters to new API
Browse files Browse the repository at this point in the history
  • Loading branch information
tampsa committed Jan 30, 2024
1 parent 9853162 commit 1005d9d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions USAGE.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,11 @@ Next, you will use the uvgrtp::context object to create uvgrtp::session objects.
```
uvgrtp::session *sess = ctx.create_session("10.10.10.2");
```
or 2) specify both remote and local addresses:
or 2) specify both local and remote addresses as a pair:

```
uvgrtp::session *sess = ctx.create_session("10.10.10.2", "10.10.10.3");
std::pair<std::string, std::string> addresses("10.10.10.3", "10.10.10.2");
uvgrtp::session *sess = ctx.create_session(addresses);
```
Mixing IPv4 and IPv6 addresses is not possible.

Expand Down

0 comments on commit 1005d9d

Please sign in to comment.