Symbian Developer Library

SYMBIAN OS V6.1 EDITION FOR C++

[Index] [Glossary] [Previous] [Next]



Introduction to the Echo example

The example is a client for the simple Echo protocol. A server implementing this protocol, defined in RFC862, simply listens on port 7 for incoming data, and returns it to the client. The protocol is defined for both TCP and UDP. Here, we choose to use TCP.

Note that the Echo example may not be present on all Symbian OS v6.1 SDKs.

The basic operation of the client is therefore:

The simplest option is to connect using an IP address. To illustrate using DNS, these further options are also given:


Echo example structure

The echo example is located in the folder Epoc32ex\Networking\TcpIp\. Following the usual recommendations, the user interface and engine are implemented as separate components.

The two projects are:

echoeng is designed to be independent of any particular user interface. To allow this, it defines a mixin class, MUINotify, through which engine classes can pass up data to be printed and error notifications. The user interface project, eikecho, provides a concrete implementations of this mixin.