O'Reilly logo

Programming Wireless Devices with the Java™ 2 Platform, Micro Edition, Second Edition by Jim Holliday - Editor, Aleksi Uotila, Mark Patel, Jyri Huopaniemi, Jim Van Peursem, Antero Taivalsaari, Roger Riggs

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

15.5. SocketConnection

The SocketConnection interface extends interface javax.microedition.io.StreamConnection to define the API to TCP/IP or similar socket streams. (Refer to the documentation of interface StreamConnection on page 69.)

Applications that need to accept connections from other applications must use ServerSocketConnection instead. See Section 15.6, “ServerSocketConnection” for more information.

An application opens a socket on a target host by calling the Connector.open method. The application must provide a URI string that starts with 'socket://' and is followed by a host name and port number separated by a colon. For example, ' ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required