From b314b3233a7ade5e3f5878051327e9d97b94be7d Mon Sep 17 00:00:00 2001 From: Nalin Dahyabhai Date: Thu, 12 Feb 2009 18:22:39 -0500 Subject: - move client socket creation here, so that we don't have to know how to do it elsewhere - refactor the send/receive logic out so that it can be used for either rpcbind or portmap - try to connect to rpcbind over a local socket first, else assume we have to use portmap over IP - use our own rpcb encode/decode function to avoid mixing the one from libtirpc with the rest of libc's XDR functions -- THAT WOULD BE BAD --- src/portmap.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/portmap.h') diff --git a/src/portmap.h b/src/portmap.h index 62c687c..7cbb56c 100644 --- a/src/portmap.h +++ b/src/portmap.h @@ -27,6 +27,8 @@ bool_t portmap_register(const char *log_id, int resv_sock, int family, int protocol, int port); bool_t portmap_unregister(const char *log_id, int resv_sock, int program, int version, - int family, int protocol); + int family, int protocol, int port); +int portmap_create_client_socket(char *module, int but_not); +int portmap_bind_resvport(int fd, int family, int but_not); #endif -- cgit