Files
TeslaRel410/BORLAND/BC45/INCLUDE/WSHISOTP.H
T
CydandClaude Fable 5 63312e07f9 source410: literal 4.10 source reconstruction + BC++ 4.52 fleet toolchain archived
- BORLAND/: Borland C++ 4.52 (chosen over 4.5 by byte-match: CODE/RP/CW32.LIB
  is identical to 4.52's install lib). BCC32/TLINK32/TLIB/MAKE run natively on
  Win11; CODE/BT/OPT.MAK is the shipped BTL4OPT.EXE's exact flag recipe
  (extender = Borland PowerPack DPMI32, not Phar Lap TNT).
- restoration/source410/: the literal 1995-form reconstruction of the missing
  BT game source (never mixed into CODE/). Round 1-3 state:
  * 6 of 10 surviving original TUs COMPILE CLEAN under the period toolchain
    (BTMSSN, BTCNSL, BTSCNRL, BTTEAM, BTL4MODE, BTL4ARND) - first builds
    since 1996.
  * BT_L4/BTL4APP.CPP pilot reconstruction: 12/12 functions, Fail() lands on
    its binary-recorded line 400 exactly.
  * BT/BTCNSL.HPP: console wire IDs recovered from the binary's ctors
    (Killed=9, Damaged=10, ScoreUpdate=13, DeathWithoutHonor=15 [T1];
    TeamScore=12 flagged [T4]).
  * MUNGA/: 8 engine-header backfills back-dated from the BT412 WinTesla tree
    (VDATA numbering decomp-verified; AUDREND's OpenAL-era virtual removed -
    the period compiler is the drift detector).
  * Tooling: backdate.py (WinTesla->1995 header transform), compile410.sh
    (per-TU verification sweep under authentic OPT.MAK flags).
  * README: corrected roadmap - MECH.HPP is the capstone grown with the mech
    TU reconstructions; BTREG.CPP green = the header-family milestone.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-19 07:33:26 -05:00

100 lines
3.4 KiB
C++

/* File: .streams.include.src/mod wshisotp.h Version: Initial */
/*
* wshisotp.h
*
* Windows Sockets include file for ISO TP4. This file contains all
* standardized ISO TP4 information. Include this header file after
* winsock.h.
*
* The information contained in this header file was originally
* created by Alcatel TITN Inc.
*/
/*
* C/C++ Run Time Library - Version 6.5
*
* Copyright (c) 1994 by Borland International
* All Rights Reserved.
*
*/
#ifndef _WSHISOTP_
#define _WSHISOTP_
#define __WSHISOTP_H
/*
* Protocol values for ISO transport protocols.
*/
#define ISOPROTO_TP0 25 /* connection orientated transport protocol */
#define ISOPROTO_TP1 26 /* not implemented */
#define ISOPROTO_TP2 27 /* not implemented */
#define ISOPROTO_TP3 28 /* not implemented */
#define ISOPROTO_TP4 29 /* connection orientated transport protocol */
#define ISOPROTO_TP ISOPROTO_TP4
#define ISOPROTO_CLTP 30 /* connectionless transport */
#define ISOPROTO_CLNP 31 /* connectionless internetworking protocol */
#define ISOPROTO_X25 32 /* cons */
#define ISOPROTO_INACT_NL 33 /* inactive network layer */
#define ISOPROTO_ESIS 34 /* ES-IS protocol */
#define ISOPROTO_INTRAISIS 35 /* IS-IS protocol */
#define IPPROTO_RAW 255 /* raw clnp */
#define IPPROTO_MAX 256
/*
* The maximum size of the tranport address (tp_addr field of a
* sockaddr_tp structure) is 64.
*/
#define ISO_MAX_ADDR_LENGTH 64
/*
* There are two types of ISO addresses, hierarchical and
* non-hierarchical. For hierarchical addresses, the tp_addr
* field contains both the transport selector and the network
* address. For non-hierarchical addresses, tp_addr contains only
* the transport address, which must be translated by the ISO TP4
* transport provider into the transport selector and network address.
*/
#define ISO_HIERARCHICAL 0
#define ISO_NON_HIERARCHICAL 1
/*
* The format of the address structure (sockaddr) to pass to Windows
* Sockets APIs.
*
*/
typedef struct sockaddr_tp {
u_short tp_family; /* Always AF_ISO */
u_short tp_addr_type; /* ISO_HIERARCHICAL or ISO_NON_HIERARCHICAL
*/
u_short tp_taddr_len; /* Length of transport address, <= 52 */
u_short tp_tsel_len; /* Length of transport selector, <= 32 */
/* 0 if ISO_NON_HIERARCHICAL */
u_char tp_addr[ISO_MAX_ADDR_LENGTH];
} SOCKADDR_TP, *PSOCKADDR_TP, *LPSOCKADDR_TP;
#define ISO_SET_TP_ADDR(sa_tp, port, portlen, node, nodelen) \
(sa_tp)->tp_family = AF_ISO; \
(sa_tp)->tp_addr_type = ISO_HIERARCHICAL; \
(sa_tp)->tp_tsel_len = (portlen); \
(sa_tp)->tp_taddr_len = (portlen) + (nodelen); \
memcpy(&(sa_tp)->tp_addr, (port), (portlen)); \
memcpy(&(sa_tp)->tp_addr[portlen], (node), (nodelen));
/*
* Expedited Data Usage Negotiation option.
* Default when the option is not present is be EXP_DATA_USE
* as per ISO 8073
*/
#define ISO_EXP_DATA_USE 00 /* Use of Expedited Data */
#define ISO_EXP_DATA_NUSE 01 /* Non-use of Expedited Data */
#endif