Edit File by line
/home/barbar84/www/wp-conte.../plugins/sujqvwi/AnonR/anonr.TX.../usr/include/tirpc/rpc
File: svc_soc.h
/* $NetBSD: svc_soc.h,v 1.1 2000/06/02 22:57:57 fvdl Exp $ */
[0] Fix | Delete
/* $FreeBSD: src/include/rpc/svc_soc.h,v 1.2 2002/03/23 17:24:55 imp Exp $ */
[1] Fix | Delete
[2] Fix | Delete
/*
[3] Fix | Delete
* Copyright (c) 2009, Sun Microsystems, Inc.
[4] Fix | Delete
* All rights reserved.
[5] Fix | Delete
*
[6] Fix | Delete
* Redistribution and use in source and binary forms, with or without
[7] Fix | Delete
* modification, are permitted provided that the following conditions are met:
[8] Fix | Delete
* - Redistributions of source code must retain the above copyright notice,
[9] Fix | Delete
* this list of conditions and the following disclaimer.
[10] Fix | Delete
* - Redistributions in binary form must reproduce the above copyright notice,
[11] Fix | Delete
* this list of conditions and the following disclaimer in the documentation
[12] Fix | Delete
* and/or other materials provided with the distribution.
[13] Fix | Delete
* - Neither the name of Sun Microsystems, Inc. nor the names of its
[14] Fix | Delete
* contributors may be used to endorse or promote products derived
[15] Fix | Delete
* from this software without specific prior written permission.
[16] Fix | Delete
*
[17] Fix | Delete
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
[18] Fix | Delete
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
[19] Fix | Delete
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
[20] Fix | Delete
* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
[21] Fix | Delete
* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
[22] Fix | Delete
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
[23] Fix | Delete
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
[24] Fix | Delete
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
[25] Fix | Delete
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
[26] Fix | Delete
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
[27] Fix | Delete
* POSSIBILITY OF SUCH DAMAGE.
[28] Fix | Delete
*/
[29] Fix | Delete
/*
[30] Fix | Delete
* Copyright (c) 1986 - 1991 by Sun Microsystems, Inc.
[31] Fix | Delete
*/
[32] Fix | Delete
[33] Fix | Delete
/*
[34] Fix | Delete
* svc.h, Server-side remote procedure call interface.
[35] Fix | Delete
*/
[36] Fix | Delete
[37] Fix | Delete
#ifndef _RPC_SVC_SOC_H
[38] Fix | Delete
#define _RPC_SVC_SOC_H
[39] Fix | Delete
[40] Fix | Delete
/* #pragma ident "@(#)svc_soc.h 1.11 94/04/25 SMI" */
[41] Fix | Delete
/* svc_soc.h 1.8 89/05/01 SMI */
[42] Fix | Delete
[43] Fix | Delete
/*
[44] Fix | Delete
* All the following declarations are only for backward compatibility
[45] Fix | Delete
* with TS-RPC
[46] Fix | Delete
*/
[47] Fix | Delete
[48] Fix | Delete
/*
[49] Fix | Delete
* Approved way of getting address of caller
[50] Fix | Delete
*/
[51] Fix | Delete
#define svc_getcaller(x) (&(x)->xp_raddr)
[52] Fix | Delete
/* Getting address of a caller using netbuf xp_rtaddr */
[53] Fix | Delete
#define svc_getcaller_netbuf(x) (&(x)->xp_rtaddr)
[54] Fix | Delete
/*
[55] Fix | Delete
* Service registration
[56] Fix | Delete
*
[57] Fix | Delete
* svc_register(xprt, prog, vers, dispatch, protocol)
[58] Fix | Delete
* SVCXPRT *xprt;
[59] Fix | Delete
* u_long prog;
[60] Fix | Delete
* u_long vers;
[61] Fix | Delete
* void (*dispatch)();
[62] Fix | Delete
* int protocol; like TCP or UDP, zero means do not register
[63] Fix | Delete
*/
[64] Fix | Delete
#ifdef __cplusplus
[65] Fix | Delete
extern "C" {
[66] Fix | Delete
#endif
[67] Fix | Delete
extern bool_t svc_register(SVCXPRT *, u_long, u_long,
[68] Fix | Delete
void (*)(struct svc_req *, SVCXPRT *), int);
[69] Fix | Delete
#ifdef __cplusplus
[70] Fix | Delete
}
[71] Fix | Delete
#endif
[72] Fix | Delete
[73] Fix | Delete
/*
[74] Fix | Delete
* Service un-registration
[75] Fix | Delete
*
[76] Fix | Delete
* svc_unregister(prog, vers)
[77] Fix | Delete
* u_long prog;
[78] Fix | Delete
* u_long vers;
[79] Fix | Delete
*/
[80] Fix | Delete
#ifdef __cplusplus
[81] Fix | Delete
extern "C" {
[82] Fix | Delete
#endif
[83] Fix | Delete
extern void svc_unregister(u_long, u_long);
[84] Fix | Delete
#ifdef __cplusplus
[85] Fix | Delete
}
[86] Fix | Delete
#endif
[87] Fix | Delete
[88] Fix | Delete
[89] Fix | Delete
/*
[90] Fix | Delete
* Memory based rpc for testing and timing.
[91] Fix | Delete
*/
[92] Fix | Delete
#ifdef __cplusplus
[93] Fix | Delete
extern "C" {
[94] Fix | Delete
#endif
[95] Fix | Delete
extern SVCXPRT *svcraw_create(void);
[96] Fix | Delete
#ifdef __cplusplus
[97] Fix | Delete
}
[98] Fix | Delete
#endif
[99] Fix | Delete
[100] Fix | Delete
[101] Fix | Delete
/*
[102] Fix | Delete
* Udp based rpc.
[103] Fix | Delete
*/
[104] Fix | Delete
#ifdef __cplusplus
[105] Fix | Delete
extern "C" {
[106] Fix | Delete
#endif
[107] Fix | Delete
extern SVCXPRT *svcudp_create(int);
[108] Fix | Delete
extern SVCXPRT *svcudp_bufcreate(int, u_int, u_int);
[109] Fix | Delete
extern int svcudp_enablecache(SVCXPRT *, u_long);
[110] Fix | Delete
extern SVCXPRT *svcudp6_create(int);
[111] Fix | Delete
extern SVCXPRT *svcudp6_bufcreate(int, u_int, u_int);
[112] Fix | Delete
#ifdef __cplusplus
[113] Fix | Delete
}
[114] Fix | Delete
#endif
[115] Fix | Delete
[116] Fix | Delete
[117] Fix | Delete
/*
[118] Fix | Delete
* Tcp based rpc.
[119] Fix | Delete
*/
[120] Fix | Delete
#ifdef __cplusplus
[121] Fix | Delete
extern "C" {
[122] Fix | Delete
#endif
[123] Fix | Delete
extern SVCXPRT *svctcp_create(int, u_int, u_int);
[124] Fix | Delete
extern SVCXPRT *svctcp6_create(int, u_int, u_int);
[125] Fix | Delete
#ifdef __cplusplus
[126] Fix | Delete
}
[127] Fix | Delete
#endif
[128] Fix | Delete
[129] Fix | Delete
/*
[130] Fix | Delete
* Fd based rpc.
[131] Fix | Delete
*/
[132] Fix | Delete
#ifdef __cplusplus
[133] Fix | Delete
extern "C" {
[134] Fix | Delete
#endif
[135] Fix | Delete
extern SVCXPRT *svcfd_create(int, u_int, u_int);
[136] Fix | Delete
#ifdef __cplusplus
[137] Fix | Delete
}
[138] Fix | Delete
#endif
[139] Fix | Delete
[140] Fix | Delete
#endif /* !_RPC_SVC_SOC_H */
[141] Fix | Delete
[142] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function