Defines | |
#define | uip_input() |
Process an incoming packet. ¼ö½ÅµÈ ÆÐŶ ó¸® | |
#define | uip_periodic(conn) |
Periodic processing for a connection identified by its number. ¹øÈ£¸¦ ÅëÇØ È®ÀÎÇÒ ¼ö ÀÖ´Â Á¢¼Ó¿¡ ´ëÇÑ ÁÖ±âÀû ó¸®. | |
#define | uip_periodic_conn(conn) |
Periodic processing for a connection identified by a pointer to its structure. ±¸Á¶Ã¼¿¡ ´ëÇÑ Æ÷ÀÎÅ͸¦ ÅëÇØ È®ÀÎÇÒ ¼ö ÀÖ´Â Á¢¼Ó¿¡ ´ëÇÑ ÁÖ±âÀû ó¸®. | |
#define | uip_udp_periodic(conn) |
Periodic processing for a UDP connection identified by its number. ¹øÈ£¸¦ ÅëÇØ È®ÀÎÇÒ ¼ö ÀÖ´Â UDP Á¢¼Ó¿¡ ´ëÇÑ ÁÖ±âÀû ó¸®. | |
#define | uip_udp_periodic_conn(conn) |
Periodic processing for a UDP connection identified by a pointer to its structure. ±¸Á¶Ã¼¿¡ ´ëÇÑ Æ÷ÀÎÅ͸¦ ÅëÇØ È®ÀÎÇÒ ¼ö ÀÖ´Â UDP Á¢¼Ó¿¡ ´ëÇÑ ÁÖ±âÀû ó¸®. | |
Variables | |
u8_t | uip_buf [UIP_BUFSIZE+2] |
The uIP packet buffer. uIP ÆÐŶ ¹öÆÛ. |
|
Process an incoming packet.
This function should be called when the device driver has received a packet from the network. The packet from the device driver must be present in the uip_buf buffer, and the length of the packet should be placed in the uip_len variable.
uip_len = devicedriver_poll(); if(uip_len > 0) { uip_input(); if(uip_len > 0) { devicedriver_send(); } }
|
|
Periodic processing for a connection identified by its number.
This function does the necessary periodic processing (timers, polling) for a uIP TCP conneciton, and should be called when the periodic uIP timer goes off. It should be called for every connection, regardless of whether they are open of closed.
for(i = 0; i < UIP_CONNS; ++i) { uip_periodic(i); if(uip_len > 0) { devicedriver_send(); } }
|
|
Periodic processing for a connection identified by a pointer to its structure.
uip_periodic() ÇÔ¼ö¿Í °°Áö¸¸ ÀÎÀÚ·Î Á¤¼ö°ª ´ë½Å ½ÇÁ¦ uip_conn ±¸Á¶Ã¼¿¡ ´ëÇÑ Æ÷ÀÎÅ͸¦ ¹Þ´Â´Ù. ÀÌ ÇÔ¼ö´Â ƯÁ¤ Á¢¼Ó¿¡ ´ëÇÑ °Á¦ÀûÀÎ ÁÖ±âÀû 󸮸¦ Çϴµ¥ »ç¿ëÇÒ ¼ö ÀÖ´Ù.
|
|
Periodic processing for a UDP connection identified by its number.
for(i = 0; i < UIP_UDP_CONNS; i++) { uip_udp_periodic(i); if(uip_len > 0) { devicedriver_send(); } }
|
|
Periodic processing for a UDP connection identified by a pointer to its structure.
|
|
The uIP packet buffer.
|