Some Examples

Here you will find source code of some examples demonstrating how easy it is to use the QoS API.

Client/Server based on JQoSAPI
We have implemented a Client/Server in Java, which use our JQoSAPI to access native ATM Services of the Service Provider. It is based on AAL5. Take a short look at the sourcecode to see, how easy it is with the JQoSAPI to access native AAL5 services from Java. Qur API only supports AAL5 (no RSVP at the moment). In the sample code, no QoS features are exploited, but it is easy to create the AAL5 connections with different parameters. However, the sample program measures the time necessary for transmitting a certain amount of data.
  • Server: This class creates a QOSSocket and listens for an AAL5 connection. Once connection is established, it uses a standard Java InputStream to read the data.
  • Client: This class creates a QOSSocket and connects to the Server using AAL5. Once connection is established, it uses a standard Java OutputStream to send the data.