⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 tcp_tpi.h

📁 VRTX 商用嵌入式实时操作系统
💻 H
字号:
/***************************************************************************
*
*               Copyright (c) 1993 READY SYSTEMS CORPORATION.
*
*       All rights reserved. READY SYSTEMS' source code is an unpublished
*       work and the use of a copyright notice does not imply otherwise.
*       This source code contains confidential, trade secret material of
*       READY SYSTEMS. Any attempt or participation in deciphering, decoding,
*       reverse engineering or in any way altering the source code is
*       strictly prohibited, unless the prior written consent of
*       READY SYSTEMS is obtained.
*
*
*       Module Name:            %M%
*
*       Identification:         %Z% %I% %M%
*
*       Date:                   %G%  %U%
*
****************************************************************************
*/

/*
 RCS header identifier - $Id: tcp_tpi.h,v 1.6 1994/01/06 19:20:38 robert Exp $
*/
/*
 * Copyrighted as an unpublished work.
 * (c) Copyright 1987-1993 Lachman Technology, Incorporated
 * All rights reserved.
 * 
 * RESTRICTED RIGHTS
 * 
 * These programs are supplied under a license.  They may be used,
 * disclosed, and/or copied only as permitted under such license
 * agreement.  Any copy must contain the above copyright notice and
 * this restricted rights notice.  Use, copying, and/or disclosure
 * of the programs is strictly prohibited unless otherwise provided
 * in the license agreement.
 */

#ifdef __cplusplus
extern "C" {
#endif

/* States of a transport service provider */
#define TPS_UNBND 	0
#define TPS_WACK_BREQ 	1
#define TPS_WACK_UREQ 	2
#define TPS_IDLE 	3
#define TPS_WACK_OPREQ 	4
#define TPS_WACK_CREQ 	5
#define TPS_WCON_CREQ 	6
#define TPS_WRES_CIND 	7
#define TPS_WACK_CRES 	8
#define TPS_DATA_T 	9
#define TPS_WIND_ORREL 	10
#define TPS_WREQ_ORREL 	11
#define TPS_WACK_DREQ6 	12
#define TPS_WACK_DREQ7 	13
#define TPS_WACK_DREQ9 	14
#define TPS_WACK_DREQ10 15
#define TPS_WACK_DREQ11 16

#define TPS_NSTATE 17

/* Events for connection oriented transports */

#define TPE_BIND_REQ	0
#define TPE_UNBIND_REQ	1
#define TPE_OPTMGMT_REQ	2
#define TPE_BIND_ACK	3
#define TPE_OPTMGMT_ACK	4
#define TPE_ERROR_ACK	5
#define TPE_OK_ACK1	6
#define TPE_CONN_REQ	7
#define TPE_CONN_RES	8
#define TPE_DISCON_REQ	9
#define TPE_DATA_REQ	10
#define TPE_EXDATA_REQ	11
#define TPE_ORDREL_REQ	12
#define TPE_CONN_IND	13
#define TPE_CONN_CON	14
#define TPE_DATA_IND	15
#define TPE_EXDATA_IND	16
#define TPE_ORDREL_IND	17
#define TPE_DISCON_IND1	18
#define TPE_DISCON_IND2	19
#define TPE_DISCON_IND3	20
#define TPE_OK_ACK2	21
#define TPE_OK_ACK3	22
#define TPE_OK_ACK4	23
#define TPE_PASS_CONN	24


/* Events for connectionless transports */
#define TPE_UNITDATA_REQ	25
#define TPE_UNITDATA_IND	26
#define TPE_UDERROR_IND		27

#define TPE_NEVENT 28

/* Defines for  TCP */
#define BADEVENT TPE_NEVENT+1
#define NONEVENT TPE_NEVENT
#define BADSTATE TPS_NSTATE

#if defined(KERNEL)
extern	char	tcp_tpi_tbl[TPE_NEVENT+2][TPS_NSTATE];
int		tpi_to_tpe();

#ifndef OSDEBUG
#define NEXTSTATE(X, Y)		tcp_tpi_tbl[X][Y]
#else
#define NEXTSTATE(X, Y) ( \
		STRLOG(TCP_MID, 3, 5, SL_TRACE, \
		  "TPI state %d (%d) -> %d", X, Y, tcp_tpi_tbl[X][Y]), \
		   tcp_tpi_tbl[X][Y] )
#endif /* OSDEBUG */

#endif /* KERNEL */

#ifdef __cplusplus
}
#endif

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -