arehbein has uploaded this change for review.

View Change

examples: Add IPA segmentation to example

Related: OS#5753
Change-Id: I9a5335f1719e691567a8bc9c33745e0010902253
---
M examples/ipa-stream-client.c
M examples/ipa-stream-server.c
2 files changed, 12 insertions(+), 0 deletions(-)

git pull ssh://gerrit.osmocom.org:29418/libosmo-netif refs/changes/08/32708/1
diff --git a/examples/ipa-stream-client.c b/examples/ipa-stream-client.c
index fc48a50..48421b7 100644
--- a/examples/ipa-stream-client.c
+++ b/examples/ipa-stream-client.c
@@ -176,6 +176,7 @@
osmo_stream_cli_set_iofd_read_cb(conn, read_cb);
osmo_stream_cli_set_data(conn, &num_msgs);
osmo_stream_cli_set_nodelay(conn, true);
+ osmo_stream_cli_set_stream_proto(conn, OSMO_STREAM_IPAC);

if (osmo_stream_cli_open(conn) < 0) {
fprintf(stderr, "cannot open client\n");
diff --git a/examples/ipa-stream-server.c b/examples/ipa-stream-server.c
index d667f42..e88e39e 100644
--- a/examples/ipa-stream-server.c
+++ b/examples/ipa-stream-server.c
@@ -105,6 +105,7 @@
osmo_stream_srv_link_set_port(srv, 10000);
osmo_stream_srv_link_set_accept_cb(srv, accept_cb);
osmo_stream_srv_link_set_nodelay(srv, true);
+ osmo_stream_srv_link_set_stream_proto(srv, OSMO_STREAM_IPAC);

if (osmo_stream_srv_link_open(srv) < 0) {
fprintf(stderr, "cannot open client\n");

To view, visit change 32708. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: libosmo-netif
Gerrit-Branch: arehbein/osmo_io_ipa
Gerrit-Change-Id: I9a5335f1719e691567a8bc9c33745e0010902253
Gerrit-Change-Number: 32708
Gerrit-PatchSet: 1
Gerrit-Owner: arehbein <arehbein@sysmocom.de>
Gerrit-MessageType: newchange