aboutsummaryrefslogtreecommitdiffstats
path: root/include/osmocore/write_queue.h
AgeCommit message (Collapse)AuthorFilesLines
2010-04-08write_queue: Add callback for exceptions as well.Holger Hans Peter Freyther1-0/+1
2010-03-26write_queue: Add a method to clear the queue.Holger Hans Peter Freyther1-0/+1
2010-03-08write_queue: Make the bfd cb public so it can be used in a different contextHolger Hans Peter Freyther1-0/+1
* I'm doing a nonblocking connect and for this I need to select on writable and the first thing I need to do is to check the SOL_SOCKET SO_ERROR state. I realize this by setting a different cb on the embedded bfd during setup and then go back to the real implementation.
2010-02-26[write_queue] Add a generic write queue classHolger Hans Peter Freyther1-0/+43
The write queue can be a dropin replacement for the bsc_fd. It is featuring two callbacks. One for ready read and one for ready write. Whenever there is a message in the queue the write_queue will set the BSC_FD_WRITE flag and then call the write callback. It will make sure to delete the msgb after the write function has been called. This class is intended to be be used in the osmocom, layer2, bsc_msc_ip, bsc_hack and other applications.