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

Serial Line IP (SLIP) protocol
[The uIP TCP/IP stack]


Detailed Description

The SLIP protocol is a very simple way to transmit IP packets over a serial line. It does not provide any framing or error control, and is therefore not very widely used today.

SLIP 프로토콜은 시리얼 라인을 통해 IP 패킷을 전송하는 가장 간단한 방법이다. 이것은 어떠한 데이터 절단이나 에러제어를 제공하지 않는다. 따라서 오늘날 널리 사용되지는 않는다.


This SLIP implementation requires two functions for accessing the serial device: slipdev_char_poll() and slipdev_char_put(). These must be implemented specifically for the system on which the SLIP protocol is to be run.

이 SLIP 구현은 시리얼 디바이스를 접근하기 위해 두 가지 기능을 요구한다. slipdev_char_poll()과 slipdev_char_put(). 이들 함수는 SLIP 프로토콜이 실행되는 시스템에서 구현되어야 한다.



Files

file  slipdev.c
 SLIP protocol implementation.
SLIP 프로토콜이 구현.

file  slipdev.h
 SLIP header file.
SLIP 헤더 파일.


Functions

void slipdev_char_put (u8_t c)
 Put a character on the serial device.
문자를 시리얼 디바이스에 넣는다.

u8_t slipdev_char_poll (u8_t *c)
 Poll the serial device for a character.
시리얼 디바이스에서 문자를 폴링.

void slipdev_init (void)
 Initialize the SLIP module.
SLIP 모듈 초기화.

void slipdev_send (void)
 Send the packet in the uip_buf and uip_appdata buffers using the SLIP protocol.
SLIP 프로토콜을 이용해서 uip_buf와 uip_appdata 버퍼에 있는 패킷을 송신.

u16_t slipdev_poll (void)
 Poll the SLIP device for an available packet.
SLIP 디바이스에서 유효한 패킷을 폴링.


Function Documentation

u8_t slipdev_char_poll (  u8_t *  c  ) 
 

Poll the serial device for a character.

시리얼 디바이스에서 문자를 폴링.


This function is used by the SLIP implementation to poll the serial device for a character. It must be implemented specifically for the system on which the SLIP implementation is to be run.

이 함수는 시리얼 디바이스에서 문자를 폴링하기 위해 SLIP에 의해 사용된다. 이 함수는 SLIP 프로토콜이 실행되는 시스템에서 구현되어야 한다.


The function should return immediately regardless if a character is available or not. If a character is available it should be placed at the memory location pointed to by the pointer supplied by the arguement c.

이함수는 문자가 유효하든 안하든 즉시 리턴해야 한다. 문자가 유효하면 인자 c에의해 지원되는 포인터가 가리키는 메모리 영역에 저장되어야 한다.


Parameters:
c A pointer to a byte that is filled in by the function with the received character, if available.
유효하다면 수신된 문자를 가진 함수에 의해 채워지는 바이트 포인터.
Return values:
0 If no character is available.
문자가 유효하지 않으면.
Non-zero If a character is available.
문자가 유효하면.

void slipdev_char_put (  u8_t  c  ) 
 

Put a character on the serial device.

문자를 시리얼 디바이스에 넣는다.


This function is used by the SLIP implementation to put a character on the serial device. It must be implemented specifically for the system on which the SLIP implementation is to be run.

이함수는 문자를 시리얼 디바이스에 넣기 위해 SLIP에 의해 사용된다. 이 함수는 SLIP 프로토콜이 실행되는 시스템에서 구현되어야 한다.


Parameters:
c The character to be put on the serial device.
시리얼 디바이스에 넣어질 문자.

void slipdev_init (  void   ) 
 

Initialize the SLIP module.

SLIP 모듈 초기화.


This function does not initialize the underlying RS232 device, but only the SLIP part.

이 함수는 RS232 디바이스가 아닌 SLIP 부분을 초기화한다.


u16_t slipdev_poll (  void   ) 
 

Poll the SLIP device for an available packet.

SLIP 디바이스에서 유효한 패킷을 폴링.


This function will poll the SLIP device to see if a packet is available. It uses a buffer in which all avaliable bytes from the RS232 interface are read into. When a full packet has been read into the buffer, the packet is copied into the uip_buf buffer and the length of the packet is returned.

이 함수는 패킷이 유효한지를 검사하기 위해 SLIP 디바이스를 폴링한다. 이 함수는 RS232 인터페이스로부터 유효한 모든 바이트가 읽혀질 버퍼를 사용한다. 버퍼에서 풀 패킷이 읽혀지면 패킷은 uip_buf 버퍼로 복사되고 패킷 길이가 리턴된다.


Returns:
The length of the packet placed in the uip_buf buffer, or zero if no packet is available.

uip_buf 버퍼에 저장된 패킷 길이, 패킷이 유효하지 않으면 0을 리턴.

Here is the call graph for this function:

다음은 이함수에 대한 콜그래프이다.

void slipdev_send (  void   ) 
 

Send the packet in the uip_buf and uip_appdata buffers using the SLIP protocol.

SLIP 프로토콜을 이용해서 uip_buf와 uip_appdata 버퍼에 있는 패킷을 송신.


The first 40 bytes of the packet (the IP and TCP headers) are read from the uip_buf buffer, and the following bytes (the application data) are read from the uip_appdata buffer.

패킷의 첫 40바이트(IP & TCP 헤더)는 uip_buf 버퍼에서 읽혀지고 다음 바이트(어플리케이션 데이터)는 uip_appdata버퍼에서 읽혀진다.

Here is the call graph for this function:

다음은 이함수에 대한 콜그래프이다.



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