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

📄 netevent.h

📁 mcf5307实验源代码
💻 H
字号:
/****************************************************************************/
/*                                                                          */
/*      Copyright (c) 1993 - 1996 by Accelerated Technology, Inc.           */
/*                                                                          */
/* PROPRIETARY RIGHTS of Accelerated Technology are involved in the subject */
/* matter of this material.  All manufacturing, reproduction, use and sales */
/* rights pertaining to this subject matter are governed by the license     */
/* agreement.  The recipient of this software implicity accepts the terms   */
/* of the license.                                                          */
/*                                                                          */
/****************************************************************************/
/****************************************************************************/
/*                                                                          */
/* FILENAME                                                 VERSION         */
/*                                                                          */
/*      netevent                                              3.2           */
/*                                                                          */
/* DESCRIPTION                                                              */
/*                                                                          */
/*      This include file will define the events used for the NCSA Telnet.  */
/*                                                                          */
/* AUTHOR                                                                   */
/*                                                                          */
/*      Craig L. Meredith, Accelerated Technology Inc.                      */
/*                                                                          */
/* DATA STRUCTURES                                                          */
/*                                                                          */
/*  global compenent data stuctures defined in this file                    */
/*                                                                          */
/* FUNCTIONS                                                                */
/*                                                                          */
/*      No functions defined in this file                                   */
/*                                                                          */
/* DEPENDENCIES                                                             */
/*                                                                          */
/*      No other file dependencies                                          */
/*                                                                          */
/* HISTORY                                                                  */
/*                                                                          */
/*      NAME                            DATE            REMARKS             */
/*                                                                          */
/*      Craig L. Meredith       04/10/93        Initial version.            */
/*      Craig L. Meredith       08/17/93        Added header, Neil's mods.  */
/*                                                                          */
/****************************************************************************/

#ifndef NETEVENT_H
#define NETEVENT_H

#define USERCLASS       1       /* the user program will accept these events */
#define ICMPCLASS       2       /* ICMP in netsleep will look for these */
#define CONCLASS        16      /* the application manages connections with these */

#define IREDIR          1       /* ICMP redirect, ICMPCLASS */

#define CONOPEN         1       /* connection has opened, CONCLASS */
#define CONDATA         2       /* there is data available on this connection */
#define CONCLOSE        3       /* the other side has closed its side of the connection */
#define CONFAIL         4       /* connection open attempt has failed */

/*  NFH - the following additions are to incorporate interrupt driven I/O.
    CONTX indicates that a buffer is to be sent.  CONRX indicates that an
    incoming buffer has been received.  */

#define CONRX           6       /*  just received a buffer.  */
#define CONNULL         7       /*      Just a null event...     */
                                /*      Used to wake up the dispatcher from a
                                 *      indefinite sleep should a timer queue
                                 *      entry be posted...could be used for other
                                 *      purposes also.
                                 */

#define CONTXCOMP       8       /* Transmit of a packet is complete */

#define UDPDATA         1       /* UDP data has arrived on listening port, USERCLASS */

#define CLOSEDONE       6       /* Close completion routine has been called (for Mac Drivers only) */
#define TCPRETRANS      7       /* TCP segment retransmission event */
#define WINPROBE        8       /* Window Probe event. */
#define TCPACK          9       /* TCP ACK transmission event */
#define CONTX           10      /* buffer needs to be sent. */
#define SELECT          11      /* TCP Select timeout event. */
#define UDPSELECT       12      /* UDP Select timeout event. */
#define RARP_REQUEST    13      /* A RARP request event. */

#define NU_CLEAR       0
#define NU_SET         1

#endif  /* NETEVENT_H */

⌨️ 快捷键说明

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