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.
|
1.3.3