Edit File by line
/home/barbar84/www/wp-conte.../plugins/sujqvwi/AnonR/anonr.TX.../usr/include/tirpc/rpc
File: svc.h
/* $NetBSD: svc.h,v 1.17 2000/06/02 22:57:56 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: @(#)svc.h 1.35 88/12/17 SMI
[29] Fix | Delete
* from: @(#)svc.h 1.27 94/04/25 SMI
[30] Fix | Delete
* $FreeBSD: src/include/rpc/svc.h,v 1.24 2003/06/15 10:32:01 mbr Exp $
[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
* Copyright (C) 1986-1993 by Sun Microsystems, Inc.
[37] Fix | Delete
*/
[38] Fix | Delete
[39] Fix | Delete
#ifndef _TIRPC_SVC_H
[40] Fix | Delete
#define _TIRPC_SVC_H
[41] Fix | Delete
[42] Fix | Delete
/*
[43] Fix | Delete
* This interface must manage two items concerning remote procedure calling:
[44] Fix | Delete
*
[45] Fix | Delete
* 1) An arbitrary number of transport connections upon which rpc requests
[46] Fix | Delete
* are received. The two most notable transports are TCP and UDP; they are
[47] Fix | Delete
* created and registered by routines in svc_tcp.c and svc_udp.c, respectively;
[48] Fix | Delete
* they in turn call xprt_register and xprt_unregister.
[49] Fix | Delete
*
[50] Fix | Delete
* 2) An arbitrary number of locally registered services. Services are
[51] Fix | Delete
* described by the following four data: program number, version number,
[52] Fix | Delete
* "service dispatch" function, a transport handle, and a boolean that
[53] Fix | Delete
* indicates whether or not the exported program should be registered with a
[54] Fix | Delete
* local binder service; if true the program's number and version and the
[55] Fix | Delete
* port number from the transport handle are registered with the binder.
[56] Fix | Delete
* These data are registered with the rpc svc system via svc_register.
[57] Fix | Delete
*
[58] Fix | Delete
* A service's dispatch function is called whenever an rpc request comes in
[59] Fix | Delete
* on a transport. The request's program and version numbers must match
[60] Fix | Delete
* those of the registered service. The dispatch function is passed two
[61] Fix | Delete
* parameters, struct svc_req * and SVCXPRT *, defined below.
[62] Fix | Delete
*/
[63] Fix | Delete
[64] Fix | Delete
/*
[65] Fix | Delete
* Service control requests
[66] Fix | Delete
*/
[67] Fix | Delete
#define SVCGET_VERSQUIET 1
[68] Fix | Delete
#define SVCSET_VERSQUIET 2
[69] Fix | Delete
#define SVCGET_CONNMAXREC 3
[70] Fix | Delete
#define SVCSET_CONNMAXREC 4
[71] Fix | Delete
[72] Fix | Delete
/*
[73] Fix | Delete
* Operations for rpc_control().
[74] Fix | Delete
*/
[75] Fix | Delete
#define RPC_SVC_CONNMAXREC_SET 0 /* set max rec size, enable nonblock */
[76] Fix | Delete
#define RPC_SVC_CONNMAXREC_GET 1
[77] Fix | Delete
[78] Fix | Delete
enum xprt_stat {
[79] Fix | Delete
XPRT_DIED,
[80] Fix | Delete
XPRT_MOREREQS,
[81] Fix | Delete
XPRT_IDLE
[82] Fix | Delete
};
[83] Fix | Delete
[84] Fix | Delete
/*
[85] Fix | Delete
* Server side transport handle
[86] Fix | Delete
*/
[87] Fix | Delete
typedef struct __rpc_svcxprt {
[88] Fix | Delete
int xp_fd;
[89] Fix | Delete
#define xp_sock xp_fd
[90] Fix | Delete
u_short xp_port; /* associated port number */
[91] Fix | Delete
const struct xp_ops {
[92] Fix | Delete
/* receive incoming requests */
[93] Fix | Delete
bool_t (*xp_recv)(struct __rpc_svcxprt *, struct rpc_msg *);
[94] Fix | Delete
/* get transport status */
[95] Fix | Delete
enum xprt_stat (*xp_stat)(struct __rpc_svcxprt *);
[96] Fix | Delete
/* get arguments */
[97] Fix | Delete
bool_t (*xp_getargs)(struct __rpc_svcxprt *, xdrproc_t,
[98] Fix | Delete
void *);
[99] Fix | Delete
/* send reply */
[100] Fix | Delete
bool_t (*xp_reply)(struct __rpc_svcxprt *, struct rpc_msg *);
[101] Fix | Delete
/* free mem allocated for args */
[102] Fix | Delete
bool_t (*xp_freeargs)(struct __rpc_svcxprt *, xdrproc_t,
[103] Fix | Delete
void *);
[104] Fix | Delete
/* destroy this struct */
[105] Fix | Delete
void (*xp_destroy)(struct __rpc_svcxprt *);
[106] Fix | Delete
} *xp_ops;
[107] Fix | Delete
int xp_addrlen; /* length of remote address */
[108] Fix | Delete
struct sockaddr_in6 xp_raddr; /* remote addr. (backward ABI compat) */
[109] Fix | Delete
/* XXX - fvdl stick this here for ABI backward compat reasons */
[110] Fix | Delete
const struct xp_ops2 {
[111] Fix | Delete
/* catch-all function */
[112] Fix | Delete
bool_t (*xp_control)(struct __rpc_svcxprt *, const u_int,
[113] Fix | Delete
void *);
[114] Fix | Delete
} *xp_ops2;
[115] Fix | Delete
char *xp_tp; /* transport provider device name */
[116] Fix | Delete
char *xp_netid; /* network token */
[117] Fix | Delete
struct netbuf xp_ltaddr; /* local transport address */
[118] Fix | Delete
struct netbuf xp_rtaddr; /* remote transport address */
[119] Fix | Delete
struct opaque_auth xp_verf; /* raw response verifier */
[120] Fix | Delete
void *xp_p1; /* private: for use by svc ops */
[121] Fix | Delete
void *xp_p2; /* private: for use by svc ops */
[122] Fix | Delete
void *xp_p3; /* private: for use by svc lib */
[123] Fix | Delete
int xp_type; /* transport type */
[124] Fix | Delete
} SVCXPRT;
[125] Fix | Delete
[126] Fix | Delete
/*
[127] Fix | Delete
* Service request
[128] Fix | Delete
*/
[129] Fix | Delete
struct svc_req {
[130] Fix | Delete
/* ORDER: compatibility with legacy RPC */
[131] Fix | Delete
u_int32_t rq_prog; /* service program number */
[132] Fix | Delete
u_int32_t rq_vers; /* service protocol version */
[133] Fix | Delete
u_int32_t rq_proc; /* the desired procedure */
[134] Fix | Delete
struct opaque_auth rq_cred; /* raw creds from the wire */
[135] Fix | Delete
void *rq_clntcred; /* read only cooked cred */
[136] Fix | Delete
SVCXPRT *rq_xprt; /* associated transport */
[137] Fix | Delete
[138] Fix | Delete
/* New with TI-RPC */
[139] Fix | Delete
caddr_t rq_clntname; /* read only client name */
[140] Fix | Delete
caddr_t rq_svcname; /* read only cooked service cred */
[141] Fix | Delete
};
[142] Fix | Delete
[143] Fix | Delete
/*
[144] Fix | Delete
* Approved way of getting address of caller
[145] Fix | Delete
*/
[146] Fix | Delete
#define svc_getrpccaller(x) (&(x)->xp_rtaddr)
[147] Fix | Delete
[148] Fix | Delete
/*
[149] Fix | Delete
* Operations defined on an SVCXPRT handle
[150] Fix | Delete
*
[151] Fix | Delete
* SVCXPRT *xprt;
[152] Fix | Delete
* struct rpc_msg *msg;
[153] Fix | Delete
* xdrproc_t xargs;
[154] Fix | Delete
* void * argsp;
[155] Fix | Delete
*/
[156] Fix | Delete
#define SVC_RECV(xprt, msg) \
[157] Fix | Delete
(*(xprt)->xp_ops->xp_recv)((xprt), (msg))
[158] Fix | Delete
#define svc_recv(xprt, msg) \
[159] Fix | Delete
(*(xprt)->xp_ops->xp_recv)((xprt), (msg))
[160] Fix | Delete
[161] Fix | Delete
#define SVC_STAT(xprt) \
[162] Fix | Delete
(*(xprt)->xp_ops->xp_stat)(xprt)
[163] Fix | Delete
#define svc_stat(xprt) \
[164] Fix | Delete
(*(xprt)->xp_ops->xp_stat)(xprt)
[165] Fix | Delete
[166] Fix | Delete
#define SVC_GETARGS(xprt, xargs, argsp) \
[167] Fix | Delete
(*(xprt)->xp_ops->xp_getargs)((xprt), (xargs), (argsp))
[168] Fix | Delete
#define svc_getargs(xprt, xargs, argsp) \
[169] Fix | Delete
(*(xprt)->xp_ops->xp_getargs)((xprt), (xargs), (argsp))
[170] Fix | Delete
[171] Fix | Delete
#define SVC_REPLY(xprt, msg) \
[172] Fix | Delete
(*(xprt)->xp_ops->xp_reply) ((xprt), (msg))
[173] Fix | Delete
#define svc_reply(xprt, msg) \
[174] Fix | Delete
(*(xprt)->xp_ops->xp_reply) ((xprt), (msg))
[175] Fix | Delete
[176] Fix | Delete
#define SVC_FREEARGS(xprt, xargs, argsp) \
[177] Fix | Delete
(*(xprt)->xp_ops->xp_freeargs)((xprt), (xargs), (argsp))
[178] Fix | Delete
#define svc_freeargs(xprt, xargs, argsp) \
[179] Fix | Delete
(*(xprt)->xp_ops->xp_freeargs)((xprt), (xargs), (argsp))
[180] Fix | Delete
[181] Fix | Delete
#define SVC_DESTROY(xprt) \
[182] Fix | Delete
(*(xprt)->xp_ops->xp_destroy)(xprt)
[183] Fix | Delete
#define svc_destroy(xprt) \
[184] Fix | Delete
(*(xprt)->xp_ops->xp_destroy)(xprt)
[185] Fix | Delete
[186] Fix | Delete
#define SVC_CONTROL(xprt, rq, in) \
[187] Fix | Delete
(*(xprt)->xp_ops2->xp_control)((xprt), (rq), (in))
[188] Fix | Delete
[189] Fix | Delete
/*
[190] Fix | Delete
* Service registration
[191] Fix | Delete
*
[192] Fix | Delete
* svc_reg(xprt, prog, vers, dispatch, nconf)
[193] Fix | Delete
* const SVCXPRT *xprt;
[194] Fix | Delete
* const rpcprog_t prog;
[195] Fix | Delete
* const rpcvers_t vers;
[196] Fix | Delete
* const void (*dispatch)();
[197] Fix | Delete
* const struct netconfig *nconf;
[198] Fix | Delete
*/
[199] Fix | Delete
[200] Fix | Delete
#ifdef __cplusplus
[201] Fix | Delete
extern "C" {
[202] Fix | Delete
#endif
[203] Fix | Delete
extern bool_t svc_reg(SVCXPRT *, const rpcprog_t, const rpcvers_t,
[204] Fix | Delete
void (*)(struct svc_req *, SVCXPRT *),
[205] Fix | Delete
const struct netconfig *);
[206] Fix | Delete
#ifdef __cplusplus
[207] Fix | Delete
}
[208] Fix | Delete
#endif
[209] Fix | Delete
[210] Fix | Delete
/*
[211] Fix | Delete
* Service un-registration
[212] Fix | Delete
*
[213] Fix | Delete
* svc_unreg(prog, vers)
[214] Fix | Delete
* const rpcprog_t prog;
[215] Fix | Delete
* const rpcvers_t vers;
[216] Fix | Delete
*/
[217] Fix | Delete
[218] Fix | Delete
#ifdef __cplusplus
[219] Fix | Delete
extern "C" {
[220] Fix | Delete
#endif
[221] Fix | Delete
extern void svc_unreg(const rpcprog_t, const rpcvers_t);
[222] Fix | Delete
#ifdef __cplusplus
[223] Fix | Delete
}
[224] Fix | Delete
#endif
[225] Fix | Delete
[226] Fix | Delete
/*
[227] Fix | Delete
* Transport registration.
[228] Fix | Delete
*
[229] Fix | Delete
* xprt_register(xprt)
[230] Fix | Delete
* SVCXPRT *xprt;
[231] Fix | Delete
*/
[232] Fix | Delete
#ifdef __cplusplus
[233] Fix | Delete
extern "C" {
[234] Fix | Delete
#endif
[235] Fix | Delete
extern void xprt_register(SVCXPRT *);
[236] Fix | Delete
#ifdef __cplusplus
[237] Fix | Delete
}
[238] Fix | Delete
#endif
[239] Fix | Delete
[240] Fix | Delete
/*
[241] Fix | Delete
* Transport un-register
[242] Fix | Delete
*
[243] Fix | Delete
* xprt_unregister(xprt)
[244] Fix | Delete
* SVCXPRT *xprt;
[245] Fix | Delete
*/
[246] Fix | Delete
#ifdef __cplusplus
[247] Fix | Delete
extern "C" {
[248] Fix | Delete
#endif
[249] Fix | Delete
extern void xprt_unregister(SVCXPRT *);
[250] Fix | Delete
#ifdef __cplusplus
[251] Fix | Delete
}
[252] Fix | Delete
#endif
[253] Fix | Delete
[254] Fix | Delete
[255] Fix | Delete
/*
[256] Fix | Delete
* When the service routine is called, it must first check to see if it
[257] Fix | Delete
* knows about the procedure; if not, it should call svcerr_noproc
[258] Fix | Delete
* and return. If so, it should deserialize its arguments via
[259] Fix | Delete
* SVC_GETARGS (defined above). If the deserialization does not work,
[260] Fix | Delete
* svcerr_decode should be called followed by a return. Successful
[261] Fix | Delete
* decoding of the arguments should be followed the execution of the
[262] Fix | Delete
* procedure's code and a call to svc_sendreply.
[263] Fix | Delete
*
[264] Fix | Delete
* Also, if the service refuses to execute the procedure due to too-
[265] Fix | Delete
* weak authentication parameters, svcerr_weakauth should be called.
[266] Fix | Delete
* Note: do not confuse access-control failure with weak authentication!
[267] Fix | Delete
*
[268] Fix | Delete
* NB: In pure implementations of rpc, the caller always waits for a reply
[269] Fix | Delete
* msg. This message is sent when svc_sendreply is called.
[270] Fix | Delete
* Therefore pure service implementations should always call
[271] Fix | Delete
* svc_sendreply even if the function logically returns void; use
[272] Fix | Delete
* xdr.h - xdr_void for the xdr routine. HOWEVER, tcp based rpc allows
[273] Fix | Delete
* for the abuse of pure rpc via batched calling or pipelining. In the
[274] Fix | Delete
* case of a batched call, svc_sendreply should NOT be called since
[275] Fix | Delete
* this would send a return message, which is what batching tries to avoid.
[276] Fix | Delete
* It is the service/protocol writer's responsibility to know which calls are
[277] Fix | Delete
* batched and which are not. Warning: responding to batch calls may
[278] Fix | Delete
* deadlock the caller and server processes!
[279] Fix | Delete
*/
[280] Fix | Delete
[281] Fix | Delete
#ifdef __cplusplus
[282] Fix | Delete
extern "C" {
[283] Fix | Delete
#endif
[284] Fix | Delete
extern bool_t svc_sendreply(SVCXPRT *, xdrproc_t, void *);
[285] Fix | Delete
extern void svcerr_decode(SVCXPRT *);
[286] Fix | Delete
extern void svcerr_weakauth(SVCXPRT *);
[287] Fix | Delete
extern void svcerr_noproc(SVCXPRT *);
[288] Fix | Delete
extern void svcerr_progvers(SVCXPRT *, rpcvers_t, rpcvers_t);
[289] Fix | Delete
extern void svcerr_auth(SVCXPRT *, enum auth_stat);
[290] Fix | Delete
extern void svcerr_noprog(SVCXPRT *);
[291] Fix | Delete
extern void svcerr_systemerr(SVCXPRT *);
[292] Fix | Delete
extern int rpc_reg(rpcprog_t, rpcvers_t, rpcproc_t,
[293] Fix | Delete
char *(*)(char *), xdrproc_t, xdrproc_t,
[294] Fix | Delete
char *);
[295] Fix | Delete
#ifdef __cplusplus
[296] Fix | Delete
}
[297] Fix | Delete
#endif
[298] Fix | Delete
[299] Fix | Delete
/*
[300] Fix | Delete
* Lowest level dispatching -OR- who owns this process anyway.
[301] Fix | Delete
* Somebody has to wait for incoming requests and then call the correct
[302] Fix | Delete
* service routine. The routine svc_run does infinite waiting; i.e.,
[303] Fix | Delete
* svc_run never returns.
[304] Fix | Delete
* Since another (co-existant) package may wish to selectively wait for
[305] Fix | Delete
* incoming calls or other events outside of the rpc architecture, the
[306] Fix | Delete
* routine svc_getreq is provided. It must be passed readfds, the
[307] Fix | Delete
* "in-place" results of a select system call (see select, section 2).
[308] Fix | Delete
*/
[309] Fix | Delete
[310] Fix | Delete
/*
[311] Fix | Delete
* Global keeper of rpc service descriptors in use
[312] Fix | Delete
* dynamic; must be inspected before each call to select
[313] Fix | Delete
*/
[314] Fix | Delete
extern int svc_maxfd;
[315] Fix | Delete
extern fd_set svc_fdset;
[316] Fix | Delete
#define svc_fds svc_fdset.fds_bits[0] /* compatibility */
[317] Fix | Delete
extern struct pollfd *svc_pollfd;
[318] Fix | Delete
extern int svc_max_pollfd;
[319] Fix | Delete
[320] Fix | Delete
/*
[321] Fix | Delete
* a small program implemented by the svc_rpc implementation itself;
[322] Fix | Delete
* also see clnt.h for protocol numbers.
[323] Fix | Delete
*/
[324] Fix | Delete
#ifdef __cplusplus
[325] Fix | Delete
extern "C" {
[326] Fix | Delete
#endif
[327] Fix | Delete
extern void rpctest_service(void);
[328] Fix | Delete
#ifdef __cplusplus
[329] Fix | Delete
}
[330] Fix | Delete
#endif
[331] Fix | Delete
[332] Fix | Delete
#ifdef __cplusplus
[333] Fix | Delete
extern "C" {
[334] Fix | Delete
#endif
[335] Fix | Delete
extern void svc_getreq(int);
[336] Fix | Delete
extern void svc_getreqset(fd_set *);
[337] Fix | Delete
extern void svc_getreq_common(int);
[338] Fix | Delete
struct pollfd;
[339] Fix | Delete
extern void svc_getreq_poll(struct pollfd *, int);
[340] Fix | Delete
[341] Fix | Delete
extern void svc_run(void);
[342] Fix | Delete
extern void svc_exit(void);
[343] Fix | Delete
#ifdef __cplusplus
[344] Fix | Delete
}
[345] Fix | Delete
#endif
[346] Fix | Delete
[347] Fix | Delete
/*
[348] Fix | Delete
* Socket to use on svcxxx_create call to get default socket
[349] Fix | Delete
*/
[350] Fix | Delete
#define RPC_ANYSOCK -1
[351] Fix | Delete
#define RPC_ANYFD RPC_ANYSOCK
[352] Fix | Delete
[353] Fix | Delete
/*
[354] Fix | Delete
* These are the existing service side transport implementations
[355] Fix | Delete
*/
[356] Fix | Delete
[357] Fix | Delete
#ifdef __cplusplus
[358] Fix | Delete
extern "C" {
[359] Fix | Delete
#endif
[360] Fix | Delete
/*
[361] Fix | Delete
* Transport independent svc_create routine.
[362] Fix | Delete
*/
[363] Fix | Delete
extern int svc_create(void (*)(struct svc_req *, SVCXPRT *),
[364] Fix | Delete
const rpcprog_t, const rpcvers_t, const char *);
[365] Fix | Delete
/*
[366] Fix | Delete
* void (*dispatch)(); -- dispatch routine
[367] Fix | Delete
* const rpcprog_t prognum; -- program number
[368] Fix | Delete
* const rpcvers_t versnum; -- version number
[369] Fix | Delete
* const char *nettype; -- network type
[370] Fix | Delete
*/
[371] Fix | Delete
[372] Fix | Delete
[373] Fix | Delete
/*
[374] Fix | Delete
* Generic server creation routine. It takes a netconfig structure
[375] Fix | Delete
* instead of a nettype.
[376] Fix | Delete
*/
[377] Fix | Delete
[378] Fix | Delete
extern SVCXPRT *svc_tp_create(void (*)(struct svc_req *, SVCXPRT *),
[379] Fix | Delete
const rpcprog_t, const rpcvers_t,
[380] Fix | Delete
const struct netconfig *);
[381] Fix | Delete
/*
[382] Fix | Delete
* void (*dispatch)(); -- dispatch routine
[383] Fix | Delete
* const rpcprog_t prognum; -- program number
[384] Fix | Delete
* const rpcvers_t versnum; -- version number
[385] Fix | Delete
* const struct netconfig *nconf; -- netconfig structure
[386] Fix | Delete
*/
[387] Fix | Delete
[388] Fix | Delete
[389] Fix | Delete
/*
[390] Fix | Delete
* Generic TLI create routine
[391] Fix | Delete
*/
[392] Fix | Delete
extern SVCXPRT *svc_tli_create(const int, const struct netconfig *,
[393] Fix | Delete
const struct t_bind *, const u_int,
[394] Fix | Delete
const u_int);
[395] Fix | Delete
/*
[396] Fix | Delete
* const int fd; -- connection end point
[397] Fix | Delete
* const struct netconfig *nconf; -- netconfig structure for network
[398] Fix | Delete
* const struct t_bind *bindaddr; -- local bind address
[399] Fix | Delete
* const u_int sendsz; -- max sendsize
[400] Fix | Delete
* const u_int recvsz; -- max recvsize
[401] Fix | Delete
*/
[402] Fix | Delete
[403] Fix | Delete
/*
[404] Fix | Delete
* Connectionless and connectionful create routines
[405] Fix | Delete
*/
[406] Fix | Delete
[407] Fix | Delete
extern SVCXPRT *svc_vc_create(const int, const u_int, const u_int);
[408] Fix | Delete
/*
[409] Fix | Delete
* const int fd; -- open connection end point
[410] Fix | Delete
* const u_int sendsize; -- max send size
[411] Fix | Delete
* const u_int recvsize; -- max recv size
[412] Fix | Delete
*/
[413] Fix | Delete
[414] Fix | Delete
/*
[415] Fix | Delete
* Added for compatibility to old rpc 4.0. Obsoleted by svc_vc_create().
[416] Fix | Delete
*/
[417] Fix | Delete
extern SVCXPRT *svcunix_create(int, u_int, u_int, char *);
[418] Fix | Delete
[419] Fix | Delete
extern SVCXPRT *svc_dg_create(const int, const u_int, const u_int);
[420] Fix | Delete
/*
[421] Fix | Delete
* const int fd; -- open connection
[422] Fix | Delete
* const u_int sendsize; -- max send size
[423] Fix | Delete
* const u_int recvsize; -- max recv size
[424] Fix | Delete
*/
[425] Fix | Delete
[426] Fix | Delete
[427] Fix | Delete
/*
[428] Fix | Delete
* the routine takes any *open* connection
[429] Fix | Delete
* descriptor as its first input and is used for open connections.
[430] Fix | Delete
*/
[431] Fix | Delete
extern SVCXPRT *svc_fd_create(const int, const u_int, const u_int);
[432] Fix | Delete
/*
[433] Fix | Delete
* const int fd; -- open connection end point
[434] Fix | Delete
* const u_int sendsize; -- max send size
[435] Fix | Delete
* const u_int recvsize; -- max recv size
[436] Fix | Delete
*/
[437] Fix | Delete
[438] Fix | Delete
/*
[439] Fix | Delete
* Added for compatibility to old rpc 4.0. Obsoleted by svc_fd_create().
[440] Fix | Delete
*/
[441] Fix | Delete
extern SVCXPRT *svcunixfd_create(int, u_int, u_int);
[442] Fix | Delete
[443] Fix | Delete
/*
[444] Fix | Delete
* Memory based rpc (for speed check and testing)
[445] Fix | Delete
*/
[446] Fix | Delete
extern SVCXPRT *svc_raw_create(void);
[447] Fix | Delete
[448] Fix | Delete
/*
[449] Fix | Delete
* svc_dg_enable_cache() enables the cache on dg transports.
[450] Fix | Delete
*/
[451] Fix | Delete
int svc_dg_enablecache(SVCXPRT *, const u_int);
[452] Fix | Delete
[453] Fix | Delete
int __rpc_get_local_uid(SVCXPRT *_transp, uid_t *_uid);
[454] Fix | Delete
[455] Fix | Delete
#ifdef __cplusplus
[456] Fix | Delete
}
[457] Fix | Delete
#endif
[458] Fix | Delete
[459] Fix | Delete
[460] Fix | Delete
/* for backward compatibility */
[461] Fix | Delete
#include <rpc/svc_soc.h>
[462] Fix | Delete
[463] Fix | Delete
[464] Fix | Delete
[465] Fix | Delete
#endif /* !_TIRPC_SVC_H */
[466] Fix | Delete
[467] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function