JBoss.orgCommunity Documentation

Chapter 3. Design Overview

3.1. Stream protocol - Datalink

Important

Mobicents Stream Library is subject to changes as it is under active development.

Mobicents Stream Library builds layers of abstraction with API, similar to NIO. Abstraction is built with three main components:

Selector

Performs stream queries and presents the user with streams ready for I/O operations.

SelectorKey

Represents stream in selectors space.

Stream

A stream of data.

IO overview

Figure 3.1. IO overview


Beside a simplified stream API, there is also need for SCTP (SCTP is not available in JDK6) like streaming. Mobicents Stream Library provides this feature over a defined stream API.

Datalink is a proprietary protocol designed to provide the following functions:

Generally, Datalink can be imagined as follows:


Datalink follows the state machine, which reassembles one as depicted below: