Changeset b3da5b1 in rtems
- Timestamp:
- 05/25/05 12:25:50 (18 years ago)
- Branches:
- 4.10, 4.11, 4.8, 4.9, 5, master
- Children:
- fd6a994
- Parents:
- d7610229
- Location:
- cpukit
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
cpukit/ChangeLog
rd7610229 rb3da5b1 1 1 2005-05-25 Ralf Corsepius <ralf.corsepius@rtems.org> 2 2 3 * librpc/include/rpc/svc.h: Partial update from FreeBSD. 3 4 * librpc/include/rpc/clnt.h: Partial update from FreeBSD. 4 5 -
cpukit/librpc/include/rpc/svc.h
rd7610229 rb3da5b1 110 110 struct opaque_auth rq_cred; /* raw creds from the wire */ 111 111 caddr_t rq_clntcred; /* read only cooked cred */ 112 SVCXPRT *rq_xprt;/* associated transport */112 SVCXPRT *rq_xprt; /* associated transport */ 113 113 }; 114 114 115 116 /*117 * Approved way of getting address of caller118 */119 #define svc_getcaller(x) (&(x)->xp_raddr)120 115 121 116 /* … … 157 152 (*(xprt)->xp_ops->xp_destroy)(xprt) 158 153 159 160 /*161 * Service registration162 *163 * svc_register(xprt, prog, vers, dispatch, protocol)164 * SVCXPRT *xprt;165 * u_long prog;166 * u_long vers;167 * void (*dispatch)();168 * int protocol; (like TCP or UDP, zero means do not register)169 */170 __BEGIN_DECLS171 extern bool_t svc_register (SVCXPRT *, u_long, u_long,172 void (*) (struct svc_req *, SVCXPRT *), int);173 __END_DECLS174 175 /*176 * Service un-registration177 *178 * svc_unregister(prog, vers)179 * u_long prog;180 * u_long vers;181 */182 __BEGIN_DECLS183 extern void svc_unregister (u_long, u_long);184 __END_DECLS185 186 154 /* 187 155 * Transport registration. … … 203 171 extern void xprt_unregister(SVCXPRT *); 204 172 __END_DECLS 205 206 207 173 208 174 … … 290 256 */ 291 257 292 /* 293 * Memory based rpc for testing and timing. 294 */ 295 __BEGIN_DECLS 296 extern SVCXPRT *svcraw_create (void); 297 __END_DECLS 298 299 300 /* 301 * Udp based rpc. 302 */ 303 __BEGIN_DECLS 304 extern SVCXPRT *svcudp_create (int); 305 extern SVCXPRT *svcudp_bufcreate (int, u_int, u_int); 306 __END_DECLS 307 308 309 /* 310 * Tcp based rpc. 311 */ 312 __BEGIN_DECLS 313 extern SVCXPRT *svctcp_create (int, u_int, u_int); 314 extern SVCXPRT *svcfd_create (int, u_int, u_int); 315 __END_DECLS 316 317 /* 318 * AF_UNIX socket based rpc. 319 */ 320 __BEGIN_DECLS 321 extern SVCXPRT *svcunix_create (int, u_int, u_int, char *); 322 extern SVCXPRT *svcunixfd_create (int, u_int, u_int); 323 __END_DECLS 258 __BEGIN_DECLS 259 /* 260 * Transport independent svc_create routine. 261 */ 262 263 /* 264 * Connectionless and connectionful create routines 265 */ 266 267 extern SVCXPRT *svc_vc_create(const int, const u_int, const u_int); 268 /* 269 * const int fd; -- open connection end point 270 * const u_int sendsize; -- max send size 271 * const u_int recvsize; -- max recv size 272 */ 273 274 /* 275 * Added for compatibility to old rpc 4.0. Obsoleted by svc_vc_create(). 276 */ 277 extern SVCXPRT *svcunix_create(int, u_int, u_int, char *); 278 279 /* 280 * Added for compatibility to old rpc 4.0. Obsoleted by svc_fd_create(). 281 */ 282 extern SVCXPRT *svcunixfd_create(int, u_int, u_int); 283 __END_DECLS 284 285 286 /* for backward compatibility */ 287 #include <rpc/svc_soc.h> 324 288 325 289 #endif /* !_RPC_SVC_H */
Note: See TracChangeset
for help on using the changeset viewer.