Добавил:
Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:
(ARM).Porting TCP-IP programmer's guide.Ver 1.4.pdf
Скачиваний:
31
Добавлен:
23.08.2013
Размер:
2.79 Mб
Скачать

Introduction

1.5Example package directories

The ARM TCP/IP sources are distributed in a file called tcpip.zip. You can unzip this file with pkunzip (or a compatible utility) and you should ensure that the directory structure is preserved. On DOS, the command is:

pkunzip -d tcpsrc.zip

tar and gzip versions are also available on request.

When tcpip.zip is unzipped, the following directories are created:

install_directory\armthumb

Code common to ARM and Thumb architectures.

install_directory\chargen

Demonstration of a simple server.

install_directory\docs

Documentation.

install_directory\inet

IP, UDP, and related sources (excluding TCP and sockets), including startup, interface, and buffer management code.

install_directory\loopback

MAC and PPP loopback benchmark code.

install_directory\maildemo

A simple client that uses SMTP to send an email message.

install_directory\menus

Menuing system, useful for debugging.

install_directory\pid7tdm

Code specific to the PID development card fitted with an

ARM7TDMI processor.

install_directory\tcp

TCP and sockets source files.

1-16

Copyright © 1998 and 1999 ARM Limited. All rights reserved.

ARM DUI 0079B

Introduction

The ARM PPP sources are distributed in a file called ppp.zip. If you have purchased ARM PPP, you also receive the following directories:

install_directory\crypt

Functions used by CHAP authentication.

install_directory\modem

Functions for controlling a Hayes-compatible modem.

install_directory\ppp

PPP implementation.

ARM DUI 0079B

Copyright © 1998 and 1999 ARM Limited. All rights reserved.

1-17

Introduction

1.6Sample programs

All the sample programs provided (see Chapter 12 Example Applications) can use PPP connections on a standard Hayes dial-up modem. For example, you can dial into the Internet with the Menus sample program and issue commands to ping remote hosts. If you configure the IP stack to support both Ethernet and PPP, you can use it as a dial-up router.

The sample code compiles with the ARM Software Development Toolkit 2.50. Unless you are familiar with TCP/IP and PPP and are comfortable working with complex networking code, it is recommended that you compile the sample programs and experiment with them before you port your application. Instructions for this are in Chapter 2 TCP/IP Porting and Chapter 3 PPP Porting.

1-18

Copyright © 1998 and 1999 ARM Limited. All rights reserved.

ARM DUI 0079B