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, ' ...

Get Programming Wireless Devices with the Java™ 2 Platform, Micro Edition, Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.