X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=include%2Flibnfs-private.h;h=3131a201cdec1a1d398c5fcc2636103d21bfe88d;hb=15083e9a6c0189c59897caf5e57a9b27ffc73526;hp=2671a2bee138e1e1ee2d58980ce864782259ffb7;hpb=2d0c44ced16348a883df7f9cd0c61693287bb26b;p=deb_libnfs.git diff --git a/include/libnfs-private.h b/include/libnfs-private.h index 2671a2b..3131a20 100644 --- a/include/libnfs-private.h +++ b/include/libnfs-private.h @@ -76,4 +76,9 @@ void nfs_set_error(struct nfs_context *nfs, char *error_string, ...); struct rpc_context *nfs_get_rpc_context(struct nfs_context *nfs); +/* we dont want to expose UDP to normal applications/users this is private to libnfs to use exclusively for broadcast RPC */ +int rpc_bind_udp(struct rpc_context *rpc, char *addr, int port); +int rpc_set_udp_destination(struct rpc_context *rpc, char *addr, int port, int is_broadcast); struct rpc_context *rpc_init_udp_context(void); +struct sockaddr *rpc_get_recv_sockaddr(struct rpc_context *rpc); +