arehbein has submitted this change. (
https://gerrit.osmocom.org/c/libosmo-netif/+/32813
)
Change subject: stream: Add osmo_io based segmentation to example
......................................................................
stream: Add osmo_io based segmentation to example
Related: OS#5751, OS#5753
Change-Id: Ibf5fd3a606da7888f23e6f75cc30fe433897a97b
---
M examples/ipa-stream-client.c
M examples/ipa-stream-server.c
2 files changed, 12 insertions(+), 0 deletions(-)
Objections:
Jenkins Builder: Fails
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
https://gerrit.osmocom.org/c/libosmo-netif/+/32813
To unsubscribe, or for help writing mail filters, visit
https://gerrit.osmocom.org/settings
Gerrit-Project: libosmo-netif
Gerrit-Branch: arehbein/osmo_io_ipa
Gerrit-Change-Id: Ibf5fd3a606da7888f23e6f75cc30fe433897a97b
Gerrit-Change-Number: 32813
Gerrit-PatchSet: 2
Gerrit-Owner: arehbein <arehbein(a)sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: daniel <dwillmann(a)sysmocom.de>
Gerrit-MessageType: merged