亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? zbufsocklib.c

?? vxwork源代碼
?? C
?? 第 1 頁 / 共 2 頁
字號:
/* zbufSockLib.c - zbuf socket interface library *//* Copyright 1984 - 2001 Wind River Systems, Inc. */#include "copyright_wrs.h"/*modification history--------------------01l,07may02,kbw  man page edits01k,15oct01,rae  merge from truestack ver 01l, base 01j (cleanup)01j,18oct00,zhu  check NULL for sockFdtosockFunc01i,29apr99,pul  Upgraded NPT phase3 code to tor2.0.001h,14mar99,jdi  doc: removed refs to config.h and/or configAll.h (SPR 25663).01h,02feb99,sgv  Added checks for zbuf support in the underlying backend in		 zbufSockSend,zbufSockSendto,zbufSockBufSend, zbufSockBufSendto,		 zbufSockRecv, zbufSockRecvfrom calls.01g,26oct95,rhp  doc: mention values for <flags> params in socket                 calls (SPR#4423)01f,10mar95,jdi  doc addn to zbufSockRecv(), zbufSockRecvfrom() as per dana.01e,11feb95,jdi  fixed doc style for `errno'.01d,23jan95,jdi  more doc tweaks.01c,12nov94,rhp  doc tweaks.01b,09nov94,rhp  library man page added, subroutine man pages edited.01a,08nov94,dzb  written.*//*DESCRIPTIONThis library contains routines that communicate over BSD sockets usingthe.I "zbuf interface"described in the zbufLib manual page.  These zbufsocket calls communicate over BSD sockets in a similar manner to thesocket routines in sockLib, but they avoid copying data unnecessarilybetween application buffers and network buffers.VXWORKS AE PROTECTION DOMAINSUnder VxWorks AE, this feature is accessible from the kernel protection domain only.  This restriction does not apply under non-AE versions of VxWorks.  To use this feature, include the INCLUDE_ZBUF_SOCK component.SEE ALSOzbufLib, sockLib *//* includes */#include "vxWorks.h"#include "zbufSockLib.h"#include "mbufSockLib.h"#include "sys/socket.h"#include "sockFunc.h"#include "netLib.h"/* locals */LOCAL ZBUF_SOCK_FUNC	zbufSockFuncNull =	/* null funcs for unconnected */    {    NULL,					/* zbufLibInit()	*/    NULL,					/* zbufSockSend()	*/    NULL,					/* zbufSockSendto()	*/    NULL,					/* zbufSockBufSend()	*/    NULL,					/* zbufSockBufSendto()	*/    NULL,					/* zbufSockRecv()	*/    NULL					/* zbufSockRecvfrom()	*/    };LOCAL ZBUF_SOCK_FUNC *	pZbufSockFunc = &zbufSockFuncNull;/* forward declarations */IMPORT SOCK_FUNC * sockFdtosockFunc (int s);/********************************************************************************* zbufSockLibInit - initialize the zbuf socket interface library** This routine initializes the zbuf socket interface* library.  It must be called before any zbuf socket routines are used.* It is called automatically when INCLUDE_ZBUF_SOCK is defined.** VXWORKS AE PROTECTION DOMAINS* Under VxWorks AE, you can call this function from within the kernel * protection domain only.  In addition, all arguments to this function can  * reference only that data which is valid in the kernel protection domain. * This restriction does not apply under non-AE versions of VxWorks.  ** RETURNS:* OK, or ERROR if the zbuf socket interface could not be initialized.*/STATUS zbufSockLibInit (void)    {    ZBUF_SOCK_FUNC *	pZbufSockFuncTemp;    /* call the back-end initialization routine */    if ((pZbufSockFuncTemp = _mbufSockLibInit()) == NULL)	return (ERROR);        pZbufSockFunc = pZbufSockFuncTemp;	/* connect socket back-end func table */    return (zbufLibInit (pZbufSockFunc->libInitRtn));    }/********************************************************************************* zbufSockSend - send zbuf data to a TCP socket** This routine transmits all of the data in <zbufId> to a previously* established connection-based (stream) socket.** The <zbufLen> parameter is used only for determining the amount of space* needed from the socket write buffer.  <zbufLen> has no effect on how many* bytes are sent; the entire zbuf is always transmitted.  If the length of* <zbufId> is not known, the caller must first determine it by calling* zbufLength().** This routine transfers ownership of the zbuf from the user application* to the VxWorks network stack.  The zbuf ID, <zbufId>, is deleted by this* routine, and should not be used after the routine is called, even if* an ERROR status is returned.  (Exceptions:  when the routine* fails because the zbuf socket interface library was not initialized or an* invalid zbuf ID was passed in, in which case there is no zbuf to delete.* Moreover, if the call fails during a non-blocking I/O socket write* with an `errno' of EWOULDBLOCK, then <zbufId> is not deleted; thus the* caller may send it again at a later time.)** You may OR the following values into the <flags> parameter with this* operation:** .iP "MSG_OOB (0x1)" 26* Out-of-band data.* * .iP "MSG_DONTROUTE (0x4)"* Send without using routing tables.* .LP* * VXWORKS AE PROTECTION DOMAINS* Under VxWorks AE, you can call this function from within the kernel * protection domain only.  In addition, all arguments to this function can  * reference only that data which is valid in the kernel protection domain. * This restriction does not apply under non-AE versions of VxWorks.  ** RETURNS* The number of bytes sent, or ERROR if the call fails.** SEE ALSO: zbufLength(), zbufSockBufSend(), send()*/int zbufSockSend    (    int			s,		/* socket to send to */    ZBUF_ID		zbufId,		/* zbuf to transmit */    int			zbufLen,	/* length of entire zbuf */    int			flags		/* flags to underlying protocols */    )    {    SOCK_FUNC * pSockFunc = sockFdtosockFunc(s);    if (pSockFunc == NULL || pSockFunc->zbufRtn == NULL ||	(pSockFunc->zbufRtn)() == FALSE)	{	netErrnoSet (ENOTSUP);	return (ERROR);	}    return ((pZbufSockFunc->sendRtn == NULL) ? ERROR :	(pZbufSockFunc->sendRtn) (s, zbufId, zbufLen, flags));    }/********************************************************************************* zbufSockSendto - send a zbuf message to a UDP socket** This routine sends the entire message in <zbufId> to the datagram socket* named by <to>.  The socket <s> is the sending socket.** The <zbufLen> parameter is used only for determining the amount of space* needed from the socket write buffer.  <zbufLen> has no effect on how many* bytes are sent; the entire zbuf is always transmitted.  If the length of* <zbufId> is not known, the caller must first determine it by calling* zbufLength().** This routine transfers ownership of the zbuf from the user application* to the VxWorks network stack.  The zbuf ID <zbufId> is deleted by this* routine, and should not be used after the routine is called, even if* an ERROR status is returned.  (Exceptions:  when the routine* fails because the zbuf socket interface library was not initialized or an* invalid zbuf ID was passed in, in which case there is no zbuf to delete.* Moreover, if the call fails during a non-blocking I/O socket write* with an `errno' of EWOULDBLOCK, then <zbufId> is not deleted; thus the* caller may send it again at a later time.)** You may OR the following values into the <flags> parameter with this* operation:** .iP "MSG_OOB (0x1)" 26* Out-of-band data.* * .iP "MSG_DONTROUTE (0x4)"* Send without using routing tables.* .LP* * VXWORKS AE PROTECTION DOMAINS* Under VxWorks AE, you can call this function from within the kernel * protection domain only.  In addition, all arguments to this function can  * reference only that data which is valid in the kernel protection domain. * This restriction does not apply under non-AE versions of VxWorks.  ** RETURNS* The number of bytes sent, or ERROR if the call fails.** SEE ALSO: zbufLength(), zbufSockBufSendto(), sendto()*/int zbufSockSendto    (    int			s,		/* socket to send to */    ZBUF_ID		zbufId,		/* zbuf to transmit */    int			zbufLen,	/* length of entire zbuf */    int			flags,		/* flags to underlying protocols */    struct sockaddr *	to,		/* recipient's address */    int			tolen		/* length of <to> socket addr */    )    {    SOCK_FUNC * pSockFunc = sockFdtosockFunc(s);        if (pSockFunc == NULL) 	{	netErrnoSet (ENOTSUP);	return (ERROR);	}    if ((pSockFunc->zbufRtn == NULL) || ((pSockFunc->zbufRtn)() == FALSE))	{	netErrnoSet (ENOTSUP);	return (ERROR);	}    return ((pZbufSockFunc->sendtoRtn == NULL) ? ERROR :	(pZbufSockFunc->sendtoRtn) (s, zbufId, zbufLen, flags, to, tolen));    }/********************************************************************************* zbufSockBufSend - create a zbuf from user data and send it to a TCP socket** This routine creates a zbuf from the user buffer <buf>, and transmits* it to a previously established connection-based (stream) socket.** The user-provided free routine callback at <freeRtn> is called when <buf>

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
婷婷中文字幕一区三区| 成人av免费在线| 欧美一区欧美二区| 国产美女主播视频一区| 国产精品白丝在线| 欧美日韩黄色影视| 国产尤物一区二区在线| 亚洲日穴在线视频| 日韩欧美二区三区| 在线视频综合导航| 国产一区二区三区| 首页亚洲欧美制服丝腿| 国产精品免费观看视频| 日韩精品一区二区三区老鸭窝| 国产精品性做久久久久久| 日韩影院免费视频| 欧美激情综合五月色丁香小说| 国内精品国产三级国产a久久 | www.在线欧美| av中文字幕一区| 成人h动漫精品| 国产成人亚洲精品青草天美| 日本少妇一区二区| 日本不卡不码高清免费观看| 婷婷夜色潮精品综合在线| 亚洲精品第一国产综合野| ...中文天堂在线一区| 国产精品拍天天在线| 国产精品毛片高清在线完整版| 欧美tickling网站挠脚心| 日韩欧美在线123| 91.com在线观看| 欧美电视剧在线观看完整版| 欧美一二三四区在线| 久久综合五月天婷婷伊人| 日本一区二区三区四区在线视频| 久久久久国产精品厨房| 日韩美女视频一区二区 | 国产人伦精品一区二区| 国产精品成人免费在线| 亚洲综合图片区| 黄色资源网久久资源365| 国产剧情一区二区| 色偷偷成人一区二区三区91 | 成人永久免费视频| 在线观看一区日韩| 中文字幕免费不卡| 午夜av电影一区| 国产成人亚洲综合a∨婷婷| 欧美日韩综合一区| 国产精品女人毛片| 国产在线视频一区二区| 欧美日韩一卡二卡三卡 | 91麻豆精品91久久久久同性| 久久精品夜色噜噜亚洲aⅴ| 亚洲欧美国产高清| 成人午夜电影久久影院| 日韩精品在线看片z| 午夜精品一区二区三区免费视频| 高清在线不卡av| 久久久久成人黄色影片| 美女视频一区二区| 欧美性生活影院| 一区二区三区产品免费精品久久75| 福利一区在线观看| 亚洲国产成人一区二区三区| 美女看a上一区| 欧美成人bangbros| 久久狠狠亚洲综合| 久久综合色8888| 国产在线播放一区| 久久综合九色欧美综合狠狠| 久草精品在线观看| 国产欧美一区二区三区鸳鸯浴 | 免费观看在线综合| 久久色.com| av欧美精品.com| 五月天欧美精品| 国产日韩欧美激情| 91亚洲男人天堂| 日本vs亚洲vs韩国一区三区二区| 日韩一卡二卡三卡国产欧美| 国产精品亚洲а∨天堂免在线| 国产精品福利电影一区二区三区四区| 97国产一区二区| 亚洲欧美欧美一区二区三区| 欧美日韩成人一区| 国产精品一区二区三区乱码| 亚洲精品免费在线播放| 欧美成人一区二区三区片免费| 成年人国产精品| 天堂成人国产精品一区| 亚洲欧洲精品一区二区三区| 欧美一级二级三级乱码| 欧美影院一区二区| 国产精品88av| 精品一区二区在线播放| 亚洲成av人在线观看| 国产精品美女久久久久aⅴ国产馆 国产精品美女久久久久av爽李琼 国产精品美女久久久久高潮 | 亚洲最色的网站| 国产精品卡一卡二| 国产性色一区二区| 精品久久国产字幕高潮| 欧美优质美女网站| 91香蕉国产在线观看软件| 成人福利视频在线看| 国产福利一区二区| 免费观看成人鲁鲁鲁鲁鲁视频| 一区二区三区小说| 亚洲精品国久久99热| 国产精品免费网站在线观看| 日韩一区二区精品| 精品99一区二区三区| 久久奇米777| 国产免费成人在线视频| 国产精品高潮呻吟久久| 亚洲国产色一区| 日本视频免费一区| 国产做a爰片久久毛片| 不卡一区中文字幕| 欧美高清激情brazzers| 久久蜜桃av一区精品变态类天堂| 久久影院视频免费| 亚洲精品综合在线| 麻豆国产欧美一区二区三区| 国产精品一品二品| 欧美日韩国产电影| 国产亚洲一区二区在线观看| 国产人伦精品一区二区| 偷窥国产亚洲免费视频| 成人午夜激情在线| 欧美精品电影在线播放| 亚洲国产电影在线观看| 亚洲成在线观看| 91蜜桃婷婷狠狠久久综合9色| 欧美精三区欧美精三区| 中文字幕在线不卡视频| 美女视频免费一区| 在线播放日韩导航| 一区二区三区 在线观看视频| 成人听书哪个软件好| 日韩精品在线一区| 亚洲第一二三四区| 成人午夜免费电影| 国产女人18水真多18精品一级做| 日韩一区欧美二区| 欧美人与禽zozo性伦| 亚洲1区2区3区4区| 欧美日韩一区三区| 亚洲精品乱码久久久久久| eeuss鲁片一区二区三区在线观看 eeuss鲁片一区二区三区在线看 | 综合婷婷亚洲小说| 91视频免费看| 亚洲一区在线观看免费| 色悠悠亚洲一区二区| 综合激情成人伊人| 91成人在线精品| 亚洲一区在线视频| 91精品久久久久久久久99蜜臂| 免费看日韩a级影片| 久久精品夜色噜噜亚洲aⅴ| 国产一区二区三区四区五区美女| 国产日产亚洲精品系列| www.色综合.com| 亚洲高清视频的网址| 久久精品这里都是精品| av高清不卡在线| 青青草91视频| 欧美激情一区三区| 欧美性猛交xxxx黑人交| 久久精品国产免费| 亚洲欧美日韩综合aⅴ视频| 欧美欧美午夜aⅴ在线观看| 午夜成人免费电影| 26uuu国产一区二区三区| 91久久一区二区| 成人免费视频一区| 日韩极品在线观看| 国产精品麻豆一区二区 | 678五月天丁香亚洲综合网| 国产凹凸在线观看一区二区| 亚洲18色成人| 一片黄亚洲嫩模| 国产欧美精品区一区二区三区 | 日本午夜精品一区二区三区电影| 久久先锋资源网| 精品久久久久香蕉网| 欧美嫩在线观看| 欧美视频第二页| 91免费看视频| 在线一区二区观看| 色又黄又爽网站www久久| 99re视频这里只有精品| 国产成人激情av| 99久久精品情趣| 99久久精品免费看国产免费软件| 国产剧情av麻豆香蕉精品| 久久99蜜桃精品| 精品一区二区免费在线观看| 国产传媒一区在线|