lib/tsocket: add tdgram_bsd_existing_socket() helper function
commitf9f27a93057b6a623f2bd0af09956194cb80544c
authorStefan Metzmacher <metze@samba.org>
Thu, 21 May 2015 09:37:06 +0000 (21 11:37 +0200)
committerKarolin Seeger <kseeger@samba.org>
Tue, 30 Jun 2015 02:19:07 +0000 (30 04:19 +0200)
treeb5e4fb14b16489a011c7a55c564a634ad3f2db0d
parentcc18cd23ee963a500435ba290181022fe6d671a6
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>
(cherry picked from commit 3a8b7b0518b33b016d2dbb8dd23d35ef1c6aaa5c)
lib/tsocket/tsocket.h
lib/tsocket/tsocket_bsd.c