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

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

?? uip.h

?? avr版本的uip(一個超小型的TCPIP棧,支持tcpudparpicmp.
?? H
?? 第 1 頁 / 共 3 頁
字號:
 *
 * \param port A 16-bit port number in network byte order.
 */
void uip_unlisten(u16_t port);

/**
 * Connect to a remote host using TCP.
 *
 * This function is used to start a new connection to the specified
 * port on the specied host. It allocates a new connection identifier,
 * sets the connection to the SYN_SENT state and sets the
 * retransmission timer to 0. This will cause a TCP SYN segment to be
 * sent out the next time this connection is periodically processed,
 * which usually is done within 0.5 seconds after the call to
 * uip_connect().
 *
 * \note This function is avaliable only if support for active open
 * has been configured by defining UIP_ACTIVE_OPEN to 1 in uipopt.h.
 *
 * \note Since this function requires the port number to be in network
 * byte order, a convertion using HTONS() or htons() is necessary.
 *
 \code
 u16_t ipaddr[2];

 uip_ipaddr(ipaddr, 192,168,1,2);
 uip_connect(ipaddr, HTONS(80)); 
 \endcode
 * 
 * \param ripaddr A pointer to a 4-byte array representing the IP
 * address of the remote hot.
 *
 * \param port A 16-bit port number in network byte order.
 *
 * \return A pointer to the uIP connection identifier for the new connection,
 * or NULL if no connection could be allocated.   
 *
 */
struct uip_conn *uip_connect(u16_t *ripaddr, u16_t port);



/**
 * \internal
 *
 * Check if a connection has outstanding (i.e., unacknowledged) data.
 *
 * \param conn A pointer to the uip_conn structure for the connection.
 *
 * \hideinitializer
 */
#define uip_outstanding(conn) ((conn)->len)

/**
 * Send data on the current connection.
 *
 * This function is used to send out a single segment of TCP
 * data. Only applications that have been invoked by uIP for event
 * processing can send data. 
 *
 * The amount of data that actually is sent out after a call to this
 * funcion is determined by the maximum amount of data TCP allows. uIP
 * will automatically crop the data so that only the appropriate
 * amount of data is sent. The function uip_mss() can be used to query
 * uIP for the amount of data that actually will be sent.
 * 
 * \note This function does not guarantee that the sent data will
 * arrive at the destination. If the data is lost in the network, the
 * application will be invoked with the uip_rexmit() event being
 * set. The application will then have to resend the data using this
 * function.
 * 
 * \param data A pointer to the data which is to be sent.
 *
 * \param len The maximum amount of data bytes to be sent.
 *
 * \hideinitializer
 */
#define uip_send(data, len) do { uip_sappdata = (data); uip_slen = (len);} while(0)   

/**
 * The length of any incoming data that is currently avaliable (if avaliable)
 * in the uip_appdata buffer.
 *
 * The test function uip_data() must first be used to check if there
 * is any data available at all.
 *
 * \hideinitializer
 */
#define uip_datalen()       uip_len

/**
 * The length of any out-of-band data (urgent data) that has arrived
 * on the connection.
 *
 * \note The configuration parameter UIP_URGDATA must be set for this
 * function to be enabled.
 *
 * \hideinitializer
 */
#define uip_urgdatalen()    uip_urglen

/**
 * Close the current connection.
 *
 * This function will close the current connection in a nice way.
 *
 * \hideinitializer
 */
#define uip_close()         (uip_flags = UIP_CLOSE)

/**
 * Abort the current connection.
 *
 * This function will abort (reset) the current connection, and is
 * usually used when an error has occured that prevents using the
 * uip_close() function.
 *
 * \hideinitializer
 */
#define uip_abort()         (uip_flags = UIP_ABORT)

/**
 * Tell the sending host to stop sending data.
 *
 * This function will close our receiver's window so that we stop
 * receiving data for the current connection.
 *
 * \hideinitializer
 */
#define uip_stop()          (uip_conn->tcpstateflags |= UIP_STOPPED)

/**
 * Find out if the current connection has been previously stopped with
 * uip_stop().
 *
 * \hideinitializer
 */
#define uip_stopped(conn)   ((conn)->tcpstateflags & UIP_STOPPED)

/**
 * Restart the current connection, if is has previously been stopped
 * with uip_stop().
 *
 * This function will open the receiver's window again so that we
 * start receiving data for the current connection.
 *
 * \hideinitializer
 */
#define uip_restart()         do { uip_flags |= UIP_NEWDATA; \
                                   uip_conn->tcpstateflags &= ~UIP_STOPPED; \
                              } while(0)


/* uIP tests that can be made to determine in what state the current
   connection is, and what the application function should do. */

/**
 * Is new incoming data available?
 *
 * Will reduce to non-zero if there is new data for the application
 * present at the uip_appdata pointer. The size of the data is
 * avaliable through the uip_len variable.
 *
 * \hideinitializer
 */
#define uip_newdata()   (uip_flags & UIP_NEWDATA)

/**
 * Has previously sent data been acknowledged?
 *
 * Will reduce to non-zero if the previously sent data has been
 * acknowledged by the remote host. This means that the application
 * can send new data. 
 *
 * \hideinitializer
 */
#define uip_acked()   (uip_flags & UIP_ACKDATA)

/**
 * Has the connection just been connected?  
 *
 * Reduces to non-zero if the current connection has been connected to
 * a remote host. This will happen both if the connection has been
 * actively opened (with uip_connect()) or passively opened (with
 * uip_listen()).
 *
 * \hideinitializer
 */
#define uip_connected() (uip_flags & UIP_CONNECTED)

/**
 * Has the connection been closed by the other end?
 *
 * Is non-zero if the connection has been closed by the remote
 * host. The application may then do the necessary clean-ups.
 *
 * \hideinitializer
 */
#define uip_closed()    (uip_flags & UIP_CLOSE)

/**
 * Has the connection been aborted by the other end?
 *
 * Non-zero if the current connection has been aborted (reset) by the
 * remote host.
 *
 * \hideinitializer
 */
#define uip_aborted()    (uip_flags & UIP_ABORT)

/**
 * Has the connection timed out?
 *
 * Non-zero if the current connection has been aborted due to too many
 * retransmissions.
 *
 * \hideinitializer
 */
#define uip_timedout()    (uip_flags & UIP_TIMEDOUT)

/**
 * Do we need to retransmit previously data?
 *
 * Reduces to non-zero if the previously sent data has been lost in
 * the network, and the application should retransmit it. The
 * application should send the exact same data as it did the last
 * time, using the uip_send() function.
 *
 * \hideinitializer
 */
#define uip_rexmit()     (uip_flags & UIP_REXMIT)

/**
 * Is the connection being polled by uIP?
 *
 * Is non-zero if the reason the application is invoked is that the
 * current connection has been idle for a while and should be
 * polled.
 *
 * The polling event can be used for sending data without having to
 * wait for the remote host to send data.
 *
 * \hideinitializer
 */ 
#define uip_poll()       (uip_flags & UIP_POLL)

/**
 * Get the initial maxium segment size (MSS) of the current
 * connection.
 *
 * \hideinitializer
 */
#define uip_initialmss()             (uip_conn->initialmss)

/**
 * Get the current maxium segment size that can be sent on the current
 * connection.
 *
 * The current maxiumum segment size that can be sent on the
 * connection is computed from the receiver's window and the MSS of
 * the connection (which also is available by calling
 * uip_initialmss()).
 *
 * \hideinitializer
 */
#define uip_mss()             (uip_conn->mss)

/**
 * Set up a new UDP connection.
 *
 * \param ripaddr A pointer to a 4-byte structure representing the IP
 * address of the remote host.
 *
 * \param rport The remote port number in network byte order.
 *
 * \return The uip_udp_conn structure for the new connection or NULL
 * if no connection could be allocated.
 */
struct uip_udp_conn *uip_udp_new(u16_t *ripaddr, u16_t rport);

/**
 * Removed a UDP connection.
 *
 * \param conn A pointer to the uip_udp_conn structure for the connection.
 *
 * \hideinitializer
 */
#define uip_udp_remove(conn) (conn)->lport = 0

/**
 * Send a UDP datagram of length len on the current connection.
 *
 * This function can only be called in response to a UDP event (poll
 * or newdata). The data must be present in the uip_buf buffer, at the
 * place pointed to by the uip_appdata pointer.
 *
 * \param len The length of the data in the uip_buf buffer.
 *
 * \hideinitializer
 */
#define uip_udp_send(len) uip_slen = (len)

/** @} */

/* uIP convenience and converting functions. */

/**
 * \defgroup uipconvfunc uIP conversion functions
 * @{
 *
 * These functions can be used for converting between different data
 * formats used by uIP.
 */
 
/**
 * Pack an IP address into a 4-byte array which is used by uIP to
 * represent IP addresses.
 *
 * Example:
 \code
 u16_t ipaddr[2];

 uip_ipaddr(&ipaddr, 192,168,1,2); 
 \endcode
 *
 * \param addr A pointer to a 4-byte array that will be filled in with
 * the IP addres.
 * \param addr0 The first octet of the IP address.
 * \param addr1 The second octet of the IP address.
 * \param addr2 The third octet of the IP address.
 * \param addr3 The forth octet of the IP address. 
 *
 * \hideinitializer
 */
#define uip_ipaddr(addr, addr0,addr1,addr2,addr3) do { \
                     (addr)[0] = HTONS(((addr0) << 8) | (addr1)); \
                     (addr)[1] = HTONS(((addr2) << 8) | (addr3)); \
                  } while(0)

/**
 * Convert 16-bit quantity from host byte order to network byte order.
 *
 * This macro is primarily used for converting constants from host
 * byte order to network byte order. For converting variables to
 * network byte order, use the htons() function instead.
 *
 * \hideinitializer
 */
#ifndef HTONS
#   if BYTE_ORDER == BIG_ENDIAN
#      define HTONS(n) (n)
#   else /* BYTE_ORDER == BIG_ENDIAN */
#      define HTONS(n) ((((u16_t)((n) & 0xff)) << 8) | (((n) & 0xff00) >> 8))

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
中文字幕综合网| 精品嫩草影院久久| 成人一级视频在线观看| 国产精品一区二区久激情瑜伽| 日本视频在线一区| 免费观看在线综合| 久久国产麻豆精品| 国内精品国产三级国产a久久| 激情亚洲综合在线| 国产成人a级片| 国产91精品露脸国语对白| 国产suv精品一区二区三区| 国产成人自拍网| 99在线视频精品| 欧美综合亚洲图片综合区| 69成人精品免费视频| 欧美不卡一二三| 欧美国产日韩一二三区| 国产精品久久一卡二卡| 亚洲综合色区另类av| 视频一区二区三区中文字幕| 精油按摩中文字幕久久| 9i在线看片成人免费| 欧美三区免费完整视频在线观看| 日韩视频一区二区三区| 欧美激情综合五月色丁香| 伊人一区二区三区| 天堂蜜桃一区二区三区| 国产精品99久| 色诱视频网站一区| 日韩欧美国产综合| 亚洲欧美日韩国产中文在线| 亚洲mv在线观看| 成人av网在线| 精品少妇一区二区三区日产乱码| 国产精品灌醉下药二区| 麻豆视频观看网址久久| 99精品热视频| 日韩一区二区免费在线电影| 中文字幕不卡一区| 日韩成人一级片| 国产精品18久久久久久久久久久久| 91久久国产最好的精华液| 久久蜜桃av一区精品变态类天堂| 亚洲精品免费一二三区| 成人在线视频一区二区| 日韩一区二区精品| 亚洲一区在线观看网站| 成人福利电影精品一区二区在线观看| 在线不卡的av| 一区二区三区日韩欧美| 丁香六月久久综合狠狠色| 精品国一区二区三区| 午夜激情一区二区| 色综合 综合色| 亚洲人成网站在线| 国产91露脸合集magnet | 国产成人精品亚洲777人妖| 欧美日韩视频在线一区二区| 中文av一区特黄| 久久99国产精品久久99果冻传媒| 欧美四级电影网| 日韩理论片在线| 不卡区在线中文字幕| 日韩一区二区在线看| 亚洲h动漫在线| 欧美亚洲自拍偷拍| 一区二区不卡在线视频 午夜欧美不卡在| 国产成人h网站| 国产偷国产偷精品高清尤物| 久久国产精品99久久久久久老狼| 91麻豆精品久久久久蜜臀| 亚洲福利电影网| 欧美综合天天夜夜久久| 婷婷中文字幕一区三区| 91精品国产综合久久国产大片| 亚洲午夜日本在线观看| 欧美网站大全在线观看| 视频一区在线视频| 日韩一区二区三区电影| 久久99精品国产.久久久久久| 日韩丝袜美女视频| 韩国视频一区二区| 国产女人18毛片水真多成人如厕| 国产精品一区二区三区四区| 中文字幕不卡一区| 91在线一区二区| 亚洲成人动漫av| 欧美一级片在线| 国产精品一二三| 综合久久国产九一剧情麻豆| 欧美日韩一区二区三区四区| 亚洲国产成人精品视频| 91精品婷婷国产综合久久| 日本不卡123| 欧美激情一区二区三区| 欧美在线一区二区三区| 麻豆精品久久精品色综合| 国产女主播一区| 精品婷婷伊人一区三区三| 日本成人在线看| 中文一区二区在线观看| 欧美三级韩国三级日本一级| 六月丁香婷婷色狠狠久久| 中国av一区二区三区| 欧美三级中文字| 懂色av一区二区在线播放| 一区二区三区鲁丝不卡| 精品国产乱码久久久久久久久 | 亚洲国产精品一区二区www在线| 欧美精品一二三| 国产精品一区二区黑丝| 亚洲第一电影网| 日本一区二区在线不卡| 欧美视频一区二| 国产福利91精品一区| 日韩激情中文字幕| 久久久久久久精| 91精品国产一区二区三区香蕉| 成人免费视频caoporn| 亚洲国产精品天堂| 国产精品久久久久久久久果冻传媒| 欧美日韩国产欧美日美国产精品| 国产成人免费视频| 日本va欧美va瓶| 亚洲制服丝袜av| 国产精品久久久久影院| 日韩午夜激情免费电影| 在线免费不卡视频| 成人性生交大片| 久久电影网站中文字幕| 亚洲国产精品精华液网站| 国产精品对白交换视频| 欧美www视频| 欧美日韩一区三区| 91浏览器打开| 不卡视频免费播放| 国v精品久久久网| 国产中文一区二区三区| 日韩综合小视频| 亚洲成a天堂v人片| 亚洲综合激情网| 一区二区视频免费在线观看| 国产精品美女久久久久久2018| 久久精品欧美一区二区三区麻豆| 欧美精品一区二区三区在线| 欧美大片免费久久精品三p | 国内精品久久久久影院一蜜桃| 免费人成在线不卡| 婷婷中文字幕一区三区| 偷偷要91色婷婷| 日韩高清不卡在线| 日本在线播放一区二区三区| 奇米精品一区二区三区四区 | 欧美精品一区二区三区蜜桃| 欧美一区二区三区四区久久| 91精品国产色综合久久不卡电影 | 91小视频在线免费看| 成人深夜在线观看| 成人av网站在线| 91网上在线视频| 欧美手机在线视频| 欧美肥妇bbw| 久久亚洲精华国产精华液| 国产日产欧美一区| 中文字幕不卡在线播放| 亚洲人成人一区二区在线观看| 亚洲免费电影在线| 亚洲1区2区3区视频| 久久国产精品99久久人人澡| 成人激情免费视频| 在线免费不卡电影| 欧美成人激情免费网| 亚洲国产成人私人影院tom| 国产精品国模大尺度视频| 亚洲综合激情另类小说区| 久久精品国产秦先生| 国产成人精品综合在线观看| 日本久久一区二区三区| 欧美一区二区成人6969| 国产午夜精品久久久久久免费视 | 亚洲精品乱码久久久久久久久 | 蜜桃av噜噜一区二区三区小说| 国产一区二区三区在线观看免费 | 成人欧美一区二区三区| 亚洲尤物视频在线| 国内精品国产成人国产三级粉色| heyzo一本久久综合| 91精品欧美综合在线观看最新| 久久久久青草大香线综合精品| 一区二区三区日韩欧美| 国产一区欧美二区| 在线观看亚洲精品| 久久久99精品久久| 日本少妇一区二区| 99久久99久久精品免费观看| 欧美一区二区黄| 亚洲美女精品一区| 国产成人精品免费网站| 欧美一区二区人人喊爽|