Edit File by line
/home/barbar84/www/wp-conte.../plugins/sujqvwi/AnonR/anonr.TX.../usr/include/tirpc/rpc
File: pmap_clnt.h
/* $NetBSD: pmap_clnt.h,v 1.9 2000/06/02 22:57:55 fvdl Exp $ */
[0] Fix | Delete
[1] Fix | Delete
/*
[2] Fix | Delete
* Copyright (c) 2009, Sun Microsystems, Inc.
[3] Fix | Delete
* All rights reserved.
[4] Fix | Delete
*
[5] Fix | Delete
* Redistribution and use in source and binary forms, with or without
[6] Fix | Delete
* modification, are permitted provided that the following conditions are met:
[7] Fix | Delete
* - Redistributions of source code must retain the above copyright notice,
[8] Fix | Delete
* this list of conditions and the following disclaimer.
[9] Fix | Delete
* - Redistributions in binary form must reproduce the above copyright notice,
[10] Fix | Delete
* this list of conditions and the following disclaimer in the documentation
[11] Fix | Delete
* and/or other materials provided with the distribution.
[12] Fix | Delete
* - Neither the name of Sun Microsystems, Inc. nor the names of its
[13] Fix | Delete
* contributors may be used to endorse or promote products derived
[14] Fix | Delete
* from this software without specific prior written permission.
[15] Fix | Delete
*
[16] Fix | Delete
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
[17] Fix | Delete
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
[18] Fix | Delete
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
[19] Fix | Delete
* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
[20] Fix | Delete
* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
[21] Fix | Delete
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
[22] Fix | Delete
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
[23] Fix | Delete
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
[24] Fix | Delete
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
[25] Fix | Delete
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
[26] Fix | Delete
* POSSIBILITY OF SUCH DAMAGE.
[27] Fix | Delete
*
[28] Fix | Delete
* from: @(#)pmap_clnt.h 1.11 88/02/08 SMI
[29] Fix | Delete
* from: @(#)pmap_clnt.h 2.1 88/07/29 4.0 RPCSRC
[30] Fix | Delete
* $FreeBSD: src/include/rpc/pmap_clnt.h,v 1.14 2002/04/28 15:18:45 des Exp $
[31] Fix | Delete
*/
[32] Fix | Delete
[33] Fix | Delete
/*
[34] Fix | Delete
* pmap_clnt.h
[35] Fix | Delete
* Supplies C routines to get to portmap services.
[36] Fix | Delete
*
[37] Fix | Delete
* Copyright (C) 1984, Sun Microsystems, Inc.
[38] Fix | Delete
*/
[39] Fix | Delete
[40] Fix | Delete
/*
[41] Fix | Delete
* Usage:
[42] Fix | Delete
* success = pmap_set(program, version, protocol, port);
[43] Fix | Delete
* success = pmap_unset(program, version);
[44] Fix | Delete
* port = pmap_getport(address, program, version, protocol);
[45] Fix | Delete
* head = pmap_getmaps(address);
[46] Fix | Delete
* clnt_stat = pmap_rmtcall(address, program, version, procedure,
[47] Fix | Delete
* xdrargs, argsp, xdrres, resp, tout, port_ptr)
[48] Fix | Delete
* (works for udp only.)
[49] Fix | Delete
* clnt_stat = clnt_broadcast(program, version, procedure,
[50] Fix | Delete
* xdrargs, argsp, xdrres, resp, eachresult)
[51] Fix | Delete
* (like pmap_rmtcall, except the call is broadcasted to all
[52] Fix | Delete
* locally connected nets. For each valid response received,
[53] Fix | Delete
* the procedure eachresult is called. Its form is:
[54] Fix | Delete
* done = eachresult(resp, raddr)
[55] Fix | Delete
* bool_t done;
[56] Fix | Delete
* caddr_t resp;
[57] Fix | Delete
* struct sockaddr_in raddr;
[58] Fix | Delete
* where resp points to the results of the call and raddr is the
[59] Fix | Delete
* address if the responder to the broadcast.
[60] Fix | Delete
*/
[61] Fix | Delete
[62] Fix | Delete
#ifndef _RPC_PMAP_CLNT_H_
[63] Fix | Delete
#define _RPC_PMAP_CLNT_H_
[64] Fix | Delete
[65] Fix | Delete
#include <rpc/types.h>
[66] Fix | Delete
#include <rpc/xdr.h>
[67] Fix | Delete
#include <rpc/clnt.h>
[68] Fix | Delete
[69] Fix | Delete
#ifdef __cplusplus
[70] Fix | Delete
extern "C" {
[71] Fix | Delete
#endif
[72] Fix | Delete
extern bool_t pmap_set(u_long, u_long, int, int);
[73] Fix | Delete
extern bool_t pmap_unset(u_long, u_long);
[74] Fix | Delete
extern struct pmaplist *pmap_getmaps(struct sockaddr_in *);
[75] Fix | Delete
extern enum clnt_stat pmap_rmtcall(struct sockaddr_in *,
[76] Fix | Delete
u_long, u_long, u_long,
[77] Fix | Delete
xdrproc_t, caddr_t,
[78] Fix | Delete
xdrproc_t, caddr_t,
[79] Fix | Delete
struct timeval, u_long *);
[80] Fix | Delete
extern enum clnt_stat clnt_broadcast(u_long, u_long, u_long,
[81] Fix | Delete
xdrproc_t, void *,
[82] Fix | Delete
xdrproc_t, void *,
[83] Fix | Delete
resultproc_t);
[84] Fix | Delete
extern u_short pmap_getport(struct sockaddr_in *,
[85] Fix | Delete
u_long, u_long, u_int);
[86] Fix | Delete
#ifdef __cplusplus
[87] Fix | Delete
}
[88] Fix | Delete
#endif
[89] Fix | Delete
[90] Fix | Delete
#endif /* !_RPC_PMAP_CLNT_H_ */
[91] Fix | Delete
[92] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function