From 1005d9d619368224e806c1786f64d9acaefd9652 Mon Sep 17 00:00:00 2001 From: Heikki Tampio Date: Fri, 19 Jan 2024 09:20:59 +0200 Subject: [PATCH] usage: Update create_session parameters to new API --- USAGE.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/USAGE.md b/USAGE.md index e0a2397c..94e9f189 100644 --- a/USAGE.md +++ b/USAGE.md @@ -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 addresses("10.10.10.3", "10.10.10.2"); +uvgrtp::session *sess = ctx.create_session(addresses); ``` Mixing IPv4 and IPv6 addresses is not possible.