lib/tsocket: add tdgram_bsd_existing_socket() helper function
commit3a8b7b0518b33b016d2dbb8dd23d35ef1c6aaa5c
authorStefan Metzmacher <metze@samba.org>
Thu, 21 May 2015 09:37:06 +0000 (21 11:37 +0200)
committerStefan Metzmacher <metze@samba.org>
Fri, 12 Jun 2015 15:08:17 +0000 (12 17:08 +0200)
tree555d5de56df1f13729e269efb15d32c8d7250812
parent44584f810720602201a9afaaa087eeb83579eff5
lib/tsocket: add tdgram_bsd_existing_socket() helper function

This is similar to tstream_bsd_existing_socket().
Both help to migrate strange code path to using the tstream or tdgram
abstractions.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=11316

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
lib/tsocket/tsocket.h
lib/tsocket/tsocket_bsd.c