Download  Print this page

Network Applications; Ftp Client; Example: Ftpdemo; Mail Client - Siemens TC65 JAVA User Manual

Cellular.
Hide thumbs

Advertisement

TC65 JAVA User's Guide
Strictly confidential / Draft
14

Network Applications

14.1

FTP Client

The package
com.siemens.icm.ftp
transferring files between a module and a server using the File Transfer Protocol (FTP, RFC
959). The client implements a subset of RFC 959, is able to communicate with FTP servers
behind firewalls and supports binary and ASCII mode of transfer.
14.1.1

Example: FtpDemo

The MIDlet
example.ftp.FtpDemo
main functionality of the FTP client. FtpDemo connects to an FTP server, creates a remote
directory, transfers a file to the server and back, compares the copy against the original and
removes the remote file and directory.
Please note that the FTP client can only access files stored in the storage folder dedicated to
Java file I/O. Path names of local files are relative to the storage folder. See
com.siemens.icm.io.File
Before running the MIDlet please configure
properties should be set:
Property Name
example.ftp.remote.dir
example.ftp.remote.file
example.ftp.server
example.ftp.user
example.ftp.pass
example.ftp.gprs.nameserver
example.ftp.gprs.apn
example.ftp.gprs.user
example.ftp.gprs.pass
example.ftp.modem.pin
14.2

Mail Client

The package
de.trantor.de
sending and receiving emails through the Simple Mail Transfer Protocol (SMTP) and the
Post Office Protocol (POP3). The mail client implements a subset of RFC 821, RFC 1939
and supports plain SMTP authentication (RFC 2554), enabling communication with SMTP
servers hardened against spam.
See
mail4me.enhydra.org
14.2.1

Example: MailDemo

The MIDlet
example.mail.MailDemo
creates an email, sends it through SMTP, receives it through POP3, compares the checksum
for sent and received email and displays the received email.
TC65 JAVA User's Guide_V01
provides an FTP client and offers a simple interface for
is an example for using the FTP client and exercises the
for more information.
ftp.jad
Description
Remote directory
Remote file
FTP server
FTP user name
FTP password
Name server
GRPS Access Point
GPRS user name
GPRS password
PIN for SIM card
is part of the Mail4Me package and provides a simple interface for
for more information.
is an example for using the mail client. MailDemo
Page 67 of 69
to reflect your environment. The following
Example
incoming
test123
ftp.siemens.de
ftp
guest
193.254.160.1
unused
unused
unused
0000
s
11.03.2005

Advertisement

   Also See for Siemens TC65 JAVA

   Related Manuals for Siemens TC65 JAVA

Comments to this Manuals

Symbols: 0
Latest comments: