StreamConnectionNotifier  ss = (StreamConnectionNotifier)
Connector.open("serversocket://:80", Connector.READ_WRITE);
StreamConnection conn = ss.acceptAndOpen();

Example 2: Server socket on the default HTTP port.

Back to Article