diff options
author | Nalin Dahyabhai <nalin.dahyabhai@pobox.com> | 2009-02-12 18:22:39 -0500 |
---|---|---|
committer | Nalin Dahyabhai <nalin.dahyabhai@pobox.com> | 2009-02-12 18:22:39 -0500 |
commit | b314b3233a7ade5e3f5878051327e9d97b94be7d (patch) | |
tree | 9ae852a35f641714964f9b71fa73693f298e5525 /src/portmap.h | |
parent | ee5ac71048481de548ffb8fe810c1b567d9a7a2f (diff) | |
download | slapi-nis-b314b3233a7ade5e3f5878051327e9d97b94be7d.tar.gz slapi-nis-b314b3233a7ade5e3f5878051327e9d97b94be7d.tar.xz slapi-nis-b314b3233a7ade5e3f5878051327e9d97b94be7d.zip |
- 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
Diffstat (limited to 'src/portmap.h')
-rw-r--r-- | src/portmap.h | 4 |
1 files changed, 3 insertions, 1 deletions
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 |