Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 10:13:01

0001 /*  $NetBSD: nettype.h,v 1.2 2000/07/06 03:17:19 christos Exp $ */
0002 /*  $FreeBSD: src/include/rpc/nettype.h,v 1.2 2002/03/23 17:24:55 imp Exp $ */
0003 
0004 /*
0005  * Copyright (c) 2009, Sun Microsystems, Inc.
0006  * All rights reserved.
0007  *
0008  * Redistribution and use in source and binary forms, with or without
0009  * modification, are permitted provided that the following conditions are met:
0010  * - Redistributions of source code must retain the above copyright notice,
0011  *   this list of conditions and the following disclaimer.
0012  * - Redistributions in binary form must reproduce the above copyright notice,
0013  *   this list of conditions and the following disclaimer in the documentation
0014  *   and/or other materials provided with the distribution.
0015  * - Neither the name of Sun Microsystems, Inc. nor the names of its
0016  *   contributors may be used to endorse or promote products derived
0017  *   from this software without specific prior written permission.
0018  *
0019  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
0020  * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
0021  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
0022  * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
0023  * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
0024  * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
0025  * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
0026  * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
0027  * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
0028  * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
0029  * POSSIBILITY OF SUCH DAMAGE.
0030  */
0031 /*
0032  * Copyright (c) 1986 - 1991 by Sun Microsystems, Inc.
0033  */
0034 
0035 /*
0036  * nettype.h, Nettype definitions.
0037  * All for the topmost layer of rpc
0038  *
0039  */
0040 
0041 #ifndef _TIRPC_NETTYPE_H
0042 #define _TIRPC_NETTYPE_H
0043 
0044 #include <netconfig.h>
0045 
0046 #define _RPC_NONE   0
0047 #define _RPC_NETPATH    1
0048 #define _RPC_VISIBLE    2
0049 #define _RPC_CIRCUIT_V  3
0050 #define _RPC_DATAGRAM_V 4
0051 #define _RPC_CIRCUIT_N  5
0052 #define _RPC_DATAGRAM_N 6
0053 #define _RPC_TCP    7
0054 #define _RPC_UDP    8
0055 
0056 #ifdef __cplusplus
0057 extern "C" {
0058 #endif
0059 extern void *__rpc_setconf(const char *);
0060 extern void __rpc_endconf(void *);
0061 extern struct netconfig *__rpc_getconf(void *);
0062 extern struct netconfig *__rpc_getconfip(const char *);
0063 #ifdef __cplusplus
0064 }
0065 #endif
0066 
0067 #endif  /* !_TIRPC_NETTYPE_H */