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

📄 usrbsdsocket.c

📁 IXP425的BSP代码
💻 C
字号:
/* usrBsdSocket.c - Initialization configlette for BSD sockets *//* Copyright 1992 - 1998 Wind River Systems, Inc. *//*modification history--------------------01d,14nov00,rae  removed unused argument from sockLibAdd()01c,30jul99,pul  configure max_linkhdr01b,30jul99,pul  modify sockLibAdd to add extra parameter for future                 scalability01a,18aug98,ann  created this configlette from usrNetwork.c*//*DESCRIPTIONThis configlette is included when the INCLUDE_BSD_SOCKET component ischosen. It initializes the BSD socket library and adds the requiredsocket library back-ends.NOMANUAL*/STATUS usrBsdSockLibInit(void)    {        max_linkhdr=USR_MAX_LINK_HDR;    if (sockLibInit (NUM_FILES) == ERROR)        {        printf ("usrBsdSockLibInit failed\n");	return (ERROR);        }    if (sockLibAdd ((FUNCPTR) bsdSockLibInit, AF_INET_BSD, AF_INET) == ERROR)        {        printf ("usrBsdSockLibInit failed in add\n");        return (ERROR);        }    if (sockLibAdd ((FUNCPTR) bsdSockLibInit, AF_INET, AF_INET) == ERROR)        {        printf ("usrBsdSockLibInit failed in adding other second INET.\n");        return (ERROR);        }    return (OK);    }

⌨️ 快捷键说明

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