Motorola MOTORAZR maxx V6 Developer's Manual page 65

Java me developer guide
Hide thumbs Also See for MOTORAZR maxx V6:
Table of Contents

Advertisement

Java ME Developer Guide
Chapter 9 - JSR-120 - Wireless Messaging API
9.2 SMS 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]

Advertisement

Table of Contents
loading

Table of Contents