socket: use listen() and SO_REUSEADDR, new osmo_sock_init_ofd() function
authorHarald Welte <laforge@gnumonks.org>
Sun, 22 May 2011 19:47:29 +0000 (21:47 +0200)
committerHarald Welte <laforge@gnumonks.org>
Sun, 22 May 2011 19:47:29 +0000 (21:47 +0200)
commit68b1574257fdbf4b06d225c116cfa6a2a6929965
tree9fd6453614ce2e171c91cb9cf743913f21bdafdf
parent8265939c5e32843990dd14e5d2918f773e285468
socket: use listen() and SO_REUSEADDR, new osmo_sock_init_ofd() function

osmo_sock_init_ofd() is a wrapper around osmo_sock_init() which will
take care of initializing and registering a 'struct osmo_fd' for the
newly-created socket.
include/osmocom/core/socket.h
src/socket.c