📄 wdbpipe.c
字号:
/* wdbPipe.c - WDB pipe communication initialization library *//* Copyright 1998 Wind River Systems, Inc. *//*modification history--------------------01a,18may98,dbt written based on usrWdb.c ver 02t*//*DESCRIPTIONInitializes the pipe connection for the WDB agent (VxSim only).NOMANUAL*//******************************************************************************** wdbCommDevInit - initialize the pipe connection** This routine initializes the pipe connection used by the WDB agent.** RETURNS :* OK or ERROR if the pipe connection can not be initialized.** NOMANUAL*/STATUS wdbCommDevInit ( WDB_COMM_IF * pCommIf, char ** ppWdbInBuf, char ** ppWdbOutBuf ) { static WDB_PIPE_PKT_DEV wdbPipePktDev; /* Pipe packet device */ static uint_t wdbInBuf [WDB_MTU/4]; static uint_t wdbOutBuf [WDB_MTU/4]; /* update input & output buffer pointers */ *ppWdbInBuf = (char *) wdbInBuf; *ppWdbOutBuf = (char *) wdbOutBuf; /* update communication interface mtu */ wdbCommMtu = WDB_MTU; /* pipe packet driver - supports task or external agent */ if (wdbPipePktDevInit(&wdbPipePktDev, udpRcv) == ERROR) return (ERROR); if (udpCommIfInit(pCommIf, &wdbPipePktDev.wdbDrvIf) == ERROR) return (ERROR); return (OK); }
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -