The MIDP supports networking through its javax.microedition.io package. It provides support for basic connectionless and connection-oriented communication protocols.
The crux of the design of the MIDP networking package is the notion of a generic connection framework. It defines a generic mechanism for applications to make network connections. Moreover, it abstracts the differences in setting up and using different kinds of connections that involve different protocols.
This framework enables application code to be written independently of the specific kind of connection used. This independence is important in pervasive environments where the nature of underlying networks can affect the application services available.
A connection ...