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

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

?? tcp_ip.h

?? 適用于8位小型嵌入式系統的TCP/IP協議棧!!移植非常方便!
?? H
?? 第 1 頁 / 共 2 頁
字號:
/*
 *Copyright (c) 2000-2002 Viola Systems Ltd.
 *All rights reserved.
 *
 *Redistribution and use in source and binary forms, with or without 
 *modification, are permitted provided that the following conditions 
 *are met:
 *
 *1. Redistributions of source code must retain the above copyright 
 *notice, this list of conditions and the following disclaimer.
 *
 *2. Redistributions in binary form must reproduce the above copyright 
 *notice, this list of conditions and the following disclaimer in the 
 *documentation and/or other materials provided with the distribution.
 *
 *3. The end-user documentation included with the redistribution, if 
 *any, must include the following acknowledgment:
 *	"This product includes software developed by Viola 
 *	Systems (http://www.violasystems.com/)."
 *
 *Alternately, this acknowledgment may appear in the software itself, 
 *if and wherever such third-party acknowledgments normally appear.
 *
 *4. The names "OpenTCP" and "Viola Systems" must not be used to 
 *endorse or promote products derived from this software without prior 
 *written permission. For written permission, please contact 
 *opentcp@opentcp.org.
 *
 *5. Products derived from this software may not be called "OpenTCP", 
 *nor may "OpenTCP" appear in their name, without prior written 
 *permission of the Viola Systems Ltd.
 *
 *THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESSED OR IMPLIED 
 *WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF 
 *MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 
 *IN NO EVENT SHALL VIOLA SYSTEMS LTD. OR ITS CONTRIBUTORS BE LIABLE 
 *FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 
 *CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 
 *SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR 
 *BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, 
 *WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE 
 *OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, 
 *EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 *====================================================================
 *
 *OpenTCP is the unified open source TCP/IP stack available on a series 
 *of 8/16-bit microcontrollers, please see <http://www.opentcp.org>.
 *
 *For more information on how to network-enable your devices, or how to 
 *obtain commercial technical support for OpenTCP, please see 
 *<http://www.violasystems.com/>.
 */

/** \file tcp_ip.h
 *	\brief OpenTCP ARP interface file
 *	\author 
 *		\li Jari Lahti (jari.lahti@violasystems.com)
 *	\version 1.0
 *	\date 1.2.2002
 * 	
 *	OpenTCP TCP and UDP protocol function declarations, constants, etc. 
 */

#ifndef INCLUDE_TCP_IP_H
#define INCLUDE_TCP_IP_H

#include <inet/datatypes.h>
#include <inet/ethernet.h>
#include <inet/ip.h>

/* User define			*/

/** \def NO_OF_TCPSOCKETS
 *	\ingroup opentcp_config
 *	\brief Defines number of TCP sockets available
 *
 *	Change this number to change maximum number of TCP sockets available
 *	to the application.
 *
 */
#define NO_OF_TCPSOCKETS	8

/** \def NO_OF_UDPSOCKETS
 *	\ingroup opentcp_config
 *	\brief Defines number of UDP sockets available
 *
 *	Change this number to change maximum number of UDP sockets available
 *	to the application.
 *
 */
#define NO_OF_UDPSOCKETS	4

/** \def TCP_PORTS_END
 *	\ingroup opentcp_config
 *	\brief Define reserved-ports space
 *
 *	TCP socket numbers will only be assigned to be lower than this 
 *	number. 
 */
#define TCP_PORTS_END		1023

/** \def UDP_PORTS_END
 *	\ingroup opentcp_config
 *	\brief Define reserved-ports space
 *
 *	UDP socket numbers will only be assigned to be lower than this 
 *	number. 
 */
#define UDP_PORTS_END			1023					

/* UDP Control optios			*/

/** \def UDP_OPT_NONE
 *	\brief Disable checksum calculation for UDP socket
 *
 *	By choosing only this option for UDP socket, checksum calculation 
 *	will be disabled for both incoming/outgoing UDP packets. This will
 *	make UDP extremely fast, but also more prone to errors. This is usually
 *	not a big limitation considering that checksum is not so good in
 *	error-detection anyway.
 */
#define UDP_OPT_NONE		0

/** \def UDP_OPT_SEND_CS
 *	\brief Enable checksum calculation for outgoing UDP packets
 *
 *	When only this option is chosen, checksum is calculated for outgoing
 *	UDP packets. This is sometimes neccessary since certain applications
 *	can disable reception of UDP packets without a calculated checksum.
 *
 */
#define UDP_OPT_SEND_CS		1

/** \def UDP_OPT_CHECK_CS
 *	\brief Enable checksum checking for received UDP packets
 *
 *	When this option is enabled, checksum is checked for all received
 *	UDP packets to check for transmission errors.
 */
#define UDP_OPT_CHECK_CS	2

#define UDP_SEND_MTU		ETH_MTU - ETH_HEADER_LEN - UDP_HLEN - IP_MAX_HLEN

#define UDP_HLEN			8				/**< UDP Header Length			*/

#define	MIN_TCP_HLEN		20
#define	MAX_TCP_OPTLEN		40				
#define TCP_DEF_MTU			512				/* Default MTU for TCP			*/

/** \def TCP_DEF_RETRIES
 *	\ingroup opentcp_config
 *	\brief Number of attempted TCP retransmissions before giving up
 *
 *	This number defines how many times will TCP module try to retransmit
 *	the data before recognizing that connection was broken. Increase this
 *	value for high-latency, low-throughput networks with substantial packet
 *	loss.
 *
 */
#define	TCP_DEF_RETRIES		7			

/** \def TCP_DEF_KEEPALIVE
 *	\ingroup opentcp_config
 *	\brief Defines a number of  seconds after which an empty ACK packet is sent
 *
 *	If for TCP_DEF_KEEPALIVE seconds nothing is received/sent over the
 *	TCP connection (this includes received empty TCP packets) an empty
 *	(keep-alive) TCP packet will be sent to check if the other side is 
 *	still replying (and able to reply).
 */
#define	TCP_DEF_KEEPALIVE	4			

/** \def TCP_DEF_RETRY_TOUT
 *	\ingroup opentcp_config
 *	\brief Default data-retransmission period (in seconds)
 *
 *	If data was not acknowledged during the time-frame defined by this
 *	value (in seconds) retransmission procedure will occur.
 */
#define TCP_DEF_RETRY_TOUT	2

/** \def TCP_TOS_NORMAL
 *	\brief Defines normal type of service for TCP socket
 *
 *	This defines normal (and for now the only one implemented) type of
 *	service for the TCP socket.
 */
#define TCP_TOS_NORMAL		0

/** \def TCP_DEF_TOUT
 *	\ingroup opentcp_config
 *	\brief Default idle timeout
 *
 *	This period defines idle timeout in seconds - this feature allows
 *	TCP/IP stack to close the TCP connection if no data has been exchanged
 *	over it during this period of time. This relates ONLY to data. Empty
 *	keep-alive TCP packets are not included.
 */
#define TCP_DEF_TOUT		120				

#define TCP_HALF_SEQ_SPACE	0x0000FFFF		/* For detecting sequence space	*/


/* ICMP message types */

#define ICMP_TYPE_DEST_UNREACHABLE	3
#define ICMP_ECHO_REQUEST	8
#define ICMP_ECHO_REPLY		0
#define ICMP_CODE_FRAGMENTATION_NEEDED_DF_SET	4
#define ICMP_MTUMSG_LEN	16
#define ICMP_ECHOREQ_HLEN	8
#define ICMP_TEMPIPSET_DATALEN	102


/* UDP States					*/

/** \def UDP_STATE_FREE
 *	\brief Defines that UDP socket is free and available
 *	
 *	If an entry of ucb type has this as a state value, then it is free
 *	and can be allocated by the udp_getsocket().
 */
#define UDP_STATE_FREE			1

/** \def UDP_STATE_CLOSED
 *	\brief Defines that UDP socket is allocated but closed
 *
 *	Entries of ucb type that have this as their state value were
 *	allocated by udp_getsocket() but they are in the closed state,
 *	so no data can be received/sent through the socket.
 */
#define UDP_STATE_CLOSED		2

/** \def UDP_STATE_OPENED
 *	\brief Defines that UDP socket is allocated and opened
 *
 *	Corresponding UDP socket was allocated and opened so data
 *	can be transmitted/received through it.
 */
#define UDP_STATE_OPENED		3

/* UDP Events					*/

/** \def UDP_EVENT_DATA
 *	\brief Only UDP event notified to UDP socket event listener
 *
 *	For now, this is the only UDP event that is notified to the
 *	UDP sockets' event listener.
 */
#define UDP_EVENT_DATA			64


/* TCP FLAGS					*/

#define	TCP_FLAG_ACK			0x10
#define TCP_FLAG_PUSH			0x08
#define TCP_FLAG_RESET			0x04
#define TCP_FLAG_SYN			0x02
#define TCP_FLAG_FIN			0x01

/* TCP Internal flags			*/

#define TCP_INTFLAGS_CLOSEPENDING	0x01

/* TCP socket types				*/
/** \def TCP_TYPE_NONE
 *	\brief TCP socket is nor a client nor a server
 *
 *	If TCP socket entry is of this type it can not be used for anything. 
 *	This may only be used for testing, debugging, etc. purposes or if 
 *	application is not sure what it wants to be it can reserve a TCP 
 *	socket by getting a socket of type TCP_TYPE_NONE.
 */
#define	TCP_TYPE_NONE			0x00

/** \def TCP_TYPE_SERVER
 *	\brief TCP socket represents a server application
 *
 *	If TCP socket entry is of server type, application using it can only
 *	listen on a given socket for incoming connections. No connections
 *	can be opened towards some outside host unless the outside host
 *	initiates the connection.
 */
#define	TCP_TYPE_SERVER			0x01

/** \def TCP_TYPE_CLIENT
 *	\brief TCP socket represents a client application
 *
 *	If TCP socket entry is of client type, application using it can
 *	establish connection through it towards other Internet hosts but
 *	can not accept any incoming connections on the port (execute
 *	tcp_listen() on it that is).
 */
#define	TCP_TYPE_CLIENT			0x02

/** \def TCP_TYPE_CLIENT_SERVER
 *	\brief	TCP socket can act as client or as server
 *
 *	If TCP socket entry is of this type, application using it can 
 *	both listen on a given socket or establish connection towards an
 *	outside host.
 */
#define	TCP_TYPE_CLIENT_SERVER	0x03

/* TCP States. For more detailed descriptions see RFC793		*/

#define	TCP_STATE_FREE			1	/**< Entry is free and unused 				*/
#define	TCP_STATE_RESERVED		2	/**< Entry is reserved for use				*/
#define	TCP_STATE_CLOSED		3	/**< Entry allocated, socket still closed	*/
#define TCP_STATE_LISTENING		4	/**< Socket in listening state,
									 *	 waiting for incoming connections
									 */
#define TCP_STATE_SYN_RECEIVED	5	/**< SYN packet received (either first
									 *	 SYN packet or response to SYN that
									 *	 we have previously sent)
									 */
#define	TCP_STATE_SYN_SENT		6	/**< SYN packet sent as an attempt
									 *	 to establish a connection
									 */
#define TCP_STATE_FINW1			7	/**< User issued tcp_close request
									 *	 issued so FIN packet was sent
									 */
#define	TCP_STATE_FINW2			8	/**< Received ACK of our FIN, now
									 *	 waiting for other side to send
									 *	 FIN
									 */
#define TCP_STATE_CLOSING		9	/**< Received FIN independently of 
									 *	 our FIN
									 */
#define	TCP_STATE_LAST_ACK		10	/**< Waiting for last ACK packet as a 
									 *	 response to our FIN
									 */

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产三级一区二区三区| 亚洲视频 欧洲视频| 欧美激情在线看| 亚洲一区在线观看免费| 国产精品一色哟哟哟| 欧美日韩小视频| 国产精品久久福利| 经典三级在线一区| 欧美自拍丝袜亚洲| 国产精品毛片无遮挡高清| 蜜臀av一级做a爰片久久| www.久久久久久久久| 成人免费在线播放视频| 国产一区二区毛片| 91精品国产欧美一区二区成人| 最新热久久免费视频| 国产精品亚洲综合一区在线观看| 欧美在线观看18| 亚洲码国产岛国毛片在线| 国产成人a级片| 久久久久久久综合狠狠综合| 日本vs亚洲vs韩国一区三区二区| 欧美丝袜丝交足nylons| 亚洲自拍都市欧美小说| 91麻豆国产自产在线观看| 国产精品国产a级| 成人免费福利片| 国产精品女人毛片| 成人免费看视频| 国产精品日日摸夜夜摸av| 国产激情一区二区三区| 亚洲国产精品精华液2区45| 国产麻豆精品一区二区| 国产区在线观看成人精品| 国产真实乱偷精品视频免| 久久午夜免费电影| 国产成人鲁色资源国产91色综 | 蜜桃视频一区二区| 欧美久久久久久蜜桃| 亚洲二区视频在线| 91精品国产综合久久精品| 美女视频黄免费的久久| 精品国产免费一区二区三区四区| 久久精品理论片| 久久久国产精品麻豆| 成人av一区二区三区| **性色生活片久久毛片| 欧美影视一区二区三区| 日韩高清不卡一区| 欧美精品一区二区在线播放 | 日韩中文字幕麻豆| 日韩美一区二区三区| 国产一区三区三区| 亚洲欧洲日产国产综合网| 欧美在线观看视频在线| 久久不见久久见免费视频7 | 97成人超碰视| 亚洲午夜在线观看视频在线| 欧美一区二区黄| 成人污视频在线观看| 亚洲综合偷拍欧美一区色| 日韩色视频在线观看| 成人午夜免费av| 亚洲国产欧美日韩另类综合| 精品三级在线观看| 99精品视频一区二区三区| 婷婷夜色潮精品综合在线| 2021久久国产精品不只是精品| 不卡一区二区中文字幕| 亚洲成人av中文| 久久女同精品一区二区| 日本精品视频一区二区三区| 韩国成人精品a∨在线观看| 亚洲欧美区自拍先锋| 欧美zozo另类异族| 91传媒视频在线播放| 国产乱码一区二区三区| 亚洲高清视频在线| 欧美韩国日本不卡| 日韩西西人体444www| 一本一道波多野结衣一区二区| 秋霞成人午夜伦在线观看| 亚洲欧洲美洲综合色网| 日韩女优视频免费观看| 91免费观看国产| 国产在线国偷精品产拍免费yy| 一区二区在线免费观看| 欧美精品一区二区三区蜜臀| 欧美午夜精品免费| 99久久国产免费看| 国产河南妇女毛片精品久久久| 五月天激情综合网| 亚洲日本电影在线| 国产三级精品三级| 欧美成人一区二区三区片免费 | 久久久久国产精品人| 欧美日韩精品一区二区天天拍小说| 成人精品电影在线观看| 国产在线一区二区综合免费视频| 香港成人在线视频| 一区二区三区不卡视频| 国产精品国模大尺度视频| 久久综合资源网| 欧美一二三四区在线| 欧美日韩另类国产亚洲欧美一级| 色婷婷综合久久久中文一区二区 | 国产喂奶挤奶一区二区三区| 日韩亚洲欧美在线| 91精品在线麻豆| 欧美日韩mp4| 欧美揉bbbbb揉bbbbb| 色菇凉天天综合网| 在线免费观看日本一区| 91丨国产丨九色丨pron| 成人午夜电影小说| 国产suv精品一区二区6| 成人开心网精品视频| 成人妖精视频yjsp地址| 不卡电影一区二区三区| 成人精品一区二区三区中文字幕| 国产成人精品aa毛片| 国产91对白在线观看九色| 国产.欧美.日韩| 91一区二区三区在线播放| 99精品国产视频| 99久久国产综合精品女不卡| 91麻豆文化传媒在线观看| 欧洲色大大久久| 欧美久久久久久久久中文字幕| 69精品人人人人| 日韩免费观看2025年上映的电影| 5858s免费视频成人| 日韩一区二区免费视频| 久久精品一区八戒影视| 国产精品灌醉下药二区| 亚洲成人7777| 精品无人区卡一卡二卡三乱码免费卡| 国产成人福利片| 欧美图区在线视频| 性做久久久久久| 国内久久精品视频| bt7086福利一区国产| 欧美色图在线观看| 精品伦理精品一区| 中文字幕在线不卡一区| 夜夜亚洲天天久久| 久久99精品久久久久| 9久草视频在线视频精品| 欧美人伦禁忌dvd放荡欲情| 337p粉嫩大胆噜噜噜噜噜91av| 亚洲国产精品二十页| 午夜欧美一区二区三区在线播放| 久久精品国产亚洲一区二区三区| 东方aⅴ免费观看久久av| 欧美曰成人黄网| 久久精品夜色噜噜亚洲a∨| 中文字幕日韩av资源站| 美腿丝袜亚洲一区| av一区二区三区黑人| 欧美一级日韩不卡播放免费| 国产精品成人在线观看| 老司机一区二区| 91福利在线导航| 中文字幕不卡三区| 免费成人美女在线观看| 91免费观看在线| 欧美极品aⅴ影院| 日韩成人午夜精品| 91麻豆精品在线观看| 日本一区二区综合亚洲| 美腿丝袜一区二区三区| 欧美色欧美亚洲另类二区| 中文文精品字幕一区二区| 免费成人美女在线观看.| 欧美视频自拍偷拍| 亚洲三级理论片| 成人av免费在线播放| 久久先锋影音av鲁色资源| 日韩电影一区二区三区四区| 一本久道中文字幕精品亚洲嫩| 久久九九全国免费| 捆绑调教美女网站视频一区| 欧美日韩国产经典色站一区二区三区| 国产精品日产欧美久久久久| 国产一二三精品| 日韩视频在线观看一区二区| 午夜精品一区在线观看| 日本韩国欧美在线| 亚洲欧美日韩在线播放| 成人性视频网站| 国产精品午夜久久| 国产成人免费视频一区| 久久蜜臀中文字幕| 国产一区二区三区久久悠悠色av| 欧美一区二区三区的| 蜜臀a∨国产成人精品| 欧美一区二区成人6969| 奇米色一区二区三区四区| 欧美精品欧美精品系列| 日韩激情av在线|