path: root/include/osmo-pcap/osmo_pcap_client.h
diff options
authorHolger Hans Peter Freyther <holger@moiji-mobile.com>2016-11-08 18:48:57 +0100
committerHolger Hans Peter Freyther <holger@moiji-mobile.com>2016-11-09 01:03:59 +0100
commit956c3facf1950e8f84291089972ab8323c75767a (patch)
tree33606e15a6a746e660b594036068f222173c8674 /include/osmo-pcap/osmo_pcap_client.h
parente3d7c3e1545fcba6d14e2daef08da3400a136a32 (diff)
client: Enable a non-blocking connect to the PCAP server
If we want to have multiple servers we should not block when trying to connect to one of them. Enable non blocking mode and handle the fd specially until it is connected. E.g. on failed connect the read will become readable but fail, otherwise it becomes writable. Clear the write queue to make sure that the link data is sent first. We might be able to introduce a osmo_wqueue_prepend. Change-Id: Iae2bc264d15aa8598beefc194e3b8c4ebe87320a
Diffstat (limited to 'include/osmo-pcap/osmo_pcap_client.h')
0 files changed, 0 insertions, 0 deletions