Java Reference
In-Depth Information
and port number to the connector's open() method using the following
URI syntax:
We can then use the secure socket connection in the same manner as
a normal socket connection, for example:
try {
SecureConnection sc = (SecureConnection)"ssl://");
OutputStream out = sc.openOutputStream();
InputStream in = sc.openInputStream();
} catch(IOException ioe) { ... }
A signed MIDlet suite that contains MIDlets which open secure con-
nections must explicitly request permission:
MIDlet-Permissions:, ...
If the protection domain to which the signed MIDlet suite would be
bound grants, or potentially grants, this permission, the MIDlet suite can
be installed and the MIDlets it contains will be able to open secure
connections. This can be done automatically or with user permission,
depending on the security policy in effect. Whether untrusted MIDlets
can open secure connections depends on the permissions granted in the
untrusted protection domain.
2.6.4 Datagram Support
Symbian's MIDP implementation includes support for sending and receiv-
ing UDP datagrams. A datagram connection can be opened in client or
server mode. Client mode is for sending datagrams to a remote device.
To open a client-mode datagram connection we use the following URI
Here the port number indicates the port on the target device to which
the datagram will be sent. Sample code for sending a datagram is shown
String message = "Hello!";
Search WWH ::

Custom Search