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));
|