aboutsummaryrefslogtreecommitdiffstats
path: root/src
AgeCommit message (Collapse)AuthorFilesLines
2011-11-08stream: don't destroy server connection on errorPablo Neira Ayuso1-2/+0
This patch includes a minor fix. We don't destroy connection on errors, it should be the caller which must control this.
2011-11-08stream: allow to set reconnect timeoutPablo Neira Ayuso1-7/+20
This patch allows to set reconnect timeout. If zero, it will try immediately. If negative, it will skip retrying.
2011-10-17ipa: initial addition of helper functions and examplesPablo Neira Ayuso2-0/+74
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_get_ofd(...) functionsPablo Neira Ayuso1-0/+18
To obtain the file description.
2011-10-17stream: reconfiguration is only required if address and port changePablo Neira Ayuso1-5/+0
No need to force reconfiguration if any of the callback or data pointers are changed.
2011-10-17stream: add osmo_stream_*_conn_recvPablo Neira Ayuso1-49/+52
Like c43bb089067ca05af4992fbafe46827a1f0a6e9b but for stream sockets.
2011-10-17datagram: add osmo_dgram_conn_recvPablo Neira Ayuso1-28/+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-17stream: use debug loglevel instead of notice for spamming debug messagePablo Neira Ayuso1-1/+1
2011-10-17datagram: reconfiguration is only required if address and port changePablo Neira Ayuso1-2/+0
We allow to change the callback and data pointers in runtime safely without the need to reconfig.
2011-10-14datagram: use LOGL_DEBUG in osmo_dgram_server_conn_readPablo Neira Ayuso1-1/+1
This removes spamming message that is currently displayed with LOGL_NOTICE loglevel.
2011-10-14datagram: change prototype of osmo_dgram_conn_set_read_cbPablo Neira Ayuso1-2/+17
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-09stream: add *_get_data() function to obtain private dataPablo Neira Ayuso1-0/+23
Add new functions: osmo_stream_server_link_get_data osmo_stream_server_conn_get_data osmo_stream_client_conn_get_data To obtain private data from osmo_stream_* handlers. This patch also introduces missing osmo_stream_server_conn_set_data.
2011-10-09datagram: support calling dgram_*_open() multiple times for reconfigurationsPablo Neira Ayuso1-0/+32
This patch allows you to call dgram_*_open(..) as many times as you want to trigger reconfigurations.
2011-10-09stream: support calling stream_*_open() multiple times for reconfigurationsPablo Neira Ayuso1-0/+28
This patch allows you to call stream_*_open(..) as many times as you want to trigger reconfigurations.
2011-10-09datagram: add osmo_ prefix to all functionsPablo Neira Ayuso1-68/+73
Modify examples as well to use the new API.
2011-10-09stream: add osmo_ prefix to all functionsPablo Neira Ayuso1-72/+80
Modify examples as well to use the new API.
2011-10-05stream: remove internal stream_msg_recv()Pablo Neira Ayuso1-14/+2
Remove stream_msg_recv(...), now we use recv(...) directly. This fixes since we were calling msgb_put(...) twice.
2011-10-05stream: remove includes from stream.h headerPablo Neira Ayuso1-0/+1
The should be uses in the client program. They are not required by the generic stream socket infrastructure.
2011-10-05add generic datagram socket infrastructure and examplesPablo Neira Ayuso2-1/+356
This patch adds new datagram socket infrastructure and it reworks the previous examples (now it's LAPD over datagram).
2011-10-04initial commitPablo Neira Ayuso2-0/+495