/********************************************************************************************************************************/ /* Created: 23-Nov-2010 12:25:57 by OpenVMS SDL EV2-1 */ /* Source: 15-JUL-2009 16:23:42 BUILD26$:[TCPIP_V57_BLECO2.SRC.TELNET_SERVER]$TNIODEF.SDL;1 */ /********************************************************************************************************************************/ /*** MODULE $TNIODEF ***/ #ifndef __TNIODEF_LOADED #define __TNIODEF_LOADED 1 #pragma __nostandard /* This file uses non-ANSI-Standard features */ #pragma __member_alignment __save #pragma __nomember_alignment #ifdef __INITIAL_POINTER_SIZE /* Defined whenever ptr size pragmas supported */ #pragma __required_pointer_size __save /* Save the previously-defined required ptr size */ #pragma __required_pointer_size __short /* And set ptr size default to 32-bit pointers */ #endif #ifdef __cplusplus extern "C" { #define __unknown_params ... #define __optional_params ... #else #define __unknown_params #define __optional_params ... #endif #ifndef __struct #if !defined(__VAXC) #define __struct struct #else #define __struct variant_struct #endif #endif #ifndef __union #if !defined(__VAXC) #define __union union #else #define __union variant_union #endif #endif /* */ /* Function modifiers used with IO$_TTY_PORT_BUFIO */ /* */ #define IO$V_TN_STARTUP 6 /* Start some form of operation - 64 */ #define IO$V_TN_SHUTDOWN 7 /* Stop some form of operation - 128 */ /* - 256 */ #define IO$V_TN_CTRL 9 /* Control (or system) function - 512 */ /* - 1024 */ #define IO$V_TN_CONNECT 11 /* Connect to remote - 2048 */ #define IO$V_TN_DISCON 12 /* Disconnect from remote - 4096 */ #define IO$V_TN_SETMODE 13 /* Set characteristics - 8192 */ #define IO$V_TN_SENSEMODE 14 /* Sense characteristics - 16384 */ /* - 32768 */ #define IO$M_TN_STARTUP 64 #define IO$M_TN_SHUTDOWN 128 #define IO$M_TN_CTRL 512 #define IO$M_TN_CONNECT 2048 #define IO$M_TN_DISCON 4096 #define IO$M_TN_SETMODE 8192 #define IO$M_TN_SENSEMODE 16384 /* */ /* Item list codes */ /* */ #define TN$_END_OF_LIST 0 /* End of item list */ #define TN$_ACCPORNAM 1 /* Access port name */ #define TN$_CHARACTERISTICS 2 /* Flags or characteristics */ #define TN$_CONNECTION_ATTEMPTS 3 /* Connection attempts (R/O) */ #define TN$_CONNECTION_INTERVAL 4 /* Connection interval (secs) */ #define TN$_CONNECTION_TIMEOUT 5 /* Connection timeout (secs) */ #define TN$_DATA_HIGH 6 /* HIGH data limit (bytes) */ #define TN$_DATA_LOW 7 /* LOW data limit (bytes) */ #define TN$_DEVICE_UNIT 8 /* Device unit number */ #define TN$_IDLE_INTERVAL 9 /* Idle interval (secs) */ #define TN$_IDLE_TIMEOUT 10 /* Idle timeout (secs) */ #define TN$_LOCAL_ADDRESS 11 /* Local address (sockaddr) */ #define TN$_NETWORK_DEVICE_NAME 12 /* Name of network device */ #define TN$_PROTOCOL 13 /* Protocol type */ #define TN$_REMOTE_ADDRESS 14 /* Remote address (sockaddr) */ #define TN$_SERVICE_TYPE 15 /* Type of service (incoming, outgoing) */ #define TN$_STATUS 16 /* Status bits (R/O) */ #define TN$_WELCOME_STRING 17 /* Welcome string */ #define TN$_CTL_REMOTE_ADDRESS 18 /* CTL$GQ_REMOTE_ADDRESS info */ #define TN$_CTL_REMOTE_FULLNAME 19 /* CTL$GQ_REMOTE_FULLNAME */ #define TN$_CTL_REMOTE_NAME 20 /* CTL$GQ_REMOTE_NODE info */ #define TN$_CTL_REMOTE_UID 21 /* CTL$GQ_REMOTE_UID info */ #define TN$_TERMINAL_TYPE 22 /* Terminal device type */ #define TN$K_ITEM_MAXIMUM 22 /* */ /* Sizes for each of the item list types */ /* */ #define TN$S_ACCPORNAM 63 #define TN$S_CHARACTERISTICS 4 #define TN$S_CONNECTION_ATTEMPTS 4 #define TN$S_CONNECTION_INTERVAL 4 #define TN$S_CONNECTION_TIMEOUT 4 #define TN$S_DATA_HIGH 4 #define TN$S_DATA_LOW 4 #define TN$S_DEVICE_UNIT 4 #define TN$S_IDLE_INTERVAL 4 #define TN$S_IDLE_TIMEOUT 4 #define TN$S_LOCAL_ADDRESS 4 #define TN$S_NETWORK_DEVICE_NAME 31 #define TN$S_PROTOCOL 4 #define TN$S_REMOTE_ADDRESS 31 #define TN$S_SERVICE_TYPE 4 #define TN$S_STATUS 4 #define TN$S_WELCOME_STRING 255 #define TN$S_CTL_REMOTE_ADDRESS 255 #define TN$S_CTL_REMOTE_FULLNAME 255 #define TN$S_CTL_REMOTE_NAME 255 #define TN$S_CTL_REMOTE_UID 255 #define TN$S_TERMINAL_TYPE 15 /* */ /* Masks bits for TN$_CHARACTERISTICS: */ /* */ #define TN$M_AUTOCONNECT 0x1 #define TN$M_LOGIN_ON_DASSGN 0x2 #define TN$M_LOGIN_TIMER 0x4 #define TN$M_PERMANENT_UCB 0x8 #define TN$M_RETAIN_ON_DASSGN 0x10 #define TN$M_VIRTUAL_TERMINAL 0x20 #define TN$M_XON_ANY_CHAR 0x40 #define TN$M_TRUST_LOCATION 0x80 #define TN$M_DISABLE_BINARY 0x100 struct tn_char { unsigned tn$v_autoconnect : 1; /* Automatic connect/disconnect */ unsigned tn$v_login_on_dassgn : 1; /* Perform login on final deassign (priv) */ unsigned tn$v_login_timer : 1; /* Enable the login timer */ unsigned tn$v_permanent_ucb : 1; /* Device is permanent */ unsigned tn$v_retain_on_dassgn : 1; /* Do not delete device on first $DASSGN() */ unsigned tn$v_virtual_terminal : 1; /* Virtual terminal enabled bit */ unsigned tn$v_xon_any_char : 1; /* 70-5-1601 XON on any char not just ^Q */ unsigned tn$v_trust_location : 1; /* Use send-loc info in audit records? */ unsigned tn$v_disable_binary : 1; /* Ignore binary negotiation */ unsigned tn$v_fill_0_ : 7; } ; /* */ /* Default, minimum and maximum values for TN$_DATA_HIGH and TN$_DATA_LOW. */ /* */ /* QXCM1000917176 - Increasing the SOCKET_DATA_HIGH_DEF to max value (65535) */ /* */ #define TN$C_SOCKET_DATA_HIGH_DEF 65535 #define TN$C_SOCKET_DATA_HIGH_MIN 256 #define TN$C_SOCKET_DATA_HIGH_MAX 1024 #define TN$C_SOCKET_DATA_LOW_DEF 256 #define TN$C_SOCKET_DATA_LOW_MIN 128 #define TN$C_SOCKET_DATA_LOW_MAX 512 /* */ /* Values for TN$_PROTOCOL: */ /* */ #define TN$K_PROTOCOL_UNDEFINED 0 /* Undefined (or raw) */ #define TN$K_PROTOCOL_NVT 1 /* Unix-style Network TTY */ #define TN$K_PROTOCOL_RLOGIN 2 /* RLOGIN protocol */ #define TN$K_PROTOCOL_TELNET 3 /* TELNET protocol */ #define TN$K_PROTOCOL_RAW 0 #define TN$K_PROTOCOL_MAXIMUM 3 #define TN$K_PROTOCOL_ALL -1 /* */ /* Values for TN$_SERVICE_TYPE: */ /* */ #define TN$K_SERVICE_NONE 0 /* Utility device until told otherwise */ #define TN$K_SERVICE_INCOMING 1 /* Inbound connection */ #define TN$K_SERVICE_OUTGOING 2 /* Outbound connection */ #define TN$K_SERVICE_MAXIMUM 2 #pragma __member_alignment __restore #ifdef __INITIAL_POINTER_SIZE /* Defined whenever ptr size pragmas supported */ #pragma __required_pointer_size __restore /* Restore the previously-defined required ptr size */ #endif #ifdef __cplusplus } #endif #pragma __standard #endif /* __TNIODEF_LOADED */