This app
note will be the simplest possible app note to open a TCP socket and
transmit a "Hello World" string. The client and server are
both written entirely in Java, so both can be run on either TStik, or
the PC.
Instructions on how to use these programs can be found in the javadocs.
All the files needed to run this program are in Ethernet.zip The
following ant target was used to create this file:
<jar destfile="Ethernet.zip">
<fileset dir="classes" /><!-- This needs to be in the root
so the jar can be used in a classpath. -->
<fileset dir="." includes="src/**/*"/><!-- source
files and app note for the SPI app note -->
<fileset dir="." includes="doc/**/*"/><!-- Javadocs
-->
<fileset dir="." includes="build.xml"/><!-- Ant
build file -->
<fileset dir="." includes="note.txt"/><!-- html
app note file. -->
<fileset dir="." includes="RunClient.bat"/><!--
Batch file used to run the client program on a PC. -->
<fileset dir="." includes="RunServer.bat"/><!--
Batch file used to run the server program on a PC. -->
<fileset dir="." includes="tiniload/**/*"/><!--
pre-built tini programs and the required native library are in this directory
-->
</jar> |