/* begincopyright Copyright (c) 1988 Xerox Corporation. All rights reserved. Use and copying of this software and preparation of derivative works based upon this software are permitted. Any distribution of this software or derivative works must comply with all applicable United States export control laws. This software is made available AS IS, and Xerox Corporation makes no warranty about the software, its performance or its conformity to any specification. Any person obtaining a copy of this software is requested to send their name and post office or electronic mail address to: PCR Coordinator Xerox PARC 3333 Coyote Hill Rd. Palo Alto, CA 94304 endcopyright */ /* * CMUX.h * * Originally built from Mentat's courier.h and courmux.h * * Demers, April 23, 1990 3:45:13 pm PDT */ /** Copyright (c) 1988 Mentat Inc. ** last change 2/22/89 HS **/ #ifndef _CMUX_ #define _CMUX_ #define COURIERVERSION 3 /* the version of Courier we support */ /* Address types */ #define COUR_DEF_ADDR_TYPE 1 #define COUR_ISO_ADDR_TYPE 2 #define COUR_TCP_ADDR_TYPE 3 #define COUR_XNS_ADDR_TYPE 4 /* * The rest of this should be #include ...courmux.h from Mentat */ /* CMUX I_STR ioctl cmds */ #define CMUX_BASE ('C' << 8) #define CMUX_ADDR_COMPLETE (CMUX_BASE + 1) /* helper -> cmux */ #define CMUX_ADDR_REQ (CMUX_BASE + 2) /* client -> cmux */ #define CMUX_CALL_REQ (CMUX_BASE + 3) /* cmux -> helper */ #define CMUX_CALL_REJECT (CMUX_BASE + 4) /* helper -> cmux */ #define CMUX_CLIENT_REQ_IOCTL (CMUX_BASE + 5) /* client -> helper */ #define CMUX_HELPER_ADD (CMUX_BASE + 6) /* helper -> cmux */ #define CMUX_HELPER_REPLY_IOCTL (CMUX_BASE + 7) /* helper -> client */ #define CMUX_PASSTHRU_BEGIN (CMUX_BASE + 8) /* client -> cmux */ #define CMUX_PASSTHRU_END (CMUX_BASE + 9) /* client -> cmux */ #define CMUX_SERVER_ADD (CMUX_BASE + 10) /* server -> cmux */ #define CMUX_TRANSPORT_REQ (CMUX_BASE + 11) /* cmux -> helper */ /* Available (CMUX_BASE + 12) */ #define CMUX_UNBLOCK_STREAM (CMUX_BASE + 13) /* helper -> cmux */ #define CMUX_UNLINK_REQ (CMUX_BASE + 14) /* cmux -> helper */ #define CMUX_HELPER_DBG (CMUX_BASE + 15) /* client -> cmux -> helper */ #define CMUX_SERVER_QUIT (CMUX_BASE + 16) /* server -> cmux */ #define CMUX_PASSTHRU_BEGIN_DEFERRED (CMUX_BASE + 17) #define CMUX_NO_MORE_TRANSPORTS (CMUX_BASE + 18) /* helper -> cmux */ /* Available (CMUX_BASE + 19) */ #define CMUX_SERVER_COUNTDOWN (CMUX_BASE + 20) /* server -> cmux */ #define CMUX_SERVER_RESET_UID (CMUX_BASE + 21) /* server -> cmux */ #define CMUX_REMOTE_ADDR_REQ (CMUX_BASE + 22) /* client -> cmux */ #define CMUX_REMOTE_ADDR_RESPONSE (CMUX_BASE + 23) /* helper -> cmux */ #define CMUX_GET_VALUE 1 #define CMUX_SET_VALUE 2 #define CMUX_DEL_VALUE 3 #define CMUX_CH_ADD 4 #define CMUX_TR_ADD 5 #define CMUX_RETRIEVE_ITEM 6 /* Retrieve an item from a clearinghouse */ #define CMUX_DEF_ADDR_TYPE 1 #define COURIER_MUX_NAME_DEF "/dev/courmux" #endif /* _CMUX_ */