diff -r 89d6a7a84779 -r 25a17d01db0c Symbian3/PDK/Source/GUID-1277D793-4A0A-50A7-9414-AEE93E906E80.dita --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Symbian3/PDK/Source/GUID-1277D793-4A0A-50A7-9414-AEE93E906E80.dita Fri Jan 22 18:26:19 2010 +0000 @@ -0,0 +1,15 @@ + + + + + +Sockets Server Architecture

This section describes the architecture of the Sockets Server and the framework that implements sockets in Symbian OS.

The sockets are similar in concept to Berkeley Software Distribution (BSD) sockets from the University of California at Berkeley. The sockets provide a generic interface to network level communications protocols for common operations in network computing. Common operations are:

The Sockets Client API provides access to other network facilities. Examples of network facilities are:

Required Background

A working knowledge of socket based communications is recommended in order to understand how Symbian OS implements sockets.

A knowledge of the selected protocol is also required if the application is going to set or get values specific to the protocol. For example, the knowledge is required to understand the data returned from RSocketServ::GetProtocolInfo(). The knowledge is also required if the application sets Quality of Service (QoS) values.

Key Concepts/Terms

The Sockets Server starts when Symbian OS starts, and receives requests for socket based communications. If a request is received for a particular protocol, the Sockets Server loads the appropriate protocol modules to handle that request.

Architectural relationships

The Sockets Server provides a generic client interface, and a server to which particular protocol modules can be plugged in. A client uses a particular protocol by supplying protocol-specific parameters to Sockets API functions.

+ Figure 1 - The Socket Server's position in the Communications + Framework Architecture. +

The TCP/IP API enables clients to use sockets for TCP/IP, including UDP, TCP, ICMP, IPv4, IPv6, ARP, and DNS.

The IrDA Sockets API enables clients to use sockets for IrDA infra-red.

The Bluetooth Sockets API enables clients to use sockets for Bluetooth.

The SMS PRT API provides the GSM SMS Protocol stack and the WAP protocol stack over SMS.

Historical Note

Prior to Symbian OS 9.5, the Sockets Server would load protocol modules to provide protocol functionality. The protocol modules were known as PRT s. Each protocol module could contain several protocols (e.g. the TCP/IP PRT handled UDP, TCP, ICMP, IP (IPv4 and IPv6), and DNS). In Symbian OS 9.5 a new architecture was added as an alternative to the PRT architecture. This new architecture loads several plug-ins for each protocol.

In Symbian OS 9.5 all existing PRTs are included and used by the Communications Framework. In future, all PRTs may be replaced with plug-ins for the new architecture.

\ No newline at end of file