aboutsummaryrefslogtreecommitdiffstats
path: root/src/channel.c
AgeCommit message (Collapse)AuthorFilesLines
2018-06-29remove "channel" layerHarald Welte1-116/+0
The "channel" layer on top of IPA client + server was introduced in 2011 but never used in any osmocom program/project so far. Contrary to the several other IPA multiplex related implementations in libosmo*, it did not deal properly with segmented IPA messages, i.e. where a single TCP segment (and hence recv/read call) does not contain a full IPA message. So rather than fixing it up and having yet another IPA related API in our libraries, let's remove it. Change-Id: I97c378750acb1637ee032fa88a968edf68d8979f
2017-11-13Add SPDX-License-Identifier + Copyright statementsHarald Welte1-0/+19
Change-Id: I43bb1c4a889421907a1a08eb29c96f2330ab00ec
2012-08-19channel: add subtype ID to osmo_chan_createPablo Neira Ayuso1-3/+16
This adds the possibility to specify the variant of the channel. This was discussed during the osmocom workshop. Harald wanted a way to say if the channel is using TCP, UDP, DADHDI and so on.
2012-08-19channel: osmo_chan_init takes one pointer to set the talloc contextPablo Neira Ayuso1-3/+7
Also remove this parameter from osmo_chan_create
2012-08-19channel: rename CHAN_* to OSMO_CHAN_* for correct namespace policyPablo Neira Ayuso1-1/+1
Just to avoid unlikely possible problems while using this library with any other that decided to define the CHAN_* constants.
2012-08-19channel: use linked list instead of array of existing channelsPablo Neira Ayuso1-10/+29
This also adds osmo_chan_init() that needs to initialize the channel infrastructure.
2012-08-16channel: display error messages for channel_open()Pablo Neira Ayuso1-2/+9
Using generic osmocom logging infrastructure
2012-08-16add abis_ipa_client channelPablo Neira Ayuso1-0/+2
2012-08-15channel: abis-ipa: shorter function namesPablo Neira Ayuso1-2/+2
%s/_server_/_srv_/g %s/osmo_chan_abis/osmo_abis/g %s/SERVER/SRV/g
2011-11-08src: add generic channel infrastructure and A-bis IPA server supportPablo Neira Ayuso1-0/+52
This patch adds the generic channel infrastructure that allows to create channel of different types. Each channel has their own configuration functions. struct osmo_chan *chan; chan = osmo_chan_create(tall_example, CHAN_ABIS_IPA_SERVER); ... /* specific configuration functions per supported channel. */ osmo_chan_abis_ipa_server_set_cb_signalmsg(chan, signal_msg_cb); osmo_chan_abis_ipa_unit_add(chan, 1801, 0); /* open channel. */ osmo_chan_open(chan); The input path requires a callback to be registered. The output path is handled through: int osmo_chan_enqueue(struct osmo_chan *c, struct msgb *msg); The msg->dst must be set (it can be taken from the original message to route one reply). This patch also adds A-bis IPA server support. It has been tested with e1inp_ipa_bsc_test available in libosmo-abis.