亚洲欧美第一页_禁久久精品乱码_粉嫩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一区二区三区免费野_久草精品视频
天堂蜜桃91精品| 99精品桃花视频在线观看| 欧美电影在哪看比较好| 午夜精品久久久久久久久久 | 国产麻豆成人传媒免费观看| 日韩一区二区三区av| 久久av老司机精品网站导航| 精品国产凹凸成av人网站| 精品一区二区三区免费视频| 国产调教视频一区| proumb性欧美在线观看| 亚洲激情欧美激情| 日韩一区二区精品| 国产夫妻精品视频| 洋洋av久久久久久久一区| 欧美视频精品在线观看| 久久机这里只有精品| 国产精品乱码一区二区三区软件 | 亚洲精品高清在线| 在线播放亚洲一区| 激情都市一区二区| 亚洲人成伊人成综合网小说| 欧美高清精品3d| 国产99久久久国产精品免费看| 亚洲欧美一区二区三区极速播放 | 亚洲一区在线观看免费| 日韩欧美国产一区在线观看| 北条麻妃一区二区三区| 日本欧美一区二区三区乱码| 国产精品免费人成网站| 51精品视频一区二区三区| 国产精品99久久久久久宅男| 尤物在线观看一区| 亚洲精品一区二区三区四区高清 | 欧美四级电影在线观看| 国产综合一区二区| 亚洲成va人在线观看| 日本一区二区免费在线观看视频| 色婷婷激情久久| 极品少妇一区二区| 亚洲第一狼人社区| 日本一区二区不卡视频| 欧美一区二区免费观在线| a亚洲天堂av| 国内精品视频666| 五月婷婷激情综合| 亚洲欧洲三级电影| 国产亚洲欧美激情| 欧美一区二区三区四区久久 | 精品1区2区3区| 播五月开心婷婷综合| 久久99精品久久久久久国产越南| 亚洲最新在线观看| 日本一二三不卡| 久久久久久久综合狠狠综合| 制服视频三区第一页精品| 91蜜桃传媒精品久久久一区二区| 国产一区 二区| 麻豆精品视频在线| 日韩高清一级片| 亚洲国产另类av| 亚洲黄色录像片| 日韩一区有码在线| 国产精品毛片高清在线完整版| 精品99久久久久久| 日韩欧美国产午夜精品| 欧美午夜宅男影院| 在线观看av一区二区| 99久久精品国产导航| 国产suv精品一区二区883| 国产美女精品在线| 国产精品一区不卡| 国产美女精品人人做人人爽| 精品一区二区av| 国内精品自线一区二区三区视频| 免费三级欧美电影| 美女脱光内衣内裤视频久久网站 | eeuss鲁一区二区三区| 国产成人午夜99999| 国产成人亚洲精品青草天美| 国产精品香蕉一区二区三区| 日本成人超碰在线观看| 日韩电影一区二区三区四区| 视频一区视频二区中文字幕| 亚洲第一在线综合网站| 天天色综合天天| 久久er99精品| 高清国产一区二区三区| 99久久777色| 在线观看日韩av先锋影音电影院| 91久久精品一区二区二区| 在线观看av一区二区| 欧美日本韩国一区| 日韩精品中文字幕一区二区三区| 欧美变态凌虐bdsm| 国产视频一区二区在线| 国产精品欧美久久久久无广告| 成人免费在线视频| 亚洲一区二区三区四区在线| 亚洲.国产.中文慕字在线| 日本不卡123| 国产精品一二三在| 日本高清视频一区二区| 91精品欧美福利在线观看| 2022国产精品视频| 亚洲免费观看视频| 热久久国产精品| 粉嫩在线一区二区三区视频| 日本韩国欧美国产| 欧美本精品男人aⅴ天堂| 国产精品理论片在线观看| 亚洲午夜精品网| 国产高清一区日本| 欧美亚洲一区二区三区四区| 精品欧美一区二区在线观看| 国产精品福利一区| 免费欧美日韩国产三级电影| 国产不卡免费视频| 欧洲在线/亚洲| 精品第一国产综合精品aⅴ| 在线成人高清不卡| 国产精品女主播在线观看| 亚洲精品成人在线| 免费看黄色91| 91久久免费观看| 精品国产一区二区三区忘忧草| 久久久噜噜噜久久人人看 | 99久久久无码国产精品| 欧美日韩在线播放一区| 国产日韩欧美精品一区| 日韩伦理免费电影| 奇米影视7777精品一区二区| 丁香亚洲综合激情啪啪综合| 亚洲国产精品黑人久久久| 蜜臀91精品一区二区三区| 成人国产电影网| 精品久久一区二区| 中文字幕在线观看一区二区| 美女脱光内衣内裤视频久久网站| 美腿丝袜亚洲色图| 欧美亚洲高清一区二区三区不卡| 久久精品一级爱片| 亚洲动漫第一页| 99久久婷婷国产| 2欧美一区二区三区在线观看视频 337p粉嫩大胆噜噜噜噜噜91av | 天天操天天综合网| 成人app下载| 久久综合给合久久狠狠狠97色69| 亚洲无线码一区二区三区| 丁香婷婷综合色啪| 欧美r级电影在线观看| 亚洲成人午夜影院| 不卡一二三区首页| 国产精品毛片久久久久久久| 蜜臀av亚洲一区中文字幕| 国产精品白丝av| 欧美日韩在线播放三区| 国产精品毛片久久久久久久| 精品无人区卡一卡二卡三乱码免费卡| 在线观看网站黄不卡| 在线不卡的av| 亚洲成a天堂v人片| 一本大道综合伊人精品热热| 久久精品视频一区二区三区| 婷婷开心激情综合| 欧美日韩免费观看一区三区| 亚洲人成网站在线| 本田岬高潮一区二区三区| 久久久久久免费| 成人高清伦理免费影院在线观看| 精品日韩在线观看| 男男成人高潮片免费网站| 波多野结衣一区二区三区| 亚洲国产精品二十页| 国产精品一区二区x88av| 精品国产乱码久久久久久久| 日韩av中文在线观看| 日韩一区二区三| 免费xxxx性欧美18vr| 欧美日韩电影一区| 午夜精品福利在线| 精品久久久网站| 久久成人综合网| 亚洲精品在线观看网站| 国产激情一区二区三区四区| 国产精品女人毛片| 91麻豆国产精品久久| 亚洲特黄一级片| 在线观看一区不卡| 免费看精品久久片| 欧美精品一区二区三区蜜桃视频| 理论片日本一区| 精品伦理精品一区| 成人三级伦理片| 欧美激情资源网| 91玉足脚交白嫩脚丫在线播放| 1000精品久久久久久久久| 欧美亚洲高清一区| 捆绑紧缚一区二区三区视频| 精品处破学生在线二十三|