Osmocom library for network/soecket abstraction and osmux audio multiplex https://osmocom.org/projects/libosmo-netif
Go to file
Andreas Eversberg 5fec34a9f2 stream_cli.c: Handle read / recvfrom error and close connection
If read or recvfrom fails or returns 0, the connection must be closed.
This is already done when a write / send fails. In both cases the
disconnect callback is called to notify the user's client.

Not handling the error may cause an infinite loop of read or recvfrom
failures.

Related: OS#6405
Change-Id: I55426de6b49cb4cb0797e50dfeae11f2efc29b15
2024-03-22 07:34:32 +00:00
contrib Bump version: 1.3.0.56-745c-dirty → 1.4.0 2023-09-12 13:50:26 +02:00
debian Bump version: 1.3.0.56-745c-dirty → 1.4.0 2023-09-12 13:50:26 +02:00
examples stream_{client,server} example: Cleanup on exit 2024-03-07 10:28:20 +01:00
include docs: Improve/clean-up doxygen for datagram.[ch] 2024-03-19 14:20:15 +01:00
m4 initial commit 2011-10-04 02:36:46 +02:00
src stream_cli.c: Handle read / recvfrom error and close connection 2024-03-22 07:34:32 +00:00
tests stream_test: Fix memleaks 2023-10-18 03:55:38 +02:00
utils {utils,tests}/Makefile.am: reorder libraries in LDADD 2023-03-13 04:45:51 +07:00
.gitignore gitignore: Ignore autfoo *~ churn 2021-02-19 12:58:44 +01:00
.gitreview Add gerrit settings 2016-12-22 14:06:35 +00:00
COPYING add COPYING file (GPLv2 license) 2011-10-05 13:43:25 +02:00
Doxyfile.in docs: Don't export internal structs declared in src files 2024-03-15 14:13:32 +01:00
Makefile.am Makefile.am: Remove $(SOURCES) which is not defined anywhere 2024-03-16 10:54:10 +00:00
README.md update git URLs (git -> https; gitea) 2022-06-17 23:15:16 +02:00
TODO-RELEASE prim: Introduce osmo_prim_srv{_link}_set_name APIs 2024-03-13 11:57:47 +00:00
configure.ac Bump version: 1.3.0.56-745c-dirty → 1.4.0 2023-09-12 13:50:26 +02:00
git-version-gen initial commit 2011-10-04 02:36:46 +02:00
libosmo-netif.pc.in stream: Introduce and use osmo_stream_cli_fd() to get the fd 2023-05-17 17:38:21 +02:00

README.md

libosmo-netif- Osmocom network interface library

This repository contains a C-language library that form the basis of various higher-layer cellular communications protocol implementation. It implements stream server and clients for TCP, UDP, IPA as well as the non-standard/proprietary OSMUX protocol.

Homepage

The official homepage of the project is https://osmocom.org/projects/libosmo-netif

GIT Repository

You can clone from the official libosmo-netif.git repository using

git clone https://gitea.osmocom.org/osmocom/libosmo-netif

There is a web interface at https://gitea.osmocom.org/osmocom/libosmo-netif

Documentation

There is no Doxygen-generated API documentation yet for this library. It would be great to some day have it, comparable to libosmocore.

Mailing List

Discussions related to libosmo-netif are happening on the openbsc@lists.osmocom.org mailing list, please see https://lists.osmocom.org/mailman/listinfo/openbsc for subscription options and the list archive.

Please observe the Osmocom Mailing List Rules when posting.

Contributing

Our coding standards are described at https://osmocom.org/projects/cellular-infrastructure/wiki/Coding_standards

We us a gerrit based patch submission/review process for managing contributions. Please see https://osmocom.org/projects/cellular-infrastructure/wiki/Gerrit for more details

The current patch queue for libosmo-netif can be seen at https://gerrit.osmocom.org/#/q/project:libosmo-netif+status:open