/* **********************************************************************
 * *                                                                    *
 * *      Include Definitions for IRIS Network Receive process          *
 * *                                                                    *
 * **********************************************************************
 * File: iris/network/network.h
 *
 *            COPYRIGHT (c) 1993, 1995, 1998, 2000, 2003  BY
 *          SIGMET INCORPORATED, WESTFORD MASSACHUSETTS, U.S.A.
 * 
 * THIS SOFTWARE IS FURNISHED UNDER A LICENSE AND MAY BE USED AND  COPIED
 * ONLY  IN  ACCORDANCE WITH  THE  TERMS  OF  SUCH  LICENSE  AND WITH THE
 * INCLUSION OF THE ABOVE COPYRIGHT NOTICE.  THIS SOFTWARE  OR  ANY OTHER
 * COPIES  THEREOF MAY NOT BE PROVIDED OR OTHERWISE MADE AVAILABLE TO ANY
 * OTHER PERSON.  NO TITLE TO AND OWNERSHIP OF  THE  SOFTWARE  IS  HEREBY
 * TRANSFERED.
 */
		

#define     OVRW_BUSY       3
#define NET_OVRW_BUSY       (NET_FACILITY + OVRW_BUSY )
#define     OVRW_KEPT       4
#define NET_OVRW_KEPT       (NET_FACILITY + OVRW_KEPT )
#define     OVRW_OK         5
#define NET_OVRW_OK         (NET_FACILITY + OVRW_OK )
#define     PROTOCOL        12
#define NET_PROTOCOL        (NET_FACILITY + PROTOCOL )
#define     SHUT            15
#define NET_SHUT            (NET_FACILITY + SHUT )


#ifndef MESSAGE_ONLY

#ifdef NETRCVD_ALLOCATE
#define EXTERN
#else
#define EXTERN extern
#endif

/* Only used on UNIX platforms */
EXTERN SINT4 ichild_number_c;  /* Set to child number, zero if we are the master */

/* Function prototypes in the network receiver. */

void clear_child_number        /* File: network.c */
  (SINT4 ichild_a );

#define CHILD_UNUSED          (0)
#define CHILD_TCPIP_PROTOCOL  (1)
#define CHILD_DECNET_PROTOCOL (2)

SINT4 get_tcpip_child_number   /* File: network.c */
  ( void );

void netchild_exit_handler     /* File: network.c */
  ( void );

void net_tcpip                 /* File: net_tcpip.c */
  (const UINT4 iport,
   volatile struct process_info *pinfo_a
   );

#endif  /* #ifndef MESSAGE_ONLY */

