# ifndef NO_WHAT
/*
 *      SCCS file type - Emulator Include File
 *
 *      What identification string:
 */
static char *_S_htcpdefs = "@(#)tcpdefs.h	1.1";
# endif
#ifdef NETWORK

#define  Port   int

#define  InternetAddr   long

typedef struct {
	InternetAddr	skt_address;
	Port		skt_port;
} Socket;

typedef long Seqno;

/*
 * TCP header including dummy 12 byte pre-header
 */
typedef struct {
	InternetAddr	seg_saddr;
	InternetAddr	seg_daddr;
	int		seg_protocol;
	int		seg_length;
	Port		seg_source;
	Port		seg_dest;
	Seqno		seg_seq;
	Seqno		seg_ack;
	int		seg_flags;
	int		seg_wnd;
	int		seg_chksum;
	int		seg_up;
} TcpHeader;

#define  FIN    01
#define  SYN    02
#define  RST    04
#define  EOL   010
#define  ACK   020
#define  URG   040

/*
**  TcpOptionKind = (tcp_end_option, tcp_noop_option, tcp_size_option);
*/
typedef char TcpOptionKind;

#define  tcp_end_option       0	/* end of option list */
#define  tcp_noop_option      1	/* No-Operation */
#define  tcp_size_option   0105	/* Buffer Size */
#endif
