wdbnetwork.c
来自「IXP425的BSP代码」· C语言 代码 · 共 57 行
C
57 行
/* wdbNetwork.c - WDB network communication initialization library *//* Copyright 1998 Wind River Systems, Inc. *//*modification history--------------------01b,22may98,dbt reworked01a,11mar98,ms written*//*DESCRIPTIONInitializes the network connection for the WDB agent.NOMANUAL*//******************************************************************************** wdbCommDevInit - initialize the network connection** This routine initializes the network connection used by the WDB agent.** RETURNS :* OK or ERROR if the network connection can not be initialized.** NOMANUAL*/STATUS wdbCommDevInit ( WDB_COMM_IF * pCommIf, char ** ppWdbInBuf, char ** ppWdbOutBuf ) { 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; /* UDP sockets - supports a task agent */ if (wdbUdpSockIfInit (pCommIf) == ERROR) return (ERROR); else return (OK); }
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?