Main Page | Modules | Alphabetical List | Data Structures | File List | Data Fields | Globals

The uIP TCP/IP stack


Files

file  uip.c
 The uIP TCP/IP stack code.

file  uip.h
 Header file for the uIP TCP/IP stack.


Modules

uIP configuration functions
uIP initialization functions
uIP device driver functions
uIP application functions
uIP conversion functions
uIP Address Resolution Protocol
Serial Line IP (SLIP) protocol
uIP hostname resolver functions
Architecture specific uIP functions

Data Structures

struct  uip_conn
 Representation of a uIP TCP connection.
TCP 연결을 나타낸다. More...

struct  uip_stats
 The structure holding the TCP/IP statistics that are gathered if UIP_STATISTICS is set to 1.
UIP_STATISTICS이 1로 설정 되어 있다면 TCP/IP의 통계 자료를 담는 구조체를 나타낸다. More...

struct  uip_udp_conn
 Representation of a uIP UDP connection.
UDP 연결을 나타낸다. More...


Functions

void uip_init (void)
 uIP initialization function.
uIP 초기화 함수.

uip_udp_conn * uip_udp_new (u16_t *ripaddr, u16_t rport)
 Set up a new UDP connection.
새로운 UDP 연결을 설정.

void uip_unlisten (u16_t port)
 Stop listening to the specified port.
지정된 포트의 리슨(listening)을 중지.

void uip_listen (u16_t port)
 Start listening to the specified port.
지정된 포트의 리슨(listening)을 시작.

u16_t htons (u16_t val)
 Convert 16-bit quantity from host byte order to network byte order.
16-비트 데이터를 호스트 바이트 순서에서 네트워크 바이트 순서로 전환.


Variables

volatile u8_t * uip_appdata
 Pointer to the application data in the packet buffer.
패킷 버퍼있는 어플리케이션 데이터를 가리키는 포인터.

uip_stats uip_stat
 The uIP TCP/IP statistics.
TCP/IP 통계 자료.

u8_t uip_buf [UIP_BUFSIZE+2]
 The uIP packet buffer.
uIP 패킷 버퍼.

volatile u8_t uip_acc32 [4]
 4-byte array used for the 32-bit sequence number calculations.
32-비트 수를 계산하기 위해 사용되는 4-바이트 어레이


Function Documentation

u16_t htons (  u16_t  val  ) 
 

Convert 16-bit quantity from host byte order to network byte order.

16-비트 데이터를 호스트 바이트 순서에서 네트워크 바이트 순서로 전환한다.


This function is primarily used for converting variables from host byte order to network byte order. For converting constants to network byte order, use the HTONS() macro instead.

이 함수는 변수들을 호스트 바이트 순서에서 네트워크 바이트 순서로 바꾸기 위해 사용된다. 상수를 네트워크 바이트 순서로 변환하기 위해서는 HTONS() 매크로를 사용한다.

void uip_init (  void   ) 
 

uIP initialization function.

uIP 초기화 함수.


This function should be called at boot up to initilize the uIP TCP/IP stack.

이 함수는 uIP TCP/IP 스택을 초기화 하기위해 부팅시 호출 된다.

void uip_listen (  u16_t  port  ) 
 

Start listening to the specified port.

지정된 포트의 리슨(listening)을 시작.


Note:
Since this function expects the port number in network byte order, a conversion using HTONS() or htons() is necessary.

이 함수에서 포트 번호는 네트워크 바이트 순서로 되어 있기 때문에 HTONS()또는 htons()를 이용하여 변환하는 것이 필요하다.

Parameters:
port A 16-bit port number in network byte order.

네트워크 바이트 순서의 16-비트 포트 번호.

struct uip_udp_conn* uip_udp_new (  u16_t *  ripaddr,
u16_t  rport
) 
 

Set up a new UDP connection.

새로운 UDP 연결을 설정.


Parameters:
ripaddr A pointer to a 4-byte structure representing the IP address of the remote host.

원격지 호스트의 IP 주소를 나타내는 4-바이트의 구조체 포인터.

rport The remote port number in network byte order.

네트워크 바이트 순서의 원격지 포트 번호.
Returns:
The uip_udp_conn structure for the new connection or NULL if no connection could be allocated.

새로운 연결을 위한 uip_udp_conn 구조체, 연결이 할당 되지 않으면 NULL

void uip_unlisten (  u16_t  port  ) 
 

Stop listening to the specified port.

지정된 포트의 리슨(listening)을 중지


Note:
Since this function expects the port number in network byte order, a conversion using HTONS() or htons() is necessary.

이 함수에서 포트 번호는 네트워크 바이트 순서로 되어 있기 때문에 HTONS()또는 htons()를 이용하여 변환하는 것이 필요하다.

Parameters:
port A 16-bit port number in network byte order.

네트워크 바이트 순서의 16-비트 포트 번호.


Variable Documentation

volatile u8_t* uip_appdata
 

Pointer to the application data in the packet buffer.

패킷 버퍼에 있는 어플리케이션 데이터를 가리키는 포인터.


This pointer points to the application data when the application is called. If the application wishes to send data, the application may use this space to write the data into before calling uip_send().

이 포인터는 어플리케이션이 호출될 때 어플리케이션 데이터를 가리킨다. 어플리케이션이 데이터를 송신하고자 한다면, 어플리케이션은 uip_send()를 호출하기 전에 데이터를 쓸 이공간을 사용한다.

u8_t uip_buf[UIP_BUFSIZE+2]
 

The uIP packet buffer.
uIP 패킷 버퍼.


The uip_buf array is used to hold incoming and outgoing packets. The device driver should place incoming data into this buffer. When sending data, the device driver should read the link level headers and the TCP/IP headers from this buffer. The size of the link level headers is configured by the UIP_LLH_LEN define.

uip_buf 어레이는 입,출력 패킷을 담기위해 사용된다. 디바이스 드라이버는 입력 데이터를 이 버퍼에 저장한다. 데이터를 송신할 때 디바이스 드라이버는 이 버퍼로부터 링크 레벨의 헤더와 TCP/IP 헤더를 읽는다. 링크레벨의 헤더 사이즈는 UIP_LLH_LEN 정의에 의해 설정된다.

Note:
The application data need not be placed in this buffer, so the device driver must read it from the place pointed to by the uip_appdata pointer as illustrated by the following example:

이 버퍼에 어플리케이션 데이터를 저장할 필요는 없다. 그래서 디바이스 드라이버는 다음 예제에서와 같이 uip_appdata 포인터에 의해 가리켜 지는 곳에서 어플리케이션 데이터를 읽어야 한다.
 void
 devicedriver_send(void)
 {
    hwsend(&uip_buf[0], UIP_LLH_LEN);
    hwsend(&uip_buf[UIP_LLH_LEN], 40);
    hwsend(uip_appdata, uip_len - 40 - UIP_LLH_LEN);
 }

struct uip_stats uip_stat
 

The uIP TCP/IP statistics.

TCP/IP 통계 자료.


This is the variable in which the uIP TCP/IP statistics are gathered.

이것은 TCP/IP 통계자료가 수집되는 변수이다.


Generated on Tue Oct 7 15:51:43 2003 for uIP 0.9 by doxygen 1.3.3