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

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? net_bsd.c

?? ucos的tcpip協議占
?? C
?? 第 1 頁 / 共 4 頁
字號:
*
*                0,                                  if socket connection closed (see Note #3b).
*
*               -1,                                  otherwise                   (see Note #3a2A).
*
* Caller(s)   : Application.
*
*               This function is a network protocol suite application interface (API) function & MAY be 
*               called by application function(s).
*
* Note(s)     : (1) (a) (1) (A) Datagram-type sockets send & receive all data atomically -- i.e. every single, 
*                               complete datagram  sent      MUST be received    as a single, complete datagram.
*                               Thus, each call to send data MUST be transmitted in a single, complete datagram.
*
*                           (B) (1) IEEE Std 1003.1, 2004 Edition, Section 'send() : DESCRIPTION' states that
*                                   "if the message is too long to pass through the underlying protocol, send() 
*                                   shall fail and no data shall be transmitted".
*
*                               (2) Since IP transmit fragmentation is NOT currently supported (see 'net_ip.h 
*                                   Note #1e'), if the socket's type is datagram & the requested send data
*                                   length is greater than the socket/transport layer MTU, then NO data is 
*                                   sent & NET_SOCK_ERR_INVALID_DATA_SIZE error is returned.
*
*                       (2) (A) (1) Stream-type sockets send & receive all data octets in one or more non-
*                                   distinct packets.  In other words, the application data is NOT bounded 
*                                   by any specific packet(s); rather, it is contiguous & sequenced from 
*                                   one packet to the next.
*
*                               (2) Thus, if the socket's type is stream & the socket's send data queue(s) are
*                                   NOT large enough for the send data, the send data queue(s) are maximally
*                                   filled with send data & the remaining data octets are discarded but may be
*                                   re-sent by later application-socket sends.
*
*                               (3) Therefore, NO stream-type socket send data length should be "too long to
*                                   pass through the underlying protocol" & cause the socket send to "fail ... 
*                                   [with] no data ... transmitted" (see Note #1a1B1).
*
*                           (B) Thus, it is typical -- but NOT absolutely required -- that a single application
*                               task ONLY send or request to send data to a stream-type socket.
*
*                   (b) 'data_len' of 0 octets NOT allowed.
*
*                   See also 'net_sock.c  NetSock_TxDataHandler()  Note #3'.
*$PAGE*
*               (2) Only some socket send flag options are implemented.  If other flag options are requested,
*                   socket send handler function(s) abort & return appropriate error codes so that requested
*                   flag options are NOT silently ignored.
*
*               (3) (a) IEEE Std 1003.1, 2004 Edition, Section 'send() : RETURN VALUE' states that :
*
*                       (1) "Upon successful completion, send() shall return the number of bytes sent."
*
*                           (A) Section 'send() : DESCRIPTION' elaborates that "successful completion 
*                               of a call to sendto() does not guarantee delivery of the message".
*
*                           (B) Thus, applications SHOULD verify the actual returned number of data 
*                               octets transmitted &/or prepared for transmission.
*
*                       (2) (A) "Otherwise, -1 shall be returned" ...
*                               (1) Section 'send() : DESCRIPTION' elaborates that "a return value of 
*                                   -1 indicates only locally-detected errors".
*
*                           (B) "and 'errno' set to indicate the error."
*
*                   (b) ???? Although NO socket send() specification states to return '0' when the socket's
*                       connection is closed, it seems reasonable to return '0' since it is possible for the
*                       socket connection to be close()'d or shutdown() by the remote host.
*
*                   See also 'net_sock.c  NetSock_TxDataHandler()  Note #6'.
*********************************************************************************************************
*/

#ifdef  NET_SOCK_MODULE_PRESENT
int  send (int    sock_id,
           void  *p_data,
           int    data_len,
           int    flags)
{
    int      rtn_code;
    NET_ERR  err;


    rtn_code = (int)NetSock_TxData((NET_SOCK_ID  ) sock_id,
                                   (void        *) p_data,
                                   (CPU_INT16S   ) data_len,
                                   (CPU_INT16S   ) flags,
                                   (NET_ERR     *)&err);

    return (rtn_code);
}
#endif


/*$PAGE*/
/*
*********************************************************************************************************
*                                             inet_addr()
*
* Description : Convert an IPv4 address in ASCII dotted-decimal notation to a network protocol IPv4 address
*                   in network-order.
*
* Argument(s) : paddr       Pointer to an ASCII string that contains a dotted-decimal IPv4 address (see Note #2).
*
* Return(s)   : Network-order IPv4 address represented by ASCII string, if NO errors.
*
*               -1,                                                     otherwise.
*
* Caller(s)   : Application.
*
*               This function is a network protocol suite application interface (API) function & MAY be 
*               called by application function(s).
*
* Note(s)     : (1) RFC #1983 states that "dotted decimal notation ... refers [to] IP addresses of the
*                   form A.B.C.D; where each letter represents, in decimal, one byte of a four byte IP
*                   address".
*
*                   In other words, the dotted-decimal notation separates four decimal octet values by
*                   the dot, or period, character ('.').  Each decimal value represents one octet of 
*                   the IP address starting with the most significant octet in network order.
*
*                       IP Address Examples :
*
*                              DOTTED DECIMAL NOTATION     HEXADECIMAL EQUIVALENT
*
*                                   127.0.0.1           =       0x7F000001
*                                   192.168.1.64        =       0xC0A80140
*                                   255.255.255.0       =       0xFFFFFF00
*                                   ---         -                 --    --
*                                    ^          ^                 ^      ^
*                                    |          |                 |      |
*                                   MSO        LSO               MSO    LSO
*
*                           where
*
*                               MSO             Most  Significant Octet in Dotted Decimal IP Address
*                               LSO             Least Significant Octet in Dotted Decimal IP Address
*
*               (2) The dotted-decimal ASCII string MUST :
*
*                   (a) Include ONLY decimal values & the dot, or period, character ('.') ; ALL other
*                       characters trapped as invalid, including any leading or trailing characters.
*
*                   (b) (1) Include EXACTLY four decimal values ...
*                       (2) ... separated ...
*                       (3) ... by EXACTLY three dot characters.
*
*                   (c) Ensure that each decimal value does NOT exceed the maximum octet value (i.e. 255).
*
*                   (d) Ensure that each decimal value does NOT include leading zeros.
*********************************************************************************************************
*/

#ifdef  NET_SOCK_MODULE_PRESENT
#if    (NET_SOCK_CFG_FAMILY == NET_SOCK_FAMILY_IP_V4)
in_addr_t  inet_addr (char  *paddr)
{
    in_addr_t  addr;
    NET_ERR    err;


    addr = (in_addr_t)NetASCII_Str_to_IP((CPU_CHAR *) paddr,
                                         (NET_ERR  *)&err);
    if (err !=  NET_ASCII_ERR_NONE) {
        addr = (in_addr_t)NET_BSD_ERR_DFLT;
    }
    addr =  NET_UTIL_HOST_TO_NET_32(addr);

    return (addr);
}
#endif
#endif


/*$PAGE*/
/*
*********************************************************************************************************
*                                             inet_ntoa()
*
* Description : Convert a network protocol IPv4 address into a dotted-decimal notation ASCII string.
*
* Argument(s) : addr        IPv4 address.
*
* Return(s)   : Pointer to ASCII string of converted IPv4 address (see Note #2), if NO errors.
*
*               Pointer to NULL,                                                 otherwise.
*
* Caller(s)   : Application.
*
*               This function is a network protocol suite application interface (API) function & MAY be 
*               called by application function(s).
*
* Note(s)     : (1) RFC #1983 states that "dotted decimal notation ... refers [to] IP addresses of the
*                   form A.B.C.D; where each letter represents, in decimal, one byte of a four byte IP
*                   address".
*
*                   In other words, the dotted-decimal notation separates four decimal octet values by
*                   the dot, or period, character ('.').  Each decimal value represents one octet of 
*                   the IP address starting with the most significant octet in network order.
*
*                       IP Address Examples :
*
*                              DOTTED DECIMAL NOTATION     HEXADECIMAL EQUIVALENT
*
*                                   127.0.0.1           =       0x7F000001
*                                   192.168.1.64        =       0xC0A80140
*                                   255.255.255.0       =       0xFFFFFF00
*                                   ---         -                 --    --
*                                    ^          ^                 ^      ^
*                                    |          |                 |      |
*                                   MSO        LSO               MSO    LSO
*
*                           where
*
*                               MSO             Most  Significant Octet in Dotted Decimal IP Address
*                               LSO             Least Significant Octet in Dotted Decimal IP Address
*
*               (2) IEEE Std 1003.1, 2004 Edition, Section 'inet_ntoa() : DESCRIPTION' states that
*                   "inet_ntoa() ... need not be reentrant ... [and] is not required to be thread-safe".
*
*                   Since the character string is returned in a single, global character string array,
*                   this conversion function is NOT re-entrant.
*********************************************************************************************************
*/

#ifdef  NET_SOCK_MODULE_PRESENT
#if    (NET_SOCK_CFG_FAMILY == NET_SOCK_FAMILY_IP_V4)
char  *inet_ntoa (struct  in_addr  addr)
{
    in_addr_t  addr_ip;
    NET_ERR    err;


    addr_ip = addr.s_addr;
    addr_ip = NET_UTIL_NET_TO_HOST_32(addr_ip);

    NetASCII_IP_to_Str((NET_IP_ADDR) addr_ip,
                       (CPU_CHAR  *)&NetBSD_IP_to_Str_Array[0],
                       (CPU_BOOLEAN) DEF_NO,
                       (NET_ERR   *)&err);
    if (err != NET_ASCII_ERR_NONE) {
        return ((char *)0);
    }

    return ((char *)&NetBSD_IP_to_Str_Array[0]);
}
#endif
#endif


/*$PAGE*/
/*
*********************************************************************************************************
*                                    STANDARD BSD 4.x FUNCTIONS END
*
* Note(s) : (1) See 'STANDARD BSD 4.x FUNCTIONS  Note #1'.
*********************************************************************************************************
*/

#endif                                                          /* End of BSD fncts (see Note #1).                      */


/*
*********************************************************************************************************
*                                             MODULE END
*
* Note(s) : (1) See 'MODULE  Note #1' & 'net_bsd.h  MODULE  Note #1'.
*********************************************************************************************************
*/

#endif                                                          /* End of BSD module include (see Note #1).             */
	 	 			 		    	 				 	    	 	 	 		    	     	 	 	 		 	  	  	  	     	 	      	   		 	 	 	   		   			 	     			  			 		   	 			       	  	 		  	 	  	 		 		   		  	  			 	  	 		 	 	 			 	 		 		 	 		 	   		 	 	 	   		     			  			 		  	 		 	  			 	 	 	 	  		  	   		   	   	 				 		 			 			  			 		   		 		 				 		 	    		   	  		 

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产精品18久久久久久久网站| 夜夜亚洲天天久久| 中文字幕一区二区三区四区不卡| 欧美精品乱码久久久久久按摩| 精品少妇一区二区三区在线视频| 久久久久国产精品麻豆ai换脸| 亚洲四区在线观看| 天涯成人国产亚洲精品一区av| 久久精品国产久精国产| 懂色av一区二区在线播放| 一本色道a无线码一区v| 91麻豆精品国产| 国产精品网站在线| 婷婷综合另类小说色区| 国产高清精品网站| 欧美亚洲综合一区| 国产色产综合产在线视频| 亚洲国产视频一区二区| 国产传媒一区在线| 欧美嫩在线观看| 国产精品女主播在线观看| 亚洲成在线观看| 国产91精品一区二区麻豆网站| 色欧美片视频在线观看在线视频| 欧美mv日韩mv国产| 亚洲夂夂婷婷色拍ww47| 高清在线不卡av| 777色狠狠一区二区三区| 国产精品色婷婷久久58| 日本不卡在线视频| 91极品视觉盛宴| 久久久五月婷婷| 五月婷婷综合网| 成人免费观看视频| 日韩欧美亚洲另类制服综合在线| 亚洲特黄一级片| 国产精品资源在线看| 欧美日本一区二区在线观看| 国产精品福利影院| 久久爱另类一区二区小说| 色香蕉成人二区免费| 欧美国产日产图区| 老色鬼精品视频在线观看播放| 色婷婷激情一区二区三区| 中文av一区特黄| 精品亚洲国产成人av制服丝袜| 欧洲一区二区av| 亚洲欧美在线另类| 国模一区二区三区白浆| 欧美精选一区二区| 亚洲综合视频网| 91首页免费视频| 日本一区二区不卡视频| 久久精品久久99精品久久| 欧美日韩一区 二区 三区 久久精品| 日本一区二区在线不卡| 激情综合色综合久久| 日韩欧美一区在线观看| 亚洲超碰精品一区二区| 欧美无砖专区一中文字| 亚洲欧洲综合另类在线| 丁香桃色午夜亚洲一区二区三区| 精品欧美一区二区在线观看| 午夜久久久影院| 欧美午夜影院一区| 亚洲一区免费观看| 欧美视频一区在线观看| 一区二区三区日韩| 欧美在线高清视频| 亚洲精品国产视频| 91看片淫黄大片一级在线观看| 国产日产欧美精品一区二区三区| 国内精品伊人久久久久影院对白| 欧美成人vps| 国精产品一区一区三区mba桃花| 日韩精品一区二区三区视频播放| 奇米色777欧美一区二区| 欧美二区在线观看| 日本不卡123| ww亚洲ww在线观看国产| 国内久久婷婷综合| 国产欧美一区二区三区鸳鸯浴| 国产麻豆91精品| 国产精品伦理一区二区| caoporm超碰国产精品| 亚洲色图都市小说| 色婷婷久久久久swag精品| 亚洲国产日韩a在线播放性色| 欧美三级电影网| 日产国产高清一区二区三区| 欧美一卡二卡在线观看| 久久99久国产精品黄毛片色诱| 精品欧美一区二区三区精品久久| 国产麻豆午夜三级精品| 国产清纯白嫩初高生在线观看91| 成人高清免费观看| 一区二区免费在线| 欧美精品乱人伦久久久久久| 久久er99精品| 国产日产欧美精品一区二区三区| 99久久99久久精品免费看蜜桃| 亚洲麻豆国产自偷在线| 欧美高清一级片在线| 久久精品国产免费| 中文字幕一区二区三中文字幕| 欧美综合天天夜夜久久| 免费人成在线不卡| 久久久www成人免费无遮挡大片| zzijzzij亚洲日本少妇熟睡| 一区二区三区四区在线| 日韩欧美在线影院| 99在线热播精品免费| 亚洲午夜免费视频| 亚洲精品在线三区| 99免费精品在线观看| 日韩中文字幕一区二区三区| 国产亚洲精品aa午夜观看| 日本精品视频一区二区三区| 青青草精品视频| 国产精品成人一区二区三区夜夜夜 | 久久国产精品99久久人人澡| 国产网红主播福利一区二区| 欧美综合天天夜夜久久| 狠狠狠色丁香婷婷综合久久五月| 成人欧美一区二区三区1314 | 免费日韩伦理电影| 国产精品午夜在线观看| 欧美日韩午夜在线| 国产成人午夜电影网| 亚洲国产精品影院| 国产女主播在线一区二区| 欧美高清精品3d| 97久久超碰国产精品| 美国毛片一区二区| 亚洲欧美激情在线| 久久免费视频一区| 欧美日韩国产高清一区| www.亚洲国产| 看片的网站亚洲| 亚洲综合在线电影| 国产亚洲精久久久久久| 欧美日韩国产美女| 波多野结衣在线一区| 激情深爱一区二区| 亚洲国产精品影院| 亚洲同性gay激情无套| 日韩欧美二区三区| 欧美性大战xxxxx久久久| 成人精品国产免费网站| 激情伊人五月天久久综合| 亚洲高清免费观看高清完整版在线观看| 久久毛片高清国产| 日韩一区二区三区四区| 在线一区二区三区四区| 成人午夜在线免费| 精品亚洲成a人| 日韩福利视频网| 亚洲一区免费视频| 亚洲欧洲无码一区二区三区| 久久青草欧美一区二区三区| 91精品一区二区三区久久久久久 | 亚洲午夜免费福利视频| 自拍偷拍亚洲激情| 日本一二三不卡| 久久久不卡网国产精品二区| 欧美xxxxx裸体时装秀| 欧美久久免费观看| 欧美日韩国产高清一区二区三区 | 亚洲永久精品大片| 亚洲男同性恋视频| 中文字幕一区二区日韩精品绯色| 国产日韩欧美a| 久久久综合网站| 久久久久久久精| www激情久久| www国产成人| 欧美精品一区二区三区一线天视频| 制服丝袜一区二区三区| 欧美日韩精品专区| 欧美日本一道本在线视频| 欧美日韩你懂得| 在线不卡a资源高清| 91精品国产高清一区二区三区蜜臀| 欧美日韩一区久久| 欧美丰满一区二区免费视频| 欧美日韩精品一区二区在线播放| 在线免费观看日韩欧美| 在线精品观看国产| 欧美三级视频在线观看| 欧美日韩免费视频| 777奇米四色成人影色区| 91精品国产综合久久久久久久| 欧美喷水一区二区| 日韩亚洲国产中文字幕欧美| 日韩视频免费直播| 精品国产亚洲在线| 久久精品男人的天堂| 国产精品免费av| 综合久久久久久| 亚洲成人动漫在线观看|