aboutsummaryrefslogtreecommitdiffstats
path: root/examples
AgeCommit message (Collapse)AuthorFilesLines
2012-08-19channel: osmo_chan_init takes one pointer to set the talloc contextPablo Neira Ayuso2-4/+4
Also remove this parameter from osmo_chan_create
2012-08-19channel: rename CHAN_* to OSMO_CHAN_* for correct namespace policyPablo Neira Ayuso2-2/+2
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 Ayuso2-0/+6
This also adds osmo_chan_init() that needs to initialize the channel infrastructure.
2012-08-16add ABIS IPA example as client (BTS)Pablo Neira Ayuso2-1/+95
2012-08-15channel: abis-ipa: shorter function namesPablo Neira Ayuso1-3/+3
%s/_server_/_srv_/g %s/osmo_chan_abis/osmo_abis/g %s/SERVER/SRV/g
2012-08-15src: shorter stream function namesPablo Neira Ayuso4-82/+82
%s/_client_conn_/_cli_/g %s/_server_conn_/_srv_/g %s/_client_/cli/g %s/server/srv/g %s/RECONFIG/RECONF/g %s/SERVER/SRV/g %s/CLIENT/CLI/g
2012-08-15src: shorter names for datagram socketsPablo Neira Ayuso4-49/+49
%s/_conn_/_/g %s/_conn//g %s/_server_/_tx_/g %s/_client_/_rx_/g %s/_SERVER_/_TX_/g %s/_CLIENT_/_RX_/g %s/_RECONFIG/_RECONF/g
2012-07-07rtp: split osmo_rtp_parse in two functionsPablo Neira Ayuso2-10/+11
This patch splits osmo_rtp_parse in two functions: osmo_rtp_get_hdr osmo_rtp_get_payload So we can validate corrent RTP header to access its fields. Then, obtain the payload.
2012-07-03rtp: remove unused rtp_handle parameter from osmo_rtp_parsePablo Neira Ayuso2-2/+2
And also adjust example files to use the new function. Signed-off-by: Pablo Neira Ayuso <pablo@gnumonks.org>
2012-04-04add rs232 supportPablo Neira Ayuso3-0/+486
This include an example to open /dev/ttyACM0 to receive data from u-blox GPS and one to configure it in TIMEPULSE2 mode.
2012-02-23examples: Display more details on RTP payload in rtp-udp-test-*Pablo Neira Ayuso2-6/+6
Minor change, more verbose output to make sure the functions in the library are doing OK. Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
2012-02-23add RTP supportPablo Neira Ayuso3-1/+299
This patch adds the initial RTP support for libosmo-netif, it's based on Harald's RTP support available in openBSC. I have also added a couple of example to show how our new channel infrastructure interacts with the RTP layer. Signed-off-by: Pablo Neira Ayuso <pablo@gnumonks.org>
2011-11-08src: add generic channel infrastructure and A-bis IPA server supportPablo Neira Ayuso3-0/+87
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.
2011-10-17examples: disable Nagle in ipa-stream-*.cPablo Neira Ayuso2-0/+21
To emulate how openBSC behaves.
2011-10-17ipa: initial addition of helper functions and examplesPablo Neira Ayuso3-1/+317
This patch adds IPA helper function that can be use on top of stream sockets. The current API is just a copy and paste from libosmo-abis, it will change in follow up patches to improve it.
2011-10-17stream: add osmo_stream_*_conn_recvPablo Neira Ayuso2-2/+28
Like c43bb089067ca05af4992fbafe46827a1f0a6e9b but for stream sockets.
2011-10-17datagram: add osmo_dgram_conn_recvPablo Neira Ayuso2-2/+24
We provide osmo_dgram_conn_recv(...) which allows you to take control on the message allocation and receival process. Instead of hiding this details inside the datagram infrastructure. Providing more control to clients of this code means more flexibility.
2011-10-14examples: update LAPD over datagram testsPablo Neira Ayuso2-88/+117
Now they can be used to generate a number of messages from the user and to measure the RTT of LAPD over datagram messages. Still, they need to be expanded to take the origin and remote IPs as argument from the command line, later.
2011-10-14datagram: change prototype of osmo_dgram_conn_set_read_cbPablo Neira Ayuso2-2/+2
This patch changes the prototype of osmo_dgram_conn_set_read_cb. Now it takes one callback to a generic struct osmo_dgram_conn instead of osmo_dgram_server_conn. This is useful in case that you want to reply to one message using the datagram socket (without this change is not possible).
2011-10-09datagram: add osmo_ prefix to all functionsPablo Neira Ayuso2-21/+21
Modify examples as well to use the new API.
2011-10-09stream: add osmo_ prefix to all functionsPablo Neira Ayuso2-38/+39
Modify examples as well to use the new API.
2011-10-05examples: add stream server/client examplePablo Neira Ayuso3-1/+282
This patch adds a couple of examples that allow chatting between the client and the server. For simplicity, the example only support one client.
2011-10-05add generic datagram socket infrastructure and examplesPablo Neira Ayuso3-81/+64
This patch adds new datagram socket infrastructure and it reworks the previous examples (now it's LAPD over datagram).
2011-10-04initial commitPablo Neira Ayuso3-0/+400