Motorola maxx V6 manual SMS Client Mode and Server Mode Connection, SMS Port Numbers

Models: maxx V6

1 201
Download 201 pages 31.32 Kb
Page 65
Image 65

Java ME Developer Guide

Chapter 9 - JSR-120 - Wireless Messaging API

9.2SMS Client Mode and Server Mode Connection

The Wireless Messaging API is based on the Generic Connection Framework (GCF), which is defined in the CLDC specification 1.1. The use of the "Connection" frame- work, in Motorola's case is " ￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿".

The ￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿ can be opened in either server or client mode. A server con- nection is opened by providing a URL that specifies an identifier (port number) for an application on the local device for incoming messages.

￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿

Messages received with this identifier will then be delivered to the application by this connection. A server mode connection can be used for both sending and receiving messages. A client mode connection is opened by providing a URL which points to another device. A client mode connection can only be used for sending messages.

￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿

9.3 SMS Port Numbers

When a port number is present in the address, the TP-User-Data of the SMS will con- tain a User-Data-Header with the application port addressing scheme information element. When the recipient address does not contain a port number, the TP- User-Data will not contain the application port addressing header. The Java ME MIDlet cannot receive this kind of message, but the SMS will be handled in the usual manner for a standard SMS to the device.

When a message identifying a port number is sent from a server type ￿￿￿￿￿￿￿￿￿￿￿

￿￿￿￿￿￿￿, the originating port number in the message is set to the port number of the

￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿. This allows the recipient to send a response to the message that will be received by this ￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿.

However, when a client type ￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿ is used for sending a message with

DRAFT - Subject to Change [65/201]

Page 65
Image 65
Motorola maxx V6 manual SMS Client Mode and Server Mode Connection, SMS Port Numbers, Draft Subject to Change 65/201