#include <uip.h>
The uip_conn structure is used for identifying a connection. All but one field in the structure are to be considered read-only by an application. The only exception is the appstate field whos purpose is to let the application store application-specific state (e.g., file pointers) for the connection. The size of this field is configured in the "uipopt.h" header file.
uip_conn ±¸Á¶Ã¼´Â ¿¬°áÀ» È®ÀÎÇϱâ À§ÇØ »ç¿ëµÈ´Ù. ±¸Á¶Ã¼ Áß¿¡ Çϳª¸¦ Á¦¿ÜÇÏ°í ¸ðµÎ´Â ÀÀ¿ëÇÁ·Î±×·¥¿¡ ÀÇÇØ ÀбâÀü¿ëÀÌ µÈ´Ù. À¯ÀÏÇÑ ¿¹¿Ü´Â ÀÀ¿ëÇÁ·Î±×·¥ÀÌ ¸ñÀûÇÏ´Â ¿¬°áÀ» ÇÑ »óÅÂÀÌ´Ù. ÀÌ ÇʵåÀÇ Å©±â´Â "uipopt.h" Çì´õ ÆÄÀÏ¿¡ ¼³Á¤µÇ¾î ÀÖ´Ù.
Data Fields | |
| u16_t | ripaddr [2] |
| The IP address of the remote host. ¿ø°Ý È£½ºÆ®ÀÇ IPÁÖ¼Ò. | |
| u16_t | lport |
| The local TCP port, in network byte order. ³×Æ®¿öÅ© ¹ÙÀÌÆ® ¼ø¼ÀÇ ·ÎÄà TCP Æ÷Æ®. | |
| u16_t | rport |
| The local remote TCP port, in network byte order. ³×Æ®¿öÅ© ¹ÙÀÌÆ® ¼ø¼ÀÇ ¿ø°Ý È£½ºÆ® TCP Æ÷Æ®. | |
| u8_t | rcv_nxt [4] |
| The sequence number that we expect to receive next. ´ÙÀ½¿¡ ¹ÞÀ» °ÍÀ» À§ÇÑ ¼øÂ÷ ¹øÈ£. | |
| u8_t | snd_nxt [4] |
| The sequence number that was last sent by us. ¸¶Áö¸·¿¡ º¸³½ °ÍÀÇ ¼øÂ÷ ¹øÈ£. | |
| u16_t | len |
| Length of the data that was previously sent. ÀÌÀü¿¡ º¸³½ ÀÚ·áÀÇ ±æÀÌ. | |
| u16_t | mss |
| Current maximum segment size for the connection. ¿¬°áÀ» À§ÇÑ ÇöÀç ÃÖ´ë ¼¼±×¸ÕÆ® Å©±â. | |
| u16_t | initialmss |
| Initial maximum segment size for the connection. ¿¬°áÀ» À§ÇÑ ÃʱâÀÇ ÃÖ´ë ¼¼±×¸ÕÆ® Å©±â. | |
| u8_t | sa |
| Retransmission time-out calculation state variable. ÀçÀü¼Û ŸÀӾƿô °è»ê »óÅ º¯¼ö. | |
| u8_t | sv |
| Retransmission time-out calculation state variable. ÀçÀü¼Û ŸÀӾƿô °è»ê »óÅ º¯¼ö. | |
| u8_t | rto |
| Retransmission time-out. ÀçÀü¼Û ŸÀӾƿô. | |
| u8_t | tcpstateflags |
| TCP state and flags. TCP »óÅ Ç÷¡±× | |
| u8_t | timer |
| The retransmission timer. ÀçÀü¼Û ŸÀ̸Ó. | |
| u8_t | nrtx |
| The number of retransmissions for the last segment sent. ¸¶Áö¸·¿¡ º¸³»´Â ¼¼±×¸ÕÆ®¸¦ À§ÇÑ ÀçÀü¼Û ¼ö. | |
| u8_t | appstate [UIP_APPSTATE_SIZE] |
| The application state. ÀÀ¿ëÇÁ·Î±×·¥ »óÅÂ. | |
1.3.3