Defines | |
| #define | uip_send(data, len) |
| Send data on the current connection. 데이터를 현재 연결에 송신. | |
| #define | uip_datalen() |
| The length of any incoming data that is currently avaliable (if avaliable) in the uip_appdata buffer. uip_appdata 버퍼에서 현재 유효한 입력데이터의 길이. | |
| #define | uip_urgdatalen() |
| The length of any out-of-band data (urgent data) that has arrived on the connection. 수신된 데이터중 밴드를 벗어난 데이터의 길이. | |
| #define | uip_close() |
| Close the current connection. 현재 연결을 닫음. | |
| #define | uip_abort() |
| Abort the current connection. 현재 연결을 중지. | |
| #define | uip_stop() |
| Tell the sending host to stop sending data. 송신 호스트에게 데이터 송신을 중지함을 알림. | |
| #define | uip_stopped(conn) |
| Find out if the current connection has been previously stopped with uip_stop(). 현재 연결이 uip_stop()으로 전에 정지 되었는지를 검사. | |
| #define | uip_restart() |
| Restart the current connection, if is has previously been stopped with uip_stop(). uip_stop()으로 전에 정지 되었다면 현재 연결을 재 시작. | |
| #define | uip_newdata() |
| Is new incoming data available? 새로 입력된 데이터가 유효한가? | |
| #define | uip_acked() |
| Has previously sent data been acknowledged? ack를 받은 데이터를 이전에 송신 했는가?. | |
| #define | uip_connected() |
| Has the connection just been connected? 접속이 연결 되었는가? | |
| #define | uip_closed() |
| Has the connection been closed by the other end? 연결이 다른 노드에 의해 닫혔는가? | |
| #define | uip_aborted() |
| Has the connection been aborted by the other end? 연결이 다른 노드에 의해 중지 되었는가? | |
| #define | uip_timedout() |
| Has the connection timed out? 연결이 타임 아웃 되었는가? | |
| #define | uip_rexmit() |
| Do we need to retransmit previously data? 전 데이터를 재전송 할 필요가 있는가? | |
| #define | uip_poll() |
| Is the connection being polled by uIP? 연결이 uIP에 의해 폴링되고 있는가? | |
| #define | uip_initialmss() |
| Get the initial maxium segment size (MSS) of the current connection. 현재 연결에서 초기 최대 세그먼트 사이즈(MSS)를 얻음. | |
| #define | uip_mss() |
| Get the current maxium segment size that can be sent on the current connection. 현재 연결에서 송신될 수 있는 최대 세그먼트 사이즈를 얻음. | |
| #define | uip_udp_remove(conn) |
| Removed a UDP connection. UDP 연결을 제거. | |
| #define | uip_udp_send(len) |
| Send a UDP datagram of length len on the current connection. 현재 연결에서 len길이 만큼의 UDP 데이터그램을 송신. | |
Functions | |
| void | uip_listen (u16_t port) |
| Start listening to the specified port. 지정된 포트에서 리슨(listening)을 시작. | |
| void | uip_unlisten (u16_t port) |
| Stop listening to the specified port. 지정된 포트에서 리슨(listening)을 중지. | |
| uip_conn * | uip_connect (u16_t *ripaddr, u16_t port) |
| Connect to a remote host using TCP. TCP를 사용하는 원격지 호스트와 연결. | |
| uip_udp_conn * | uip_udp_new (u16_t *ripaddr, u16_t rport) |
| Set up a new UDP connection. 새로운 UDP 연결을 설정. | |
|
|
Abort the current connection.
|
|
|
Has the connection been aborted by the other end?
|
|
|
Has previously sent data been acknowledged?
|
|
|
Close the current connection.
|
|
|
Has the connection been closed by the other end?
|
|
|
Has the connection just been connected?
|
|
|
The length of any incoming data that is currently avaliable (if avaliable) in the uip_appdata buffer.
|
|
|
Get the current maxium segment size that can be sent on the current connection.
|
|
|
Is new incoming data available?
|
|
|
Is the connection being polled by uIP?
The polling event can be used for sending data without having to wait for the remote host to send data. |
|
|
Restart the current connection, if is has previously been stopped with uip_stop().
|
|
|
Do we need to retransmit previously data?
|
|
|
Send data on the current connection.
|
|
|
Tell the sending host to stop sending data.
|
|
|
Has the connection timed out?
|
|
|
Removed a UDP connection.
|
|
|
Send a UDP datagram of length len on the current connection.
|
|
|
The length of any out-of-band data (urgent data) that has arrived on the connection.
|
|
||||||||||||
|
Connect to a remote host using TCP.
u16_t ipaddr[2]; uip_ipaddr(ipaddr, 192,168,1,2); uip_connect(ipaddr, HTONS(80));
|
|
|
Start listening to the specified port.
uip_listen(HTONS(80));
|
|
||||||||||||
|
Set up a new UDP connection.
|
|
|
Stop listening to the specified port.
uip_unlisten(HTONS(80));
|
1.3.3