aboutsummaryrefslogtreecommitdiffstats
path: root/examples/stream-client.c
AgeCommit message (Collapse)AuthorFilesLines
2016-12-01stream-client: check read() return value before using it as length input to ↵Harald Welte1-1/+2
memcpy Change-Id: Id962821c71b3a1c4c01c1131eb809b8ec8eaa062 Fixes: Coverity CID 57859
2016-12-01stream-client: Check for osmo_fd_register() return valueHarald Welte1-1/+6
Change-Id: I1b5fa97d14e69ff502b6deba0fd898a01e53420f Fixes: Coverity CID 57633
2016-01-23Do not use strlen on binary inpitHolger Hans Peter Freyther1-1/+1
Coverity points out that buf might not be NULL terminated. For the memcpy ret was already used, so use ret for msgb_put as well. Fixes: CID#57922
2012-08-15src: shorter stream function namesPablo Neira Ayuso1-20/+20
%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
2011-10-17stream: add osmo_stream_*_conn_recvPablo Neira Ayuso1-1/+14
Like c43bb089067ca05af4992fbafe46827a1f0a6e9b but for stream sockets.
2011-10-09stream: add osmo_ prefix to all functionsPablo Neira Ayuso1-17/+17
Modify examples as well to use the new API.
2011-10-05examples: add stream server/client examplePablo Neira Ayuso1-0/+124
This patch adds a couple of examples that allow chatting between the client and the server. For simplicity, the example only support one client.