#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