server: Add nbdkit_peer_name() to return the client address.
commit03a2cc3d766edb17011dafe939e53d0f60f1c99b
authorRichard W.M. Jones <rjones@redhat.com>
Fri, 13 Sep 2019 19:31:40 +0000 (13 20:31 +0100)
committerRichard W.M. Jones <rjones@redhat.com>
Tue, 17 Sep 2019 07:50:13 +0000 (17 08:50 +0100)
tree957c7eb7e715f72ae5ec8061db17658be3e32814
parente70365b23b66eed6b68553a3e35b2b97485ece6e
server: Add nbdkit_peer_name() to return the client address.

Works essentially just like calling getpeername(2), because that's how
it is implemented.
TODO
docs/nbdkit-plugin.pod
include/nbdkit-common.h
server/nbdkit.syms
server/public.c