aboutsummaryrefslogtreecommitdiffstats
path: root/include/osmocom/netif/datagram.h
AgeCommit message (Collapse)AuthorFilesLines
2024-03-19docs: Improve/clean-up doxygen for datagram.[ch]Harald Welte1-0/+13
* make sure datagram.h is part of the group * don't expose private #defines from C files to API documentation Change-Id: I64a9ee3306bcc01ba785da476aea581ce31150bd
2017-04-29misc: Call the variable ctx like in all other placesHolger Hans Peter Freyther1-3/+3
We couldn't figure out what "crx" as supposed to mean and assume it is a typo. Fix the code and call it ctx, this is fixing the API documentation as well. Change-Id: I27ed1178fdbbcf3fc0e1070dc19b4ecf9a327a04
2017-04-10stream+datagram: Allow local bind + connect for client socketsHarald Welte1-0/+2
This uses the new osmo_sock_init2() features introduced in libosmocore Change-Id Idab124bcca47872f55311a82d6818aed590965e6 to bind *and* connect a given socket during creation. Change-Id: I013f4cc10b26d332d52d231f252bb0f03df8c54b
2012-10-21dgram: add osmo_dgram_get_dataPablo Neira Ayuso1-0/+1
2012-08-15src: shorter names for datagram socketsPablo Neira Ayuso1-31/+31
%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
2011-10-17datagram: add osmo_dgram_conn_recvPablo Neira Ayuso1-2/+5
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-14datagram: change prototype of osmo_dgram_conn_set_read_cbPablo Neira Ayuso1-1/+1
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 Ayuso1-29/+29
Modify examples as well to use the new API.
2011-10-05add generic datagram socket infrastructure and examplesPablo Neira Ayuso1-0/+47
This patch adds new datagram socket infrastructure and it reworks the previous examples (now it's LAPD over datagram).