📄 usrbsdsocket.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 + -