Telnet Server Example Application

This application demonstrates the Telnet Server API.
It does the following:

1.  Initializes the development board, loads the ThreadX kernel,
    the device drivers, and the TCP/IP stack.
2.  Opens the two serial ports and starts the Telnet Server by TSOpenPort().
    The telnet port base is 10000.

Then, under DOS, type "telnet your_board_IP_address 10000" or
"telnet your_board_IP_address 10001" to open a telnet client window.
The login name is "sysadm" and the password is "sysadm" or
the login name is "debug" and the password is "debug".

Then do the following:

1.  Connect the serial port 1 to your PC's COM1, and
    connect the serial port 2 to your PC's COM2.
2.  Using HyperTerminal, open two connections using COM1 and COM2 on
    your PC.
3.  Whatever you typed in the telnet client session port number 10000
    appears in the COM1 HyperTerminal screen, and vice versa.
4.  Whatever you typed in the telnet client session port number 10001
    appears in the COM2 HyperTerminal screen, and vice versa.


The application prints some results in the debugger window by means of
printf().

The following files are provided with this application:

appconf.h         sets application configuration settings
.\32b\debug.bld   used to build the big endian debug version of the
                  application.
debug.lx          linker command file for debug version of application
project.bld       contains application specific build settings
readme            this file
.\32b\rom.bld     used to build the big endian ROM image of application
rom.lx            linker command file for ROM image
.\32b\romzip.bld  used to build compressed application and code expansion,
                  ENABLE_FLASH_COMPRESSION is defined here
romzip.lx         linker command file for image compression/expansion
loader.c          provides application configurations to expansion code, used 
                  in romzip.bld
ramimagezip.bld   used to build compressed application
ramimagezip.lx    linker command file for compressed application image
root.c            contains the applicationStart() function, that creates
                  an application thread
telnet.c          contains telnet API functions, an example of Telnet
                  Server session code
serial.c          contains routines to initialize the serial ports and
                  queues and start the tasks
put.c             contains routines of put task, whose purpose is to
                  check if there is any incoming data from the serial
                  port to be processed (if so, the buffer is sent out
                  to the server and the server then sends it to the
                  telnet client)
get.c             contains routines of get task, whose purpose is to
                  check if there is any incoming data from the client
                  through the server (if so, the server then sends it
                  out on the serial port)
mbox.c            contains routines to queue messages

In addition, the following files in the BSP directory are built
as part of this application:

bsproot.c       contains the code that starts up the TCP/IP stack
reset.s         contains the reset code
dialog.c        contains the configuration dialog code
decompress.c    contains routines to decompress the zipped code in the flash
                into RAM, and restart from RAM


The application build file links in the following libraries:

bsp.a             contains the BSP code
tcpip.a           contains the NET+Works TCP/IP stack
tx.a              contains the ThreadX kernel
na1.lib           contains public NET+Works utilities
na2.lib           contains the NET+Works API libraries

