# ifndef NO_WHAT
/*
 *      SCCS file type - Emulator Include File
 *
 *      What identification string:
 */
static char *_S_hTCH = "@(#)TCH.h	1.1";
# endif
#include "tcpparam.h"
/* structure of the shared segment */

#define BuffIndex char
#define BUFFER_INDEX_NIL -1

typedef struct {
	BuffIndex	BN_link;
	BuffIndex	BN_chain;
	int		BN_sema;
} BufferNode;

typedef char NetworkBuffer[ NETBUFFSIZE ];

/* This declaration is a fake to make sizeof work */
extern BufferNode DummyBN;
extern NetworkBuffer DummyNB;

#define NNETBUFFERS  NETSEGSIZE/(sizeof(DummyBN)+sizeof(DummyNB))

/*
** This defines the structure of the shared segment.
** The definition of NS is in the module X
*/
extern struct {
	BufferNode	NS_node[ NNETBUFFERS ];
	NetworkBuffer	NS_buff[ NNETBUFFERS ];
} NS;
