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

📄 nms.h

📁 基于vxworks操作系统的电话语音平台系统
💻 H
字号:
/*************************************************************************/
/*                                                                       */
/*     Copyright (c) 1998 - 1999 ZZX Communicatoin Technology, Inc.      */
/*                                                                       */
/* PROPRIETARY RIGHTS of ZZX Communication 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 implicitly  */
/* accepts the terms of the license.                                     */
/*                                                                       */
/*************************************************************************/

#ifndef NMS_H
#define NMS_H


/*
It must be defined for bype align at the first line
*/

/* Include */
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
/* in sds compiler */
#include <stdarg.h>

#include "pub\pub_incl.h"
#include "\ati\plus860\plus\nucleus.h"
#include "\ati\plus860\net\inc\protocol.h"
#include "\ati\plus860\net\inc\socketd.h"
#include "\ati\plus860\net\inc\externs.h"
#include "\ati\plus860\net\inc\data.h"
#include "\ati\plus860\net\target.h"
#include "\ati\plus860\net\inc\tcp.h"
#include "\ati\plus860\net\inc\tcp_errs.h"
#include "\ati\plus860\net\inc\netevent.h"
#include "\ati\plus860\net\inc\ip.h"
#include "\ati\plus860\net\inc\net.h"
#include "\ati\plus860\net\inc\mem_defs.h"
#include "\ati\plus860\net\inc\sockext.h"

struct _socket_task 
{
	INT				socketd ;
	NU_PIPE 		*sendpipe ;
	NU_PIPE			*recvpipe ;
	NU_TASK			*task ;
	struct _socket_task 		*next ;
} ;

typedef struct _socket_task 	SOCKET_TASK ;

struct _socket_task_list 
{
	struct _socket_task *head ;
	struct _socket_task *tail ;
} ;

typedef struct _socket_task_list SOCKET_TASK_LIST ;

struct _listen_daemon
{
	INT		port ;
	INT		socketd ;
	INT		connectnum ;
	struct _listen_daemon *next ;
} ;

typedef struct _listen_daemon LISTEN_DAEMON ;

struct _listen_daemon_list
{
	LISTEN_DAEMON *head ;
	LISTEN_DAEMON *tail ;
} ;

typedef struct _listen_daemon_list LISTEN_DAEMON_LIST ;

#define printf              PRINTF

/* define open mode */
#define	OPEN_ACTIVE			1
#define	OPEN_PASSIVE		2
#define	CLOSE_IMMEDIATE		3
#define	CLOSE_WAIT			4
#define CLOSE_RETURNIMMEDIATE 5



/* DEFINE error CODES */
#define	 MSG_INIT_NET_ERR		-100
#define  MSG_INIT_DEVICE_ERR	-101
#define  MSG_LISTEN_ERR			-102
#define  MSG_BIND_ERR			-103
#define  MSG_MEMORY_ERR			-104
#define  MSG_SOCKET_ERR			-105
#define  MSG_SOCKET_ACCEPT_ERR	-106
#define  MSG_NOT_MATCH_ADDR		-107
#define  MSG_SEND_PIPE_ERR		-108
#define  MSG_RECV_PIPE_ERR		-109
#define  MSG_TASK_ERR			-110
#define  MSG_SOCKET_CLOSED		-111
#define  MSG_SOCKET_INVALID		-112
#define  MSG_SEND_COMMAND_ERR	-113
#define  MSG_CHANNEL_CLOSE_ERR	-114
#define  MSG_TASK_NOTEXIST 		-115
#define  MSG_NO_MATCH_TASK		-116
#define  MSG_RECV_COMMAND_ERR   -117
#define  MSG_LISTEN_DAEMON_NOTEXIST  -120
#define  MSG_CONNECT_SOCKET_ERR  -121
#define	 MSG_SENDPIPE_HAS_MORE_MSGS_ERR  -130
#define  MSG_RECVPIPE_HAS_MORE_MSGS_ERR	 -131
#define	 MSG_CONNECT_ERR		-132





#endif

⌨️ 快捷键说明

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